:root {
  --stone-950: #0c0a09;
  --stone-925: #14100e;
  --stone-900: #1c1917;
  --stone-850: #241f1c;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --red-950: #450a0a;
  --red-900: #7f1d1d;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --white: #ffffff;
  --shadow-deep: 0 28px 80px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(146, 64, 14, 0.28), transparent 32%),
    var(--stone-950);
  color: var(--stone-300);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.65;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    90deg,
    rgba(120, 53, 15, 0.98),
    rgba(127, 29, 29, 0.98),
    rgba(120, 53, 15, 0.98)
  );
  border-bottom: 1px solid rgba(180, 83, 9, 0.5);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.content-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-600), var(--red-700));
  color: var(--white);
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 14px 28px rgba(127, 29, 29, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  color: #fffbeb;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy em {
  color: rgba(254, 243, 199, 0.8);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #fffbeb;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(146, 64, 14, 0.58);
  color: var(--amber-100);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 1px solid rgba(180, 83, 9, 0.55);
  border-radius: 14px;
  padding: 10px 14px;
  outline: 0;
  color: #fffbeb;
  background: rgba(120, 53, 15, 0.42);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(253, 230, 138, 0.66);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 13px;
  padding: 10px 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--red-600));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(146, 64, 14, 0.45);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fffbeb;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(180, 83, 9, 0.45);
  padding: 14px 16px 18px;
  background: rgba(120, 53, 15, 0.96);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  margin: 4px 0;
  border-radius: 12px;
  color: var(--amber-100);
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(146, 64, 14, 0.62);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000;
}

.hero-track,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

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

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

.hero-bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.94),
      rgba(0, 0, 0, 0.72),
      rgba(0, 0, 0, 0.18)
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent 45%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding-right: min(42vw, 520px);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  color: var(--amber-400);
  background: rgba(146, 64, 14, 0.22);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.small {
  font-size: 12px;
  padding: 5px 10px;
}

.hero h1 {
  margin: 18px 0 18px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 700px;
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: 20px;
}

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

.hero-meta span,
.detail-meta span {
  color: var(--stone-300);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.66);
  border: 1px solid rgba(180, 83, 9, 0.3);
}

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

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

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--red-600));
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.22);
}

.ghost-btn,
.section-more {
  color: var(--amber-100);
  background: rgba(28, 25, 23, 0.7);
  border: 1px solid rgba(180, 83, 9, 0.42);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.36);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.52);
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-500);
}

.quick-entry {
  border-bottom: 1px solid rgba(180, 83, 9, 0.24);
  background: linear-gradient(
    90deg,
    rgba(120, 53, 15, 0.35),
    rgba(127, 29, 29, 0.22),
    rgba(120, 53, 15, 0.35)
  );
}

.quick-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px 0;
}

.quick-inner a {
  text-align: center;
  color: var(--amber-100);
  font-weight: 800;
  border: 1px solid rgba(180, 83, 9, 0.36);
  border-radius: 16px;
  padding: 14px;
  background: rgba(28, 25, 23, 0.42);
  transition:
    transform 0.25s ease,
    border 0.25s ease,
    background 0.25s ease;
}

.quick-inner a:hover {
  transform: translateY(-2px);
  border-color: var(--amber-500);
  background: rgba(146, 64, 14, 0.32);
}

.section-block {
  padding: 58px 0;
}

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

.section-heading h2,
.section-heading h3 {
  margin: 10px 0 0;
  color: #f5f5f4;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.16;
}

.compact-heading h3 {
  font-size: 18px;
  color: var(--stone-300);
  font-weight: 650;
  line-height: 1.55;
}

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

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

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(41, 37, 36, 0.88),
    rgba(28, 25, 23, 0.94)
  );
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s ease,
    border 0.3s ease,
    box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 26px 64px rgba(120, 53, 15, 0.26);
}

.poster-frame {
  position: relative;
  display: block;
  min-height: 270px;
  overflow: hidden;
  background-color: var(--stone-800);
  background-image:
    linear-gradient(135deg, rgba(120, 53, 15, 0.54), rgba(127, 29, 29, 0.3)),
    var(--cover-image);
  background-size: cover;
  background-position: center;
}

.movie-card-featured .poster-frame {
  min-height: 340px;
}

.movie-card-mini .poster-frame {
  min-height: 220px;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.86));
  opacity: 0.92;
}

.poster-fallback {
  position: absolute;
  inset: auto 18px 22px 18px;
  z-index: 1;
  color: rgba(255, 251, 235, 0.9);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
}

.type-badge,
.play-badge,
.rank-num {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.type-badge {
  left: 14px;
  top: 14px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--red-600));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.rank-num {
  right: 14px;
  top: 14px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-700), var(--amber-600));
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 9px;
  color: #f5f5f4;
  font-size: 20px;
  line-height: 1.28;
}

.card-body h3 a:hover {
  color: var(--amber-400);
}

.card-line {
  display: -webkit-box;
  min-height: 3.3em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--stone-400);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  gap: 7px;
  color: var(--stone-500);
  font-size: 13px;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(68, 64, 60, 0.42);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border: 1px solid rgba(180, 83, 9, 0.26);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(120, 53, 15, 0.2);
  font-size: 12px;
}

.large-tags span {
  font-size: 13px;
  padding: 6px 10px;
}

.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 32px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    180deg,
    rgba(41, 37, 36, 0.88),
    rgba(28, 25, 23, 0.94)
  );
  box-shadow: var(--shadow-card);
}

