:root {
  color-scheme: light;
  --page-bg: #fafaf9;
  --surface: #ffffff;
  --surface-soft: #f5f5f4;
  --text: #292524;
  --muted: #78716c;
  --line: #e7e5e4;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --shadow: 0 22px 60px rgba(41, 37, 36, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(231, 229, 228, 0.82);
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(18px);
}

.nav-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-dark);
  white-space: nowrap;
}

.site-logo::before,
.footer-logo::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #f59e0b);
  box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.12);
}

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

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

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

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.nav-search input,
.hero-search input,
.page-search input {
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.nav-search input:focus,
.hero-search input:focus,
.page-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.nav-search button,
.hero-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.page-search button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

.hero-section {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 36px;
  background: radial-gradient(circle at top left, #fde68a 0, transparent 34%), linear-gradient(135deg, #1c1917, #44403c 55%, #92400e);
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.35);
  filter: blur(50px);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 38px;
  padding: 56px;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-image {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.42));
}

.hero-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #d6d3d1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: #d97706;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-hero .eyebrow {
  color: #fbbf24;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-summary {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-tags,
.tag-list,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-list span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.tag-list span,
.detail-meta span {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.32);
}

.primary-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.detail-actions .ghost-btn,
.section-heading a,
.page-hero .ghost-btn {
  border-color: var(--line);
  color: var(--brand-dark);
  background: #fff7ed;
}

.hero-panel {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 38px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-search input {
  width: min(430px, 58vw);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: 0.2s ease;
}

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

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

.tint-section {
  padding: 46px;
  border-radius: 34px;
  background: #fff7ed;
}

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

.section-heading h2,
.page-hero h1,
.story-card h2 {
  margin: 0;
  color: var(--text);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.section-heading a {
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(41, 37, 36, 0.08);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(41, 37, 36, 0.14);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d6d3d1;
}

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

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

.poster-score {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.78);
  color: #fbbf24;
  font-weight: 900;
}

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

.movie-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  min-height: 54px;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.detail-copy .eyebrow a:hover {
  color: var(--brand);
}

.movie-desc {
  min-height: 70px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  color: #fff;
  box-shadow: 0 16px 44px rgba(41, 37, 36, 0.14);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.32s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.08), rgba(28, 25, 23, 0.86));
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card span {
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 56px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 46%, #f5f5f4);
  box-shadow: 0 18px 54px rgba(41, 37, 36, 0.08);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.page-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.page-search {
  width: fit-content;
  margin-top: 26px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.page-search input {
  width: min(520px, 64vw);
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 86px 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(41, 37, 36, 0.07);
}

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

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 950;
}

.rank-info h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a16207;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
  padding: 46px;
  border-radius: 36px;
  background: linear-gradient(135deg, #1c1917, #44403c 58%, #92400e);
  color: #fff;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  background: #d6d3d1;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.detail-intro {
  max-width: 760px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

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

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
  color: #fff;
  cursor: pointer;
}

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

.play-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.36);
  font-size: 34px;
  text-indent: 5px;
}

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

.story-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(41, 37, 36, 0.07);
}

.story-card h2 {
  font-size: 30px;
}

.story-card p {
  margin: 16px 0 0;
  color: #57534e;
  font-size: 17px;
}

.site-footer {
  margin-top: 78px;
  padding: 48px 0;
  background: #1c1917;
  color: #fafaf9;
}

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

.footer-inner p {
  max-width: 520px;
  color: #d6d3d1;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f4;
  font-weight: 700;
}

.footer-links a:hover {
  background: rgba(245, 158, 11, 0.25);
}

[hidden],
.is-filtered {
  display: none !important;
}

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

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

@media (max-width: 860px) {
  .nav-container {
    flex-wrap: wrap;
    min-height: auto;
    padding: 14px 0;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav,
  .nav-search {
    display: none;
    width: 100%;
  }

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

  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    width: 100%;
  }

  .nav-search input {
    flex: 1;
    width: auto;
  }

  .hero-section {
    min-height: 760px;
    border-radius: 28px;
  }

  .hero-slides {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 28px;
  }

  .hero-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-panel {
    left: 24px;
    right: 24px;
    bottom: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search,
  .page-search {
    width: 100%;
  }

  .hero-search input,
  .page-search input {
    width: 100%;
    min-width: 0;
  }

  .movie-grid-large,
  .movie-grid,
  .category-grid,
  .ranking-preview,
  .story-section,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .detail-poster {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .hero-section,
  .content-section,
  .page-hero,
  .detail-hero,
  .player-section {
    width: min(100% - 20px, 1180px);
  }

  .hero-section {
    min-height: 820px;
  }

  .hero-slides {
    min-height: 820px;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-summary,
  .detail-intro,
  .page-hero p {
    font-size: 16px;
  }

  .movie-grid-large,
  .movie-grid,
  .category-grid,
  .ranking-preview,
  .story-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 72px 38px 1fr;
    gap: 12px;
  }

  .rank-poster img {
    width: 72px;
  }

  .rank-info p {
    display: none;
  }

  .page-hero,
  .tint-section {
    padding: 28px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
