:root {
  color-scheme: light;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-500: #14b8a6;
  --cyan-500: #06b6d4;
  --rose-500: #f43f5e;
  --amber-500: #f59e0b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 22px 55px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 30px 90px rgba(15, 23, 42, 0.22);
  --radius-lg: 18px;
  --radius-xl: 28px;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34rem),
    linear-gradient(135deg, #f8fafc 0%, #ecfdf5 48%, #e0f2fe 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-500), var(--cyan-500));
  box-shadow: 0 16px 35px rgba(4, 120, 87, 0.28);
}

.nav-shell {
  width: min(var(--page-width), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  background: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 14px 30px rgba(15, 23, 42, 0.16);
  transform: translateZ(0);
  transition: transform 0.22s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
}

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

.brand-copy strong {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: rgba(236, 253, 245, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
}

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

.desktop-nav > a,
.nav-menu > button {
  border: 0;
  padding: 8px 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.18s ease, transform 0.18s ease;
}

.desktop-nav > a:hover,
.nav-menu > button:hover {
  color: var(--emerald-100);
  transform: translateY(-1px);
}

.nav-menu {
  position: relative;
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 210px;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  color: var(--slate-700);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-menu:hover .nav-menu-panel,
.nav-menu:focus-within .nav-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--slate-700);
  font-weight: 700;
}

.nav-menu-panel a:hover {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.header-search {
  position: relative;
  width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 7px 10px;
}

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

.header-search button {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--emerald-700);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 1.75rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: var(--white);
  font-weight: 700;
}

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

.hero-carousel {
  position: relative;
  height: min(72vh, 640px);
  min-height: 540px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(1.05);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(16, 185, 129, 0.35), transparent 30rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.24) 45%, rgba(2, 6, 23, 0.74));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--page-width), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.eyebrow,
.detail-category,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(226, 232, 240, 0.94);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.rank-meta span,
.card-kicker span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-tags span,
.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero-tags span:first-child,
.detail-category {
  color: var(--white);
  background: linear-gradient(90deg, var(--emerald-500), var(--teal-500));
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  border-radius: 999px;
  padding: 16px 28px;
  color: var(--white);
  background: linear-gradient(90deg, var(--emerald-500), var(--teal-500));
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.35);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 52px rgba(16, 185, 129, 0.42);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: min(var(--page-width), calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 1.8rem;
}

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

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

.hero-dots button.is-active {
  width: 30px;
  background: var(--white);
}

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

.section-soft {
  padding-top: 58px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-title > span {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 1.35rem;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--slate-500);
  line-height: 1.65;
}

.section-title-row {
  justify-content: space-between;
}

.section-title-row > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title-row > a {
  color: var(--emerald-700);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: var(--shadow-md);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  height: 270px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.26), rgba(6, 182, 212, 0.22)),
    var(--slate-200);
}

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

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent);
}

.poster-play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--emerald-500), var(--teal-500));
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.34);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), #ec4899);
  box-shadow: 0 14px 26px rgba(244, 63, 94, 0.34);
}

.card-body {
  padding: 18px;
}

.card-kicker {
  margin-bottom: 10px;
}

.card-kicker span {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.card-body h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.card-body h2 a:hover,
.rank-info h2 a:hover {
  color: var(--emerald-700);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.25em;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--slate-500);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.category-chip {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-chip strong {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.category-chip span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.55;
}

.from-emerald {
  background: linear-gradient(135deg, #059669, #14b8a6);
}

.from-cyan {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.from-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.from-rose {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}

.from-amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.from-pink {
  background: linear-gradient(135deg, #db2777, #f472b6);
}

.from-lime {
  background: linear-gradient(135deg, #65a30d, #22c55e);
}

.from-violet {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.from-orange {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.from-teal {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.from-indigo {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
}

.from-slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.page-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 22%, rgba(20, 184, 166, 0.35), transparent 28rem),
    linear-gradient(135deg, #064e3b, #0f766e 42%, #0891b2);
}

.compact-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
}

.compact-hero > div {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.compact-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.compact-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.75;
}

.category-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-main {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-card-main span {
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 900;
}

.category-card-main strong {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  line-height: 1.6;
}

.category-card-posters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.category-card-posters a {
  position: relative;
  height: 100px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.category-card-posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-posters span {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 8px 8px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), transparent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 180px;
  gap: 14px;
  align-items: end;
}

.filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 900;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  outline: none;
  padding: 13px 14px;
  background: var(--white);
  color: var(--slate-900);
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

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

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.66) 48%, rgba(2, 6, 23, 0.36)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
  backdrop-filter: blur(2px);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

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

.detail-copy h1 {
  max-width: 820px;
  margin: 8px 0 20px;
  font-size: clamp(2.6rem, 5.8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 26px;
  color: rgba(226, 232, 240, 0.94);
  font-size: 1.18rem;
  line-height: 1.82;
}

.detail-tags {
  margin-top: 18px;
}

.player-section {
  scroll-margin-top: 80px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.22), transparent 23rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.38));
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--emerald-700);
  background: var(--white);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.32);
  font-size: 2rem;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.82);
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.text-panel {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}

.text-panel p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
}

.rank-shell {
  max-width: 980px;
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 72px 108px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), #ec4899);
  font-size: 1.25rem;
  font-weight: 900;
}

.rank-cover {
  height: 130px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--slate-200);
}

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

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.rank-info p {
  margin: 0 0 12px;
  color: var(--slate-500);
  line-height: 1.7;
}

.rank-meta span {
  color: var(--slate-700);
  background: var(--slate-100);
}

.site-footer {
  margin-top: 84px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b 48%, #0f172a);
}

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

.footer-brand {
  color: var(--white);
  font-size: 1.15rem;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p {
  margin: 16px 0 0;
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer a:hover {
  color: #6ee7b7;
}

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

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

  .mobile-toggle {
    display: block;
  }

  .movie-grid-featured,
  .movie-grid-compact,
  .category-chip-grid,
  .category-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .detail-poster img {
    height: 350px;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: 64px;
  }

  .brand-copy small,
  .header-search {
    display: none;
  }

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

  .hero-copy h1,
  .detail-copy h1,
  .compact-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-controls {
    justify-content: center;
  }

  .section-shell {
    padding-top: 48px;
  }

  .section-title,
  .section-title-row,
  .section-title-row > div {
    align-items: flex-start;
  }

  .section-title-row {
    flex-direction: column;
    gap: 12px;
  }

  .movie-grid-featured,
  .movie-grid-compact,
  .category-chip-grid,
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .poster-frame,
  .movie-card-compact .poster-frame {
    height: 220px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 52px 86px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 44px;
    height: 44px;
  }

  .rank-cover {
    height: 105px;
  }
}

@media (max-width: 520px) {
  .movie-grid-featured,
  .movie-grid-compact,
  .category-chip-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame,
  .movie-card-compact .poster-frame {
    height: 280px;
  }

  .hero-copy p,
  .compact-hero p,
  .detail-one-line {
    font-size: 1rem;
  }

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

  .rank-cover {
    height: 220px;
  }
}
