:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --bg-card-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(16, 185, 129, 0.38);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --purple: #a855f7;
  --amber: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 16%, rgba(168, 85, 247, 0.14), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

main {
  min-height: 72vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--emerald), #34d399 50%, var(--purple));
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 35px rgba(16, 185, 129, 0.32);
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

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

.nav-link {
  color: #d1d5db;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search,
.quick-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
}

.header-search input,
.mobile-search input,
.quick-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.header-search input {
  width: 220px;
  padding: 10px 4px 10px 18px;
}

.header-search button,
.mobile-search button,
.quick-search button {
  border: 0;
  color: white;
  background: var(--emerald);
  font-weight: 700;
  cursor: pointer;
}

.header-search button {
  width: 42px;
  height: 38px;
  font-size: 20px;
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  font-size: 20px;
}

.category-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 20px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.category-pill {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid rgba(16, 185, 129, 0.26);
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.08);
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-1px);
  background: rgba(16, 185, 129, 0.18);
}

.mobile-panel {
  display: none;
  padding: 14px 20px 22px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-search {
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 16px;
}

.mobile-search button {
  padding: 12px 16px;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #d1d5db;
}

.mobile-link.is-active {
  color: white;
  background: rgba(16, 185, 129, 0.22);
}

.hero-slider {
  position: relative;
  height: min(78vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  object-fit: cover;
  filter: brightness(0.38) blur(8px) saturate(1.15);
  transform: scale(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(16, 185, 129, 0.16), transparent 24rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.35) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.42) 42%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 72px 20px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 56px;
  align-items: center;
}

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

.hero-eyebrow,
.detail-kicker,
.wide-kicker {
  color: #6ee7b7;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-copy p {
  max-width: 720px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.78;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #d1fae5;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}

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

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), #34d399);
  color: white;
  box-shadow: 0 18px 45px rgba(16, 185, 129, 0.28);
}

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

.btn-plain {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.1);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(360px, 100%);
  justify-self: end;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(2deg);
}

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

.hero-poster span,
.play-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 60px;
  background: rgba(0, 0, 0, 0.18);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: white;
  font-size: 42px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.quick-search-section,
.content-section,
.rail-section,
.rank-section,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 20px;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(15, 23, 42, 0.92) 48%, rgba(168, 85, 247, 0.14));
  box-shadow: var(--shadow);
}

.quick-search-card h2,
.section-head h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.quick-search-card h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.quick-search-card p,
.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.quick-search input {
  flex: 1;
  padding: 15px 18px;
}

.quick-search button {
  padding: 15px 22px;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-more {
  flex: 0 0 auto;
  color: #6ee7b7;
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
}

.poster-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111827;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.32);
}

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

.poster-link:hover .poster-frame img {
  transform: scale(1.08);
}

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

.poster-link:hover .poster-frame::after {
  opacity: 1;
}

.duration-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.play-hover {
  opacity: 0;
  z-index: 3;
  font-size: 46px;
  transition: opacity 0.25s ease;
}

.poster-link:hover .play-hover {
  opacity: 1;
}

.card-body {
  padding: 13px 2px 0;
}

.card-body h3 {
  margin: 0 0 6px;
  color: white;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.poster-link:hover h3 {
  color: var(--emerald);
}

.card-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row,
.wide-meta,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row span:first-child,
.wide-meta span:first-child,
.detail-stats span:first-child {
  color: #fbbf24;
}

.rail-section {
  max-width: none;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.42), rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.42));
}

.rail-section > .section-head,
.rail-section > .wide-rail {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.wide-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 420px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.wide-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.wide-link {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  min-height: 168px;
}

.wide-cover {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

.rank-num {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--purple));
  color: white;
  font-weight: 900;
}

.wide-content {
  padding: 16px;
}

.wide-content h3 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wide-content p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card,
.category-overview-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #111827;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52);
  transition: transform 0.45s ease;
}

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

.category-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
}

.category-card span,
.overview-body span {
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-card h3,
.overview-body h2 {
  margin: 6px 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.overview-body p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
}

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

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

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 18%, rgba(16, 185, 129, 0.22), transparent 24rem),
    radial-gradient(circle at 78% 8%, rgba(168, 85, 247, 0.18), transparent 25rem),
    linear-gradient(135deg, #020617, #111827);
}

.page-hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 20px 58px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 7vw, 76px);
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

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

.breadcrumb a {
  color: #6ee7b7;
}

.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(150px, 200px);
  gap: 12px;
  margin-bottom: 24px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: white;
  outline: none;
  padding: 12px 16px;
}

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

[data-card].is-hidden {
  display: none;
}

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

.overview-link {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  height: 100%;
}

.overview-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  min-height: 260px;
}

.overview-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-shell {
  padding-top: 34px;
}

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

.watch-area,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: black;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: black;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.56);
}

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

.player-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--purple));
  color: white;
  font-size: 42px;
  box-shadow: 0 20px 54px rgba(16, 185, 129, 0.36);
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-one-line {
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.detail-stats {
  margin: 22px 0 0;
  font-size: 14px;
}

.text-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.text-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.text-block p {
  margin: 0;
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.9;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 128px;
}

.side-card {
  padding: 18px;
}

.side-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.side-card h2 {
  margin: 18px 0 14px;
  font-size: 22px;
  font-weight: 900;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.side-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  text-align: right;
  color: white;
  font-weight: 700;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 46px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
  font-weight: 800;
}

.related-section {
  padding-top: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.9);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.25fr);
  gap: 28px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

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

.footer-links a {
  color: #cbd5e1;
  font-weight: 600;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 16px 20px;
  color: var(--muted);
  text-align: center;
}

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

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

  .rank-list,
  .full-rank {
    grid-template-columns: 1fr;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 52px;
  }

  .hero-poster {
    justify-self: start;
    width: min(280px, 78vw);
  }

  .quick-search-card,
  .detail-grid,
  .footer-inner,
  .overview-link {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

@media (max-width: 720px) {
  .header-inner {
    padding: 12px 16px;
  }

  .brand-text {
    font-size: 17px;
  }

  .hero-slider {
    height: auto;
    min-height: 680px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-nav {
    display: none;
  }

  .quick-search-section,
  .content-section,
  .rail-section,
  .rank-section,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

  .poster-grid,
  .filter-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .wide-link {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .wide-rail {
    grid-auto-columns: minmax(286px, 88vw);
  }

  .wide-content h3 {
    font-size: 17px;
  }

  .page-hero-inner {
    padding: 54px 16px 44px;
  }

  .detail-content {
    padding: 22px;
  }

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

@media (max-width: 420px) {
  .poster-grid,
  .filter-grid,
  .compact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }

  .card-body h3 {
    font-size: 14px;
  }

  .card-body p {
    display: none;
  }

  .meta-row {
    gap: 6px;
    font-size: 12px;
  }

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

  .btn {
    width: 100%;
  }
}
