* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #f59e0b;
  --accent-strong: #ea580c;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.10), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.26);
}

.logo-text {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fbbf24;
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

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

.mobile-nav.is-open {
  display: grid;
}

.mobile-link {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.hero {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.22)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.05) 48%, rgba(2, 6, 23, 0.25));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1240px) / 2 + 22px));
  bottom: 120px;
  width: min(680px, calc(100vw - 48px));
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero p {
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.8;
  max-width: 620px;
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.25);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--text);
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 46px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: 82px;
  z-index: 5;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - 44px));
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.hero-category-strip a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(10px);
}

.intro-band,
.content-section,
.page-hero,
.breadcrumb,
.detail-hero,
.player-section,
.detail-copy {
  width: min(1240px, calc(100vw - 44px));
  margin-left: auto;
  margin-right: auto;
}

.intro-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  margin-top: 46px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.5));
  box-shadow: var(--shadow);
}

.intro-band h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-copy h2 {
  margin: 12px 0 0;
  letter-spacing: -0.04em;
}

.intro-band h2,
.section-heading h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.intro-band p,
.page-hero p,
.detail-line,
.detail-copy p,
.movie-card p,
.wide-card p,
.rank-item p {
  color: var(--muted);
  line-height: 1.78;
}

.search-panel {
  width: 100%;
}

.search-panel input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  outline: none;
  background: rgba(2, 6, 23, 0.48);
}

.search-panel input:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.content-section {
  margin-top: 70px;
}

.content-section.soft-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.56), rgba(15, 23, 42, 0.66));
}

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

.section-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(15, 23, 42, 0.96);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
}

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

.poster-link img,
.wide-cover img,
.rank-poster img,
.category-tile img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img,
.wide-cover img,
.category-tile img {
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.wide-card:hover .wide-cover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.poster-shade,
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.02) 52%);
}

.play-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #111827;
  font-weight: 800;
  font-size: 0.82rem;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 16px;
}

.meta-row {
  color: #cbd5e1;
  font-size: 0.78rem;
}

.meta-row span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.movie-card h3,
.wide-card h3,
.rank-item h2 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.wide-card h3 a:hover,
.rank-item h2 a:hover {
  color: #fbbf24;
}

.movie-card p {
  min-height: 3.3em;
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.13);
  font-size: 0.76rem;
}

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

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-strong);
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 1.25rem;
}

.category-tile small {
  color: #cbd5e1;
  line-height: 1.6;
}

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

.wide-card,
.rank-item {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.75);
  overflow: hidden;
}

.wide-card {
  grid-template-columns: 130px 1fr;
  padding: 12px;
}

.wide-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
}

.wide-info {
  min-width: 0;
  align-self: center;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 240px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.page-main {
  padding: 44px 0 80px;
}

.page-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 28rem),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
}

.page-hero .search-panel {
  margin-top: 24px;
  max-width: 680px;
}

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

.rank-item {
  grid-template-columns: 74px 96px 1fr;
  align-items: center;
  padding: 14px;
}

.rank-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.rank-poster {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 2 / 3;
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 30rem),
    rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  background: rgba(2, 6, 23, 0.8);
}

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.detail-line {
  font-size: 1.08rem;
  max-width: 780px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.player-section,
.detail-copy {
  margin-top: 46px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 26px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
  cursor: pointer;
}

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

.player-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.34);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-button span {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #111827;
}

.player-button:hover {
  transform: scale(1.06);
}

.player-frame.is-playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.detail-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.68);
}

.detail-copy h2 + p {
  margin-top: 12px;
}

.detail-copy p {
  font-size: 1.02rem;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(1240px, calc(100vw - 44px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

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

.footer-links div {
  display: grid;
  gap: 10px;
}

.footer-links strong {
  color: #e2e8f0;
}

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  color: #64748b;
  text-align: center;
}

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

@media (max-width: 1120px) {
  .movie-grid,
  .library-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    bottom: 150px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-band,
  .footer-inner,
  .detail-hero,
  .rank-item {
    grid-template-columns: 1fr;
  }

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

  .wide-card {
    grid-template-columns: 100px 1fr;
  }

  .detail-cover {
    max-width: 320px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    height: 64px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 0.98rem;
  }

  .hero-content {
    left: 18px;
    width: calc(100vw - 36px);
  }

  .hero-category-strip {
    width: calc(100vw - 30px);
  }

  .intro-band,
  .content-section,
  .page-hero,
  .breadcrumb,
  .detail-hero,
  .player-section,
  .detail-copy {
    width: calc(100vw - 30px);
  }

  .intro-band,
  .content-section.soft-panel,
  .page-hero,
  .detail-hero,
  .detail-copy {
    padding: 20px;
  }

  .movie-grid,
  .library-grid,
  .category-grid,
  .category-grid.large {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

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

  .player-button {
    width: 72px;
    height: 72px;
  }
}
