:root {
  --canyon-950: #170f0a;
  --canyon-900: #24150d;
  --canyon-800: #3a2315;
  --canyon-700: #56331c;
  --canyon-600: #744423;
  --earth-900: #2b241c;
  --earth-800: #43382b;
  --earth-700: #5f5140;
  --earth-600: #7d6a54;
  --sand-100: #fbf2dc;
  --sand-50: #fff8ea;
  --gold-600: #b7791f;
  --gold-500: #d69e2e;
  --gold-400: #ecc94b;
  --gold-300: #f6e05e;
  --forest-700: #276749;
  --forest-100: #dff3e8;
  --white: #ffffff;
  --page: #fffaf0;
  --text: #281b10;
  --muted: #7a6a58;
  --shadow: 0 14px 35px rgba(49, 28, 10, 0.16);
  --shadow-lg: 0 24px 60px rgba(35, 20, 8, 0.24);
  --radius: 22px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 45%, #fff4d5 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(120deg, rgba(36, 21, 13, 0.96), rgba(67, 56, 43, 0.96), rgba(58, 35, 21, 0.96));
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #3a2315;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 10px 22px rgba(214, 158, 46, 0.35);
}

.brand-name {
  font-size: clamp(18px, 2.4vw, 25px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-300);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  min-width: 220px;
  transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(236, 201, 75, 0.18);
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #2b1b0b;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel-inner {
  padding: 16px 0 22px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-link {
  padding: 11px 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--gold-300);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
  background: var(--canyon-900);
}

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

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

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 34%, rgba(236, 201, 75, 0.30), transparent 34%),
    linear-gradient(90deg, rgba(23, 15, 10, 0.96) 0%, rgba(23, 15, 10, 0.72) 45%, rgba(23, 15, 10, 0.42) 100%),
    linear-gradient(0deg, rgba(23, 15, 10, 0.98), transparent 35%);
}

.hero-content {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.1fr 0.62fr;
  align-items: center;
  gap: 50px;
  padding: 58px 0 88px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gold-300);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(236, 201, 75, 0.28);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-line {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #24150d;
  background: rgba(246, 224, 94, 0.92);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: #24150d;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 14px 30px rgba(214, 158, 46, 0.35);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
}

.button.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  color: #24150d;
  background: var(--gold-300);
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  color: var(--white);
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--gold-300);
}

.quick-search-block,
.content-section,
.filter-panel,
.detail-card,
.side-card,
.prose-page,
.category-overview-card {
  border: 1px solid rgba(116, 68, 35, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-search-block {
  margin: -44px 0 56px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
}

.quick-search-block h2,
.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 10px 0;
  color: var(--canyon-900);
}

.quick-search-block p,
.section-heading p,
.page-hero p {
  color: var(--muted);
  line-height: 1.75;
}

.big-search input {
  color: var(--text);
  background: var(--sand-50);
  border-color: rgba(116, 68, 35, 0.18);
  flex: 1;
}

.big-search input::placeholder {
  color: var(--muted);
}

.content-section {
  margin: 0 0 56px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
}

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

.section-heading h2 {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.section-more {
  flex-shrink: 0;
  color: var(--canyon-700);
  font-weight: 900;
  border-bottom: 2px solid var(--gold-400);
}

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

.all-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 60px;
}

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(49, 28, 10, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card.is-hidden {
  display: none;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--canyon-800), var(--sand-100));
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 65%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.play-chip,
.year-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  left: 50%;
  top: 50%;
  color: #25160a;
  background: var(--gold-300);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-chip {
  top: 12px;
  right: 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  color: #24150d;
  background: var(--gold-300);
}

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--canyon-900);
}

.movie-body h3 a:hover {
  color: var(--gold-600);
}

.movie-line {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  margin: 0 0 12px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--earth-600);
  font-size: 12px;
  margin-bottom: 12px;
}

.movie-meta a {
  color: var(--forest-700);
  font-weight: 900;
}

.tag-row span {
  color: var(--forest-700);
  background: var(--forest-100);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 15, 10, 0.88), rgba(23, 15, 10, 0.2));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 24px;
  margin-bottom: 8px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.55;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(246, 224, 94, 0.22), transparent 30%),
    linear-gradient(135deg, var(--canyon-900), var(--earth-800));
}

.page-hero.compact {
  padding: 74px 0;
  margin-bottom: 36px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
  margin: 0 0 26px;
  border-radius: var(--radius);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--canyon-900);
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(116, 68, 35, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--sand-50);
  outline: none;
}

.filter-count {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  padding: 20px;
  border-radius: var(--radius);
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.overview-covers img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 13px;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
  color: var(--canyon-900);
  font-size: 28px;
}

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

.category-overview-card span {
  display: inline-flex;
  color: var(--forest-700);
  font-weight: 900;
}

.detail-top {
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(116, 68, 35, 0.10);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--canyon-700);
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 28px;
}

.player-shell {
  margin-bottom: 24px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #080604;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  color: var(--white);
  text-align: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72));
}

.player-overlay.hidden {
  display: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  color: #24150d;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 16px 36px rgba(214, 158, 46, 0.36);
  font-size: 32px;
}

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

.player-overlay em {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
}

.detail-card,
.side-card,
.prose-page {
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
}

.detail-card h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: var(--earth-700);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta-row span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--canyon-700);
  background: var(--sand-100);
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-tags a {
  color: var(--forest-700);
  background: var(--forest-100);
}

.detail-card section {
  border-top: 1px solid rgba(116, 68, 35, 0.12);
  padding-top: 22px;
  margin-top: 22px;
}

.detail-card h2,
.side-card h2,
.prose-page h2 {
  color: var(--canyon-900);
}

.detail-card p,
.prose-page p,
.prose-page li {
  color: var(--earth-700);
  line-height: 1.88;
  font-size: 17px;
}

.detail-side {
  position: relative;
}

.poster-card {
  position: sticky;
  top: 104px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;
}

.info-list dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  margin: 0;
}

.info-list dt {
  color: var(--muted);
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: var(--text);
}

.prose-page {
  max-width: 900px;
  margin-bottom: 60px;
}

.prose-page h2 {
  margin-top: 0;
}

.site-footer {
  margin-top: 40px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 0%, rgba(236, 201, 75, 0.20), transparent 30%),
    linear-gradient(135deg, var(--canyon-900), var(--earth-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
  padding: 48px 0 32px;
}

.footer-grid h2 {
  color: var(--gold-300);
  font-size: 18px;
  margin: 0 0 16px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

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

.footer-grid a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

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

  .header-inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .quick-search-block,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    align-content: center;
    padding-top: 38px;
  }

  .hero-poster {
    max-width: 250px;
  }

  .hero-actions,
  .section-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .section-more {
    width: 100%;
    text-align: center;
  }

  .big-search,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .big-search input,
  .mobile-search input {
    min-width: 0;
    width: 100%;
  }

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

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

  .detail-card,
  .side-card,
  .content-section,
  .quick-search-block {
    padding: 18px;
  }

  .info-list dl {
    grid-template-columns: 1fr;
  }
}
