:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-400: #f59e0b;
  --amber-500: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --soft: #f8fafc;
  --dark: #0f172a;
  --shadow: 0 20px 55px rgba(17, 24, 39, 0.13);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf2 0, #f8fafc 360px, #f8fafc 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-900), var(--amber-700));
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.22);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--amber-900);
  background: linear-gradient(135deg, #fff7ed, #fbbf24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 22px rgba(0, 0, 0, 0.18);
}

.brand-text {
  font-size: 1.28rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  font-size: 0.98rem;
}

.main-nav a,
.mobile-nav a {
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--amber-200);
  opacity: 1;
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(120, 53, 15, 0.98);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 42%, rgba(245, 158, 11, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.82) 38%, rgba(15, 23, 42, 0.52) 68%, rgba(15, 23, 42, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 96px 24px 140px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 420px);
  gap: 56px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--amber-500);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
  color: var(--amber-200);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.36);
}

.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff8e1;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 14px 35px rgba(217, 119, 6, 0.35);
}

.btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.btn.text {
  color: #fde68a;
  padding-left: 6px;
  padding-right: 6px;
}

.btn.small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 0.86rem;
  color: #fff;
  background: var(--amber-700);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dot.is-active {
  width: 58px;
  background: var(--amber-400);
}

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.hero-category-strip a {
  min-height: 46px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.section,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

.intro-section {
  padding-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 32px;
  align-items: end;
}

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

.section-head.inline {
  align-items: center;
}

.section-head.wide {
  display: block;
  max-width: 850px;
  margin-bottom: 0;
}

.section-head h2,
.category-block h2,
.detail-text h2,
.detail-side h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.category-block p,
.detail-text p {
  color: var(--muted);
}

.section-head a {
  color: var(--amber-700);
  font-weight: 900;
}

.filter-panel {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(226, 232, 240, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  outline: none;
}

.search-box input:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.filter-hints {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.category-card,
.category-block,
.rank-panel,
.detail-side,
.detail-text,
.ranking-row {
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-card {
  padding: 22px;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(120, 53, 15, 0.14);
}

.category-card span {
  display: block;
  color: var(--amber-700);
  font-size: 1.1rem;
  font-weight: 950;
}

.category-card p {
  min-height: 52px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.category-preview {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.category-preview a {
  color: var(--ink);
  font-weight: 750;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(120, 53, 15, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), #fff);
}

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 8px 0 8px;
  font-size: 1.07rem;
  line-height: 1.35;
  font-weight: 950;
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.meta-line span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
}

.meta-line span + span::before,
.detail-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #cbd5e1;
}

.tag-row span {
  color: var(--amber-900);
  background: var(--amber-50);
}

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

.rank-panel ol {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-panel li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.rank-num,
.ranking-index {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-900));
}

.rank-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.rank-panel a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.rank-panel em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
}

.page-main {
  padding-top: 32px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 30%, rgba(245, 158, 11, 0.34), transparent 28%),
    linear-gradient(135deg, #111827, #78350f 74%, #92400e);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.page-hero {
  padding: 64px;
}

.page-hero h1,
.detail-copy h1 {
  color: #fff;
}

.page-hero p {
  max-width: 790px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
}

.breadcrumb a {
  color: #fde68a;
}

.category-overview {
  display: grid;
  gap: 24px;
}

.category-block {
  padding: 24px;
  border-radius: 28px;
}

.category-block-head {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
}

.ranking-index {
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

.ranking-cover {
  overflow: hidden;
  border-radius: 16px;
}

.ranking-cover img {
  width: 86px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ranking-row h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 950;
}

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

.detail-main {
  max-width: 1280px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 46px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy .lead {
  max-width: 780px;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.detail-meta {
  color: rgba(255, 255, 255, 0.8);
}

.player-section {
  padding-top: 34px;
  padding-bottom: 18px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #030712;
  box-shadow: 0 28px 76px rgba(15, 23, 42, 0.28);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.28), rgba(3, 7, 18, 0.68));
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amber-900);
  background: linear-gradient(135deg, #fff7ed, #f59e0b);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 800;
  pointer-events: none;
}

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

.detail-text,
.detail-side {
  padding: 28px;
  border-radius: 28px;
}

.detail-text + .detail-text {
  margin-top: 22px;
}

.detail-text p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 1.02rem;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 16px 0 0;
}

.detail-side dt {
  color: var(--muted);
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  font-weight: 850;
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.76);
  background: #111827;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer strong,
.site-footer span {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 950;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

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

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 28px;
  color: rgba(255, 255, 255, 0.52);
}

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

@media (max-width: 1100px) {
  .main-nav {
    gap: 14px;
    font-size: 0.92rem;
  }

  .hero-content,
  .intro-section,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .rank-panel {
    position: static;
  }

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

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

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

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

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

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

  .hero-content {
    padding: 72px 20px 148px;
  }

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

  .section,
  .page-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
  }

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

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

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

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

  .ranking-row {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

  .ranking-row .btn {
    grid-column: 2 / -1;
    width: max-content;
  }

  .ranking-cover img {
    width: 70px;
  }

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

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

  .brand-text {
    font-size: 1.06rem;
  }

  .hero h1 {
    font-size: 2.36rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.mini-grid,
  .category-movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-info p {
    min-height: 0;
  }

  .page-hero h1,
  .detail-copy h1 {
    font-size: 2rem;
  }
}
