:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #ffedd5;
  --line: #fed7aa;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-2: #ea580c;
  --dark: #21140a;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
}

.header-inner {
  width: min(1240px, calc(100% - 28px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  color: var(--brand-dark);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 12px;
  color: #78350f;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--soft);
  color: var(--brand-dark);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(146, 64, 14, 0.08);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 8px 8px 8px 12px;
  background: transparent;
}

.header-search button,
.primary-btn,
.big-search button {
  border: 0;
  color: white;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--soft);
  color: var(--brand-dark);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #78350f;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #1c1207;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 44px;
  padding: 80px max(28px, calc((100vw - 1180px) / 2)) 90px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.15);
  transform: scale(1.05);
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 32%, rgba(245, 158, 11, 0.3), transparent 30%),
    linear-gradient(90deg, rgba(28, 18, 7, 0.95), rgba(28, 18, 7, 0.78) 48%, rgba(28, 18, 7, 0.38));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #fff7ed;
}

.eyebrow {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow.small {
  color: var(--brand);
  margin-bottom: 6px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.8;
  color: #fde68a;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.ghost-btn,
.text-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fff7ed;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: max(28px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 54px;
  background: #fbbf24;
}

.section {
  padding: 62px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-article h2,
.side-panel h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-link,
.text-btn {
  color: var(--brand-dark);
  background: white;
  border-color: var(--line);
  box-shadow: 0 12px 24px rgba(146, 64, 14, 0.08);
}

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

.category-card,
.search-card,
.filter-panel,
.category-overview-card,
.detail-article,
.side-panel {
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 148px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 44%),
    white;
  transition: 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(146, 64, 14, 0.18);
}

.category-card span {
  display: block;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card p,
.search-card p,
.page-hero p,
.detail-article p,
.movie-card p,
.rank-content p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

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

.search-card {
  position: sticky;
  top: 96px;
  padding: 26px;
  background: linear-gradient(180deg, #ffffff, #fffbeb);
}

.search-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
  color: #111827;
}

.big-search {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.big-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-tags a {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--brand-dark);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.1);
  transition: 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #451a03;
}

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

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

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 32px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3,
.rank-content h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
}

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

.movie-card.compact p {
  font-size: 13px;
}

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

.rank-list.mini {
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr) 76px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 26px rgba(146, 64, 14, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: white;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

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

.rank-score {
  justify-self: end;
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 900;
}

.page-main {
  padding: 36px 0 76px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 30px;
  padding: 46px;
  color: white;
  background:
    radial-gradient(circle at 76% 20%, rgba(251, 191, 36, 0.42), transparent 28%),
    linear-gradient(135deg, #451a03, #92400e 58%, #f97316);
  box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero p {
  color: white;
  max-width: 780px;
}

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

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px;
  gap: 14px;
}

.filter-row label {
  display: grid;
  gap: 7px;
  color: #78350f;
  font-size: 13px;
  font-weight: 900;
}

.filter-row input,
.filter-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: 0;
  background: #fffdf7;
}

.filter-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  transition: 0.25s ease;
}

.category-overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--soft);
}

.category-overview-cover img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 6px 0 10px;
  color: #111827;
  font-size: 25px;
  font-weight: 900;
}

.movie-detail-main {
  background: linear-gradient(180deg, #21140a 0, #fff7ed 620px, #fff 100%);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  padding-top: 74px;
  padding-bottom: 64px;
  min-height: 560px;
}

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

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

.detail-info {
  color: white;
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 820px;
  color: #fde68a;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-top: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
}

.tag-row.large span {
  background: rgba(255, 237, 213, 0.92);
}

.player-section {
  margin-top: -36px;
  position: relative;
  z-index: 4;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: black;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.34);
  font-size: 34px;
  padding-left: 6px;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
  padding: 42px 0 76px;
}

.detail-article,
.side-panel {
  padding: 28px;
}

.detail-article h2,
.side-panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 28px;
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: #92400e;
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: var(--ink);
}

.related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.related-list .movie-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
}

.related-list .poster-link img {
  height: 100%;
  aspect-ratio: auto;
}

.related-list .movie-card p,
.related-list .tag-row,
.related-list .score-badge {
  display: none;
}

.site-footer {
  color: #fde68a;
  background: linear-gradient(135deg, #21140a, #451a03);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

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

.site-footer p,
.site-footer a {
  color: #fed7aa;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: white;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  padding: 18px 0;
  text-align: center;
  color: #fed7aa;
}

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

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

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

  .mobile-nav.is-open {
    display: block;
  }

  .header-search {
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

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

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

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

  .search-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .brand-text {
    font-size: 18px;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .hero {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 36px;
    padding-bottom: 80px;
  }

  .hero-poster {
    width: min(220px, 70vw);
    justify-self: start;
  }

  .hero p,
  .lead {
    font-size: 16px;
  }

  .section {
    padding: 42px 0;
  }

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

  .category-grid,
  .movie-grid,
  .movie-grid.cards-4,
  .movie-grid.cards-5,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 48px 70px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
    font-size: 20px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .detail-poster {
    width: min(250px, 72vw);
  }

  .page-hero {
    padding: 30px;
  }

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

  .related-list .movie-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
