:root {
  color-scheme: light;
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --white: #ffffff;
  --shadow-soft: 0 16px 35px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--emerald-800), var(--teal-700));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(4, 120, 87, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 22px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo {
  font-size: 1.25rem;
  white-space: nowrap;
}

.logo-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20);
}

.logo:hover .logo-icon {
  transform: scale(1.08);
  transition: transform 180ms ease;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--emerald-100);
}

.header-search,
.mobile-search,
.big-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input {
  width: 240px;
  padding: 10px 16px 10px 40px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(209, 250, 229, 0.9);
}

.header-search input:focus,
.mobile-search input:focus {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(167, 243, 208, 0.32);
}

.search-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: var(--emerald-100);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.mobile-nav {
  display: none;
  padding: 18px 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-search input {
  width: 100%;
  padding-left: 16px;
}

.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: #000;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(16, 185, 129, 0.30), transparent 32%),
    linear-gradient(90deg, rgba(2, 44, 34, 0.92) 0%, rgba(6, 78, 59, 0.76) 42%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 48px;
  color: var(--white);
}

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

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--emerald-100);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.hero-desc {
  max-width: 720px;
  display: -webkit-box;
  margin: 24px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.90);
  font-size: 1.08rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button,
.big-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button,
.big-search button {
  color: var(--white);
  background: var(--emerald-600);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.34);
}

.primary-button:hover,
.big-search button:hover {
  background: var(--emerald-700);
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  text-align: center;
  background: rgba(0, 0, 0, 0.56);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 32px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  background: var(--emerald-200);
}

.quick-search-section {
  margin-top: -46px;
  position: relative;
  z-index: 5;
}

.quick-search-card,
.detail-card,
.sidebar-card,
.ranking-panel,
.category-card-large,
.filter-bar {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.quick-search-card h2,
.section-heading h2,
.page-hero h1,
.panel-head h2,
.detail-card h1 {
  margin: 0;
  color: var(--gray-900);
  line-height: 1.18;
}

.quick-search-card h2,
.section-heading h2,
.panel-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.quick-search-card p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.big-search {
  gap: 12px;
}

.big-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  color: var(--gray-800);
  background: var(--white);
}

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

.content-section {
  padding: 64px 0;
}

.muted-section {
  background: var(--stone-100);
}

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

.section-more,
.panel-head a {
  color: var(--emerald-700);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--emerald-900), var(--teal-600));
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.64));
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.65);
}

.year-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: rgba(220, 38, 38, 0.86);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-600);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.36);
}

.play-badge svg {
  fill: currentColor;
  stroke: none;
  transform: translateX(1px);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 0.98rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
  color: var(--emerald-700);
}

.card-meta,
.card-desc {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.84rem;
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--gray-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span,
.detail-tags span {
  color: var(--emerald-700);
  background: var(--emerald-100);
}

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

.category-tile,
.category-card-large {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-tile {
  display: grid;
  grid-template-rows: 150px 1fr;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.category-thumbs,
.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--emerald-900);
}

.category-cover-strip {
  grid-template-columns: repeat(5, 1fr);
  height: 185px;
}

.category-thumbs img,
.category-cover-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile > div:last-child,
.category-card-content {
  padding: 18px;
}

.category-tile h3,
.category-card-content h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
}

.category-tile p,
.category-card-content p {
  margin: 0 0 12px;
  color: var(--gray-600);
}

.category-tile span {
  color: var(--emerald-700);
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 38px 64px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--stone-50);
  transition: background 180ms ease, transform 180ms ease;
}

.ranking-item:hover {
  background: var(--emerald-100);
  transform: translateX(3px);
}

.ranking-index {
  grid-row: span 2;
  color: var(--emerald-700);
  font-weight: 900;
}

.ranking-item img {
  grid-row: span 2;
  width: 64px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  object-fit: cover;
}

.ranking-title {
  color: var(--gray-900);
  font-weight: 800;
}