.ranking-panel h2 {
  margin: 0 0 18px;
  color: #f5f5f4;
}

.compact-list,
.ranking-columns {
  display: grid;
  gap: 12px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 16px;
  background: rgba(28, 25, 23, 0.66);
  transition:
    border 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(41, 37, 36, 0.9);
}

.compact-rank {
  width: 30px;
  color: var(--amber-400);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.compact-cover {
  width: 64px;
  height: 84px;
  border-radius: 12px;
  background-image:
    linear-gradient(135deg, rgba(120, 53, 15, 0.5), rgba(127, 29, 29, 0.24)),
    var(--cover-image);
  background-size: cover;
  background-position: center;
}

.compact-copy {
  min-width: 0;
}

.compact-copy strong,
.compact-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-copy strong {
  color: #f5f5f4;
  font-size: 16px;
}

.compact-copy em {
  color: var(--stone-400);
  font-size: 13px;
  font-style: normal;
}

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

.category-preview {
  padding: 22px;
  border: 1px solid rgba(180, 83, 9, 0.24);
  border-radius: var(--radius-xl);
  background: rgba(28, 25, 23, 0.62);
}

.page-hero,
.detail-hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(180, 83, 9, 0.22);
  background-image:
    linear-gradient(
      90deg,
      rgba(12, 10, 9, 0.96),
      rgba(28, 25, 23, 0.78),
      rgba(12, 10, 9, 0.64)
    ),
    linear-gradient(0deg, rgba(12, 10, 9, 0.92), transparent), var(--page-image);
  background-size: cover;
  background-position: center;
}

.slim-hero {
  min-height: 280px;
  background-image:
    radial-gradient(
      circle at 20% 0%,
      rgba(245, 158, 11, 0.18),
      transparent 35%
    ),
    linear-gradient(
      90deg,
      rgba(120, 53, 15, 0.52),
      rgba(127, 29, 29, 0.34),
      rgba(12, 10, 9, 0.96)
    );
}

.page-hero h1,
.detail-copy h1 {
  margin: 16px 0 12px;
  color: #f5f5f4;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

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

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

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

.category-tile {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(180, 83, 9, 0.28);
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s ease,
    border 0.3s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.7);
}

.tile-art {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.86)),
    var(--tile-one);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.category-tile:hover .tile-art {
  transform: scale(1.06);
}

.tile-copy {
  position: relative;
  z-index: 2;
}

.tile-copy strong,
.tile-copy em {
  display: block;
}

.tile-copy strong {
  color: var(--white);
  font-size: 26px;
  line-height: 1.15;
}

.tile-copy em {
  margin-top: 10px;
  color: var(--stone-300);
  font-style: normal;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid rgba(180, 83, 9, 0.26);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    180deg,
    rgba(41, 37, 36, 0.78),
    rgba(28, 25, 23, 0.88)
  );
  box-shadow: var(--shadow-card);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
}

.wide-filter-grid {
  grid-template-columns: 2fr repeat(4, 1fr);
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--stone-400);
  font-size: 13px;
  font-weight: 750;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(180, 83, 9, 0.36);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  color: #f5f5f4;
  background: rgba(12, 10, 9, 0.72);
}

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

.empty-state {
  margin: 20px 0 0;
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  color: var(--stone-400);
  background: rgba(12, 10, 9, 0.52);
}

.detail-hero {
  min-height: 560px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  min-height: 430px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: var(--radius-xl);
  background-image:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84)),
    var(--cover-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-deep);
  display: flex;
  align-items: end;
  padding: 22px;
}

.detail-poster span {
  color: var(--white);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.78);
}

.detail-copy {
  max-width: 820px;
}

.detail-line {
  margin: 0 0 20px;
  color: var(--stone-300);
  font-size: 20px;
}

.player-shell {
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: var(--radius-xl);
  padding: 12px;
  background: linear-gradient(
    180deg,
    rgba(41, 37, 36, 0.9),
    rgba(12, 10, 9, 0.98)
  );
  box-shadow: var(--shadow-deep);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--red-600));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  font-size: 34px;
  padding-left: 6px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding: 10px 0 20px;
}

.story-block {
  padding: 28px;
  border: 1px solid rgba(180, 83, 9, 0.24);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    180deg,
    rgba(41, 37, 36, 0.78),
    rgba(28, 25, 23, 0.92)
  );
}

.story-block h2 {
  margin: 0 0 14px;
  color: #f5f5f4;
  font-size: 26px;
}

.story-block p {
  margin: 0;
  color: var(--stone-300);
  text-align: justify;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(180, 83, 9, 0.24);
  background: rgba(12, 10, 9, 0.96);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 36px;
  padding: 38px 0;
}

.footer-brand {
  display: inline-block;
  color: var(--amber-400);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
  color: var(--stone-500);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--stone-400);
}

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

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--red-600));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

  .header-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

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

  .featured-grid,
  .category-preview-grid,
  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .header-search {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .movie-grid,
  .featured-grid,
  .small-grid,
  .category-tile-grid,
  .ranking-columns,
  .filter-grid,
  .wide-filter-grid,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    min-height: 360px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .content-wrap,
  .quick-inner {
    width: min(100% - 22px, 1280px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

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

  .poster-frame {
    min-height: 250px;
  }

  .movie-card-featured .poster-frame {
    min-height: 280px;
  }

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
