:root {
  color-scheme: light;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --emerald-600: #059669;
  --teal-600: #0d9488;
  --blue-600: #2563eb;
  --purple-600: #7c3aed;
  --orange-600: #ea580c;
  --amber-600: #d97706;
  --pink-600: #db2777;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.65;
}

body.mobile-nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.75));
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled,
.site-header.mobile-open {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
  width: min(100%, var(--container));
  min-height: 76px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand.compact {
  color: var(--white);
}

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

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

.brand-copy strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand-copy em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.brand.compact .brand-copy em {
  color: #cbd5e1;
}

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

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--green-600);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

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

.header-search input,
.mobile-nav input,
.search-panel input,
.search-panel select,
.filter-toolbar input {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 11px 82px 11px 16px;
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-600);
  cursor: pointer;
}

.header-search input:focus,
.mobile-nav input:focus,
.search-panel input:focus,
.search-panel select:focus,
.filter-toolbar input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.mobile-nav-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
  cursor: pointer;
}

.mobile-nav-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--slate-700);
}

.mobile-nav {
  display: none;
  padding: 16px 20px 24px;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.mobile-nav.is-open {
  display: grid;
  gap: 14px;
}

.mobile-nav a {
  font-weight: 800;
  color: var(--slate-700);
}

.mobile-nav form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mobile-nav input {
  padding: 10px 14px;
}

.mobile-nav button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-600);
  padding: 0 18px;
}

.site-main {
  min-height: 70vh;
  padding-top: 76px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #0f766e 48%, #111827);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 48px;
  width: 100%;
  margin: 0;
  padding: 50px max(20px, calc((100% - var(--container)) / 2)) 60px;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
  transition: opacity 0.8s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.42);
  transform: scale(1.04);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 22%, rgba(34, 197, 94, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(6, 78, 59, 0.92), rgba(15, 23, 42, 0.55));
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-kicker {
  color: var(--white);
  background: rgba(34, 197, 94, 0.92);
}

.hero-content h1 {
  max-width: 780px;
  margin: 18px 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #e2e8f0;
  backdrop-filter: blur(12px);
}

.hero-actions,
.small-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button,
.text-button,
.panel-more,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  border: 0;
  background: linear-gradient(135deg, var(--green-600), var(--emerald-600));
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.35);
  cursor: pointer;
}

.primary-button:hover,
.ghost-button:hover,
.panel-more:hover,
.share-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
}

.hero-poster {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(15, 23, 42, 0.7));
  box-shadow: var(--shadow-xl);
}

.hero-poster img,
.cover-media img,
.poster-card img,
.category-mosaic img,
.category-card-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster img {
  min-height: 480px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(15, 23, 42, 0.4);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

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

.stats-strip {
  width: min(calc(100% - 40px), var(--container));
  margin: -42px auto 54px;
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-strip div {
  min-height: 112px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.stats-strip strong {
  display: block;
  color: var(--green-700);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--slate-500);
  font-weight: 800;
}

.content-section {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 44px 0;
}

.alt-section {
  width: 100%;
  max-width: none;
  padding: 72px max(20px, calc((100% - var(--container)) / 2));
  background: linear-gradient(180deg, var(--white), var(--green-50));
}

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

.section-heading h2,
.panel-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--slate-500);
}

.section-heading > a,
.text-button,
.panel-more {
  color: var(--green-700);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  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(-8px);
  border-color: rgba(34, 197, 94, 0.38);
  box-shadow: var(--shadow-md);
}

.cover-media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 190px;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 25% 20%, rgba(34, 197, 94, 0.25), transparent 28%),
    linear-gradient(135deg, #064e3b, #111827);
}

.movie-card .cover-media img {
  transition: transform 0.5s ease;
}

.movie-card:hover .cover-media img {
  transform: scale(1.08);
}

.cover-media.image-missing img,
.hero-poster.image-missing img,
.poster-card.image-missing img {
  display: none;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: var(--white);
  text-align: center;
  font-weight: 900;
  line-height: 1.35;
}

.image-missing .cover-fallback {
  display: flex;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(34, 197, 94, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.duration-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
}

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

.card-meta-row,
.card-foot,
.ranking-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  min-height: 3.2em;
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

.movie-card h3 a:hover,
.ranking-content h2 a:hover,
.category-overview-body h2 a:hover {
  color: var(--green-700);
}

.movie-card p {
  min-height: 4.9em;
  margin: 0 0 13px;
  color: var(--slate-500);
  font-size: 14px;
}

.movie-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-tags span,
.tag-cloud a {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 12px;
  font-weight: 800;
}

.card-foot {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--slate-100);
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card {
  display: grid;
  grid-template-rows: 140px 1fr;
}

.category-card-covers,
.category-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--slate-900);
}

.category-card-covers img {
  min-height: 140px;
}

.category-card > div:last-child,
.category-overview-body {
  padding: 20px;
}

.category-card h3,
.category-overview-body h2,
.ranking-content h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.category-card p,
.category-overview-body p,
.ranking-content p {
  margin: 0 0 16px;
  color: var(--slate-500);
}

.category-card span {
  color: var(--green-700);
  font-weight: 900;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.sidebar-panel,
.detail-panel,
.player-card,
.poster-card,
.search-panel,
.filter-toolbar {
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-100);
}

