:root {
  color-scheme: light;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(41, 37, 36, 0.16);
  --soft-shadow: 0 14px 36px rgba(41, 37, 36, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), #6b4b21 85%);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong,
.footer-brand {
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--stone-900);
}

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

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 8px;
}

.desktop-nav {
  display: flex;
}

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-dark);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.13);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--stone-900);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #1c1917;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  background-image: linear-gradient(90deg, rgba(28, 25, 23, 0.95) 0%, rgba(28, 25, 23, 0.74) 42%, rgba(28, 25, 23, 0.28) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 80px;
  color: #ffffff;
}

.eyebrow,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.eyebrow span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  backdrop-filter: blur(10px);
}

.eyebrow span:first-child {
  background: var(--amber);
  color: #ffffff;
}

.hero-content h1 {
  max-width: 780px;
  margin: 20px 0 16px;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

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

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

.primary-button,
.glass-button,
.outline-button,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-search button {
  color: #ffffff;
  background: var(--amber);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.34);
}

.primary-button:hover,
.quick-search button:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
}

.glass-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.outline-button {
  color: var(--amber-dark);
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: #fff7ed;
}

.outline-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

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

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

.hero-dot.is-active {
  background: var(--amber);
}

.section {
  padding: 58px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--amber-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section h2,
.page-hero h1,
.detail-copy h1,
.content-card h2,
.side-card h2,
.category-panel h2 {
  margin: 0;
  color: var(--stone-900);
}

.section-head h2,
.intro-strip h2,
.category-panel h2 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-link {
  color: var(--amber-dark);
  font-weight: 800;
}

.intro-strip {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 430px);
  gap: 30px;
  align-items: center;
  padding: 36px;
  margin-top: -34px;
  position: relative;
  z-index: 4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.intro-strip p:not(.section-kicker) {
  color: var(--stone-600);
  line-height: 1.8;
}

.quick-search {
  display: flex;
  padding: 8px;
  border-radius: 18px;
  background: var(--stone-100);
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #ffffff;
  color: var(--stone-900);
}

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

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

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

.movie-card {
  min-width: 0;
}

.poster {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #fffbeb, #e7e5e4);
  box-shadow: var(--soft-shadow);
}

.poster img,
.rank-poster img,
.detail-poster img,
.category-covers img,
.category-panel-covers img,
.spotlight-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.poster:hover img,
.category-tile:hover img,
.category-panel-covers a:hover img,
.spotlight-strip a:hover img {
  transform: scale(1.08);
}

.poster-chip,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-chip {
  right: 10px;
  padding: 6px 9px;
  background: rgba(28, 25, 23, 0.72);
}

.rank-badge {
  left: 10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
}

.card-body {
  padding: 12px 2px 0;
}

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

.card-body h3 a:hover,
.rank-copy h3 a:hover,
.category-panel h2 a:hover {
  color: var(--amber-dark);
}

.card-meta,
.card-line,
.rank-meta {
  margin: 0;
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.6;
}

.card-line {
  margin-top: 6px;
}

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

.card-body .tag-row span,
.rank-copy .tag-row span,
.detail-tags span {
  color: var(--stone-700);
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

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

.category-tile,
.category-panel,
.content-card,
.side-card,
.filter-panel,
.player-shell {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: var(--soft-shadow);
}

.category-tile {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span,
.category-tile small,
.category-panel p,
.page-hero p {
  color: var(--stone-600);
  line-height: 1.7;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 116px;
}

.category-covers img,
.category-panel-covers img,
.spotlight-strip img {
  border-radius: 14px;
  background: #fffbeb;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 0 10px 24px rgba(41, 37, 36, 0.06);
}

.rank-poster {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #fffbeb;
}

.rank-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-title-line h3 {
  margin: 0;
  font-size: 20px;
}

.list-rank {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  font-weight: 900;
}

.rank-copy p:not(.rank-meta) {
  margin: 8px 0 0;
  color: var(--stone-700);
  line-height: 1.7;
}

.page-hero {
  padding: 86px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #b45309, #44403c 75%);
}

.page-hero h1 {
  max-width: 880px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  color: #ffedd5;
}

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

.category-panel {
  padding: 22px;
}

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

.category-panel-covers a {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #fffbeb;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inline-links a,
.pill-link {
  display: inline-flex;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--stone-700);
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-weight: 700;
}

.inline-links a:hover,
.pill-link:hover {
  color: var(--amber-dark);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--stone-700);
  font-size: 13px;
  font-weight: 800;
}

.category-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  gap: 34px;
  align-items: center;
}

.spotlight-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.spotlight-strip a {
  display: grid;
  gap: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.spotlight-strip img {
  aspect-ratio: 2 / 3;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background-image: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.70), rgba(28, 25, 23, 0.36)), var(--detail-image);
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.detail-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0));
}

.detail-hero-inner {
  position: relative;
  padding: 44px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 44px;
  color: #fed7aa;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.34);
  background: #fffbeb;
}

.detail-copy h1 {
  margin: 10px 0 16px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-line {
  max-width: 820px;
  margin: 0;
  color: #e7e5e4;
  font-size: 18px;
  line-height: 1.85;
}

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

.detail-meta div {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.detail-meta dt {
  margin-bottom: 4px;
  color: #fed7aa;
  font-size: 12px;
}

.detail-meta dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

.player-section {
  padding-top: 44px;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.23), rgba(0, 0, 0, 0.70) 62%);
}

.play-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.35);
}

.play-icon::before {
  content: "";
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #ffffff;
}

.play-cover strong {
  font-size: 26px;
}

.play-cover em {
  font-style: normal;
  color: #fed7aa;
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}

.content-card,
.side-card {
  padding: 28px;
}

.content-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

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

.content-card p {
  margin: 0;
  color: var(--stone-700);
  line-height: 2;
  font-size: 16px;
}

.side-card {
  align-self: start;
  display: grid;
  gap: 12px;
}

.site-footer {
  margin-top: 40px;
  padding: 44px 0;
  background: var(--stone-950);
  color: #d6d3d1;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.footer-brand {
  color: #ffffff;
  font-weight: 900;
}

.footer-inner p {
  max-width: 760px;
  margin: 0;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: var(--amber);
}

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

@media (max-width: 1120px) {
  .compact-grid,
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .mobile-toggle {
    display: block;
  }

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

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

  .hero-content {
    padding-bottom: 70px;
  }

  .intro-strip,
  .category-hero-grid,
  .detail-content,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-row .outline-button {
    grid-column: 2;
    justify-self: start;
  }

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

  .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .wrap,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel {
    min-height: 520px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p,
  .detail-line {
    font-size: 15px;
  }

  .intro-strip {
    padding: 22px;
  }

  .quick-search {
    display: grid;
  }

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

  .category-covers {
    height: 94px;
  }

  .rank-row {
    grid-template-columns: 62px 1fr;
    gap: 12px;
  }

  .rank-title-line h3 {
    font-size: 17px;
  }

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

  .detail-poster {
    width: min(210px, 62vw);
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .spotlight-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .play-cover strong {
    font-size: 20px;
  }
}
