:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --shadow-soft: 0 18px 50px rgba(28, 25, 23, 0.16);
  --shadow-card: 0 10px 30px rgba(28, 25, 23, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--stone-900);
  background: var(--stone-50);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: rgba(12, 10, 9, 0.94);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--stone-950);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.brand-text,
.footer-brand div {
  display: grid;
  gap: 2px;
}

.brand-text strong,
.footer-brand strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-text small,
.footer-brand small {
  color: var(--stone-300);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  color: var(--stone-200);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-400);
}

.quick-search {
  width: 300px;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.quick-search input,
.mobile-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 10px 12px;
}

.quick-search input::placeholder,
.mobile-panel input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.quick-search button,
.mobile-panel button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--stone-950);
  font-weight: 700;
  background: var(--amber-500);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
  border-radius: 2px;
}

.mobile-panel {
  padding: 14px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--stone-950);
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: var(--stone-100);
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  border-radius: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

.hero-bg {
  position: absolute;
  inset: -4vh 0 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.94) 0%, rgba(12, 10, 9, 0.62) 44%, rgba(12, 10, 9, 0.18) 100%), linear-gradient(0deg, var(--stone-950) 0%, rgba(12, 10, 9, 0.14) 45%, rgba(12, 10, 9, 0.74) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 90vh;
  margin: 0 auto;
  padding: 130px 24px 96px;
  display: grid;
  align-content: end;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  color: var(--stone-950);
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  background: var(--amber-500);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.22);
}

.hero h1,
.page-hero h1,
.movie-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 20px 0 24px;
  color: var(--stone-200);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-meta,
.movie-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.movie-meta span,
.card-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--stone-200);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary,
.btn-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 14px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--stone-950);
  background: var(--amber-500);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover,
.section-more:hover {
  transform: translateY(-2px);
  background: var(--amber-400);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

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

.hero-dots button.active {
  background: var(--amber-500);
}

.hero-search {
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 13px 16px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.hero-search button {
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  padding: 0 22px;
  color: var(--stone-950);
  font-weight: 900;
  background: var(--amber-500);
}

.main-section,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.page-main.narrow {
  max-width: 980px;
}

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

.section-heading h2,
.page-hero h1,
.movie-content h2,
.category-card h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p,
.page-hero p,
.category-card p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.section-more {
  min-height: 42px;
  color: var(--stone-950);
  background: var(--amber-500);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.card-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.62), rgba(12, 10, 9, 0.04));
}

.play-dot {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--stone-950);
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--stone-950);
  font-weight: 900;
  background: var(--amber-500);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--amber-600);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.65;
}

.card-meta {
  gap: 7px;
  margin-bottom: 14px;
}

.card-meta span {
  color: var(--stone-600);
  background: var(--stone-100);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--amber-600);
  font-size: 12px;
  background: var(--amber-100);
}

.category-strip {
  background: linear-gradient(135deg, #fff7ed, var(--stone-100));
}

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

.category-chip,
.category-card {
  display: block;
  min-height: 150px;
  border-radius: 24px;
  padding: 24px;
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.20);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-chip:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-chip span {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 900;
}

.category-chip small {
  color: var(--stone-600);
  line-height: 1.6;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.feature-large {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: var(--stone-900);
  box-shadow: var(--shadow-soft);
}

.feature-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-large:hover img {
  transform: scale(1.06);
}

.feature-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.88), rgba(12, 10, 9, 0.14));
}

.feature-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px;
}

.feature-copy h2 {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 46px);
}

.feature-copy p {
  color: var(--stone-200);
  line-height: 1.7;
}

.side-list {
  display: grid;
  gap: 18px;
}

.side-item {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border-radius: 22px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.side-item img {
  width: 142px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}

.side-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.ranking-block {
  color: #fff;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.24), transparent 35%), linear-gradient(135deg, var(--stone-950), var(--stone-900));
}

.ranking-block .section-heading h2,
.ranking-block .section-heading p {
  color: #fff;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 112px 1fr;
  gap: 16px;
  align-items: center;
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-row strong {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--stone-950);
  background: var(--amber-500);
}

.ranking-row img {
  width: 112px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-row h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ranking-row p {
  margin: 0;
  color: var(--stone-300);
  font-size: 14px;
  line-height: 1.5;
}

.page-hero {
  padding: 86px 24px 42px;
  color: #fff;
  background: radial-gradient(circle at 72% 15%, rgba(245, 158, 11, 0.28), transparent 28%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

.page-hero p {
  max-width: 760px;
  color: var(--stone-300);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-400);
  font-size: 14px;
}

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

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

.category-card h2 {
  font-size: 26px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  outline: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: var(--stone-900);
  background: #fff;
}

.filter-search input:focus,
.filter-selects select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.movie-hero {
  color: #fff;
  background: var(--stone-950);
}

.movie-hero-bg {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.movie-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--movie-bg) center / cover no-repeat;
  filter: blur(16px);
  transform: scale(1.08);
  opacity: 0.48;
}

.movie-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.78)), linear-gradient(0deg, var(--stone-950), transparent 52%);
}

.movie-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 78px 24px;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 36px;
  align-items: end;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  background: #000;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08), rgba(0, 0, 0, 0.48));
}

.player-play {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  color: var(--stone-950);
  font-size: 28px;
  background: var(--amber-500);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.movie-info {
  padding-bottom: 10px;
}

.movie-info p {
  color: var(--stone-200);
  font-size: 18px;
  line-height: 1.75;
}

.movie-meta span {
  background: rgba(255, 255, 255, 0.12);
}

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

.content-card,
.aside-card {
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.content-card + .content-card,
.aside-card + .aside-card {
  margin-top: 22px;
}

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

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

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags a,
.detail-tags span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--amber-600);
  background: var(--amber-100);
}

.aside-list {
  display: grid;
  gap: 14px;
}

.aside-link {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.aside-link img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.aside-link h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.aside-link span {
  color: var(--stone-500);
  font-size: 13px;
}

.empty-filter {
  display: none;
  padding: 30px;
  border-radius: 20px;
  color: var(--stone-600);
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.empty-filter.show {
  display: block;
}

.site-footer {
  color: var(--stone-300);
  background: var(--stone-950);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-about p {
  max-width: 540px;
  color: var(--stone-400, #a8a29e);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 17px;
}

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

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

.footer-bottom {
  padding: 22px;
  color: var(--stone-500);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1120px) {
  .quick-search {
    display: none;
  }

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

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

  .movie-hero-inner,
  .movie-content,
  .feature-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 64px;
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-content {
    padding: 110px 18px 90px;
  }

  .hero-search,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    flex-direction: column;
  }

  .main-section,
  .page-main {
    padding: 54px 18px;
  }

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

  .movie-grid,
  .movie-grid.three,
  .category-grid,
  .category-card-grid,
  .ranking-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .side-item,
  .ranking-row {
    grid-template-columns: 92px 1fr;
  }

  .ranking-row strong {
    display: none;
  }

  .side-item img,
  .ranking-row img {
    width: 92px;
  }

  .movie-hero-inner {
    padding: 46px 18px;
  }

  .movie-hero-bg {
    min-height: auto;
  }

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

@media (max-width: 520px) {
  .brand-text small {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .hero-search button {
    min-height: 46px;
  }

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