:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #08111f;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(34, 211, 238, 0.18);
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #60a5fa;
  --violet: #8b5cf6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.18), transparent 30rem),
    radial-gradient(circle at 90% 8%, rgba(96, 165, 250, 0.16), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #08111f 46%, #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;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  z-index: -1;
}

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;
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: #02131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.32);
}

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

.brand-text strong,
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.82);
}

.hero {
  position: relative;
  width: min(1320px, calc(100% - 32px));
  min-height: 680px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.20);
  border-radius: 34px;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.2s ease;
  transform: scale(1.04);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.92) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 48px));
  padding: 96px 0 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 640px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: 19px;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.genre-links span,
.genre-links a {
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.12);
  font-size: 12px;
  font-weight: 650;
}

.hero-actions,
.detail-copy .primary-btn {
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.filter-panel button,
.wide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn,
.filter-panel button {
  color: #02131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.24);
}

.ghost-btn {
  margin-left: 12px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.56);
}

.primary-btn:hover,
.ghost-btn:hover,
.filter-panel button:hover,
.wide-link:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  right: 44px;
  bottom: 38px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(226, 232, 240, 0.38);
}

.hero-controls button.active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-search {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 44px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 760px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(14px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  color: #e2e8f0;
  outline: none;
  background: rgba(15, 23, 42, 0.88);
  padding: 0 15px;
}

.hero-search button {
  border: 0;
  border-radius: 16px;
  padding: 0 22px;
  color: #02131d;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.content-section,
.page-shell,
.detail-content,
.player-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding-top: 70px;
}

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

.section-heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading p {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading.small {
  margin-bottom: 16px;
}

.section-heading.small h2 {
  font-size: 30px;
}

.section-more,
.wide-link {
  border: 1px solid rgba(34, 211, 238, 0.26);
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.08);
  white-space: nowrap;
}

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

.category-tile {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius);
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 28, 0.95));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.48);
}

.category-tile strong {
  display: block;
  color: #f8fafc;
  font-size: 22px;
}

.category-tile small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.tile-glow {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.16);
  filter: blur(12px);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(96, 165, 250, 0.08));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(2, 6, 23, 0.88) 100%);
}

.poster-type,
.rank-mark {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #022231;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.poster-type {
  right: 12px;
}

.rank-mark {
  left: 12px;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #02131d;
  background: rgba(34, 211, 238, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
  padding: 15px;
}

.movie-title {
  display: block;
  overflow: hidden;
  color: #f8fafc;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--cyan);
}

.movie-info p {
  display: -webkit-box;
  min-height: 42px;
  margin: 8px 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
}

.movie-meta a {
  color: var(--cyan);
}

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

.tag-row span {
  padding: 3px 7px;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(96, 165, 250, 0.18);
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.42);
}

.ranking-row:hover {
  border-color: rgba(34, 211, 238, 0.36);
}

.ranking-row span {
  grid-row: span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #022231;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.ranking-row strong {
  color: #f8fafc;
}

.ranking-row small {
  color: var(--muted);
}

.wide-link {
  width: 100%;
  margin-top: 16px;
}

.page-shell {
  padding-top: 44px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 56px;
  background:
    radial-gradient(circle at 92% 0%, rgba(34, 211, 238, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.86));
  box-shadow: var(--shadow);
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.compact-hero h1 {
  font-size: clamp(34px, 4vw, 58px);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 160px auto;
  gap: 12px;
  margin: 28px 0 0;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel button {
  min-width: 96px;
}

.library-links,
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.library-links a,
.pagination a {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

.library-links a:hover,
.pagination a:hover,
.pagination a.active {
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--cyan);
}

.pagination {
  margin-top: 34px;
}

.detail-page {
  padding-bottom: 20px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  margin-top: -72px;
  padding-top: 132px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 52%, rgba(2, 6, 23, 0.92) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.42), #020617 100%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  font-size: clamp(42px, 6vw, 78px);
}

.detail-one-line {
  max-width: 820px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta a,
.detail-meta span {
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.13);
  font-weight: 750;
}

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

.player-section {
  margin-top: -30px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #eff6ff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.64));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  color: #02131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.38);
}

.player-overlay strong {
  font-size: 18px;
}

.player-frame.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.player-message {
  margin: 14px 0 0;
  color: #fca5a5;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 44px;
}

.prose-card,
.info-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.prose-card h2,
.info-card h2 {
  margin: 0 0 16px;
  color: #f8fafc;
  font-size: 28px;
}

.prose-card p {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 17px;
}

.prose-card p:last-child {
  margin-bottom: 0;
}

.info-card dl {
  margin: 0;
}

.info-card div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 12px 0;
}

.info-card div:last-child {
  border-bottom: 0;
}

.info-card dt {
  color: var(--dim);
}

.info-card dd {
  margin: 0;
  color: #dbeafe;
}

.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.empty-state {
  margin-top: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 42px;
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
}

.empty-state h2 {
  margin: 0 0 10px;
}

.text-page .prose-card {
  max-width: 880px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 18px;
  padding: 18px;
  background: rgba(8, 145, 178, 0.10);
}

.contact-card a {
  color: var(--cyan);
  font-weight: 800;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(2, 6, 23, 0.64);
}

.footer-inner {
  display: flex;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 24px;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px 0 26px;
  color: var(--dim);
}

[hidden] {
  display: none !important;
}

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

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

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

  .ranking-panel {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .nav-shell {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand {
    min-width: auto;
  }

  .brand-text small {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.64);
  }

  .hero {
    min-height: 690px;
    border-radius: 24px;
  }

  .hero-copy {
    width: calc(100% - 32px);
    padding: 58px 0 0 24px;
  }

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

  .hero-summary {
    font-size: 16px;
  }

  .hero-search {
    left: 18px;
    right: 18px;
    bottom: 74px;
    grid-template-columns: 1fr;
  }

  .hero-controls {
    left: 24px;
    right: auto;
    bottom: 28px;
  }

  .content-section {
    padding-top: 46px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 16px;
  }

  .movie-grid,
  .featured-grid,
  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-info p,
  .tag-row {
    display: none;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }

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

  .detail-hero {
    min-height: auto;
    margin-top: 0;
    padding: 34px 0 44px;
  }

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

  .detail-poster {
    width: min(230px, 72%);
  }

  .detail-copy h1 {
    font-size: 38px;
  }

  .detail-one-line {
    font-size: 17px;
  }

  .player-section {
    margin-top: 0;
  }

  .prose-card,
  .info-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .featured-grid,
  .catalog-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .ghost-btn {
    margin-left: 0;
  }
}
