:root {
  --bg: #06111f;
  --panel: #0f1e32;
  --panel-soft: #13233a;
  --text: #f8fafc;
  --muted: #aebed1;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.18);
  --line: rgba(148, 163, 184, 0.22);
  --gold: #fbbf24;
  --red: #fb7185;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem), var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #67e8f9 55%, #facc15);
  font-weight: 900;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text span {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--cyan);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: #dbeafe;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  border-top: 1px solid var(--line);
}

.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0 22px;
}

.mobile-nav-inner a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.18);
  transform: scale(1.06);
  opacity: 0.36;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 35%, rgba(34, 211, 238, 0.24), transparent 28rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 54px;
  padding: 82px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 20px 0 18px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #d8e6f7;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.tag-cloud span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(125, 211, 252, 0.2);
  font-size: 13px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 13px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #03121f;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.28);
}

.btn.ghost {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn.subtle {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.13);
  border: 1px solid rgba(251, 191, 36, 0.24);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: var(--cyan);
}

.search-band,
.filter-section {
  padding: 32px 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 28, 0.94));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-panel,
.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 1fr);
  align-items: center;
  gap: 28px;
}

.search-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.search-panel p,
.section-heading p,
.page-hero p,
.detail-one-line {
  color: var(--muted);
  line-height: 1.8;
}

.search-box {
  position: relative;
}

.search-box input,
.local-filter-input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  outline: none;
}

.search-box input:focus,
.local-filter-input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  max-height: 430px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: var(--shadow);
}

.search-result-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-result-item:hover {
  background: rgba(34, 211, 238, 0.12);
}

.search-result-item img {
  width: 56px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 9px;
}

.search-result-item strong,
.search-result-item span {
  display: block;
}

.search-result-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.content-section {
  padding: 64px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.section-heading p {
  margin: 10px 0 0;
}

.section-more {
  color: var(--cyan);
  font-weight: 900;
}

.category-grid,
.category-large-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-tile,
.category-card-large a {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-card-large a:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
}

.category-tile strong,
.category-card-large span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile span,
.category-card-large strong {
  color: var(--muted);
  line-height: 1.65;
  font-weight: 500;
}

.category-card-large em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 18px;
}

.movie-card {
  min-width: 0;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: #0f172a;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease;
}

.poster-link:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.88));
  opacity: 0.72;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  color: #03121f;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.poster-link:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding-top: 12px;
}

.movie-card h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.45;
}

.movie-card h3 a:hover {
  color: var(--cyan);
}

.movie-meta,
.movie-line {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tag-row {
  margin-top: 9px;
  gap: 6px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 11px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 24px;
}

.ranking-list,
.ranking-page-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list li a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rank-no {
  color: var(--gold);
  font-weight: 900;
  font-size: 20px;
}

.rank-title {
  font-weight: 900;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.ranking-feature {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.compact-card img {
  width: 74px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: 96px 0 60px;
  background:
    radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.2), transparent 26rem),
    linear-gradient(135deg, #0f172a, #06111f 64%);
  border-bottom: 1px solid var(--line);
}

.slim-hero h1 {
  max-width: 760px;
}

.slim-hero p {
  max-width: 820px;
  font-size: 18px;
}

.filter-panel {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: #03121f;
  border-color: transparent;
  background: var(--cyan);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 70px;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.66));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.detail-one-line {
  margin: 0;
  font-size: 18px;
}

.player-section {
  padding: 46px 0;
  background: #020617;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 999px;
  color: #03121f;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.player-start.is-hidden {
  display: none;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
}

.detail-text-grid article,
.detail-text-grid aside {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
}

.detail-text-grid h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-text-grid p {
  margin: 0 0 26px;
  color: #dbeafe;
  line-height: 1.9;
}

.movie-facts {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}

.movie-facts dt {
  color: var(--muted);
}

.movie-facts dd {
  margin: 0;
  color: #f8fafc;
  font-weight: 800;
}

.ranking-page-list {
  max-width: 940px;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 70px 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  border-radius: 18px;
}

.ranking-row a:hover {
  background: rgba(34, 211, 238, 0.08);
}

.ranking-row img {
  width: 74px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-row-text strong,
.ranking-row-text em,
.ranking-row-text small {
  display: block;
}

.ranking-row-text em,
.ranking-row-text small {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  padding: 54px 0 0;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 42px;
  padding: 22px 16px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid,
  .category-large-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 740px;
  }

  .hero-content,
  .search-panel,
  .filter-panel,
  .ranking-layout,
  .detail-layout,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

  .category-grid,
  .category-large-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-poster {
    max-width: 240px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text span {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero-copy p,
  .detail-one-line,
  .slim-hero p {
    font-size: 15px;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .category-grid,
  .category-large-grid,
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .ranking-list li a,
  .ranking-row a {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .ranking-list .rank-meta,
  .ranking-row img {
    display: none;
  }

  .player-start {
    width: 58px;
    height: 58px;
  }
}
