:root {
  color-scheme: light;
  --bg: #f8f7f4;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #eadfd0;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fff7ed;
  --shadow: 0 20px 40px rgba(146, 64, 14, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #fff7ed 0%, #f8f7f4 36%, #ffffff 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

img {
  background: #f3eadc;
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #78350f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.4s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide:focus {
  outline: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 46px;
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
  padding: 86px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.hero-movie-title {
  margin-top: 18px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-text {
  margin-top: 18px;
  max-width: 660px;
  color: rgba(255, 247, 237, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.32);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(17, 24, 39, 0.36);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

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

.hero-panel-body {
  padding: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.hero-panel .pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fde68a;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

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

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

.section-kicker {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 6px;
  color: #111827;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc {
  margin-top: 10px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.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;
  border: 1px solid rgba(234, 223, 208, 0.9);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: var(--shadow);
}

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

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.96);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.poster-play {
  position: absolute;
  inset: auto 12px 12px auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
}

.movie-title a:hover {
  color: var(--brand-dark);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.movie-one-line {
  margin-top: 11px;
  color: #6b7280;
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.88), rgba(17, 24, 39, 0.32));
}

.category-card-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card h2,
.category-card h3 {
  font-size: 28px;
  line-height: 1.12;
  font-weight: 950;
}

.category-card p {
  margin-top: 10px;
  color: rgba(255, 247, 237, 0.88);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(234, 223, 208, 0.95);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 950;
}

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

.rank-item h3 {
  font-size: 17px;
  font-weight: 900;
}

.rank-item p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.page-hero {
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.4), transparent 34%), linear-gradient(135deg, #78350f, #d97706 50%, #f97316);
  color: #ffffff;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 247, 237, 0.82);
  font-size: 14px;
  font-weight: 750;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.page-title {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-intro {
  margin-top: 16px;
  max-width: 820px;
  color: rgba(255, 247, 237, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
  border: 1px solid rgba(234, 223, 208, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(10px);
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #eadfd0;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: #374151;
  outline: none;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 360px;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.36);
  font-size: 30px;
  padding-left: 5px;
}

.detail-card,
.content-card {
  border: 1px solid rgba(234, 223, 208, 0.95);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
}

.detail-card {
  overflow: hidden;
}

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

.detail-card-body,
.content-card {
  padding: 24px;
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2 {
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 950;
  margin-bottom: 14px;
}

.content-card p {
  color: #4b5563;
  line-height: 1.9;
  margin-top: 12px;
}

.info-list {
  display: grid;
  gap: 10px;
  color: #4b5563;
  line-height: 1.7;
}

.info-list strong {
  color: #111827;
}

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

.footer {
  margin-top: 48px;
  background: #111827;
  color: #d1d5db;
}

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

.footer h2,
.footer h3 {
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer p,
.footer a {
  color: #9ca3af;
  line-height: 1.8;
  font-size: 14px;
}

.footer a:hover {
  color: #fbbf24;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: #9ca3af;
  text-align: center;
  font-size: 13px;
}

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

  .hero-panel {
    max-width: 420px;
    margin-bottom: 64px;
  }

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

  .category-grid,
  .rank-list,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .filter-input {
    grid-column: 1 / -1;
  }
}

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

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border: 1px solid rgba(234, 223, 208, 0.95);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .hero-slider,
  .hero-content {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-copy {
    padding: 58px 0 20px;
  }

  .hero-panel {
    margin-bottom: 82px;
  }

  .section {
    padding: 42px 0;
  }

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

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

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

  .rank-item img {
    width: 74px;
  }

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

  .filter-input {
    grid-column: auto;
  }
}
