* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #15100c;
  --bg-soft: #21170f;
  --bg-card: rgba(42, 29, 18, 0.82);
  --bg-card-solid: #25190f;
  --line: rgba(255, 228, 181, 0.14);
  --text: #fff7ed;
  --muted: #d6c5ae;
  --muted-soft: #a9977f;
  --amber: #f59e0b;
  --amber-light: #fcd34d;
  --amber-deep: #92400e;
  --stone: #78716c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.24), transparent 34rem),
    radial-gradient(circle at top right, rgba(146, 64, 14, 0.26), transparent 30rem),
    linear-gradient(135deg, #120c08 0%, #24170d 45%, #0e0b08 100%);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 12, 8, 0.78);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  color: #2a1704;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.28);
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(245, 158, 11, 0.16);
  transform: translateY(-1px);
}

.nav-link-muted {
  color: var(--muted-soft);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
}

.hero-slider {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 170px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 760px;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(3px) saturate(1.15);
}

.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  height: 780px;
  background:
    linear-gradient(90deg, rgba(18, 12, 8, 0.96) 0%, rgba(18, 12, 8, 0.72) 42%, rgba(18, 12, 8, 0.9) 100%),
    linear-gradient(180deg, rgba(18, 12, 8, 0.24), #15100c 92%);
}

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

.hero-kicker,
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-light);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker span,
.eyebrow,
.detail-tags span,
.tag-row a,
.tag-row span {
  border: 1px solid rgba(245, 158, 11, 0.26);
  background: rgba(245, 158, 11, 0.1);
}

.hero-kicker span,
.detail-tags span,
.tag-row a,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
}

.hero-content h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  text-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.9;
}

.hero-actions,
.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.text-button,
.section-link,
.search-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #2a1704;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.32);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-link:hover,
.search-bar a:hover {
  transform: translateY(-2px);
}

.ghost-button,
.text-button,
.section-link,
.search-bar a {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button.light {
  background: rgba(255, 247, 237, 0.1);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 228, 181, 0.26);
  border-radius: 34px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::after,
.poster-link::after,
.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.74));
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 9px 12px;
  border-radius: 999px;
  color: #2a1704;
  font-weight: 900;
  background: var(--amber-light);
}

.hero-bottom-bar {
  position: absolute;
  right: 50%;
  bottom: 34px;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.2fr) auto;
  align-items: end;
  width: min(1280px, calc(100% - 32px));
  gap: 18px;
  transform: translateX(-50%);
}

.hero-search-panel,
.inline-search,
.category-overview-card,
.rank-item,
.movie-card,
.page-hero,
.detail-hero,
.player-section,
.detail-copy-section {
  border: 1px solid var(--line);
  background: rgba(33, 23, 15, 0.74);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.hero-search-panel {
  padding: 16px;
  border-radius: 22px;
}

.hero-search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-bar,
.inline-search {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar input,
.inline-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 16px;
}

.search-bar input:focus,
.inline-search input:focus {
  border-color: rgba(252, 211, 77, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-category-links a {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.26);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

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

.content-section,
.page-main,
.detail-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 76px 0 0;
}

.alt-section {
  margin-top: 16px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-copy-section h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-heading p,
.page-hero p,
.detail-copy-section p,
.detail-info .lead {
  color: var(--muted);
  line-height: 1.85;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(252, 211, 77, 0.34);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #2a1d12;
}

.poster-link img {
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.category-tile:hover img,
.mini-feature-card:hover img,
.rank-cover:hover img {
  transform: scale(1.06);
}

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.poster-year {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #2a1704;
  background: var(--amber-light);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #2a1704;
  background: rgba(252, 211, 77, 0.94);
}

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

.movie-meta-line,
.rank-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-soft);
  font-size: 0.84rem;
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-copy h3 a:hover,
.category-overview-card h2 a:hover {
  color: var(--amber-light);
}

.movie-card p {
  min-height: 3.3em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  color: var(--amber-light);
  font-size: 0.82rem;
}

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

.category-tile {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.25);
}

.category-tile span,
.category-tile strong,
.category-tile em {
  position: absolute;
  z-index: 2;
  left: 18px;
}

.category-tile span {
  top: 18px;
  color: var(--amber-light);
  font-size: 0.86rem;
  font-weight: 800;
}

.category-tile strong {
  bottom: 48px;
  font-size: 1.45rem;
}

.category-tile em {
  bottom: 18px;
  color: var(--muted);
  font-style: normal;
}

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

.full-rank-list {
  grid-template-columns: 1fr;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 94px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
}

.full-rank-list .rank-item {
  grid-template-columns: auto 120px minmax(0, 1fr);
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #2a1704;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
}

.rank-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #2a1d12;
}

.rank-copy h3 {
  margin: 0 0 8px;
}

.rank-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.page-main,
.detail-main {
  padding-top: 34px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(34px, 7vw, 72px);
}

.page-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.32), transparent 28rem),
    linear-gradient(135deg, rgba(120, 53, 15, 0.62), rgba(28, 20, 14, 0.9));
}

.page-hero h1,
.detail-info h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
}

.category-hero,
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: 38px;
  align-items: center;
}

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

.mini-feature-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
}

.mini-feature-card img {
  aspect-ratio: 2 / 3;
}

.mini-feature-card strong,
.mini-feature-card span {
  display: block;
  padding: 0 10px;
}

.mini-feature-card strong {
  margin-top: 10px;
  line-height: 1.35;
}

.mini-feature-card span {
  padding-bottom: 12px;
  color: var(--muted-soft);
  font-size: 0.82rem;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 26px;
}

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

.category-cover-stack img {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

.inline-search {
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 22px;
}

.large-search input {
  min-height: 58px;
  font-size: 1.08rem;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
}

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

.detail-hero {
  grid-template-columns: 300px minmax(0, 1fr);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(252, 211, 77, 0.26);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-info .lead {
  max-width: 840px;
  margin: 24px 0 0;
  font-size: 1.12rem;
}

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

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.player-section {
  margin-top: 28px;
  padding: 22px;
  border-radius: 28px;
}

.player-section h2,
.detail-copy-section h2 {
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  color: #2a1704;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
}

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

.big-play {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  padding-left: 6px;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 18px 55px rgba(245, 158, 11, 0.36);
}

.detail-copy-section {
  margin-top: 28px;
  padding: 30px;
  border-radius: 28px;
}

.detail-copy-section p {
  margin: 0 0 24px;
  font-size: 1.04rem;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.footer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-shell p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

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

.copyright {
  margin: 0;
  color: var(--muted-soft);
}

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

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

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

  .hero-poster {
    display: none;
  }

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

  .hero-dots {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(18, 12, 8, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-link {
    text-align: center;
  }

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

  .hero-slide {
    padding-top: 84px;
  }

  .hero-content h1 {
    letter-spacing: -0.05em;
  }

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

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

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

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

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

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

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

  .rank-number {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .header-shell,
  .content-section,
  .page-main,
  .detail-main,
  .footer-shell {
    width: min(100% - 24px, 1280px);
  }

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

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

  .hero-bottom-bar {
    bottom: 18px;
    width: min(100% - 24px, 1280px);
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    margin-top: 14px;
  }

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

  .movie-card p {
    min-height: auto;
  }

  .page-hero,
  .detail-hero,
  .player-section,
  .detail-copy-section {
    border-radius: 22px;
    padding: 22px;
  }

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