:root {
  color-scheme: light;
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-100: #ffedd5;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 6px 18px rgba(41, 37, 36, 0.08);
  --shadow-md: 0 18px 45px rgba(41, 37, 36, 0.14);
  --shadow-lg: 0 28px 70px rgba(41, 37, 36, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--stone-800);
  background: var(--stone-50);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

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

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

.brand {
  font-size: 22px;
}

.footer-brand {
  color: var(--amber-100);
  font-size: 22px;
  margin-bottom: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  color: var(--amber-800);
  font-weight: 700;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link {
  padding: 9px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.22);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

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

.mobile-link {
  display: block;
  padding: 11px 14px;
}

main {
  min-height: 68vh;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background: var(--stone-950);
}

.hero-slide {
  display: none;
  min-height: 620px;
  position: relative;
}

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transform: scale(1.02);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.95) 0%, rgba(28, 25, 23, 0.78) 46%, rgba(28, 25, 23, 0.22) 100%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.85), transparent 45%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max-width));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
  padding: 72px 0;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow,
.hero-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
}

.eyebrow {
  padding: 7px 13px;
  color: var(--amber-100);
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(252, 211, 77, 0.35);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

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

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

.hero-tag,
.meta-row span,
.tag-list span {
  padding: 6px 11px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.btn {
  color: var(--stone-950);
  background: var(--amber-400);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--amber-300);
}

.btn-secondary,
.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-poster-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(1.5deg);
}

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

.hero-poster-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-300);
  font-weight: 900;
}

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

.hero-dot {
  width: 46px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.is-active {
  width: 72px;
  background: var(--amber-400);
}

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

.page-section.tight {
  padding-top: 28px;
}

.tint-section {
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
  padding: 56px 0;
}

.tint-section > .page-section {
  padding: 0;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--stone-600);
}

.section-link {
  color: var(--amber-700);
  font-weight: 900;
  white-space: nowrap;
}

.section-link span {
  font-size: 20px;
}

.search-panel {
  display: grid;
  gap: 16px;
  width: min(100% - 32px, var(--max-width));
  margin: 28px auto 0;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(214, 211, 209, 0.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
}

.search-box span {
  color: var(--amber-700);
  font-size: 24px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--stone-800);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-filters button,
.category-chip {
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--amber-800);
  background: rgba(254, 243, 199, 0.8);
  font-weight: 800;
  cursor: pointer;
  transition: 0.22s ease;
}

.quick-filters button:hover,
.quick-filters button.is-active,
.category-chip:hover {
  color: var(--white);
  background: var(--amber-600);
  transform: translateY(-1px);
}

.empty-state {
  display: none;
  width: min(100% - 32px, var(--max-width));
  margin: 22px auto 0;
  padding: 22px;
  text-align: center;
  color: var(--stone-600);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

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

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

.movie-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.42), transparent 36%),
    linear-gradient(135deg, var(--stone-300), var(--stone-700));
  box-shadow: var(--shadow-sm);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.74));
  opacity: 0;
  transition: 0.28s ease;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.play-chip {
  right: 10px;
  bottom: 10px;
  min-width: 52px;
  height: 30px;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-300);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.28s ease;
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

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

.movie-card:hover .poster-shade,
.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.card-content {
  display: grid;
  gap: 4px;
}

.card-content strong {
  color: var(--stone-800);
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-content small {
  color: var(--stone-500);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-content em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact .card-content em {
  display: none;
}

.wide-feature {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 390px;
  border-radius: 28px;
  background: var(--stone-900);
  box-shadow: var(--shadow-md);
}

.wide-feature img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  transition: 0.55s ease;
}

.wide-feature:hover img {
  transform: scale(1.05);
}

.wide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22));
}

.wide-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 30px;
  display: grid;
  max-width: 690px;
  gap: 10px;
  color: var(--white);
}

.wide-copy strong {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.wide-copy small,
.wide-copy em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.category-hero,
.detail-hero,
.ranking-hero {
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  color: var(--white);
}

.category-hero .page-section,
.detail-hero .page-section,
.ranking-hero .page-section {
  padding: 54px 0;
}

.category-hero h1,
.detail-hero h1,
.ranking-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.category-hero p,
.detail-hero p,
.ranking-hero p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.category-tile {
  display: grid;
  gap: 14px;
  padding: 24px;
  min-height: 186px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(214, 211, 209, 0.64);
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-tile span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.category-tile strong {
  color: var(--stone-800);
  font-size: 21px;
}

.category-tile small {
  color: var(--stone-600);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: 0.25s ease;
}

.ranking-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.ranking-row img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 18px;
  background: var(--stone-200);
}

.ranking-copy strong {
  display: block;
  color: var(--stone-800);
  font-size: 20px;
  margin-bottom: 5px;
}

.ranking-copy small,
.ranking-copy p {
  color: var(--stone-600);
}

.ranking-copy p {
  margin: 8px 0 0;
}

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

.player-card,
.info-card,
.side-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.62));
  z-index: 3;
}

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

.play-button {
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-300);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: 0.22s ease;
}

.play-button:hover {
  transform: scale(1.06);
  background: var(--amber-400);
}

.play-button span {
  margin-left: 5px;
  font-size: 34px;
  line-height: 1;
}

.info-card {
  padding: 30px;
}

.info-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--stone-800);
  font-size: 24px;
}

.info-card p {
  margin: 0 0 18px;
  color: var(--stone-700);
}

.review-box {
  padding: 20px;
  border-radius: 20px;
  color: var(--stone-700);
  background: var(--amber-100);
}

.side-card {
  padding: 22px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--amber-800);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--amber-600);
}

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

.site-footer {
  margin-top: 64px;
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-grid {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 50px 0 34px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-grid p {
  max-width: 560px;
  color: var(--stone-500);
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--amber-100);
  font-size: 16px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  color: var(--stone-400);
  margin: 7px 0;
  transition: 0.2s ease;
}

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

.footer-bottom {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--stone-500);
  border-top: 1px solid rgba(214, 211, 209, 0.12);
}

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

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

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

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

  .menu-button {
    display: block;
  }

  .hero-slider,
  .hero-slide,
  .hero-inner {
    min-height: 720px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-poster-card {
    max-width: 260px;
    justify-self: center;
  }

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

  .category-links,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-row {
    grid-template-columns: 44px 78px 1fr;
  }

  .ranking-row .btn-secondary {
    grid-column: 3;
    justify-self: start;
  }

  .ranking-row img {
    width: 78px;
    height: 86px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .page-section,
  .search-panel,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, var(--max-width));
  }

  .brand {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

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

  .category-links,
  .footer-grid,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-row .btn-secondary {
    grid-column: auto;
  }

  .wide-feature,
  .wide-feature img {
    min-height: 330px;
  }

  .wide-copy {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .side-card .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
