:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-200: #fde68a;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --white: #ffffff;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 22px 60px rgba(120, 53, 15, 0.16);
  --shadow-card: 0 16px 36px rgba(41, 37, 36, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background:
    radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.20), transparent 26rem),
    radial-gradient(circle at 86% 0%, rgba(146, 64, 14, 0.14), transparent 24rem),
    linear-gradient(135deg, var(--amber-50) 0%, var(--stone-100) 48%, var(--white) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(253, 230, 138, 0.72);
  background: rgba(255, 251, 235, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--amber-900);
  letter-spacing: -0.02em;
}

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

.brand-text {
  font-size: 1.18rem;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--amber-950);
  background: rgba(251, 191, 36, 0.24);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--amber-900);
  background: rgba(253, 230, 138, 0.46);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 0 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 28px auto 54px;
  border-radius: 34px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(28, 25, 23, 0.98), rgba(120, 53, 15, 0.94) 48%, rgba(245, 158, 11, 0.82)),
    radial-gradient(circle at 80% 12%, rgba(251, 191, 36, 0.44), transparent 22rem);
  box-shadow: var(--shadow-soft);
}

.hero::before {
  position: absolute;
  inset: -28% 42% auto auto;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.20);
  filter: blur(8px);
  content: "";
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
  min-height: 560px;
}

.hero-slide.active {
  display: grid;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 68px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--amber-100);
  font-size: 0.95rem;
  font-weight: 800;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(253, 230, 138, 0.48);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--amber-900);
  background: rgba(254, 243, 199, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero .pill {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 251, 235, 0.86);
  font-size: 1.08rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  box-shadow: 0 14px 28px rgba(180, 83, 9, 0.26);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(180, 83, 9, 0.34);
}

.btn.secondary {
  color: var(--amber-100);
  border: 1px solid rgba(253, 230, 138, 0.42);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hero-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), transparent 44%, rgba(28, 25, 23, 0.12));
  content: "";
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.hero-media img.is-hidden,
.cover-frame img.is-hidden,
.detail-poster img.is-hidden {
  opacity: 0;
}

.hero-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 22px;
  padding: 18px;
  background: rgba(28, 25, 23, 0.58);
  backdrop-filter: blur(14px);
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 68px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.42);
}

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

.section {
  margin: 54px 0;
}

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

.eyebrow {
  color: var(--amber-700);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 6px 0 0;
  color: var(--stone-900);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--stone-600);
}

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

.category-card {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.82);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.category-card::after {
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  content: "";
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  color: var(--amber-900);
  font-size: 1.22rem;
}

.category-card p {
  position: relative;
  margin: 0;
  color: var(--stone-600);
  font-size: 0.92rem;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}

.search-input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--stone-800);
  background: rgba(255, 255, 255, 0.86);
  outline: 0;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.search-input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow: 0 26px 50px rgba(120, 53, 15, 0.18);
}

.cover-link,
.cover-frame {
  position: relative;
  display: block;
}

.cover-frame {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 22%, rgba(253, 230, 138, 0.72), transparent 9rem),
    linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--amber-950);
  background: rgba(254, 243, 199, 0.92);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-body {
  padding: 15px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--amber-700);
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  color: var(--stone-900);
  font-size: 1.02rem;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 0.88rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(253, 230, 138, 0.80);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.rank-no {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  font-weight: 900;
}

.rank-item h3 {
  margin: 0;
  color: var(--stone-900);
  font-size: 1rem;
}

.rank-item p {
  margin: 4px 0 0;
  color: var(--stone-600);
  font-size: 0.88rem;
}

.rank-type {
  color: var(--amber-700);
  font-size: 0.84rem;
  font-weight: 900;
}

.page-hero {
  margin: 28px 0 36px;
  border: 1px solid rgba(253, 230, 138, 0.76);
  border-radius: 30px;
  padding: 42px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-700);
  font-size: 0.92rem;
  font-weight: 800;
}

.page-hero h1 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 850px;
  margin: 16px 0 0;
  color: var(--stone-600);
  font-size: 1.02rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card {
  border: 1px solid rgba(253, 230, 138, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.38), rgba(120, 53, 15, 0.48));
  transition: opacity 0.2s ease;
}

.play-core {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-950);
  background: rgba(254, 243, 199, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  font-size: 2rem;
  transform: translateX(2px);
}

.video-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-meta,
.detail-card {
  padding: 22px;
}

.detail-card h2,
.text-block h2 {
  margin: 0 0 12px;
  color: var(--stone-900);
  font-size: 1.35rem;
}

.detail-card p,
.text-block p {
  margin: 0 0 14px;
  color: var(--stone-600);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 34% 22%, rgba(253, 230, 138, 0.72), transparent 9rem),
    linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

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

.detail-facts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(231, 229, 228, 0.84);
  padding-bottom: 10px;
}

.fact span:first-child {
  color: var(--stone-500);
  font-weight: 800;
}

.fact span:last-child {
  color: var(--stone-800);
  text-align: right;
  font-weight: 800;
}

.text-block {
  margin-top: 26px;
  border: 1px solid rgba(231, 229, 228, 0.92);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(231, 229, 228, 0.92);
  color: rgba(255, 251, 235, 0.76);
  background: var(--stone-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 26px;
  padding: 42px 0;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--amber-100);
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 251, 235, 0.68);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: rgba(255, 251, 235, 0.48);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.movie-card.is-hidden,
.rank-item.is-hidden {
  display: none;
}

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

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

  .hero-slide,
  .detail-layout,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 380px;
  }
}

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

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

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

  .hero {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 34px 24px 72px;
  }

  .hero-slide {
    min-height: auto;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-dots {
    left: 24px;
  }

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

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

  .page-hero {
    padding: 26px;
  }

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

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

  .rank-type {
    grid-column: 2;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    font-size: 1rem;
  }
}
