:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --green: #10b981;
  --green-bright: #34d399;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 8%, rgba(16, 185, 129, 0.18), transparent 32rem),
    radial-gradient(circle at 86% 2%, rgba(34, 211, 238, 0.13), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #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(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-narrow {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.28);
  color: #001014;
  font-weight: 900;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--soft);
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.text-link,
.section-more {
  transition: color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.text-link:hover,
.section-more:hover {
  color: var(--green-bright);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
}

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

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

.hero-slider {
  position: relative;
  min-height: 700px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.2) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.4) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1) 0%, rgba(2, 6, 23, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 56px;
  padding-block: 74px 96px;
}

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

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-label::before,
.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.hero h1 {
  margin: 18px 0 18px;
  color: white;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #001014;
  background: linear-gradient(135deg, var(--green-bright), var(--cyan));
  box-shadow: 0 18px 44px rgba(16, 185, 129, 0.28);
}

.btn-ghost,
.btn-panel {
  color: var(--text);
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.74);
}

.btn-ghost:hover,
.btn-panel:hover {
  border-color: rgba(52, 211, 153, 0.55);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(370px, 100%);
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.45));
}

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

.hero-controls {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(260px, 460px);
  align-items: center;
  gap: 24px;
  margin-top: -72px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.hero-search input,
.search-field input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
}

.hero-search input,
.search-field input {
  min-height: 48px;
  padding: 0 16px;
}

.hero-search button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: #001014;
  background: linear-gradient(135deg, var(--green-bright), var(--cyan));
  font-weight: 850;
  padding: 0 20px;
}

.hero-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chips a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 700;
}

.content-section,
.page-shell {
  padding-block: 72px;
}

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

.section-heading h2,
.ranking-title h2,
.page-hero h1,
.story-panel h2,
.related-panel h2 {
  margin: 8px 0 0;
  color: white;
  letter-spacing: -0.04em;
}

.section-heading h2,
.ranking-title h2 {
  font-size: clamp(28px, 4vw, 42px);
}

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

.section-more,
.text-link {
  color: var(--green-bright);
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62));
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(2, 6, 23, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow: 0 30px 74px rgba(2, 6, 23, 0.52);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .poster-link img,
.category-cover-grid:hover img,
.ranking-card:hover img {
  transform: scale(1.06);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(2, 6, 23, 0.82));
}

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.75);
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3,
.ranking-card h2 {
  margin: 8px 0 8px;
  color: white;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover {
  color: var(--green-bright);
}

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

.movie-card-compact h3 {
  font-size: 16px;
}

.movie-card-compact p {
  display: none;
}

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

.large-tags span {
  min-height: 34px;
  font-size: 14px;
}

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

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.16), transparent 48%),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.4);
}

.category-tile span {
  color: white;
  font-size: 22px;
  font-weight: 850;
}

.category-tile strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.ranking-title span {
  color: var(--green-bright);
  font-weight: 900;
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 38px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
}

.ranking-list img {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-num {
  color: var(--amber);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: white;
  font-weight: 750;
}

.rank-heat {
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 850;
}

.page-shell {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  padding: 62px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 34rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.78));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.04;
}

.compact-page-hero,
.category-page-hero,
.ranking-page-hero {
  margin-bottom: 42px;
}

.overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-cover-grid img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-overview-card h2 {
  margin: 6px 0 8px;
  color: white;
  font-size: 28px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(150px, 0.55fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel select {
  min-height: 48px;
  padding: 0 14px;
}

.empty-state {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 18px;
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

.ranking-stack {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ranking-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.38);
}

.ranking-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
}

.ranking-poster span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.76);
  color: var(--amber);
  font-weight: 900;
}

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

.heat-meter {
  justify-self: end;
  text-align: right;
}

.heat-meter span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.heat-meter strong {
  color: var(--green-bright);
  font-size: 26px;
}

.detail-shell {
  padding-block: 38px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.13), transparent 28rem),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
}

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

.detail-copy h1 {
  margin: 12px 0 14px;
  color: white;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.lead-text {
  margin: 0 0 20px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.85;
}

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

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 3px;
  color: white;
  font-size: 15px;
}

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

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 30px;
  overflow: hidden;
  background: black;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.18), transparent 22rem),
    rgba(2, 6, 23, 0.38);
  color: white;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-bright), var(--cyan));
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.32);
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid #001014;
}

.player-overlay strong {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(10px);
}

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

.story-panel,
.related-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
}

.story-panel h2,
.related-panel h2 {
  font-size: 28px;
}

.story-panel p {
  margin: 12px 0 26px;
  color: var(--soft);
  line-height: 1.95;
  font-size: 16px;
}

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

.related-panel .movie-card {
  display: grid;
  grid-template-columns: 98px 1fr;
}

.related-panel .poster-link {
  aspect-ratio: 2 / 3;
}

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

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(2, 6, 23, 0.96));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 36px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 14px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  color: var(--soft);
  font-weight: 700;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 18px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

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

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

  .ranking-panel {
    position: static;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .hero,
  .hero-slider,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 28px;
    padding-block: 58px 110px;
  }

  .hero-poster {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 15vw, 68px);
  }

  .hero-controls {
    grid-template-columns: 1fr;
    margin-top: -92px;
  }

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

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

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

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

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

  .heat-meter {
    justify-self: start;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container-narrow,
  .nav-shell,
  .mobile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

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

  .hero {
    min-height: 700px;
  }

  .hero-controls {
    padding: 14px;
  }

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

  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero,
  .story-panel,
  .related-panel {
    padding: 22px;
    border-radius: 24px;
  }

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

  .detail-meta-grid,
  .related-panel .movie-card {
    grid-template-columns: 1fr;
  }

  .player-frame {
    border-radius: 20px;
  }
}
