:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-850: #241f1d;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --bronze-800: #846358;
  --bronze-700: #977669;
  --bronze-600: #a18072;
  --bronze-500: #b7988d;
  --bronze-400: #d2bab0;
  --bronze-100: #f2e8e5;
  --bronze-50: #fdf8f6;
  --heritage-900: #272720;
  --heritage-800: #3e3e39;
  --heritage-100: #e4e4e1;
  --heritage-50: #f7f7f6;
  --shadow-card: 0 18px 45px rgba(28, 25, 23, 0.12);
  --shadow-strong: 0 28px 80px rgba(12, 10, 9, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: var(--stone-50);
  min-width: 320px;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(28, 25, 23, 0.94);
  border-bottom: 1px solid rgba(214, 211, 209, 0.1);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--bronze-400), var(--bronze-700));
  box-shadow: 0 10px 32px rgba(210, 186, 176, 0.25);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--stone-300);
  font-size: 15px;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--bronze-400);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  background: var(--stone-900);
}

.mobile-nav a {
  display: block;
  color: var(--stone-300);
  padding: 12px 0;
  border-top: 1px solid rgba(214, 211, 209, 0.08);
}

.mobile-nav.is-open {
  display: block;
}

.hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: var(--stone-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-image img {
  transform: scale(1.0);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(210, 186, 176, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.78) 42%, rgba(12, 10, 9, 0.35) 100%),
    linear-gradient(0deg, rgba(12, 10, 9, 0.98) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 70px 0 120px;
  color: var(--stone-50);
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(210, 186, 176, 0.35);
  border-radius: 999px;
  color: var(--bronze-100);
  background: rgba(161, 128, 114, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 22px 0 0;
  color: var(--stone-300);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.hero-tags span {
  padding: 8px 12px;
  color: var(--bronze-100);
  border: 1px solid rgba(242, 232, 229, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--bronze-400), var(--bronze-600));
  box-shadow: 0 14px 32px rgba(161, 128, 114, 0.3);
}

.btn-ghost {
  color: var(--stone-50);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.hero-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--bronze-400);
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrows button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--stone-50);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.search-shell {
  position: relative;
  margin-top: 32px;
  width: min(650px, 100%);
}

.search-label {
  display: block;
  color: var(--bronze-100);
  font-size: 14px;
  margin-bottom: 10px;
}

.search-control {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 50px rgba(12, 10, 9, 0.25);
  backdrop-filter: blur(20px);
}

.search-control input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--stone-50);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12, 10, 9, 0.38);
}

.search-control input::placeholder {
  color: rgba(231, 229, 228, 0.58);
}

.search-control button {
  border: 0;
  border-radius: 14px;
  color: var(--stone-950);
  font-weight: 800;
  padding: 0 20px;
  background: var(--bronze-400);
  cursor: pointer;
}

.search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  border-radius: 18px;
  overflow: hidden;
  background: var(--stone-950);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results.is-open {
  display: block;
}

.search-results a {
  display: block;
  padding: 14px 16px;
  color: var(--stone-100);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-results strong {
  display: block;
  margin-bottom: 6px;
}

.search-results span {
  display: block;
  color: var(--stone-300);
  font-size: 13px;
  line-height: 1.6;
}

.page-hero {
  color: var(--stone-50);
  background:
    radial-gradient(circle at 18% 20%, rgba(210, 186, 176, 0.28), transparent 30%),
    linear-gradient(135deg, var(--stone-900), var(--stone-950));
  padding: 72px 0;
}

.page-hero.bronze {
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.20), transparent 25%),
    linear-gradient(135deg, var(--bronze-700), var(--heritage-800));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 780px;
  color: var(--stone-200);
  line-height: 1.8;
  font-size: 17px;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--heritage-100);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--stone-900);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.section-link {
  color: var(--bronze-700);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.68), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.region-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.region-chip {
  top: 12px;
  right: 12px;
  color: #ffffff;
  padding: 7px 11px;
  background: rgba(161, 128, 114, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--stone-950);
  background: var(--bronze-400);
}

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

