:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --cyan-dark: #0891b2;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 28rem),
    linear-gradient(180deg, #0f172a 0%, #111827 44%, #0f172a 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa 52%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.desktop-nav a,
.mobile-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #fff;
  background: rgba(34, 211, 238, 0.12);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(360px, 32vw);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input {
  min-width: 0;
  flex: 1;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 11px 14px;
}

.header-search button {
  border: 0;
  color: #fff;
  padding: 11px 18px;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  cursor: pointer;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: grid;
  background: #0f172a;
}

.hero-slide {
  grid-area: 1 / 1;
  min-height: 70vh;
  padding: 120px 20px 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  width: min(900px, 100%);
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-content h1,
.sub-hero h1,
.detail-info h1 {
  margin: 16px 0 20px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 1;
  letter-spacing: -0.07em;
  background: linear-gradient(90deg, #cffafe, #60a5fa 50%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p,
.sub-hero p,
.lead-text {
  max-width: 790px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 24px);
}

.hero-tags,
.detail-meta,
.movie-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  justify-content: center;
  margin: 26px 0 32px;
}

.hero-tags span,
.detail-meta span,
.movie-meta-line span {
  color: var(--muted);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  padding: 13px 22px;
  box-shadow: 0 18px 45px rgba(8, 145, 178, 0.26);
}

.ghost-button,
.section-more {
  color: #e0f2fe;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: rgba(15, 23, 42, 0.54);
  padding: 12px 20px;
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.34);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--cyan);
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--soft);
  max-width: 640px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}

.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.movie-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.24);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 28px 80px rgba(8, 145, 178, 0.16);
}

.movie-poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(8, 145, 178, 0.28), rgba(30, 41, 59, 0.92));
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-poster {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.movie-play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.35);
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 14px;
}

.movie-meta-line {
  gap: 6px;
}

.movie-meta-line span {
  padding: 4px 8px;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.tag-row span {
  color: #bae6fd;
  background: rgba(8, 145, 178, 0.13);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.text-link {
  color: var(--cyan);
  font-size: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.category-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-card span {
  color: var(--cyan);
  font-weight: 900;
  font-size: 24px;
}

.category-card strong {
  color: #fff;
  font-size: 16px;
}

.category-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.rank-list,
.rank-page-list {
  display: grid;
  gap: 12px;
}

.rank-item,
.rank-row {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover,
.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-number {
  color: var(--cyan);
  font-size: 22px;
  font-weight: 950;
  min-width: 46px;
}

.rank-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  display: grid;
  gap: 4px;
}

.rank-info strong,
.rank-row h2 {
  color: #fff;
}

.rank-info em,
.rank-row p {
  color: var(--soft);
  font-style: normal;
}

.spotlight-panel,
.story-card,
.player-card,
.category-overview-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.spotlight-panel {
  position: sticky;
  top: 100px;
  padding: 30px;
}

.spotlight-panel h2 {
  color: #fff;
  font-size: 34px;
  margin: 12px 0;
}

.spotlight-panel p {
  color: var(--muted);
}

.sub-hero {
  min-height: 42vh;
  padding: 100px 20px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.sub-hero h1 {
  font-size: clamp(36px, 6vw, 70px);
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
}

.category-cover {
  min-height: 230px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.category-cover span {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.category-overview-card > div {
  padding: 22px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  color: #fff;
}

.category-overview-card p {
  color: var(--soft);
  margin: 0 0 14px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.inline-links a {
  color: #bae6fd;
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}

.filter-search input {
  width: 100%;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: 0;
  padding: 14px 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chips button {
  color: var(--muted);
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #fff;
  background: rgba(8, 145, 178, 0.22);
  border-color: rgba(34, 211, 238, 0.4);
}

.empty-state {
  display: none;
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.empty-state.is-visible {
  display: block;
}

.rank-row {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
}

.rank-row-cover {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
}

.rank-row-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  color: #fff;
  background: rgba(8, 145, 178, 0.9);
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 900;
}

.rank-row-cover img {
  width: 112px;
  height: 150px;
  object-fit: cover;
}

.rank-row-body {
  padding: 8px 0;
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-row p {
  margin: 0 0 12px;
}

.detail-hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: #bae6fd;
}

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

.detail-cover-wrap {
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.7);
}

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

.detail-info h1 {
  font-size: clamp(38px, 6vw, 78px);
}

.detail-info .lead-text {
  margin: 0;
}

.detail-meta {
  margin: 24px 0 12px;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
  display: block;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.26), rgba(2, 6, 23, 0.48));
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: #fff;
  font-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
  box-shadow: 0 20px 60px rgba(8, 145, 178, 0.34);
}

.player-text {
  padding: 24px 28px;
}

.player-text h2,
.story-card h2 {
  margin: 0 0 10px;
  color: #fff;
}

.player-text p,
.story-card p {
  margin: 0;
  color: var(--muted);
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story-card {
  padding: 28px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.86);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-inner p {
  margin: 8px auto;
  color: var(--soft);
  max-width: 760px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.footer-links a {
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
}

.copyright {
  font-size: 13px;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .split-section,
  .detail-layout,
  .detail-content,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .spotlight-panel {
    position: static;
  }

  .detail-cover-wrap {
    max-width: 340px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
    padding: 0 14px;
  }

  .site-logo {
    font-size: 20px;
  }

  .hero-slide {
    min-height: 74vh;
    padding: 96px 16px 76px;
  }

  .hero-content h1,
  .sub-hero h1,
  .detail-info h1 {
    letter-spacing: -0.045em;
  }

  .content-section {
    width: min(100% - 24px, 1240px);
    padding: 46px 0;
  }

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

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: auto 58px minmax(0, 1fr);
  }

  .rank-item img {
    width: 58px;
    height: 78px;
  }

  .rank-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .rank-row-cover img {
    width: 88px;
    height: 118px;
  }

  .player-button {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }
}

@media (max-width: 460px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
