:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-red: #dc2626;
  --brand-yellow: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 12px 28px rgba(17, 24, 39, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 40%, #fff1f2 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 20px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-red));
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.24);
  color: #ffffff;
}

.brand-play {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
  transform: translateX(2px);
}

.brand-text {
  background: linear-gradient(90deg, var(--brand), var(--brand-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-weight: 700;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-current {
  color: var(--brand);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--brand);
  align-items: center;
  justify-content: center;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: block;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.mobile-toggle span::before {
  top: -7px;
}

.mobile-toggle span::after {
  top: 7px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: #374151;
  font-weight: 700;
}

.main-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: linear-gradient(120deg, #ea580c, #dc2626, #f59e0b);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(251, 146, 60, 0.5), transparent 32%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.82));
}

.hero-layer {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 88px 16px 64px;
}

.hero-copy {
  width: min(900px, 100%);
  color: #ffffff;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-subtitle {
  margin: 0 auto 24px;
  width: min(760px, 100%);
  font-size: clamp(18px, 2.4vw, 26px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.hero-feature {
  display: none;
  margin: 0 auto;
  width: min(720px, 100%);
}

.hero-feature.is-active {
  display: block;
}

.hero-feature h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
}

.hero-feature p {
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-red));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
}

.btn-light {
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 66px 0;
}

.section-tight {
  padding: 36px 0 66px;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.section-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #ffedd5;
  color: var(--brand);
  font-weight: 950;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -42px;
  position: relative;
  z-index: 5;
}

.stat-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 237, 213, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  color: var(--brand);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid #ffedd5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.11), rgba(220, 38, 38, 0.08));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.category-card span {
  display: block;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.filter-panel {
  margin-bottom: 24px;
  display: grid;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #ffedd5;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

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

.filter-buttons button,
.view-buttons button {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
  padding: 10px 15px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-buttons button:hover,
.view-buttons button:hover,
.filter-buttons button.is-active,
.view-buttons button.is-active {
  background: linear-gradient(90deg, var(--brand), var(--brand-red));
  color: #ffffff;
  transform: translateY(-1px);
}

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

.movie-grid.is-list {
  grid-template-columns: 1fr;
}

.movie-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(255, 237, 213, 0.8);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.movie-grid.is-list .movie-card a {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.movie-grid.is-list .poster {
  aspect-ratio: auto;
  min-height: 285px;
}

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

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(234, 88, 12, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #facc15;
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(250, 204, 21, 0.3);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--brand);
}

.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-grid.is-list .card-body p {
  -webkit-line-clamp: 4;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 750;
}

.card-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 750;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 82px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 237, 213, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-number {
  font-weight: 950;
  font-size: 28px;
  color: var(--brand);
  text-align: center;
}

.rank-thumb {
  width: 82px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
}

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

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.rank-meta {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.page-hero {
  padding: 72px 0 52px;
  background: linear-gradient(120deg, #ea580c, #dc2626);
  color: #ffffff;
  margin-bottom: 46px;
}

.page-hero .main-shell {
  display: grid;
  gap: 14px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  align-items: start;
}

.detail-panel {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(255, 237, 213, 0.8);
}

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

.info-box {
  padding: 22px;
}

.info-box h2,
.content-box h2,
.content-box h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
}

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

.info-cell {
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
}

.info-cell span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.info-cell strong {
  display: block;
  line-height: 1.35;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 13px;
  font-weight: 800;
}

.content-stack {
  display: grid;
  gap: 24px;
}

.content-box {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  border: 1px solid rgba(255, 237, 213, 0.8);
}

.content-box h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.content-box .lead {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.85;
  color: #374151;
  font-weight: 650;
}

.content-box p {
  color: #374151;
  line-height: 1.9;
  margin: 0 0 18px;
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-head {
  padding: 18px 22px;
  background: linear-gradient(90deg, var(--brand), var(--brand-red));
  color: #ffffff;
}

.player-head h2 {
  margin: 0;
  font-size: 22px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(234, 88, 12, 0.22), transparent 36%),
    rgba(0, 0, 0, 0.34);
  transition: opacity 0.22s ease;
  z-index: 3;
}

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

.play-orb {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.38);
  font-size: 30px;
  padding-left: 5px;
}

.player-overlay span:last-child {
  font-weight: 900;
  font-size: 18px;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 4;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls {
  opacity: 1;
  transform: translateY(0);
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.player-message {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.88);
  border-radius: 14px;
  padding: 9px 12px;
  font-weight: 800;
  display: none;
}

.player-message.is-visible {
  display: block;
}

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

.related-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.related-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.related-card h3 {
  margin: 0;
  padding: 12px 12px 5px;
  font-size: 14px;
  line-height: 1.35;
}

.related-card p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
}

.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer-title {
  font-weight: 950;
  font-size: 20px;
  margin: 0 0 12px;
}

.footer-text {
  margin: 0;
  color: #d1d5db;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-links a:hover {
  color: #fb923c;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px dashed #fed7aa;
}

.empty-state.is-visible {
  display: block;
}

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

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

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

  .detail-layout {
    grid-template-columns: 320px 1fr;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    height: 68px;
  }

  .hero {
    height: 620px;
  }

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

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

  .movie-grid.is-list .movie-card a {
    grid-template-columns: 160px 1fr;
  }

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

  .detail-panel {
    max-width: 420px;
    margin: 0 auto;
  }

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

  .rank-item {
    grid-template-columns: 46px 70px 1fr;
  }

  .rank-meta {
    grid-column: 3;
  }

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

@media (max-width: 560px) {
  .main-shell,
  .nav-wrap,
  .mobile-nav,
  .footer-wrap,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    height: 650px;
  }

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

  .hero-subtitle {
    font-size: 17px;
  }

  .stat-grid,
  .category-grid,
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid.is-list .movie-card a {
    display: block;
  }

  .movie-grid.is-list .poster {
    min-height: auto;
    aspect-ratio: 3 / 4;
  }

  .section-head {
    display: block;
  }

  .rank-item {
    grid-template-columns: 42px 68px 1fr;
    gap: 12px;
  }

  .rank-copy p {
    display: none;
  }

  .filter-row {
    display: grid;
  }
}
