:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #ffedd5;
  --gold: #facc15;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(135deg, var(--brand-dark), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.85s ease;
  pointer-events: none;
}

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

.hero-slide::after,
.detail-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(250, 204, 21, 0.24), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.22), transparent 30%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 54px;
  min-height: 650px;
  color: #ffffff;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--brand-dark);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-badges,
.detail-meta,
.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges {
  margin-top: 22px;
}

.hero-badges span,
.detail-meta span,
.tag-row span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-badges span,
.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.small-actions {
  margin-top: 22px;
}

.btn,
.global-search button,
.clear-filter,
.rank-action,
.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.global-search button:hover,
.clear-filter:hover,
.rank-action:hover,
.source-link:hover {
  transform: translateY(-2px);
}

.btn-primary,
.global-search button,
.rank-action,
.source-link {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.34);
}

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

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

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.hero-poster span,
.poster-play {
  position: absolute;
  inset: auto 18px 18px auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.38);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--brand);
}

.section-block {
  padding: 54px 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 30px;
  margin-top: -42px;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 4;
}

.intro-strip h2,
.section-heading h2,
.content-card h2,
.side-card h2,
.player-title-row h2 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.intro-strip p,
.section-heading p,
.content-card p,
.category-tile p,
.movie-card p,
.rank-item p,
.site-footer p {
  color: var(--muted);
}

.global-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.global-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
}

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

.section-heading > div > span,
.section-more {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.section-more {
  white-space: nowrap;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 0%, rgba(250, 204, 21, 0.28), transparent 32%),
    linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 72px rgba(15, 23, 42, 0.14);
}

.category-index {
  color: rgba(249, 115, 22, 0.18);
  font-size: 48px;
  font-weight: 950;
  line-height: 1;
}

.category-covers {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}

.category-covers img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #111827, #7c2d12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.category-tile h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 950;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
}

.poster-play {
  width: 44px;
  height: 44px;
  font-size: 14px;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.card-content {
  padding: 16px;
}

.card-meta span,
.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.card-content h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.card-content h3 a:hover,
.rank-copy h3 a:hover,
.side-card a:hover {
  color: var(--brand-dark);
}

.card-content p {
  min-height: 54px;
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-row {
  gap: 6px;
}

.tag-row.large-tags span {
  font-size: 14px;
  min-height: 34px;
  padding: 6px 12px;
}

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

.rank-panel,
.side-card,
.content-card,
.player-card,
.filter-panel,
.category-preview {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-panel .section-heading {
  margin-bottom: 14px;
}

.rank-panel .section-heading h2 {
  font-size: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-list .rank-action,
.compact-list .rank-item p,
.compact-list .tag-row {
  display: none;
}

.rank-number {
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 950;
}

.rank-poster img {
  width: 76px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.compact-list .rank-poster img {
  width: 58px;
  height: 76px;
}

.rank-copy h3 {
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.rank-copy p {
  margin: 0 0 10px;
  font-size: 14px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.compact-hero {
  padding: 84px 0;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(124, 45, 18, 0.84)),
    radial-gradient(circle at 75% 20%, rgba(249, 115, 22, 0.38), transparent 30%);
}

.category-hero {
  padding: 92px 0;
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 2;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 210px 210px auto auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  margin-bottom: 26px;
}

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

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.clear-filter {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.filter-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  padding-bottom: 10px;
}

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: #ffffff;
}

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

.stacked-previews {
  display: grid;
  gap: 28px;
}

.category-preview {
  padding: 24px;
}

.detail-hero {
  padding: 38px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 34px;
  font-size: 14px;
}

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

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

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.detail-poster span {
  position: absolute;
  inset: auto 20px 20px 20px;
  display: grid;
  place-items: center;
  min-height: 46px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.94);
  font-weight: 950;
}

.detail-meta {
  margin-top: 22px;
}

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

.main-detail,
.side-detail {
  display: grid;
  gap: 22px;
}

.side-detail {
  position: sticky;
  top: 92px;
}

.player-card,
.content-card,
.side-card {
  padding: 24px;
}

.player-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.30), rgba(0, 0, 0, 0.56));
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.36);
  font-size: 24px;
}

.player-overlay strong {
  font-size: 18px;
}

.player-card.is-playing .player-overlay {
  display: none;
}

.content-card p {
  font-size: 17px;
  margin: 0;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.mini-rank {
  display: grid;
  gap: 12px;
}

.mini-rank a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-weight: 850;
}

.mini-rank img {
  width: 52px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.site-footer {
  margin-top: 30px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px minmax(0, 1fr);
  gap: 34px;
  padding: 48px 0;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fed7aa;
}

.footer-category-links {
  columns: 2;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .rank-panel,
  .side-detail {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 54px 0 92px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    margin: 0 auto;
    transform: rotate(0);
  }

  .intro-strip,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 76vw);
  }

  .global-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .global-search input {
    min-height: 44px;
  }

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

  .rank-action {
    grid-column: 2 / 4;
  }
}

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

  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 19px;
  }

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

  .movie-grid,
  .home-grid,
  .preview-grid,
  .category-grid,
  .category-grid.large,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .player-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero,
  .category-hero,
  .compact-hero {
    padding: 64px 0;
  }

  .footer-category-links {
    columns: 1;
  }
}
