:root {
  --bg: #fffaf1;
  --panel: #ffffff;
  --panel-soft: #fffbeb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3e7cf;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --shadow: 0 22px 50px rgba(120, 53, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(251, 191, 36, 0.22), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(245, 158, 11, 0.16), transparent 28%),
    var(--bg);
}

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

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

.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.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 8px 28px rgba(146, 64, 14, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 34px;
}

.hero-shell {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #111827, #7c2d12 55%, #f59e0b);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.08) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.18)),
    radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.34), transparent 35%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 32px;
  padding: 64px;
  color: #fff;
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.tag-row span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.34);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-side {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.hero-side h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.hero-rank-link {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.hero-rank-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-rank-link img {
  width: 48px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-rank-link strong {
  display: block;
  margin-bottom: 4px;
}

.hero-rank-link span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 64px;
  bottom: 36px;
  display: flex;
  gap: 10px;
}

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

.hero-dots button.active {
  background: #fbbf24;
}

.section {
  padding: 42px 0;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.section-head h2,
.page-title h1,
.detail-text h1,
.player-title h1 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.15;
}

.section-head h2,
.page-title h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.page-title p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(120, 53, 15, 0.08);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(120, 53, 15, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #7c2d12);
}

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

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

.year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.74);
  color: #fff;
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

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

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

.tag-row span {
  background: var(--brand-soft);
  color: #9a3412;
}

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

.category-card {
  min-height: 172px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fffbeb);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(120, 53, 15, 0.07);
  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--ink);
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand-dark);
  font-weight: 900;
}

.feature-band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 36px;
  background: linear-gradient(135deg, #78350f, #d97706);
  color: #fff;
  box-shadow: var(--shadow);
}

.feature-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 48px);
}

.feature-band p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.page-hero {
  padding: 52px 0 20px;
}

.page-title {
  border-radius: 30px;
  padding: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(254, 243, 199, 0.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 82px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.07);
}

.rank-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--brand);
  text-align: center;
}

.rank-item img {
  width: 82px;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
  background: #fbbf24;
}

.rank-item h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-hero {
  padding: 42px 0;
}

.detail-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  border-radius: 32px;
  padding: 30px;
  background: linear-gradient(135deg, #fff, #fffbeb);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #7c2d12);
  box-shadow: 0 22px 46px rgba(120, 53, 15, 0.16);
}

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

.breadcrumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 700;
}

.detail-text h1,
.player-title h1 {
  font-size: clamp(30px, 4vw, 52px);
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 13px;
}

.detail-text p,
.content-block p {
  color: #4b5563;
  line-height: 1.9;
  font-size: 16px;
}

.player-section {
  padding: 8px 0 42px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.24);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.34), rgba(120, 53, 15, 0.62));
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.player-start {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 36px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 20px 42px rgba(245, 158, 11, 0.36);
  cursor: pointer;
}

.content-block {
  margin-top: 26px;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.07);
}

.content-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.site-footer {
  margin-top: 48px;
  padding: 46px 0;
  background: linear-gradient(135deg, #111827, #1f2937, #78350f);
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 30px;
}

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

.site-footer p {
  margin: 0;
  line-height: 1.8;
  color: #d1d5db;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

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

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    padding: 44px;
  }

  .hero-side {
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .rank-item {
    grid-template-columns: 52px 74px 1fr;
  }

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

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

  .brand {
    font-size: 18px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-shell {
    min-height: 680px;
    border-radius: 24px;
  }

  .hero-content {
    padding: 28px;
  }

  .hero-dots {
    left: 28px;
    bottom: 24px;
  }

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

  .movie-card-body {
    padding: 13px;
  }

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

  .section-head {
    display: block;
  }

  .page-title,
  .feature-band,
  .content-block,
  .detail-shell {
    padding: 22px;
    border-radius: 24px;
  }

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