:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --radius: 18px;
  --shadow: 0 20px 50px rgb(28 25 23 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(28 25 23 / 96%);
  border-bottom: 1px solid rgb(68 64 60 / 80%);
  color: var(--stone-100);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: var(--stone-950);
  box-shadow: 0 10px 24px rgb(245 158 11 / 32%);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--stone-200);
  transition: color .2s ease, background .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgb(245 158 11 / 14%);
  color: var(--amber-300);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgb(231 229 228 / 16%);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid rgb(231 229 228 / 10%);
  padding: 8px 16px 18px;
}

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

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

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head.light h2,
.section-head.light .section-more {
  color: white;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -.04em;
}

.section-head h2,
.quick-search h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.section-more {
  color: var(--amber-600);
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: var(--stone-950);
  box-shadow: 0 12px 28px rgb(245 158 11 / 26%);
}

.btn-ghost {
  color: white;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 9%);
}

.btn-dark {
  color: white;
  background: var(--stone-900);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgb(217 119 6 / 32%), transparent 28%), linear-gradient(135deg, var(--stone-950), var(--stone-900) 55%, #451a03);
  color: white;
}

.hero-static-title {
  position: absolute;
  z-index: 4;
  left: max(16px, calc((100% - 1180px) / 2));
  top: 54px;
  width: min(520px, calc(100% - 32px));
}

.hero-static-title h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.hero-static-title p {
  max-width: 520px;
  color: rgb(245 245 244 / 82%);
  line-height: 1.8;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .75s ease, transform .75s ease;
  pointer-events: none;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(12 10 9 / 96%), rgb(12 10 9 / 70%) 45%, rgb(12 10 9 / 24%)), linear-gradient(0deg, rgb(12 10 9 / 92%), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .55fr);
  align-items: end;
  gap: 56px;
  padding: 220px 0 92px;
}

.hero-text h2 {
  margin-bottom: 18px;
  max-width: 800px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
}

.hero-text p {
  max-width: 700px;
  color: rgb(245 245 244 / 85%);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.detail-meta span,
.tag-list span {
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 90%);
  padding: 7px 12px;
  font-size: 13px;
}

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

.hero-poster {
  width: min(360px, 100%);
  justify-self: end;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgb(0 0 0 / 48%);
  transform: rotate(2deg);
  border: 1px solid rgb(255 255 255 / 18%);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: max(16px, calc((100% - 1180px) / 2));
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgb(255 255 255 / 28%);
  cursor: pointer;
}

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

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(320px, 1fr);
  align-items: center;
  gap: 32px;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.search-panel.slim {
  min-width: min(360px, 100%);
  box-shadow: none;
  border: 1px solid var(--stone-200);
}

.search-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  outline: none;
}

.search-panel input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgb(245 158 11 / 14%);
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  display: block;
  min-height: 240px;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone-900);
  color: white;
  box-shadow: var(--shadow);
}

.category-tile img,
.category-covers img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  transition: transform .35s ease, opacity .35s ease;
}

.category-tile::after,
.category-overview-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(12 10 9 / 22%), rgb(12 10 9 / 86%));
}

.category-tile:hover img,
.category-overview-card a:hover img {
  opacity: .46;
  transform: scale(1.08);
}

.category-tile span,
.category-tile h3,
.category-tile p,
.category-overview-card span,
.category-overview-card h2,
.category-overview-card p {
  position: relative;
  z-index: 2;
}

.category-tile span,
.category-overview-card span {
  display: inline-flex;
  margin-bottom: 64px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--stone-950);
  font-size: 12px;
  font-weight: 800;
}

.category-tile h3,
.category-overview-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.category-tile p,
.category-overview-card p {
  margin-bottom: 0;
  color: rgb(245 245 244 / 84%);
  font-size: 14px;
  line-height: 1.65;
}

.category-overview-card a {
  min-height: 320px;
}

.category-covers img:nth-child(2) {
  transform: translateX(24%) rotate(5deg);
}

.category-covers img:nth-child(3) {
  transform: translateX(-24%) rotate(-5deg);
}

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

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

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

.movie-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgb(28 25 23 / 8%);
  transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgb(28 25 23 / 16%);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: var(--stone-200);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 74%), transparent);
}

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--stone-950);
  font-size: 12px;
  font-weight: 800;
}

