* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --pink: #f472b6;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 30rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 75%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.header-inner,
.category-strip-inner,
.footer-inner,
.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.45);
  font-size: 16px;
  padding-left: 2px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 22px;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, var(--cyan), #bfdbfe);
  -webkit-background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  position: relative;
  color: var(--muted-strong);
  font-weight: 650;
  transition: color 0.24s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-search,
.mobile-menu-button {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.65);
}

.header-search {
  padding: 10px 16px;
  font-size: 14px;
  transition: all 0.25s ease;
}

.header-search:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.15);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.category-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.category-strip-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
}

.category-strip a {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.category-strip a:hover {
  color: var(--cyan);
}

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

.mobile-nav.open {
  display: grid;
}

.mobile-nav .nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
}

.hero-carousel {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 43%, rgba(2, 6, 23, 0.22) 78%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.35) 48%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-copy {
  position: absolute;
  left: max(24px, calc((100vw - 1240px) / 2));
  bottom: 18vh;
  width: min(680px, calc(100% - 48px));
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #cffafe;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(8, 145, 178, 0.28);
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.hero-kicker {
  padding: 8px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.48);
}

.hero-copy p {
  margin: 20px 0 0;
  max-width: 620px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12px;
}

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

.primary-button,
.ghost-button,
.section-action,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.22);
}

.ghost-button,
.section-action,
.filter-button {
  color: var(--text);
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-action:hover,
.filter-button:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.16);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 30px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(8, 145, 178, 0.74);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.42);
}

.hero-dot.active {
  width: 30px;
  background: var(--cyan);
}

.hero-thumbs {
  position: absolute;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 120px;
  z-index: 3;
  width: 280px;
  display: grid;
  gap: 12px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
}

.hero-thumb:hover {
  border-color: rgba(34, 211, 238, 0.55);
}

.hero-thumb img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,211,238,0.25), rgba(59,130,246,0.2));
}

.hero-thumb span {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

.page-shell {
  position: relative;
  z-index: 1;
  padding: 44px 0 72px;
}

.page-hero {
  padding: 54px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.24), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.page-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--muted-strong);
  line-height: 1.8;
  font-size: 18px;
}

.stat-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.stat-card,
.category-card,
.info-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.68);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.stat-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  font-size: 30px;
  color: var(--cyan);
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.section-block {
  margin-top: 54px;
}

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

.eyebrow {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.035em;
}

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

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

.movie-card {
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), 0 0 34px rgba(34, 211, 238, 0.08);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.28), transparent 10rem),
    linear-gradient(145deg, #1e293b, #020617);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 48%);
}

.quality-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
}

.quality-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #001018;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(244, 114, 182, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  color: #001018;
  background: rgba(34, 211, 238, 0.95);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-card-meta,
.movie-card-foot,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card-meta {
  justify-content: space-between;
  margin-bottom: 10px;
}

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

.movie-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--cyan);
}

.movie-card p {
  margin: 0 0 14px;
  min-height: 44px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.58;
}

.movie-card-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  justify-content: space-between;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 210px;
}

.category-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.13);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  color: var(--muted-strong);
  line-height: 1.7;
}

.category-card strong {
  display: block;
  margin-top: 18px;
  color: var(--cyan);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
}

.filter-panel input,
.filter-panel select,
.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text);
  background: rgba(2, 6, 23, 0.7);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.filter-summary {
  margin: -8px 0 22px;
  color: var(--muted);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 90px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.rank-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--cyan);
  text-align: center;
}

.rank-row img {
  width: 90px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,0.22), rgba(2,6,23,0.8));
}

.rank-row h2 {
  margin: 0 0 7px;
  font-size: 20px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.search-panel {
  display: grid;
  gap: 22px;
}

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

.search-results {
  margin-top: 24px;
}

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

.player-panel,
.detail-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.player-panel {
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 16rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.22));
  transition: opacity 0.25s ease;
}

.video-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.start-play {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 7px;
  border: 0;
  border-radius: 999px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 22px 48px rgba(34, 211, 238, 0.28);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #e2e8f0;
  font-size: 14px;
}

.player-titlebar {
  padding: 18px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.player-titlebar h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
}

.detail-panel {
  padding: 26px;
  margin-top: 24px;
}

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

.detail-panel p {
  color: var(--muted-strong);
  line-height: 1.9;
  font-size: 16px;
}

.breadcrumb {
  margin-bottom: 18px;
}

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

.side-panel {
  padding: 20px;
  position: sticky;
  top: 112px;
}

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

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

.side-movie:hover {
  border-color: rgba(34, 211, 238, 0.45);
}

.side-movie img {
  width: 76px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(34,211,238,0.22), rgba(2,6,23,0.8));
}

.side-movie strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.35;
}

.side-movie span {
  color: var(--muted);
  font-size: 12px;
}

.index-list {
  columns: 4 220px;
  column-gap: 26px;
}

.index-list a {
  display: block;
  break-inside: avoid;
  padding: 8px 0;
  color: var(--muted-strong);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.index-list a:hover {
  color: var(--cyan);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.66), #020617);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 220px minmax(0, 1fr);
  gap: 36px;
  padding: 46px 0;
}

.footer-brand p,
.footer-links a {
  color: var(--muted);
  line-height: 1.8;
}

.footer-brand p {
  margin: 18px 0 0;
}

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

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

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

.footer-cats h2 {
  grid-column: 1 / -1;
}

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

  .hero-thumbs {
    display: none;
  }

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

  .side-panel {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .header-inner {
    height: 66px;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 72vh;
  }

  .hero-copy {
    bottom: 110px;
  }

  .hero-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

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

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

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

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

  .rank-row {
    grid-template-columns: 46px 74px minmax(0, 1fr);
  }

  .rank-row .primary-button {
    grid-column: 1 / -1;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .hero-copy {
    width: calc(100% - 28px);
    left: 14px;
  }

  .hero-actions,
  .page-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .section-action,
  .filter-button {
    width: 100%;
  }

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

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

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

  .movie-card p,
  .movie-tags,
  .movie-card-foot {
    display: none;
  }

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

  .rank-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .rank-row img {
    display: none;
  }

  .detail-panel,
  .side-panel {
    padding: 18px;
  }
}
