:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --orange: #f97316;
  --red: #dc2626;
  --amber: #f59e0b;
  --green: #16a34a;
  --violet: #7c3aed;
  --pink: #db2777;
  --teal: #0d9488;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  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.97), rgba(30, 41, 59, 0.97));
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(18px);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.35);
}

.brand-text {
  background: linear-gradient(90deg, #67e8f9, #ffffff, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #cbd5e1;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.16);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 10px;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.28;
  z-index: 1;
}

.hero::before {
  left: -110px;
  top: 90px;
  background: var(--cyan);
}

.hero::after {
  right: -120px;
  bottom: 30px;
  background: var(--orange);
}

.hero-track {
  position: relative;
  min-height: 570px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 420px);
  align-items: center;
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 60px;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  z-index: 2;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  z-index: -1;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(12px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p,
.sub-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #0f172a;
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
}

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

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

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

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

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

.btn-ghost.dark {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.hero-poster,
.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-nav {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding-bottom: 30px;
}

.hero-dot {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  cursor: pointer;
  text-align: left;
}

.hero-dot img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  background: #1e293b;
}

.hero-dot span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 800;
}

.hero-dot.is-active {
  border-color: #67e8f9;
  background: rgba(6, 182, 212, 0.24);
}

.page-section {
  padding: 70px 0;
}

.quick-search-section {
  margin-top: -35px;
  position: relative;
  z-index: 10;
}

.sticky-filter {
  position: sticky;
  top: 78px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.filter-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.filter-panel button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
}

.filter-panel button {
  align-self: end;
  cursor: pointer;
  font-weight: 900;
}

.filter-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

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

.compact-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more,
.text-link {
  color: var(--blue);
  font-weight: 900;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-featured {
  grid-column: span 2;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:not(.movie-card-compact) .poster-link img {
  aspect-ratio: 3 / 4;
}

.movie-card-featured .poster-link img {
  aspect-ratio: 16 / 9;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78));
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.28);
}

.card-body {
  padding: 18px;
}

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

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 160px;
}

.movie-card-compact .poster-link img {
  height: 100%;
  min-height: 160px;
}

.movie-card-compact .tag-row {
  display: none;
}

.category-band {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.category-band .section-heading p {
  color: #cbd5e1;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: 24px;
  isolation: isolate;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.02);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.86));
  z-index: -1;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile small {
  color: #dbeafe;
  font-weight: 800;
}

.two-column-section,
.category-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.spotlight-panel,
.side-panel,
.info-card {
  position: sticky;
  top: 98px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.spotlight-panel {
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.52), transparent 45%), linear-gradient(135deg, #0f172a, #334155);
}

.sub-hero {
  padding: 96px 0 80px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.36), transparent 35%), linear-gradient(135deg, #0f172a, #1e293b);
}

.sub-hero.accent-red {
  background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.34), transparent 35%), linear-gradient(135deg, #0f172a, #1e293b);
}

.sub-hero.accent-cyan {
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.44), transparent 35%), linear-gradient(135deg, #0f172a, #164e63);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -38px;
  position: relative;
  z-index: 4;
}

.stats-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.stats-card strong {
  display: block;
  font-size: 34px;
}

.stats-card span {
  color: var(--muted);
  font-weight: 800;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.overview-cover {
  overflow: hidden;
  border-radius: 18px;
}

.overview-cover img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.overview-card h2 {
  margin: 0 0 8px;
}

.overview-card p {
  color: var(--muted);
}

.side-links {
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.side-links li + li {
  border-top: 1px solid var(--line);
}

.side-links a {
  display: grid;
  gap: 2px;
  padding: 12px 0;
}

.side-links span {
  font-weight: 900;
}

.side-links small {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.ranking-table th,
.ranking-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ranking-table th {
  color: #475569;
  background: #f8fafc;
  font-size: 13px;
}

.table-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.table-title {
  display: block;
  font-weight: 900;
}

.table-title + small {
  color: var(--muted);
}

.detail-hero {
  padding: 70px 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

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

.breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}

.detail-copy h1 {
  max-width: 850px;
}

.detail-side {
  display: grid;
  gap: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.video-element {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.play-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.36);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 12px;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  pointer-events: none;
}

.content-block,
.info-card {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.content-block h2,
.info-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: #334155;
}

.info-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-card li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-card li:last-child {
  border-bottom: 0;
}

.info-card span {
  color: var(--muted);
}

.info-card strong {
  text-align: right;
}

.gradient-card {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.detail-tags a {
  color: #075985;
}

.site-footer {
  padding: 60px 0 24px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
}

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

.site-footer h3 {
  color: #ffffff;
  margin-top: 0;
}

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

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

.site-footer a:hover,
.footer-bottom button:hover {
  color: #67e8f9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-bottom button {
  border: 0;
  color: #cbd5e1;
  background: transparent;
  cursor: pointer;
}

[data-card].is-hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-slide,
  .detail-hero-inner,
  .two-column-section,
  .category-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }

  .hero-nav,
  .category-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid,
  .card-grid-four,
  .card-grid-three,
  .overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .side-panel,
  .info-card,
  .spotlight-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #0f172a;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: 760px;
  }

  .hero-track {
    min-height: 620px;
  }

  .hero-slide {
    padding-top: 58px;
  }

  .hero-nav,
  .category-grid,
  .stats-grid,
  .card-grid,
  .card-grid-four,
  .card-grid-three,
  .overview-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-card-featured {
    grid-column: span 1;
  }

  .movie-card-compact,
  .overview-card {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .detail-poster {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