.movie-card h3,
.movie-card h4 {
  margin: 0 0 10px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h4 {
  font-size: 16px;
}

.movie-card h3 a,
.movie-card h4 a {
  transition: color 0.2s ease;
}

.movie-card h3 a:hover,
.movie-card h4 a:hover {
  color: var(--bronze-700);
}

.movie-line {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  margin: 0 0 12px;
  color: var(--stone-500);
  font-size: 12px;
  line-height: 1.5;
}

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

.tag-row span,
.detail-tags span {
  color: var(--bronze-800);
  padding: 7px 9px;
  background: var(--bronze-50);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 20px;
  color: var(--stone-50);
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

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

.category-card-content {
  position: relative;
  z-index: 2;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.88), transparent 72%);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
}

.category-card p {
  margin: 0;
  color: var(--stone-200);
  line-height: 1.65;
  font-size: 14px;
}

.horizontal-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 18px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  min-width: 280px;
  scroll-snap-align: start;
}

.home-split {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 30px;
}

.mini-panel {
  border-radius: 22px;
  padding: 22px;
  color: var(--stone-50);
  background: linear-gradient(160deg, var(--stone-900), var(--stone-950));
  box-shadow: var(--shadow-card);
}

.mini-panel h2,
.mini-panel h3 {
  margin: 0 0 18px;
}

.mini-movie {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--stone-950);
  background: var(--bronze-400);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

.mini-movie img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
}

.mini-movie strong {
  display: block;
  color: var(--stone-50);
  line-height: 1.4;
}

.mini-movie em {
  display: block;
  color: var(--stone-300);
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
}

.detail-top {
  background: var(--stone-950);
  padding: 26px 0;
}

.breadcrumbs {
  color: var(--stone-300);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--bronze-400);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding: 42px 0 70px;
}

.player-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--stone-950);
  box-shadow: var(--shadow-strong);
}

.player-shell {
  position: relative;
  background: var(--stone-950);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--stone-950);
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.4));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--bronze-400), var(--bronze-600));
  box-shadow: 0 16px 40px rgba(12, 10, 9, 0.38);
  cursor: pointer;
}

.player-button span {
  margin-left: 5px;
  font-size: 34px;
}

.detail-card,
.side-card {
  border-radius: 20px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(28, 25, 23, 0.08);
}

.detail-card {
  margin-top: 24px;
}

.detail-card h1 {
  margin: 0 0 16px;
  color: var(--stone-900);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--stone-600);
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  color: var(--stone-900);
  font-size: 22px;
}

.detail-card p {
  color: var(--stone-700);
  line-height: 1.86;
  font-size: 16px;
}

.side-card {
  position: sticky;
  top: 100px;
}

.side-poster {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background: var(--stone-200);
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.08);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--stone-950);
  background: var(--bronze-400);
  font-weight: 900;
}

.rank-row img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-row h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 18px;
}

.rank-row p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.6;
  font-size: 14px;
}

.rank-hot {
  display: inline-flex;
  margin-top: 10px;
  color: var(--bronze-700);
  font-weight: 800;
  font-size: 13px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 42px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.07);
  color: var(--stone-700);
  font-weight: 700;
}

.pagination span {
  color: var(--stone-950);
  background: var(--bronze-400);
}

.text-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 0;
}

.text-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow-card);
}

.text-card h2 {
  margin-top: 28px;
  color: var(--stone-900);
}

.text-card p,
.text-card li {
  color: var(--stone-700);
  line-height: 1.9;
}

.site-footer {
  color: var(--stone-300);
  background: var(--stone-900);
  padding-top: 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: var(--stone-50);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
}

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

.site-footer p {
  margin: 0;
  line-height: 1.8;
  color: var(--stone-300);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 10px 0;
}

.site-footer a {
  color: var(--stone-300);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  margin-top: 40px;
  padding: 22px 16px;
  text-align: center;
  border-top: 1px solid rgba(214, 211, 209, 0.1);
  color: var(--stone-500);
}

@media (max-width: 1024px) {
  .movie-grid,
  .movie-grid.three,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .home-split,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 17px;
  }

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding: 54px 0 118px;
  }

  .hero-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-control {
    flex-direction: column;
  }

  .search-control button {
    min-height: 44px;
  }

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

  .movie-grid,
  .movie-grid.three,
  .related-grid,
  .rank-list,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 96px 1fr;
  }

  .rank-row img {
    width: 96px;
    height: 72px;
  }

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

  .detail-card,
  .side-card,
  .text-card {
    padding: 22px;
  }
}
