:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-900: #78350f;
  --amber-950: #451a03;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-lg: 0 10px 24px rgba(120, 53, 15, 0.12);
  --shadow-xl: 0 24px 60px rgba(120, 53, 15, 0.18);
  --radius-xl: 20px;
  --radius-2xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 36%, #ffffff);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
  font-size: 24px;
  font-weight: 900;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.38);
  font-size: 15px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--amber-600);
  font-size: 24px;
  box-shadow: var(--shadow-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
}

.nav-links a {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--amber-600);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50), var(--amber-200));
}

.hero-track {
  position: relative;
  min-height: 640px;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 247, 237, 0.82), rgba(255, 251, 235, 0.55));
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 380px;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-600);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 760px;
  color: var(--gray-900);
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--gray-700);
  font-size: 20px;
}

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

.hero-tags span,
.detail-tags span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(254, 243, 199, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.32);
}

.btn.ghost {
  color: var(--amber-700, #b45309);
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid rgba(245, 158, 11, 0.4);
}

.hero-poster,
.detail-poster {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
  box-shadow: var(--shadow-xl);
}

.hero-poster::after,
.detail-poster::after,
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(69, 26, 3, 0.24));
  pointer-events: none;
}

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

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

.hero-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.25);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--amber-600);
}

.feature-strip {
  max-width: 1180px;
  margin: -42px auto 0;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 24px;
}

.feature-strip div {
  min-height: 108px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 158, 11, 0.14);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  font-size: 19px;
  color: var(--gray-900);
}

.feature-strip span {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 6px;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

.section-head.compact {
  display: block;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

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

.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.channel-card {
  min-height: 116px;
  padding: 22px;
  border-radius: var(--radius-xl);
  color: var(--gray-900);
  background: linear-gradient(135deg, #ffffff, var(--amber-50));
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 158, 11, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.channel-card strong,
.channel-card span {
  display: block;
}

.channel-card strong {
  font-size: 20px;
}

.channel-card span {
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 158, 11, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
  position: relative;
  display: block;
  height: 284px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-500));
}

.poster img {
  transition: transform 0.45s ease;
}

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

.score,
.rank-no {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 10px 22px rgba(120, 53, 15, 0.22);
}

.score {
  right: 12px;
  top: 12px;
}

.rank-no {
  left: 12px;
  top: 12px;
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--amber-600);
}

.card-body p {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--gray-500);
  font-size: 14px;
}

.meta-row span {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 12px;
}

.hot-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: var(--radius-2xl);
  color: #ffffff;
  background: linear-gradient(180deg, var(--amber-900), var(--amber-950));
  box-shadow: var(--shadow-xl);
}

.hot-panel .eyebrow,
.hot-panel h2 {
  color: var(--amber-100);
}

.hot-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hot-panel li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hot-panel a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px 12px;
  padding: 14px 0;
}

.hot-panel span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-950);
  background: var(--amber-100);
  font-weight: 900;
}

.hot-panel strong {
  line-height: 1.35;
}

.hot-panel em {
  color: var(--amber-200);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50), var(--amber-200));
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.page-hero p:last-child {
  max-width: 820px;
  margin: 0;
  color: var(--gray-700);
  font-size: 19px;
}

.tools-section {
  padding-top: 42px;
  padding-bottom: 0;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 158, 11, 0.14);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: var(--gray-900);
  font: inherit;
  background: var(--gray-50);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50), var(--amber-200));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.detail-poster {
  min-height: 520px;
}

.detail-info h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 790px;
  color: var(--gray-700);
  font-size: 21px;
}

.detail-section {
  padding-bottom: 32px;
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(245, 158, 11, 0.14);
}

.video-box {
  position: relative;
  min-height: 520px;
  background: radial-gradient(circle at top left, #2d1600, #080604 62%);
}

.movie-video {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: contain;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45));
  font-size: 62px;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  font-size: 18px;
  font-weight: 900;
}

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

.player-meta {
  padding: 24px 28px;
}

.player-meta h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.player-meta p {
  margin: 0;
  color: var(--gray-500);
}

.article-content {
  padding-top: 32px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-grid > div {
  padding: 30px;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.content-grid h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-grid p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.site-footer {
  margin-top: 42px;
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--amber-900), var(--amber-950));
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 22px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 251, 235, 0.82);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
}

.site-footer li {
  margin: 0 0 8px;
}

.site-footer a {
  color: rgba(255, 251, 235, 0.82);
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  color: rgba(255, 251, 235, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.is-filtered-out {
  display: none;
}

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

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

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

  .hot-panel {
    position: relative;
    top: 0;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-xl);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .hero-poster,
  .detail-poster {
    min-height: 420px;
  }

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

  .movie-grid,
  .catalog-grid,
  .channel-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .brand {
    font-size: 20px;
  }

  .hero,
  .hero-track,
  .hero-inner,
  .detail-hero {
    min-height: auto;
  }

  .hero-inner,
  .detail-wrap,
  .page-hero > div,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner,
  .detail-wrap {
    padding-top: 48px;
    padding-bottom: 62px;
  }

  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-text,
  .lead,
  .page-hero p:last-child {
    font-size: 17px;
  }

  .feature-strip,
  .movie-grid,
  .catalog-grid,
  .channel-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .poster {
    height: 360px;
  }

  .video-box,
  .movie-video {
    min-height: 280px;
    height: 280px;
  }

  .section-head {
    display: block;
  }

  .section-head a {
    display: inline-block;
    margin-top: 10px;
  }
}
