:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --bg-card: #ffffff;
  --text: #431407;
  --muted: #9a3412;
  --muted-light: #b45309;
  --line: #fed7aa;
  --brand: #92400e;
  --brand-dark: #451a03;
  --brand-warm: #ea580c;
  --gold: #f59e0b;
  --shadow: 0 20px 50px rgba(120, 53, 15, 0.14);
  --shadow-soft: 0 12px 32px rgba(120, 53, 15, 0.10);
  --radius: 22px;
  --container: 1180px;
}

* {
  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, 191, 36, 0.20), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #fff7ed 100%);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid rgba(251, 146, 60, 0.35);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 76px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #92400e, #ea580c);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  font-size: 24px;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: #ffedd5;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-search {
  position: relative;
  width: min(280px, 28vw);
}

.site-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 2px solid #fed7aa;
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 86vw);
  max-height: 480px;
  overflow: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow);
  display: none;
}

.search-panel.is-open {
  display: block;
}

.search-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #ffedd5;
}

.search-item:hover {
  background: #fff7ed;
}

.search-item img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  background: #ffedd5;
}

.search-item strong {
  display: block;
  color: var(--brand-dark);
}

.search-item span {
  color: var(--muted);
  font-size: 13px;
}

.search-empty {
  padding: 18px;
  color: var(--muted);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffedd5;
  display: none;
  place-items: center;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 3px 0;
  background: var(--brand);
  border-radius: 999px;
}

.mobile-drawer {
  display: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4px 20px 18px;
  border-top: 1px solid #fed7aa;
}

.mobile-drawer.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drawer-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #fed7aa;
  font-weight: 700;
}

.page-main {
  min-height: 60vh;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03 0%, #7c2d12 44%, #9a3412 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%);
  background-size: 54px 54px;
}

.hero-slider {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 620px;
  padding: 92px 20px 130px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 48px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.6s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.hero-title {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 22px;
  color: #ffedd5;
  font-size: clamp(17px, 2.1vw, 22px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 34px;
}

.hero-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(251, 146, 60, 0.22);
  border: 1px solid rgba(255, 237, 213, 0.22);
  font-weight: 700;
}

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

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

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

.btn-primary {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.20);
}

.btn-primary:hover {
  background: #ffedd5;
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
}

.hero-visual {
  position: relative;
}

.hero-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  background: #78350f;
  aspect-ratio: 4 / 5;
}

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

.hero-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(69, 26, 3, 0.74), transparent 48%);
}

.hero-floating {
  position: absolute;
  right: -14px;
  bottom: 22px;
  max-width: 260px;
  padding: 18px;
  border-radius: 22px;
  color: #431407;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-floating strong {
  display: block;
  font-size: 18px;
}

.hero-floating small {
  color: var(--muted);
}

.hero-dots {
  position: absolute;
  left: 20px;
  bottom: 72px;
  display: flex;
  gap: 10px;
}

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

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

.hero-strip {
  position: relative;
  max-width: var(--container);
  margin: -76px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  z-index: 3;
}

.section {
  max-width: var(--container);
  margin: 78px auto 0;
  padding: 0 20px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.view-more {
  color: var(--brand);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fdba74;
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #ffedd5;
}

.card-large .poster-link {
  aspect-ratio: 16 / 9;
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(67, 20, 7, 0.78), transparent 62%);
  opacity: 0.58;
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster-glow {
  opacity: 0.86;
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(146, 64, 14, 0.92);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(67, 20, 7, 0.24);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.3);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  min-height: 1.6em;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover {
  color: var(--brand-warm);
}

.card-desc {
  min-height: 3.1em;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand);
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 162px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card b {
  display: block;
  font-size: 34px;
  margin-bottom: 8px;
}

.category-card strong {
  display: block;
  font-size: 20px;
  color: var(--brand-dark);
}

.category-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 66px 20px 28px;
}

.page-hero-panel {
  overflow: hidden;
  position: relative;
  border-radius: 32px;
  padding: 46px;
  color: #fff;
  background: linear-gradient(135deg, #451a03, #9a3412 58%, #f59e0b);
  box-shadow: var(--shadow);
}

.page-hero-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.page-hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  position: relative;
  max-width: 760px;
  margin: 14px 0 0;
  color: #ffedd5;
  font-size: 18px;
}

.filter-panel {
  max-width: var(--container);
  margin: 28px auto 0;
  padding: 0 20px;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow-soft);
}

.filter-box input,
.filter-box select {
  height: 46px;
  border: 1px solid #fdba74;
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 22px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #fed7aa;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumbs {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 20px 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--brand);
}

.detail-layout {
  max-width: var(--container);
  margin: 28px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side,
.content-block {
  border-radius: 28px;
  background: #fff;
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow-soft);
}

.detail-main {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #140805;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(20, 8, 5, 0.80), rgba(20, 8, 5, 0.15));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-ready .player-cover,
.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.46;
  object-fit: cover;
}

.play-cta {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(234, 88, 12, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-cta:hover {
  transform: scale(1.06);
}

.play-cta span {
  margin-left: 6px;
  font-size: 36px;
}

.detail-copy {
  padding: 28px;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-copy .lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.content-block {
  margin-top: 20px;
  padding: 26px;
}

.content-block h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: #78350f;
}

.content-block p + p {
  margin-top: 14px;
}

.detail-side {
  padding: 22px;
}

.side-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: #ffedd5;
}

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

.info-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ffedd5;
  color: var(--muted);
}

.info-list strong {
  color: var(--brand-dark);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow-soft);
}

.rank-no {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.rank-row img {
  width: 120px;
  height: 76px;
  object-fit: cover;
  border-radius: 16px;
  background: #ffedd5;
}

.rank-info strong {
  display: block;
  color: var(--brand-dark);
  font-size: 20px;
}

.rank-info p {
  margin: 5px 0 0;
  color: var(--muted);
}

.rank-score {
  color: var(--brand);
  font-weight: 900;
  white-space: nowrap;
}

.site-footer {
  margin-top: 86px;
  padding: 42px 20px;
  color: #ffedd5;
  background: linear-gradient(180deg, #7c2d12, #431407);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: center;
}

.footer-brand {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  color: #fed7aa;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #ffedd5;
  font-weight: 700;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .site-search {
    width: min(340px, 44vw);
  }

  .menu-toggle {
    display: grid;
  }

  .hero-slide,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 460px;
    margin: 0 auto;
  }

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

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

  .hero-strip {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text strong {
    font-size: 19px;
  }

  .brand-text small {
    display: none;
  }

  .site-search {
    width: min(210px, 42vw);
  }

  .hero-slider {
    min-height: auto;
    padding: 54px 16px 98px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-floating {
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .hero-dots {
    bottom: 38px;
  }

  .section {
    margin-top: 54px;
    padding: 0 16px;
  }

  .section-header {
    display: block;
  }

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

  .card-body {
    padding: 14px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-desc {
    font-size: 13px;
  }

  .page-hero {
    padding: 42px 16px 20px;
  }

  .page-hero-panel {
    padding: 30px 22px;
    border-radius: 24px;
  }

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

  .rank-row {
    grid-template-columns: 44px 86px 1fr;
  }

  .rank-row img {
    width: 86px;
    height: 64px;
  }

  .rank-score {
    grid-column: 3;
  }

  .detail-copy,
  .content-block,
  .detail-side {
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .site-search {
    display: none;
  }

  .mobile-drawer.is-open {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .movie-grid.compact,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    margin-top: -48px;
  }
}
