:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f0fdfa;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --accent-soft: #ccfbf1;
  --blue: #2563eb;
  --gold: #facc15;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.quick-search {
  display: flex;
  align-items: center;
  width: min(310px, 32vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.quick-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.quick-search input {
  padding: 10px 14px;
}

.quick-search button,
.hero-search button {
  border: 0;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.quick-search button {
  align-self: stretch;
  padding: 0 16px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #0f172a;
}

.hero {
  position: relative;
  min-height: 640px;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.42), transparent 36%), linear-gradient(135deg, #020617, #0f172a 55%, #0f766e);
}

.hero-title {
  position: relative;
  z-index: 4;
  padding-top: 52px;
}

.hero-title p,
.eyebrow,
.page-hero p {
  margin: 0 0 10px;
  color: #99f6e4;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.06;
}

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

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

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

.hero-bg,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.74) 46%, rgba(15, 118, 110, 0.4)), linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 96px;
}

.hero-copy {
  max-width: 650px;
  padding: 44px 0 120px;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 800;
}

.hero .hero-tags span {
  color: #ecfeff;
  background: rgba(15, 118, 110, 0.62);
  border: 1px solid rgba(153, 246, 228, 0.35);
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 16px 30px rgba(13, 148, 136, 0.34);
}

.btn-glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 6;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(280px, 520px) auto;
  align-items: center;
  gap: 18px;
}

.hero-search {
  display: flex;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-search input {
  padding: 0 20px;
}

.hero-search button {
  padding: 0 24px;
}

.hero-dots {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button[aria-pressed="true"] {
  width: 34px;
  background: #fff;
}

.hero-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

.section-head h2,
.ranking-column h2,
.story-card h2,
.info-card h2,
.collection-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

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

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

.poster-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #111827;
  background: rgba(250, 204, 21, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 15px;
}

.movie-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-meta span {
  color: var(--muted);
}

.movie-info h3 {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.collection-card h2 a:hover {
  color: var(--accent-dark);
}

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

.movie-card.compact {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
}

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

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

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

.category-card,
.collection-card,
.rank-panel,
.ranking-column,
.story-card,
.info-card,
.filter-bar,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-card > a {
  display: block;
  padding: 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  color: #fff;
}

.category-card span {
  display: block;
  margin-bottom: 8px;
  color: #ccfbf1;
  font-weight: 900;
}

.category-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.5;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 16px;
}

.mini-links a {
  padding: 5px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 800;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.ranking-column {
  padding: 22px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.rank-item:hover {
  background: #ecfeff;
}

.rank-num {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.page-hero {
  padding: 72px 0;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.42), transparent 34%), linear-gradient(135deg, #020617, #0f172a 54%, #0f766e);
}

.page-hero a {
  color: #ccfbf1;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero span {
  display: block;
  max-width: 740px;
  color: #dbeafe;
  font-size: 18px;
}

.collection-card {
  overflow: hidden;
}

.collection-cover {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 160px;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

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

.collection-card > div {
  padding: 20px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 170px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(15, 118, 110, 0.32));
}

.detail-head {
  position: relative;
  z-index: 3;
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: #ccfbf1;
  font-weight: 800;
}

.breadcrumb em {
  color: #fff;
  font-style: normal;
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #0f766e);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.32), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  color: #0f766e;
  background: #fff;
  font-size: 34px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
  font-size: 20px;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.story-card,
.info-card {
  padding: 24px;
}

.story-card p,
.info-card dd {
  color: #475569;
}

.info-card {
  grid-row: span 2;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 16px 0 20px;
}

.info-card dt {
  color: #0f766e;
  font-weight: 900;
}

.info-card dd {
  margin: 0;
}

.tag-row.large span {
  margin-bottom: 2px;
}

.empty-state {
  margin-bottom: 24px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-weight: 900;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  color: var(--accent-dark);
  font-weight: 900;
}

img.is-missing {
  opacity: 0;
}

.is-hidden {
  display: none !important;
}

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

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

  .two-col,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    flex-wrap: wrap;
    min-height: 66px;
    padding: 10px 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .quick-search {
    display: none;
    width: 100%;
  }

  .site-nav.is-open,
  .quick-search.is-open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search {
    width: 100%;
  }

  .hero {
    min-height: 720px;
  }

  .hero-inner {
    align-items: end;
    padding-top: 120px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    bottom: 22px;
  }

  .hero-dots {
    justify-content: flex-start;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .collection-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

  .hero-title {
    padding-top: 34px;
  }

  .hero-copy {
    padding-bottom: 190px;
  }

  .hero-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    min-height: 50px;
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .collection-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.compact {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .section {
    padding: 46px 0;
  }
}
