:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 1.25rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.25);
  font-weight: 900;
}

.logo-text {
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #67e8f9;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  color: var(--muted-strong);
}

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

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

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

.hero-slide.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.08) contrast(1.05);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 84px 0 96px;
}

.hero-label,
.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #a5f3fc;
  border: 1px solid rgba(6, 182, 212, 0.32);
  background: rgba(6, 182, 212, 0.14);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  width: min(720px, 100%);
  margin: 22px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 920;
}

.hero-content p {
  width: min(680px, 100%);
  margin: 0 0 26px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.78rem;
}

.hero-actions,
.inner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  font-weight: 780;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(103, 232, 249, 0.45);
}

.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 38px rgba(14, 165, 233, 0.26);
}

.btn.ghost {
  background: rgba(2, 6, 23, 0.44);
  backdrop-filter: blur(12px);
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.btn.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(6, 182, 212, 0.34);
}

.hero-arrow.prev {
  left: max(20px, calc((100vw - 1180px) / 2 - 68px));
}

.hero-arrow.next {
  right: max(20px, calc((100vw - 1180px) / 2 - 68px));
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.search-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 7;
}

.search-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-card span {
  color: var(--muted-strong);
  font-weight: 780;
}

input[type="search"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: none;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(2, 6, 23, 0.62);
  color: var(--text);
}

input[type="search"]:focus {
  border-color: rgba(6, 182, 212, 0.64);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.page-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-heading h2,
.toolbar h2,
.rank-panel-head h2,
.seo-block h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.seo-block p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: #67e8f9;
  font-weight: 780;
}

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

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.72));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card-link:hover {
  transform: translateY(-7px);
  border-color: rgba(103, 232, 249, 0.4);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(37, 99, 235, 0.12));
}

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

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  font-size: 0.78rem;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.card-body {
  flex: 1;
  padding: 16px;
}

.card-meta {
  margin-bottom: 10px;
}

.card-meta span {
  min-height: 24px;
  color: #bfdbfe;
  font-size: 0.72rem;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.1);
}

.category-section {
  padding-top: 40px;
}

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

.category-card a,
.category-overview-card a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.12), transparent 36%),
    rgba(15, 23, 42, 0.78);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-card a:hover,
.category-overview-card a:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 232, 249, 0.42);
}

.category-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(37, 99, 235, 0.9));
  font-weight: 900;
  margin-bottom: 18px;
}

.category-icon.large {
  width: 56px;
  height: 56px;
  font-size: 1.35rem;
}

.category-card h3,
.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}

.category-card p,
.category-overview-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.category-samples,
.preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.category-samples a,
.preview-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.52);
  color: #bfdbfe;
  font-size: 0.8rem;
}

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

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
  border-color: rgba(103, 232, 249, 0.36);
  background: rgba(6, 182, 212, 0.08);
}

.rank-num {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  font-weight: 900;
}

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

.rank-info {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.84rem;
}

.seo-block {
  padding: 42px;
  margin-bottom: 72px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 0%, rgba(6, 182, 212, 0.16), transparent 24rem),
    rgba(15, 23, 42, 0.68);
}

.inner-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 38px;
}

.inner-hero h1 {
  max-width: 880px;
  margin: 18px 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.inner-hero p {
  max-width: 800px;
  color: var(--muted-strong);
  line-height: 1.85;
  font-size: 1.05rem;
}

.category-hero {
  padding-bottom: 18px;
}

.toolbar {
  align-items: center;
}

.toolbar input {
  max-width: 360px;
}

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

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

.wide-rank-card a {
  display: grid;
  grid-template-columns: 64px 180px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.wide-rank-card a:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, 0.38);
}

.wide-rank-num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(37, 99, 235, 0.18));
  color: #67e8f9;
  font-size: 1.2rem;
  font-weight: 900;
}

.wide-rank-card img {
  width: 180px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.8);
}

.wide-rank-card h2 {
  margin: 0 0 8px;
  font-size: 1.32rem;
}

.wide-rank-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: white;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 45%, rgba(6, 182, 212, 0.24), transparent 18rem),
    rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(2px);
}

.play-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.36);
  font-size: 2rem;
  padding-left: 5px;
}

.detail-panel,
.detail-side {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

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

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.detail-title-row h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.detail-meta {
  margin: 0 0 28px;
}

.detail-panel section {
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  margin-top: 24px;
}

.detail-panel h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.detail-panel p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.8);
}

.detail-side h2 {
  margin: 18px 0 10px;
  font-size: 1.4rem;
}

.detail-side p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.78);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 28px;
  color: var(--muted);
}

.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-content: start;
}

.footer-categories {
  justify-content: flex-end;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
}

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

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

  .hero-arrow.prev {
    left: 18px;
  }

  .hero-arrow.next {
    right: 18px;
  }

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 72px;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .hero-arrow {
    display: none;
  }

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

  .section-heading,
  .toolbar,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar input {
    max-width: none;
  }

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

  .wide-rank-card a {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .wide-rank-card img {
    grid-column: 1 / -1;
    width: 100%;
  }

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

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

@media (max-width: 560px) {
  .nav-shell,
  .mobile-nav,
  .page-section,
  .inner-hero,
  .detail-wrap,
  .footer-shell,
  .search-strip,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .hero-carousel,
  .hero-content {
    min-height: 520px;
  }

  .hero-content p {
    line-height: 1.65;
  }

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

  .page-section {
    padding: 48px 0;
  }

  .detail-panel,
  .seo-block {
    padding: 22px;
  }

  .play-circle {
    width: 66px;
    height: 66px;
    font-size: 1.6rem;
  }
}