.rank-num {
  grid-row: span 2;
  color: var(--green-700);
  font-weight: 950;
  font-size: 22px;
}

.ranking-list a {
  overflow: hidden;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-list em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.panel-more {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  background: var(--green-50);
}

.page-hero {
  width: min(calc(100% - 40px), var(--container));
  margin: 38px auto 0;
  padding: 54px;
  overflow: hidden;
  border-radius: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 22%, rgba(34, 197, 94, 0.38), transparent 30%),
    linear-gradient(135deg, #064e3b, #0f766e 52%, #0f172a);
  box-shadow: var(--shadow-md);
}

.compact-hero h1,
.category-page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.compact-hero p,
.category-page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

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

.filter-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
}

.filter-toolbar label {
  flex: 1;
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-weight: 900;
}

.filter-toolbar input {
  padding: 12px 16px;
  border-radius: 14px;
}

.filter-toolbar p {
  margin: 0;
  color: var(--slate-500);
}

.ranking-cards {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 72px 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ranking-number {
  color: var(--green-700);
  font-size: 32px;
  font-weight: 950;
  text-align: center;
}

.ranking-cover {
  min-height: 134px;
  border-radius: 18px;
}

.ranking-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 220px) minmax(160px, 220px) auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
  margin-bottom: 24px;
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-weight: 900;
}

.search-panel input,
.search-panel select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
}

.search-summary {
  margin-bottom: 22px;
  color: var(--slate-600);
  font-weight: 800;
}

.detail-layout {
  width: min(calc(100% - 40px), var(--container));
  margin: 30px auto 0;
}

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

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

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

.detail-main {
  display: grid;
  gap: 20px;
}

.player-card {
  overflow: hidden;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(34, 197, 94, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.player-start span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.player-card.is-playing .player-start {
  display: none;
}

.player-status {
  margin: 0;
  padding: 14px 18px;
  color: var(--slate-500);
  background: var(--slate-50);
  font-size: 14px;
}

.detail-panel {
  padding: 24px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.detail-title-row h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.share-button {
  min-width: max-content;
  min-height: 42px;
  padding: 0 16px;
  color: var(--green-700);
  background: var(--green-50);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 18px;
  background: var(--slate-50);
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  color: var(--slate-900);
  font-size: 16px;
}

.detail-meta-grid span {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 900;
}

.one-line {
  margin: 0 0 18px;
  color: var(--slate-700);
  font-size: 18px;
  font-weight: 800;
}

.prose-panel h2,
.sidebar-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.prose-panel p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.poster-card {
  min-height: 440px;
  overflow: hidden;
}

.poster-card.cover-media {
  aspect-ratio: 3 / 4;
}

.sidebar-panel {
  padding: 22px;
}

.sidebar-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.sidebar-panel dt {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 900;
}

.sidebar-panel dd {
  margin: 2px 0 0;
  color: var(--slate-800);
  font-weight: 800;
}

.sidebar-panel a {
  color: var(--green-700);
}

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

.site-footer {
  margin-top: 70px;
  color: var(--white);
  background: linear-gradient(135deg, #0f172a, #1e293b 58%, #052e1a);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 220px 220px;
  gap: 36px;
}

.footer-brand p {
  max-width: 540px;
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

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

.footer-bottom {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  text-align: center;
  font-size: 13px;
}

.category-emerald .category-pill,
.category-emerald .eyebrow {
  color: #047857;
  background: #d1fae5;
}

.category-teal .category-pill,
.category-teal .eyebrow {
  color: #0f766e;
  background: #ccfbf1;
}

.category-blue .category-pill,
.category-blue .eyebrow {
  color: #1d4ed8;
  background: #dbeafe;
}

.category-pink .category-pill,
.category-pink .eyebrow {
  color: #be185d;
  background: #fce7f3;
}

.category-orange .category-pill,
.category-orange .eyebrow {
  color: #c2410c;
  background: #ffedd5;
}

.category-amber .category-pill,
.category-amber .eyebrow {
  color: #b45309;
  background: #fef3c7;
}

.category-purple .category-pill,
.category-purple .eyebrow {
  color: #6d28d9;
  background: #ede9fe;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

  .hero-slide {
    grid-template-columns: 1fr 280px;
  }

  .two-column-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }
}

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

  .mobile-nav-button {
    display: block;
    margin-left: auto;
  }

  .brand-copy em {
    display: none;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .hero-poster {
    min-height: 260px;
    max-width: 320px;
  }

  .hero-poster img {
    min-height: 260px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .category-overview-card,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .category-mosaic {
    min-height: 210px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 66px;
    padding: 0 14px;
  }

  .site-main {
    padding-top: 66px;
  }

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

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

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

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .stats-strip,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    width: min(calc(100% - 28px), var(--container));
    padding: 34px 0;
  }

  .alt-section {
    padding: 48px 14px;
  }

  .section-heading,
  .filter-toolbar,
  .detail-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .page-hero {
    width: min(calc(100% - 28px), var(--container));
    padding: 32px 22px;
    border-radius: 24px;
  }

  .detail-layout {
    width: min(calc(100% - 28px), var(--container));
  }

  .detail-panel {
    padding: 20px;
  }

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

  .poster-card {
    min-height: 320px;
  }
}
