:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.10);
  --brand: #f97316;
  --brand-2: #fb7185;
  --brand-3: #facc15;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.16);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.22), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(251, 113, 133, 0.18), transparent 30rem),
    var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.36);
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #374151;
  transition: 0.22s ease;
}

.main-nav a:hover {
  color: #9a3412;
  background: rgba(249, 115, 22, 0.12);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.12);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #111827;
  border-radius: 999px;
}

.hero-section {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 44%, #fb7185 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -12% -32% -12%;
  height: 48%;
  background: #fff7ed;
  border-radius: 50% 50% 0 0;
  filter: blur(0.3px);
}

.hero-slider {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 36px 0;
  background-size: cover;
  background-position: center;
  opacity: 0.20;
  filter: blur(34px) saturate(1.25);
  border-radius: 48px;
}

.hero-copy {
  position: relative;
  color: #ffffff;
  padding-top: 48px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.92);
}

.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-shadow: 0 24px 50px rgba(127, 29, 29, 0.25);
}

.hero-copy p {
  max-width: 690px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

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

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

.hero-tags span,
.tag-row 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 {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

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

.primary-btn,
.ghost-btn,
.section-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-btn {
  color: #ffffff;
  background: #111827;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.24);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.30);
}

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

.hero-poster {
  position: relative;
  justify-self: center;
  width: min(410px, 100%);
  aspect-ratio: 3 / 4.15;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(127, 29, 29, 0.30);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.48));
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 18px;
  color: #111827;
  font: inherit;
  outline: none;
}

.hero-search input {
  border: 0;
  background: transparent;
}

.hero-search button,
.search-panel button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 900;
  cursor: pointer;
}

.content-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 0;
}

.slim-section {
  padding-top: 34px;
}

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

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-action,
.text-link {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.11);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(124, 45, 18, 0.10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(124, 45, 18, 0.10);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(124, 45, 18, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

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

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

.card-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(12px);
}

.card-body {
  padding: 16px;
}

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

.card-body p {
  min-height: 52px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.meta-row {
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.meta-row span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #fb923c;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #9a3412;
  background: rgba(249, 115, 22, 0.10);
}

.hot-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  padding: 34px;
  border-radius: 36px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hot-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.05em;
}

.hot-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.compact-rank {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.compact-rank li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff7ed;
}

.compact-rank span {
  color: #f97316;
  font-weight: 900;
}

.compact-rank a {
  font-weight: 900;
}

.compact-rank em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

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

.category-tile,
.category-overview-card,
.article-card,
.player-shell,
.related-strip,
.detail-nav-links,
.search-summary {
  border: 1px solid rgba(124, 45, 18, 0.10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(124, 45, 18, 0.09);
}

.category-tile {
  padding: 14px;
  transition: 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-covers,
.overview-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-covers img,
.overview-covers img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.category-tile strong {
  display: block;
  font-size: 19px;
  margin-bottom: 7px;
}

.category-tile span,
.category-tile em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
}

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

.compact-hero p,
.category-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar,
.search-panel {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.filter-bar {
  grid-template-columns: minmax(0, 1fr) 190px;
  max-width: 760px;
}

.search-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 760px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #ffffff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 30px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.8;
}

.overview-covers {
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
}

.overview-covers img {
  aspect-ratio: 3 / 4;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(124, 45, 18, 0.08);
}

.rank-number {
  font-size: 24px;
  font-weight: 950;
  color: #fb923c;
}

.rank-cover img {
  width: 86px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

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

.rank-row strong {
  color: #9a3412;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.45));
}

.detail-layout {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-subtitle {
  max-width: 840px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.detail-score {
  margin: 22px 0;
}

.detail-score span {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.detail-score strong {
  color: #fde68a;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-copy .primary-btn {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.player-shell {
  padding: 18px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.78));
  cursor: pointer;
}

.player-start span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36);
  font-size: 30px;
}

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

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

.player-note {
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.article-card {
  padding: 28px;
}

.article-card h2 {
  margin: 0 0 14px;
}

.article-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.info-card {
  grid-column: 1 / -1;
}

.info-card dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
}

.info-card div {
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
}

.info-card dt {
  color: var(--muted);
  font-size: 13px;
}

.info-card dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.detail-nav-links,
.related-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px;
}

.detail-nav-links {
  justify-content: space-between;
}

.detail-nav-links a,
.related-strip a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.search-summary {
  padding: 18px 20px;
  margin-bottom: 18px;
  color: var(--muted);
}

.site-footer {
  margin-top: 84px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(249, 115, 22, 0.09);
  font-weight: 800;
  font-size: 14px;
}

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-poster {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 230px 1fr;
  }

  .info-card dl {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    border-radius: 14px;
  }

  .hero-section {
    min-height: 660px;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 36px;
  }

  .hero-search,
  .search-panel,
  .filter-bar {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search {
    bottom: 16px;
  }

  .hero-dots {
    bottom: 126px;
  }

  .content-section {
    padding-top: 48px;
  }

  .section-head,
  .hot-panel,
  .detail-text,
  .footer-grid,
  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .card-body {
    padding: 13px;
  }

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

  .card-body p {
    min-height: auto;
    font-size: 13px;
  }

  .rank-row {
    grid-template-columns: 48px 66px 1fr;
  }

  .rank-cover img {
    width: 66px;
  }

  .rank-row strong {
    grid-column: 3;
  }

  .detail-layout {
    padding: 44px 0;
  }

  .detail-poster {
    width: 190px;
  }

  .info-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .dense-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }
}