.rank-num {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgb(12 10 9 / 78%);
  color: var(--amber-300);
  font-weight: 900;
}

.movie-card-body {
  padding: 14px;
}

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 44px;
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--stone-900);
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  color: var(--stone-500);
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: var(--stone-400);
}

.dark-band {
  background: radial-gradient(circle at 20% 10%, rgb(245 158 11 / 20%), transparent 25%), linear-gradient(135deg, var(--stone-950), var(--stone-900));
  color: white;
}

.dark-band .movie-card {
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 10%);
  backdrop-filter: blur(12px);
}

.dark-band .movie-card-body h3 {
  color: white;
}

.dark-band .movie-card-body p,
.dark-band .movie-meta {
  color: rgb(245 245 244 / 72%);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 36px;
}

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

.rank-list.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item a {
  display: grid;
  grid-template-columns: 50px 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 26px rgb(28 25 23 / 8%);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 36px rgb(28 25 23 / 12%);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--amber-100);
  color: var(--amber-600);
  font-weight: 900;
}

.rank-item img {
  width: 96px;
  height: 66px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.rank-item p {
  display: -webkit-box;
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero,
.detail-hero {
  background: radial-gradient(circle at 80% 20%, rgb(245 158 11 / 28%), transparent 26%), linear-gradient(135deg, var(--stone-900), var(--stone-700));
  color: white;
}

.page-hero .section-shell {
  padding-top: 78px;
  padding-bottom: 78px;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
}

.page-hero p {
  max-width: 740px;
  margin-bottom: 0;
  color: rgb(245 245 244 / 82%);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb-link,
.breadcrumbs a {
  color: var(--amber-300);
  font-weight: 800;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chips.wide {
  margin-bottom: 24px;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: white;
  color: var(--stone-700);
  cursor: pointer;
  font-weight: 700;
}

.chip:hover,
.chip.is-active {
  border-color: var(--amber-500);
  background: var(--amber-500);
  color: var(--stone-950);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgb(245 245 244 / 76%);
}

.detail-hero .section-shell {
  padding-top: 44px;
  padding-bottom: 64px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgb(0 0 0 / 40%);
  border: 1px solid rgb(255 255 255 / 14%);
}

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

.detail-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
}

.lead-text {
  max-width: 820px;
  color: rgb(245 245 244 / 86%);
  font-size: 18px;
  line-height: 1.85;
}

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

.tag-list {
  margin-bottom: 26px;
}

.player-section {
  padding-bottom: 26px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 70px rgb(28 25 23 / 24%);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

.play-action {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgb(0 0 0 / 18%), rgb(0 0 0 / 52%));
  cursor: pointer;
}

.play-action span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: var(--stone-950);
  font-size: 42px;
  box-shadow: 0 18px 38px rgb(245 158 11 / 36%);
}

.player-box.is-playing .play-action {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: white;
  font-size: 14px;
}

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

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.content-card p {
  color: var(--stone-700);
  line-height: 1.95;
}

.highlight-text {
  color: var(--amber-600) !important;
  font-size: 18px;
  font-weight: 800;
}

.site-footer {
  margin-top: 32px;
  background: var(--stone-950);
  color: var(--stone-400);
}

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

.footer-logo {
  color: white;
  margin-bottom: 18px;
}

.site-footer h2 {
  color: white;
  font-size: 16px;
}

.site-footer p {
  max-width: 480px;
  line-height: 1.8;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  font-size: 14px;
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero-static-title {
    top: 34px;
  }

  .hero-content {
    padding-top: 210px;
    padding-bottom: 82px;
  }

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

  .quick-search,
  .two-column,
  .detail-body,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-head {
    display: grid;
    align-items: start;
  }

  .search-panel {
    flex-wrap: wrap;
  }

  .movie-grid,
  .movie-grid-featured,
  .movie-grid-small,
  .movie-grid-rank,
  .rank-list.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .rank-item img {
    width: 78px;
    height: 58px;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .nav-shell,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-static-title,
  .hero-controls {
    left: 12px;
  }

  .movie-grid,
  .movie-grid-featured,
  .movie-grid-small,
  .movie-grid-rank,
  .category-grid,
  .category-overview-grid,
  .rank-list.wide {
    grid-template-columns: 1fr;
  }

  .hero-text h2,
  .detail-intro h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .category-tile,
  .category-overview-card a {
    min-height: 220px;
  }
}
