:root {
  --volcanic-950: #120c13;
  --volcanic-900: #1f1524;
  --volcanic-800: #32223c;
  --volcanic-700: #4b3657;
  --volcanic-600: #665071;
  --volcanic-500: #826b8c;
  --volcanic-300: #c7b7cd;
  --volcanic-200: #e4dae8;
  --volcanic-100: #f4eff6;
  --lava-700: #a82617;
  --lava-600: #d7351f;
  --lava-500: #f0572c;
  --lava-400: #ff7a3d;
  --gold-400: #ffca5f;
  --paper: #fffaf6;
  --ink: #201320;
  --muted: #766879;
  --line: rgba(75, 54, 87, 0.14);
  --shadow: 0 22px 70px rgba(31, 21, 36, 0.16);
  --soft-shadow: 0 12px 36px rgba(31, 21, 36, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(240, 87, 44, 0.14), transparent 32rem),
    linear-gradient(180deg, #fff7ef 0%, #fff 42%, #f8f3f9 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
body.menu-open .site-header {
  background: rgba(255, 250, 246, 0.92);
  box-shadow: 0 16px 36px rgba(31, 21, 36, 0.10);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--lava-600), var(--gold-400));
  box-shadow: 0 12px 30px rgba(215, 53, 31, 0.34);
}

.brand-name,
.footer-brand {
  font-size: clamp(1.15rem, 2.3vw, 1.75rem);
  background: linear-gradient(135deg, var(--lava-600), var(--volcanic-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  color: var(--volcanic-800);
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lava-600), var(--gold-400));
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  padding: 12px 24px 24px;
  background: rgba(255, 250, 246, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-nav .nav-link {
  display: block;
  padding: 16px 0;
}

.hero-carousel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--volcanic-950);
}

.hero-track,
.hero-slide {
  min-height: 100vh;
}

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

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

.hero-backdrop,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 12, 19, 0.92), rgba(18, 12, 19, 0.62), rgba(18, 12, 19, 0.25)),
    radial-gradient(circle at 78% 38%, rgba(240, 87, 44, 0.48), transparent 28rem);
}

.hero-content {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
  padding-top: 120px;
  padding-bottom: 86px;
  color: #fff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lava-500);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lava-600), var(--gold-400));
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.hero-copy p,
.detail-copy p,
.page-hero p {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

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

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  backdrop-filter: blur(12px);
}

.hero-actions,
.detail-copy .primary-button {
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.rank-action,
.text-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.rank-action {
  color: #fff;
  background: linear-gradient(135deg, var(--lava-600), var(--lava-400));
  box-shadow: 0 18px 36px rgba(215, 53, 31, 0.32);
  padding: 14px 24px;
}

.ghost-button {
  margin-left: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 13px 22px;
  backdrop-filter: blur(16px);
}

.primary-button:hover,
.ghost-button:hover,
.rank-action:hover,
.text-arrow:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  z-index: 1;
  pointer-events: none;
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.9rem;
  line-height: 1;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 99px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--lava-500);
}

.section {
  padding: clamp(58px, 8vw, 104px) 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 239, 246, 0.74));
}

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

.section-head h2,
.detail-article h2,
.detail-side h2,
.category-tile h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--volcanic-950);
}

.text-arrow {
  color: var(--lava-600);
  background: #fff;
  box-shadow: var(--soft-shadow);
  padding: 12px 18px;
  white-space: nowrap;
}

.horizontal-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 310px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255, 255, 255, 0.74);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--volcanic-900);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.category-preview:hover img,
.rank-row:hover .rank-thumb img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(18, 12, 19, 0.84));
}

.year-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.year-badge {
  left: 12px;
  top: 12px;
  color: #fff;
  background: rgba(18, 12, 19, 0.68);
}

.type-badge {
  right: 12px;
  bottom: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--lava-600), var(--lava-400));
}

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

.movie-card h2,
.rank-content h2 {
  margin: 0;
  color: var(--volcanic-950);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card p,
.rank-content p,
.category-tile p,
.site-footer p,
.detail-article p {
  color: var(--muted);
  line-height: 1.78;
}

.movie-card p {
  min-height: 3.4em;
  margin: 9px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  color: var(--volcanic-600);
  font-size: 0.85rem;
  gap: 8px 12px;
}

.tag-row {
  margin-top: 12px;
}

.movie-card .tag-row span,
.detail-side .tag-row span {
  color: var(--lava-700);
  background: rgba(240, 87, 44, 0.10);
  border-color: rgba(240, 87, 44, 0.16);
  backdrop-filter: none;
}

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

.category-tile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--soft-shadow);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: 20px;
}

.category-preview img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--volcanic-900), var(--lava-600));
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  width: 86px;
  height: 116px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-content p {
  margin: 8px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-action {
  padding: 11px 17px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--volcanic-950), var(--volcanic-800) 58%, var(--lava-700));
  color: #fff;
}

.compact-hero {
  padding: 92px 0 62px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

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

.search-panel {
  margin-top: 28px;
  max-width: 720px;
}

.search-panel input {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 18px 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.detail-hero {
  min-height: 78vh;
}

.detail-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 12, 19, 0.94), rgba(18, 12, 19, 0.66), rgba(18, 12, 19, 0.34)),
    radial-gradient(circle at 78% 42%, rgba(240, 87, 44, 0.42), transparent 28rem);
}

.detail-hero-grid {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
  padding-top: 128px;
  padding-bottom: 72px;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

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

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

.detail-tags span {
  color: #fff;
}

.player-section {
  padding-bottom: 34px;
  background: var(--volcanic-950);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(18, 12, 19, 0.25), rgba(18, 12, 19, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.poster-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--lava-600), var(--lava-400));
  padding: 18px 32px;
  font-weight: 950;
  box-shadow: 0 18px 50px rgba(215, 53, 31, 0.38);
}

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

.detail-article,
.detail-side {
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.detail-article h2,
.detail-side h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 16px;
}

.detail-article p {
  margin: 0 0 28px;
  font-size: 1.04rem;
}

.detail-side dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.detail-side div {
  display: grid;
  gap: 5px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.detail-side dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-side dd {
  margin: 0;
  font-weight: 850;
  color: var(--volcanic-900);
}

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

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, var(--volcanic-950), var(--volcanic-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.58);
}

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

  .menu-button {
    display: inline-flex;
  }

  body.menu-open .mobile-nav {
    display: block;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

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

  .category-grid,
  .rank-list-home {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 46px 72px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    height: 66px;
  }

  .page-shell {
    padding-top: 66px;
  }

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

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .ghost-button {
    margin-left: 0;
  }

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

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

  .category-tile {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 40px 62px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-thumb img {
    width: 62px;
    height: 86px;
  }

  .rank-num {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
}
