:root {
  --page-bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #111827;
  --muted: #64748b;
  --line: #e5edf7;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --navy: #0f172a;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-name {
  font-size: 21px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  position: relative;
  padding: 10px 15px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
  color: var(--blue);
  background: #eff6ff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--blue);
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.hero-slider {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 24%, rgba(6, 182, 212, 0.38), transparent 28%), linear-gradient(135deg, #0f172a, #1e3a8a 55%, #155e75);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.68) 45%, rgba(15, 23, 42, 0.35));
  z-index: 1;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  padding: 120px 0 190px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(191, 219, 254, 0.28);
}

.hero-content h1 {
  margin: 22px 0 4px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-content h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: #e0f2fe;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: 18px;
  color: #dbeafe;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
}

.hero-content .hero-tags span {
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.btn.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.btn.light {
  color: var(--blue);
  background: #ffffff;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 150px;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 44px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 72px;
  background: #ffffff;
}

.hero-rail {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 28px;
}

.intro-copy h2,
.section-head h2,
.band-content h2,
.side-card h2,
.detail-card h2 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.intro-copy p,
.section-head p,
.band-content p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-search,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-search input,
.hero-search button,
.filter-panel input,
.filter-panel select {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.hero-search button {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  cursor: pointer;
  font-weight: 900;
}

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

.section-head .section-kicker {
  color: var(--blue);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.section-more {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 900;
}

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

.category-card,
.category-overview-card a {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-card::before,
.category-overview-card a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.24));
}

.category-card img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img,
.category-overview-card a:hover img,
.movie-card:hover img,
.compact-card:hover img {
  transform: scale(1.07);
}

.category-card span,
.category-card p,
.category-overview-card div {
  position: relative;
  z-index: 2;
}

.category-card span,
.category-overview-card h2 {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-card p,
.category-overview-card p {
  margin: 8px 0 0;
  color: #dbeafe;
  font-size: 14px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.85;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
  backdrop-filter: blur(12px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-info h2 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.movie-info h2 a:hover {
  color: var(--blue);
}

.movie-info p {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
}

.dark-band {
  width: 100%;
  max-width: none;
  margin: 30px 0;
  padding: 0;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.band-content {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
  color: #ffffff;
  text-align: center;
}

.band-content p {
  max-width: 760px;
  margin: 0 auto 26px;
  color: #dbeafe;
}

.two-column-section,
.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 28px;
}

.compact-list,
.rank-list {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease;
}

.compact-card:hover {
  transform: translateX(4px);
}

.compact-card img {
  width: 118px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.5s ease;
}

.compact-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.compact-card span {
  color: var(--muted);
  font-size: 13px;
}

.mini-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-right: 8px;
  color: #ffffff !important;
  border-radius: 999px;
  background: var(--blue);
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.42), transparent 25%), linear-gradient(135deg, #0f172a, #1d4ed8 58%, #155e75);
}

.compact-page-hero {
  padding: 80px 0;
}

.compact-page-hero > div,
.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.compact-page-hero h1 {
  margin: 16px 0 8px;
  font-size: clamp(44px, 7vw, 74px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.compact-page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.filter-panel {
  grid-template-columns: 1fr 180px;
  margin-bottom: 28px;
}

.search-panel {
  grid-template-columns: 1fr 180px 180px;
}

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

.category-overview-card a {
  min-height: 290px;
}

.category-overview-card span {
  position: relative;
  z-index: 2;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-lead {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 30px;
  padding: 24px;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  box-shadow: var(--shadow);
}

.ranking-lead img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 24px;
}

.ranking-lead h2 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.ranking-lead p {
  color: #dbeafe;
}

.detail-hero {
  min-height: 600px;
}

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

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.52));
}

.detail-hero-inner {
  padding: 42px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  color: #bfdbfe;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.detail-copy p {
  max-width: 820px;
  color: #dbeafe;
  font-size: 18px;
}

.main-detail-column,
.side-detail-column {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.26);
  position: relative;
}

.play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--blue);
}

.detail-card,
.side-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.detail-card h2,
.side-card h2 {
  margin-top: 0;
  font-size: 26px;
}

.detail-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.info-table {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-table div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-table dt {
  color: var(--muted);
  font-weight: 800;
}

.info-table dd {
  margin: 0;
}

.info-table a {
  color: var(--blue);
  font-weight: 800;
}

.sticky-card {
  position: sticky;
  top: 96px;
}

.prev-next-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.prev-next-row a {
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 48%, #1e3a8a);
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.footer-grid p {
  max-width: 420px;
  color: #cbd5e1;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links.compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1040px) {
  .movie-grid,
  .featured-grid,
  .ranking-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .intro-section,
  .two-column-section,
  .detail-content,
  .ranking-lead,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

  .site-header.menu-open .mobile-nav {
    display: grid;
  }

  .header-inner {
    height: 64px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-slider {
    min-height: 700px;
  }

  .hero-content {
    padding: 86px 0 250px;
  }

  .hero-content h1 {
    font-size: 50px;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .hero-dots {
    bottom: 210px;
  }

  .hero-rail {
    grid-template-columns: 1fr;
    bottom: 20px;
  }

  .hero-rail .compact-card:nth-child(n+3) {
    display: none;
  }

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

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

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

  .movie-info {
    padding: 14px;
  }

  .movie-info h2 {
    font-size: 17px;
  }

  .movie-info p {
    font-size: 13px;
  }

  .hero-search,
  .filter-panel,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-copy h1 {
    font-size: 42px;
  }

  .detail-hero-inner {
    padding-bottom: 50px;
  }

  .prev-next-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .ranking-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 96px 1fr;
  }

  .compact-card img {
    width: 96px;
    height: 68px;
  }

  .category-card,
  .category-overview-card a {
    min-height: 230px;
  }

  .play-icon {
    width: 74px;
    height: 74px;
  }
}
