:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(245, 158, 11, 0.36);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --dim: #64748b;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 4%, rgba(245, 158, 11, 0.15), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(14, 165, 233, 0.10), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(2, 6, 23, 0.84);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  color: #111827;
  font-weight: 900;
  box-shadow: 0 14px 42px rgba(245, 158, 11, 0.36);
}

.brand.small .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.nav-link {
  padding: 9px 15px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.24);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: white;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-panel.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.15) 45%, rgba(2, 6, 23, 0.7) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.58fr);
  align-items: center;
  gap: 44px;
}

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

.eyebrow,
.page-hero span,
.section-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 20px 0 18px;
  max-width: 900px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 950;
  background: linear-gradient(90deg, #fff7ed 0%, #fde68a 48%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 13px 24px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.32);
}

.ghost-btn {
  min-height: 48px;
  padding: 12px 22px;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
}

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

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

.hero-poster:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 56%);
  z-index: 1;
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.94);
  color: #111827;
  font-size: 24px;
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.42);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dots button {
  width: 32px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(203, 213, 225, 0.42);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dots button.active {
  width: 54px;
  background: linear-gradient(90deg, #fbbf24, #f97316);
}

.quick-strip {
  width: min(1240px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.quick-strip a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition: all 0.25s ease;
}

.quick-strip a:hover {
  color: #111827;
  background: #fbbf24;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.page-top {
  padding-top: 118px;
}

.page-shell > section + section {
  margin-top: 76px;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.player-title h2,
.detail-block h2 {
  margin: 10px 0 0;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

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

.section-head p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-link {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.26);
  background: rgba(245, 158, 11, 0.10);
}

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

.featured-grid .movie-card:nth-child(1),
.featured-grid .movie-card:nth-child(6),
.featured-grid .movie-card:nth-child(11) {
  grid-column: span 2;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, border 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.94);
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.library-grid .poster-frame {
  aspect-ratio: 3 / 4;
}

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

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

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

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

.duration,
.rank-badge,
.play-dot {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.duration {
  right: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(2, 6, 23, 0.74);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f97316);
  font-size: 12px;
}

.play-dot {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 50%;
  color: #111827;
  background: rgba(251, 191, 36, 0.94);
  opacity: 0;
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.36);
  transition: all 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
}

.card-body h2 {
  margin: 9px 0 7px;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card-body p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.category-card {
  position: relative;
  min-height: 178px;
  padding: 24px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 16rem),
    rgba(15, 23, 42, 0.78);
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.26), transparent 16rem),
    rgba(15, 23, 42, 0.96);
}

.category-card span {
  color: rgba(251, 191, 36, 0.55);
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.category-card h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: #fde68a;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.search-field {
  flex: 1 1 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pills button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.filter-pills button.active,
.filter-pills button:hover {
  color: #111827;
  background: #fbbf24;
  border-color: #fbbf24;
}

.rank-section {
  display: grid;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.96);
}

.rank-number {
  width: 42px;
  color: #fbbf24;
  font-size: 20px;
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  width: 76px;
  height: 52px;
  object-fit: cover;
  border-radius: 13px;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.score {
  color: #111827;
  background: #fbbf24;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 950;
}

.page-hero {
  padding: 56px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 15%, rgba(245, 158, 11, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  box-shadow: var(--shadow);
}

.page-hero.compact h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.page-hero p {
  max-width: 820px;
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.detail-page {
  min-height: 100vh;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.34;
}

.detail-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 46%, rgba(2, 6, 23, 0.48) 100%),
    linear-gradient(0deg, #020617 0%, transparent 52%, rgba(2, 6, 23, 0.72) 100%);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 108px;
}

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

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(36px, 5.8vw, 72px);
}

.detail-info p {
  max-width: 860px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #e2e8f0;
  font-weight: 800;
  font-size: 13px;
}

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

.detail-content {
  padding-top: 48px;
}

.player-section {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  color: #111827;
}

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

.player-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 18rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde68a, #f97316);
  font-size: 34px;
  box-shadow: 0 24px 70px rgba(245, 158, 11, 0.44);
}

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

.player-title {
  padding: 22px 24px 26px;
}

.player-title h2 {
  font-size: 28px;
}

.player-title p {
  margin: 10px 0 0;
  color: var(--muted);
}

.detail-block {
  padding: 28px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.detail-block h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-block p {
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 17px;
}

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

.info-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
}

.info-grid strong {
  color: var(--muted);
  font-size: 12px;
}

.info-grid a {
  color: #fbbf24;
}

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

.footer-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 36px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

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

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

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .movie-grid,
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 108px;
    align-items: end;
    padding-bottom: 110px;
  }

  .section-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .library-grid,
  .category-grid,
  .small-grid,
  .rank-list,
  .footer-shell,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid .movie-card:nth-child(1),
  .featured-grid .movie-card:nth-child(6),
  .featured-grid .movie-card:nth-child(11) {
    grid-column: auto;
  }

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

  .detail-poster {
    max-width: 280px;
  }

  .page-hero {
    padding: 32px 22px;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .mobile-panel,
  .page-shell,
  .detail-shell,
  .quick-strip,
  .footer-shell {
    width: min(100% - 22px, 1240px);
  }

  .brand-text em {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: auto 62px minmax(0, 1fr);
  }

  .rank-item .score {
    grid-column: 3;
    width: fit-content;
  }
}
