:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --text: #24130a;
  --muted: #7c4a1e;
  --line: rgba(146, 64, 14, 0.16);
  --brand: #d97706;
  --brand-dark: #9a3412;
  --brand-soft: #fef3c7;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 50px rgba(120, 53, 15, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.24), transparent 32rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 40%, #fef2f2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(255, 251, 235, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.nav-inner {
  width: min(1200px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #7c2d12;
}

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

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

.nav-link,
.mobile-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #7c4a1e;
  font-weight: 700;
  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: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #9a3412;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #1c0b04;
}

.hero-track,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  background:
    radial-gradient(circle at 74% 26%, rgba(245, 158, 11, 0.45), transparent 22rem),
    linear-gradient(90deg, rgba(24, 8, 2, 0.94) 0%, rgba(55, 19, 4, 0.78) 46%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  gap: 52px;
  padding: 84px 0 124px;
}

.hero-text h1 {
  max-width: 820px;
  margin: 14px 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-text h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 42px);
  color: #fde68a;
}

.hero-text p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero .kicker {
  color: #fbbf24;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

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

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

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.28);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.small-button {
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #d97706, #ea580c);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.36), transparent 50%);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 4;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 62px;
  background: linear-gradient(135deg, #fbbf24, #ef4444);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: min(760px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.hero-search input,
.filter-search input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 0 18px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.94);
}

.hero-search button {
  min-width: 110px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  cursor: pointer;
}

.section-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 64px auto;
}

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

.section-head.align-left {
  display: block;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #7c2d12;
}

.section-head a {
  color: #b45309;
  font-weight: 900;
}

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

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

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

.category-tile,
.category-card-large,
.article-card,
.filter-panel,
.ranking-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 160px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.24), transparent 12rem),
    rgba(255, 255, 255, 0.9);
}

.category-tile span,
.category-card-large span {
  color: #7c2d12;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-card-large p {
  color: var(--muted);
  line-height: 1.75;
}

.category-card-large {
  padding: 18px;
  display: grid;
  gap: 18px;
}

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

.category-covers img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(120, 53, 15, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(120, 53, 15, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #7c2d12;
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

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

.movie-card h3 {
  margin: 8px 0 10px;
  font-size: 20px;
  line-height: 1.28;
  color: #431407;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 16px;
  color: #7c4a1e;
  line-height: 1.7;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #b45309;
  font-size: 13px;
  font-weight: 800;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.mini-ranking .ranking-row {
  grid-template-columns: 44px 56px minmax(0, 1fr);
}

.mini-ranking .small-button {
  display: none;
}

.ranking-number {
  color: #ef4444;
  font-size: 24px;
  font-weight: 1000;
}

.ranking-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.mini-ranking .ranking-thumb img {
  width: 56px;
  height: 74px;
}

.ranking-info h3 {
  margin: 0 0 6px;
  color: #431407;
  font-size: 18px;
}

.ranking-info p {
  margin: 0 0 8px;
  color: #7c4a1e;
  line-height: 1.65;
}

.page-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 78% 28%, rgba(251, 146, 60, 0.42), transparent 22rem),
    linear-gradient(135deg, #431407, #9a3412 52%, #d97706);
}

.page-hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.compact-hero h1 {
  max-width: 860px;
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.compact-hero p {
  max-width: 820px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.85;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 16px;
}

.filter-search {
  margin-bottom: 14px;
}

.filter-search input {
  border: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 237, 213, 0.6);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: #9a3412;
  font-weight: 800;
  background: #ffedd5;
  cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  color: #fff;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 8, 2, 0.96), rgba(55, 19, 4, 0.72), rgba(0, 0, 0, 0.28)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 50%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  color: #fed7aa;
  font-weight: 800;
}

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

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
}

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

.detail-info h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 840px;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 24px 0;
}

.detail-meta-grid span,
.info-list span {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-content {
  display: grid;
  gap: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 70px rgba(67, 20, 7, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.28));
  cursor: pointer;
  z-index: 3;
}

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

.play-orb {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 18px 45px rgba(239, 68, 68, 0.38);
  font-size: 34px;
}

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

.player-overlay em {
  font-style: normal;
  color: #fed7aa;
}

.article-card {
  padding: 30px;
}

.article-card h2 {
  margin: 0 0 14px;
  color: #7c2d12;
  font-size: 28px;
}

.article-card h2:not(:first-child) {
  margin-top: 30px;
}

.article-card p {
  margin: 0;
  color: #5f3214;
  font-size: 17px;
  line-height: 2;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  color: #5f3214;
}

.info-list span {
  background: #fff7ed;
  border-color: rgba(217, 119, 6, 0.16);
}

.site-footer {
  margin-top: 80px;
  color: #ffedd5;
  background: linear-gradient(135deg, #431407, #7c2d12);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  color: #fff;
}

.footer-inner p {
  max-width: 580px;
  color: #fed7aa;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-links a {
  color: #fde68a;
  font-weight: 900;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 14px 28px rgba(120, 53, 15, 0.22);
  cursor: pointer;
  z-index: 60;
}

.back-top.is-visible {
  display: block;
}

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

@media (max-width: 1040px) {
  .hero-content,
  .split-layout,
  .detail-main-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .nav-inner {
    height: 64px;
  }

  .site-logo {
    font-size: 19px;
  }

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

  .hero-content {
    padding: 70px 0 126px;
  }

  .hero-search {
    border-radius: 26px;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 46px;
  }

  .hero-controls {
    bottom: 112px;
  }

  .section-wrap {
    margin: 44px auto;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .compact-grid,
  .detail-meta-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-poster img {
    height: 360px;
  }
}
