:root {
  color-scheme: light;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --bronze-700: #977669;
  --bronze-500: #b99a8d;
  --bronze-300: #d2bab0;
  --cream: #fff7ed;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(12, 10, 9, 0.16);
  --soft-shadow: 0 12px 30px rgba(12, 10, 9, 0.1);
}

* {
  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;
  background: linear-gradient(180deg, #fff7ed 0%, #f5f5f4 28%, #ffffff 100%);
  color: var(--stone-900);
}

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

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

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 9, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(210, 186, 176, 0.2);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.site-logo::before,
.footer-logo::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-700));
  box-shadow: 0 10px 24px rgba(151, 118, 105, 0.36);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 247, 237, 0.78);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cream);
  background: rgba(210, 186, 176, 0.16);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 247, 237, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--cream);
}

main {
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 28px auto 36px;
  padding: 42px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 20%, rgba(210, 186, 176, 0.28), transparent 30%),
    linear-gradient(135deg, #0c0a09 0%, #292524 52%, #5a4238 100%);
  box-shadow: var(--shadow);
  color: var(--cream);
  isolation: isolate;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.45;
  z-index: -1;
}

.hero-orb-one {
  width: 220px;
  height: 220px;
  right: 80px;
  top: 48px;
  background: rgba(210, 186, 176, 0.26);
}

.hero-orb-two {
  width: 260px;
  height: 260px;
  left: -72px;
  bottom: -86px;
  background: rgba(151, 118, 105, 0.34);
}

.hero-slides {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(151, 118, 105, 0.15);
  color: var(--bronze-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 247, 237, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags,
.detail-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.12);
  color: rgba(255, 247, 237, 0.84);
  font-size: 12px;
  line-height: 1;
}

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

.primary-btn,
.ghost-btn,
.wide-search button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.hero-search button,
.wide-search button {
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-700));
  color: var(--stone-950);
  box-shadow: 0 16px 30px rgba(151, 118, 105, 0.36);
}

.ghost-btn {
  color: var(--cream);
  border-color: rgba(255, 247, 237, 0.24);
  background: rgba(255, 247, 237, 0.08);
}

.ghost-btn.dark {
  color: var(--stone-900);
  border-color: rgba(68, 64, 60, 0.18);
  background: rgba(255, 255, 255, 0.8);
}

.primary-btn:hover,
.ghost-btn:hover,
.wide-search button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(12, 10, 9, 0.72));
}

.hero-poster img,
.category-card img,
.poster-frame img,
.rank-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-toolbar {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.hero-search,
.wide-search,
.static-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 247, 237, 0.18);
  backdrop-filter: blur(18px);
}

.hero-search input,
.wide-search input,
.inline-search {
  width: min(460px, 52vw);
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--stone-900);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 32px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: var(--bronze-300);
}

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

.page-hero,
.detail-hero {
  margin-top: 28px;
  padding: 42px;
  border-radius: 30px;
  color: var(--cream);
  background:
    radial-gradient(circle at 88% 10%, rgba(210, 186, 176, 0.24), transparent 28%),
    linear-gradient(135deg, var(--stone-950), var(--stone-800));
  box-shadow: var(--shadow);
}

.narrow-hero {
  min-height: 260px;
}

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

.section-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--bronze-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading a {
  flex: 0 0 auto;
  color: var(--bronze-700);
  font-weight: 800;
}

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

.category-card {
  min-height: 176px;
  position: relative;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  isolation: isolate;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.18), rgba(12, 10, 9, 0.82));
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card span {
  display: block;
  padding: 20px;
  color: var(--cream);
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.category-card em,
.movie-card em,
.rank-item em {
  display: block;
  color: rgba(255, 247, 237, 0.72);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

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

.compact-grid,
.preview-grid {
  gap: 16px;
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone-200);
}

.poster-frame img {
  transition: transform 0.35s ease;
}

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

.poster-badge,
.poster-year,
.rank-mark {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(10px);
}

.poster-badge {
  left: 10px;
  top: 10px;
}

.poster-year {
  right: 10px;
  bottom: 10px;
}

.rank-mark {
  left: 10px;
  bottom: 10px;
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-700));
  color: var(--stone-950);
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.movie-card strong {
  color: var(--stone-900);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card em {
  color: var(--stone-500);
}

.movie-line {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--stone-700);
  font-size: 13px;
  line-height: 1.7;
}

.tag-row span {
  background: rgba(151, 118, 105, 0.12);
  color: var(--bronze-700);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: 26px;
  background: var(--stone-950);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.rank-panel .section-heading h2,
.rank-panel .section-heading a {
  color: var(--cream);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(210, 186, 176, 0.16);
  transform: translateX(3px);
}

.rank-number {
  color: var(--bronze-300);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.rank-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  color: rgba(255, 247, 237, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--bronze-300);
}

.toolbar-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.inline-search {
  width: min(520px, 100%);
  border: 1px solid rgba(68, 64, 60, 0.14);
  box-shadow: var(--soft-shadow);
}

.wide-search {
  width: min(680px, 100%);
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.13);
}

.wide-search input {
  width: 100%;
}

.static-search button {
  white-space: nowrap;
}

.filter-row {
  margin-top: 18px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 247, 237, 0.22);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.08);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--bronze-300);
  color: var(--stone-950);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.64fr);
  gap: 30px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.site-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

.video-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-700));
  color: var(--stone-950);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-start span {
  display: inline-block;
  margin-left: 5px;
  font-size: 36px;
  line-height: 1;
}

.video-start:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

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

.detail-copy .eyebrow {
  background: rgba(255, 247, 237, 0.1);
}

.detail-copy p {
  color: rgba(255, 247, 237, 0.78);
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: rgba(255, 247, 237, 0.76);
}

.detail-meta a {
  color: var(--bronze-300);
  font-weight: 800;
}

.detail-content {
  display: grid;
  gap: 18px;
}

.detail-block {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.detail-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-block p {
  margin: 0;
  color: var(--stone-700);
  line-height: 1.9;
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0 26px;
  background: var(--stone-950);
  color: rgba(255, 247, 237, 0.72);
}

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

.footer-logo {
  color: var(--cream);
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--cream);
  font-size: 17px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--bronze-300);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 247, 237, 0.12);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .hero-slide,
  .detail-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 900px;
  }

  .hero-slide {
    align-items: start;
  }

  .hero-poster {
    width: min(360px, 70vw);
    justify-self: center;
  }

  .rank-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(12, 10, 9, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-carousel,
  .page-hero,
  .detail-hero {
    width: min(100% - 20px, 1180px);
    margin-top: 14px;
    padding: 24px;
    border-radius: 24px;
  }

  .hero-carousel {
    min-height: 880px;
  }

  .hero-slides {
    min-height: 690px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 15px;
  }

  .hero-toolbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    margin-top: 22px;
  }

  .hero-search,
  .wide-search,
  .static-search,
  .toolbar-line {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .hero-search input,
  .wide-search input,
  .inline-search {
    width: 100%;
  }

  .content-section,
  .category-overview {
    width: min(100% - 20px, 1180px);
  }

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

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

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

  .video-start {
    width: 66px;
    height: 66px;
  }

  .video-start span {
    font-size: 28px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
