:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-900: #7c2d12;
  --shadow: 0 12px 30px rgba(41, 37, 36, 0.12);
  --shadow-lg: 0 24px 50px rgba(41, 37, 36, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: var(--stone-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214, 211, 209, 0.7);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--stone-900);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.32);
}

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

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

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber-700);
}

.nav-search,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-search,
.primary-btn {
  color: #fff;
  background: var(--amber-600);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.nav-search:hover,
.primary-btn:hover {
  background: var(--amber-700);
  transform: translateY(-1px);
}

.secondary-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--stone-800);
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 16px;
  font-weight: 700;
}

.mobile-nav a {
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-position: center;
  background-size: cover;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 70vh;
  align-items: center;
  padding-block: 84px;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin: 0 0 18px;
  color: var(--amber-100);
  background: rgba(217, 119, 6, 0.24);
  border: 1px solid rgba(253, 230, 138, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--stone-200);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

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

.hero-meta span {
  padding: 8px 14px;
  color: var(--stone-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-meta span:first-child {
  background: var(--amber-600);
  border-color: var(--amber-500);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  transition: all 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.section {
  padding-block: 58px;
}

.section.alt {
  background: linear-gradient(180deg, var(--amber-50), var(--stone-50));
}

.section.deep {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-900), var(--orange-900));
}

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

.section-title h2,
.page-hero h1,
.catalog-tools h2 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.deep .section-title h2 {
  color: #fff;
}

.section-title p,
.page-hero p,
.catalog-tools p {
  margin: 7px 0 0;
  color: var(--stone-500);
}

.deep .section-title p {
  color: var(--amber-100);
}

.more-link {
  color: var(--amber-700);
  font-weight: 800;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

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

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

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hover-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .hover-layer {
  opacity: 1;
}

.play-dot {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: var(--amber-600);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.card-info {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.card-info strong {
  overflow: hidden;
  color: var(--stone-800);
  font-size: 17px;
  line-height: 1.38;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-info span {
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-info small {
  color: var(--stone-500);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-900));
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 23px;
}

.category-tile span {
  color: var(--amber-100);
}

.rank-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(41, 37, 36, 0.06);
  transition: all 0.2s ease;
}

.rank-line:hover {
  border-color: rgba(217, 119, 6, 0.35);
  transform: translateX(4px);
}

.rank-line span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--amber-600);
  border-radius: 12px;
  font-weight: 800;
}

.rank-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-line em {
  color: var(--stone-500);
  font-style: normal;
}

.page-hero {
  padding-block: 72px;
  color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.38), transparent 28%), linear-gradient(135deg, var(--amber-900), var(--orange-900) 52%, var(--stone-900));
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  color: var(--amber-100);
  font-size: 18px;
  line-height: 1.8;
}

.catalog-tools {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.tool-fields {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 12px;
}

.tool-fields input,
.tool-fields select {
  min-height: 46px;
  padding: 0 14px;
  color: var(--stone-800);
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  outline: none;
}

.tool-fields input:focus,
.tool-fields select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.38));
}

.detail-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 330px;
  gap: 36px;
  align-items: end;
  min-height: 430px;
  padding-block: 70px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.detail-copy p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--stone-200);
  font-size: 18px;
  line-height: 1.8;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

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

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  padding-block: 44px 64px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  border: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  background: var(--amber-600);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 20px;
}

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

.content-card,
.side-card {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.content-card {
  margin-top: 24px;
  padding: 30px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

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

.side-card {
  padding: 24px;
}

.meta-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stone-100);
}

.meta-list dt {
  color: var(--stone-500);
}

.meta-list dd {
  margin: 0;
  color: var(--stone-800);
  font-weight: 800;
  text-align: right;
}

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

.tags span {
  padding: 8px 12px;
  color: var(--amber-700);
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.related-section {
  padding-bottom: 64px;
}

.site-footer {
  color: var(--stone-300);
  background: linear-gradient(135deg, var(--stone-800), var(--stone-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 36px;
  padding-block: 42px;
}

.footer-logo {
  margin-bottom: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer a {
  display: block;
  margin-top: 8px;
  color: var(--stone-300);
}

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

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

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

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

  .rank-panel,
  .detail-main,
  .detail-hero .container {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .logo {
    font-size: 19px;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-actions a {
    width: 100%;
  }

  .section-title,
  .catalog-tools,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .tool-fields {
    grid-template-columns: 1fr;
  }

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

  .card-info {
    padding: 14px;
  }

  .card-info strong {
    font-size: 15px;
  }

  .detail-hero .container {
    min-height: 520px;
    padding-block: 48px;
  }

  .detail-copy p {
    font-size: 16px;
  }

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

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

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

  .hero h1,
  .hero h2 {
    font-size: 40px;
  }

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

  .rank-line em {
    display: none;
  }
}