.ranking-item small {
  color: var(--gray-500);
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 0%, rgba(16, 185, 129, 0.38), transparent 30%),
    linear-gradient(120deg, var(--emerald-900), var(--teal-700));
  padding: 72px 0;
}

.compact-page-hero {
  padding: 58px 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.page-hero .crumbs {
  margin-top: 22px;
}

.crumbs a:hover {
  color: var(--emerald-100);
}

.filter-bar {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px;
}

.filter-buttons,
.select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--emerald-700);
  font-weight: 800;
  background: var(--emerald-100);
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  color: var(--white);
  background: var(--emerald-700);
}

.select-row select {
  width: min(240px, 100%);
}

.filter-count {
  margin: 0;
  color: var(--gray-600);
  font-weight: 700;
}

.detail-breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
  background: var(--white);
}

.detail-breadcrumb .crumbs {
  color: var(--gray-600);
}

.detail-breadcrumb .crumbs a:hover {
  color: var(--emerald-700);
}

.detail-section {
  padding: 36px 0 72px;
}

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

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

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

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

.player-loading,
.player-start,
.player-controls,
.player-error {
  position: absolute;
  z-index: 2;
}

.player-loading {
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  font-weight: 800;
}

.player-shell.is-ready .player-loading,
.player-shell.is-playing .player-start {
  display: none;
}

.player-start {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-600);
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.42);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background 180ms ease;
}

.player-start:hover {
  background: var(--emerald-700);
  transform: translate(-50%, -50%) scale(1.08);
}

.player-start svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
  stroke: none;
  transform: translateX(3px);
}

.player-controls {
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls {
  opacity: 1;
}

.player-controls button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.player-controls button:hover {
  background: rgba(255, 255, 255, 0.30);
}

.player-error {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--white);
  text-align: center;
  background: rgba(0, 0, 0, 0.78);
}

.player-error[hidden] {
  display: none;
}

.detail-card,
.sidebar-card {
  padding: 24px;
}

.detail-card h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.detail-meta-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--stone-50);
}

.detail-meta-grid span {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.detail-meta-grid strong {
  color: var(--gray-900);
}

.detail-copy {
  margin-top: 24px;
}

.detail-copy h2,
.sidebar-card h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
}

.detail-copy p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.85;
}

.detail-copy .one-line {
  margin-bottom: 10px;
  color: var(--emerald-700);
  font-weight: 800;
  font-style: italic;
}

.detail-copy blockquote {
  margin: 0;
  padding: 20px;
  border-left: 4px solid var(--emerald-600);
  border-radius: var(--radius-md);
  color: var(--gray-700);
  background: var(--stone-50);
  line-height: 1.85;
}

.detail-sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 16px;
}

.full-width {
  width: 100%;
}

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

.related-list .movie-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  box-shadow: none;
  border: 1px solid #e5e7eb;
}

.related-list .card-poster {
  aspect-ratio: 3 / 4;
  height: 100%;
}

.related-list .card-body {
  padding: 12px;
}

.related-list .card-desc,
.related-list .tag-row,
.related-list .play-badge {
  display: none;
}

.site-footer {
  color: var(--gray-300);
  background: linear-gradient(145deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 52px 0;
}

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

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid p,
.footer-grid a {
  color: var(--gray-300);
  font-size: 0.92rem;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.footer-logo {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-bottom {
  padding: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--gray-500);
  text-align: center;
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 4px 0;
}

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

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .header-search input {
    width: 200px;
  }

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

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .hero {
    height: 640px;
  }

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

  .hero-poster {
    display: none;
  }

  .quick-search-card,
  .split-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .hero {
    height: 600px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-desc {
    -webkit-line-clamp: 4;
  }

  .hero-actions,
  .big-search,
  .select-row {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search-card {
    padding: 22px;
  }

  .content-section {
    padding: 44px 0;
  }

  .section-heading,
  .panel-head {
    align-items: start;
    flex-direction: column;
  }

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

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

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

  .player-controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 1.05rem;
  }

  .home-grid,
  .compact-grid,
  .listing-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .related-list .movie-card {
    grid-template-columns: 82px 1fr;
  }
}
