:root {
  color-scheme: dark;
  --bg: #090b13;
  --bg-soft: rgba(17, 24, 39, 0.72);
  --card: rgba(31, 41, 55, 0.62);
  --card-strong: rgba(31, 41, 55, 0.92);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --gold: #facc15;
  --pink: #ec4899;
  --purple: #9333ea;
  --blue: #60a5fa;
  --ring: rgba(250, 204, 21, 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(147, 51, 234, 0.22), transparent 34rem),
    linear-gradient(180deg, #111827 0%, #1f1235 42%, #0b1020 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.98), rgba(131, 24, 67, 0.96));
  color: #fff;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  position: relative;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.42);
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #111827;
}

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

.nav-link {
  padding: 10px 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: -18px;
  top: calc(100% + 12px);
  min-width: 172px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
}

.dropdown-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.search-panel input,
.search-panel select,
.filter-strip input {
  min-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 14px;
  outline: none;
  transition: border 0.2s ease, background 0.2s ease;
}

.top-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.filter-strip input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.16);
}

.top-search input::placeholder,
.search-panel input::placeholder,
.filter-strip input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.top-search button,
.filter-strip button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button:hover,
.filter-strip button:hover,
.filter-strip button.is-active {
  background: linear-gradient(90deg, var(--gold), var(--pink));
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.mobile-panel a {
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.hero-carousel {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(250, 204, 21, 0.18), transparent 23rem),
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(17, 24, 39, 0.62) 52%, rgba(17, 24, 39, 0.18)),
    linear-gradient(0deg, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.04) 54%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 80px;
  width: min(660px, calc(100% - 48px));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.hero-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 24px var(--gold);
}

.hero-content h1,
.page-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.category-hero p,
.detail-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.24);
  color: #e9d5ff;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 700;
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #eab308, #ec4899);
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 8px;
}

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

.hero-dots button.active {
  background: linear-gradient(90deg, var(--gold), var(--pink));
}

.page-main,
.detail-main {
  min-height: 60vh;
}

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

.site-section.tinted {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
}

.site-section.emerald {
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.28), rgba(19, 78, 74, 0.24));
}

.site-section.blue {
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.28), rgba(49, 46, 129, 0.24));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--soft);
  line-height: 1.7;
}

.section-heading a {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.compact-heading {
  align-items: start;
  margin-bottom: 20px;
}

.compact-heading h2 {
  font-size: 1.65rem;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 45px rgba(2, 6, 23, 0.2);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  background: var(--card-strong);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.18), 0 22px 55px rgba(147, 51, 234, 0.24);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.36), rgba(236, 72, 153, 0.16));
}

.movie-card.poster .poster-frame {
  aspect-ratio: 2 / 3;
}

.movie-card.landscape .poster-frame,
.movie-card.wide .poster-frame {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.compact-card:hover img,
.ranking-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 56%);
  opacity: 0.76;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.movie-card-body strong {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--soft);
  font-size: 0.76rem;
}

.movie-line {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card .tag-row {
  margin-top: auto;
  gap: 6px;
}

.movie-card .tag-row span {
  padding: 5px 8px;
  font-size: 0.7rem;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.scroll-row .movie-card {
  width: 320px;
  flex: 0 0 auto;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: start;
}

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

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

.category-tile {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.16), 0 18px 42px rgba(236, 72, 153, 0.16);
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 96px;
  overflow: hidden;
}

.category-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.category-copy strong {
  font-size: 1.18rem;
  font-weight: 900;
}

.category-copy em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.category-copy span:last-child {
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
}

.rank-panel,
.related-panel,
.text-panel,
.search-panel,
.player-section {
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.rank-panel {
  padding: 22px;
  position: sticky;
  top: 96px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 12px;
  align-items: center;
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.11);
}

.rank-row span {
  grid-row: span 2;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 900;
}

.rank-row strong {
  line-height: 1.35;
}

.rank-row em {
  color: var(--soft);
  font-style: normal;
  font-size: 0.82rem;
}

.page-hero,
.category-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 80px max(16px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.22), transparent 20rem),
    linear-gradient(135deg, rgba(88, 28, 135, 0.86), rgba(15, 23, 42, 0.94));
}

.small-hero,
.rank-hero,
.search-hero {
  min-height: 320px;
}

.category-hero {
  min-height: 470px;
}

.category-hero > img,
.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero-shade,
.detail-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(17, 24, 39, 0.64), rgba(17, 24, 39, 0.2)),
    linear-gradient(0deg, rgba(17, 24, 39, 1), transparent 55%);
}

.category-hero-copy,
.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--soft);
  font-size: 0.9rem;
}

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

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.detail-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 92px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

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

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

.detail-copy h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.player-section {
  padding: 22px;
  margin-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #030712;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.54));
}

.play-layer span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  font-size: 2rem;
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
  transition: transform 0.2s ease;
}

.play-layer:hover span {
  transform: scale(1.08);
}

.player-shell.is-playing .play-layer {
  display: none;
}

.text-panel {
  padding: 28px;
  color: var(--muted);
  line-height: 1.9;
}

.text-panel h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.55rem;
}

.text-panel p + h2 {
  margin-top: 30px;
}

.inner-section {
  width: 100%;
  padding: 32px 0 0;
}

.related-panel {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.related-panel h2 {
  margin: 0 0 18px;
  font-size: 1.55rem;
}

.compact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.compact-card img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.compact-card span {
  min-width: 0;
  padding-right: 12px;
}

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

.compact-card em {
  margin-top: 6px;
  color: var(--soft);
  font-style: normal;
  font-size: 0.82rem;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 20px;
  padding: 12px;
  background: rgba(31, 41, 55, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-card:hover {
  transform: translateX(4px);
  background: rgba(31, 41, 55, 0.9);
}

.ranking-number {
  color: var(--gold);
  text-align: center;
  font-size: 1.45rem;
  font-weight: 900;
}

.ranking-card img {
  width: 92px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

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

.ranking-copy strong {
  font-size: 1.08rem;
}

.ranking-copy em {
  margin-top: 6px;
  color: var(--soft);
  font-style: normal;
  font-size: 0.84rem;
}

.ranking-copy span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.ranking-tag {
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.22);
  color: #e9d5ff;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 160px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-width: 0;
  border-radius: 14px;
}

.search-panel select {
  background: rgba(255, 255, 255, 0.1);
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  color: var(--soft);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.8), #030712);
  color: var(--muted);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-inner p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px 24px;
  color: var(--soft);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 1120px) {
  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .top-search {
    display: none;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header-inner {
    min-height: 64px;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    bottom: 76px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .landscape-grid,
  .category-grid,
  .all-categories,
  .split-section,
  .detail-content-grid,
  .footer-inner,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .related-panel {
    position: static;
  }

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

  .detail-poster {
    width: min(260px, 74vw);
  }

  .ranking-card {
    grid-template-columns: 44px 82px minmax(0, 1fr);
  }

  .ranking-tag {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 540px) {
  .site-header-inner {
    width: min(100% - 24px, 1180px);
    gap: 12px;
  }

  .site-logo {
    font-size: 1.2rem;
  }

  .hero-carousel {
    height: 86vh;
  }

  .hero-content h1,
  .page-hero h1,
  .category-hero h1,
  .detail-copy h1 {
    font-size: 2.45rem;
  }

  .site-section {
    width: min(100% - 24px, 1180px);
    padding: 52px 0;
  }

  .poster-grid {
    gap: 14px;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 12px;
  }

  .player-section,
  .text-panel,
  .related-panel,
  .rank-panel {
    border-radius: 18px;
    padding: 16px;
  }
}
