:root {
  color-scheme: light;
  --page: #fffbf4;
  --panel: #ffffff;
  --panel-soft: #fff7ed;
  --ink: #292524;
  --muted: #78716c;
  --line: rgba(120, 113, 108, 0.18);
  --amber: #d97706;
  --amber-dark: #b45309;
  --stone: #44403c;
  --shadow: 0 24px 70px rgba(68, 64, 60, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 36rem),
    linear-gradient(180deg, #fffbf4 0%, #f5f5f4 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(214, 211, 209, 0.7);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(250, 250, 249, 0.94), rgba(255, 247, 237, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(120, 113, 108, 0.12);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  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;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #d97706, #57534e);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.26);
}

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

.brand-copy strong {
  font-size: 20px;
  line-height: 1;
  color: #1c1917;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #57534e;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #a16207);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.22);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--stone);
  padding: 10px 14px;
  cursor: pointer;
}

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

.hero-slides {
  position: relative;
  min-height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background-image:
    linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.62), rgba(28, 25, 23, 0.2)),
    var(--hero-bg);
  background-position: center;
  background-size: cover;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.36), transparent 28rem),
    linear-gradient(180deg, transparent 60%, rgba(28, 25, 23, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 48px;
  padding: 86px 0 56px;
}

.hero-copy {
  color: #ffffff;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff7ed;
  background: rgba(28, 25, 23, 0.38);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.32);
}

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

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(68, 64, 60, 0.28));
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #f59e0b;
}

.quick-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-strip a {
  display: grid;
  gap: 6px;
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(214, 211, 209, 0.75);
}

.quick-strip strong {
  color: var(--amber);
  font-size: 34px;
  line-height: 1;
}

.quick-strip span {
  color: var(--muted);
  font-weight: 700;
}

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

.tinted-section {
  width: 100%;
  max-width: none;
  margin-top: 72px;
  padding: 72px max(16px, calc((100% - 1180px) / 2)) 78px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(245, 245, 244, 0.95));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
}

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

.section-link {
  color: #ffffff;
  background: var(--stone);
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(214, 211, 209, 0.78);
  box-shadow: 0 16px 36px rgba(68, 64, 60, 0.1);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(68, 64, 60, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(68, 64, 60, 0.14));
}

.card-cover img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
  transition: 0.28s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.05);
}

.card-year {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(28, 25, 23, 0.72);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 15px;
}

.card-meta {
  gap: 6px;
  margin-bottom: 10px;
}

.card-meta span {
  color: #92400e;
  background: #fffbeb;
  border-color: rgba(251, 191, 36, 0.35);
  font-size: 12px;
  padding: 4px 8px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.category-samples a:hover {
  color: var(--amber-dark);
}

.movie-card p {
  min-height: 3.4em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row span {
  color: #57534e;
  background: #f5f5f4;
  border-color: rgba(168, 162, 158, 0.36);
  padding: 4px 8px;
  font-size: 12px;
}

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

.category-tile,
.category-card {
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(214, 211, 209, 0.78);
  box-shadow: 0 16px 36px rgba(68, 64, 60, 0.1);
}

.category-tile {
  display: grid;
  gap: 10px;
  padding: 20px;
  transition: 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-3px);
}

.category-tile span,
.category-card-main span {
  color: var(--amber-dark);
  font-weight: 900;
}

.category-tile strong,
.category-card-main strong {
  font-size: 32px;
}

.category-tile em,
.category-card-main p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.page-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.34), transparent 32rem),
    linear-gradient(135deg, #1c1917, #57534e);
  padding: 80px 16px;
  text-align: center;
}

.compact-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
}

.compact-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(214, 211, 209, 0.78);
  box-shadow: 0 16px 36px rgba(68, 64, 60, 0.08);
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(168, 162, 158, 0.42);
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  padding: 0 14px;
  outline: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.result-count {
  margin: 0;
  color: var(--amber-dark);
  font-weight: 900;
  white-space: nowrap;
}

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

.category-card {
  overflow: hidden;
  transition: 0.2s ease;
}

.category-card-main {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px 24px;
}

.category-samples a {
  border-radius: 999px;
  padding: 7px 10px;
  color: #57534e;
  background: #f5f5f4;
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 104px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-radius: 24px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(214, 211, 209, 0.78);
  box-shadow: 0 14px 34px rgba(68, 64, 60, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #a16207);
  font-weight: 900;
  font-size: 18px;
}

.rank-thumb img {
  width: 104px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(68, 64, 60, 0.14));
}

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

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

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border-radius: 34px;
  padding: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.28), transparent 28rem),
    linear-gradient(135deg, #1c1917, #57534e);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(68, 64, 60, 0.2));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-lead {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.compact-heading {
  margin-bottom: 18px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0c0a09;
  box-shadow: var(--shadow);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0a09;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.54), rgba(28, 25, 23, 0.88));
  cursor: pointer;
}

.play-symbol {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.28);
  font-size: 32px;
  padding-left: 5px;
}

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

.player-frame.is-playing .player-cover {
  display: none;
}

.detail-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.text-card {
  border-radius: 26px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(214, 211, 209, 0.78);
  box-shadow: 0 16px 36px rgba(68, 64, 60, 0.08);
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-card p {
  margin: 0;
  color: #57534e;
  line-height: 1.9;
}

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

.related-card a {
  display: grid;
  gap: 10px;
  border-radius: 20px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(214, 211, 209, 0.78);
  box-shadow: 0 14px 30px rgba(68, 64, 60, 0.08);
}

.related-card img {
  width: 100%;
  aspect-ratio: 2 / 2.7;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(68, 64, 60, 0.14));
}

.related-card span {
  font-weight: 800;
  line-height: 1.4;
}

.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  background: #1c1917;
  color: #fafaf9;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0;
}

.footer-inner p {
  max-width: 560px;
  color: rgba(250, 250, 249, 0.68);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 11px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.08);
}

.is-hidden {
  display: none !important;
}

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 68px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

  .quick-strip,
  .filter-panel,
  .detail-hero,
  .detail-text,
  .category-list-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .quick-strip {
    margin-top: 16px;
  }

  .section-heading,
  .footer-inner {
    display: grid;
  }

  .filter-panel {
    align-items: stretch;
  }

  .detail-hero {
    margin-top: 24px;
  }

  .detail-cover {
    max-width: 260px;
  }
}

@media (max-width: 620px) {
  .brand-copy small {
    display: none;
  }

  .hero-slider,
  .hero-slides,
  .hero-content {
    min-height: 600px;
  }

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

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

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

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

  .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .rank-thumb img {
    width: 82px;
  }

  .text-card {
    padding: 22px;
  }
}
