:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.28);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --blue: #3b82f6;
  --green: #34d399;
  --rose: #fb7185;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 36rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-main {
  padding-top: 64px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #03131a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

.brand-text {
  font-size: 1.25rem;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 8px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.1);
}

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

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #cbd5e1;
  border-radius: 99px;
}

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

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

.mobile-nav-link {
  padding: 12px 14px;
}

.hero-shell {
  position: relative;
  min-height: min(760px, calc(100vh - 64px));
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow-a {
  left: -120px;
  top: 120px;
  background: rgba(34, 211, 238, 0.28);
}

.hero-glow-b {
  right: -140px;
  bottom: 80px;
  background: rgba(59, 130, 246, 0.25);
}

.hero-slides {
  position: relative;
  min-height: min(760px, calc(100vh - 64px));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 80px max(32px, calc((100vw - 1180px) / 2)) 140px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-content {
  width: min(700px, 100%);
  position: relative;
  z-index: 5;
}

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

.hero-badges span,
.hero-badges a,
.tag,
.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.35);
  font-size: 0.82rem;
  line-height: 1;
}

.hero-content h1,
.subpage-hero h1,
.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-one-line {
  max-width: 760px;
  color: #e2e8f0;
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  line-height: 1.65;
}

.hero-summary {
  max-width: 680px;
  margin-top: 16px;
  color: #94a3b8;
  line-height: 1.85;
}

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

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

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

.button-primary {
  color: #06131a;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.24);
}

.button-secondary {
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.74);
}

.button-secondary:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.32);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 10;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
}

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

.hero-thumb {
  min-width: 0;
  text-align: left;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-thumb span {
  display: block;
  color: #67e8f9;
  font-size: 0.72rem;
}

.hero-thumb strong {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-thumb.is-active {
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(8, 47, 73, 0.52);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.14);
}

.page-section {
  margin-top: 76px;
}

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

.section-header.compact {
  margin-bottom: 18px;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.section-header h2,
.search-panel h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

.section-header p,
.search-panel p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-weight: 750;
}

.search-panel {
  margin-top: -42px;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 540px);
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.search-form,
.filter-search {
  display: flex;
  gap: 10px;
}

.search-form input,
.filter-search input,
.catalogue-tools select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.52);
  outline: none;
}

.search-form input,
.filter-search input {
  padding: 0 16px;
}

.catalogue-tools select {
  padding: 0 14px;
}

.search-form input:focus,
.filter-search input:focus,
.catalogue-tools select:focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.search-form button,
.catalogue-tools button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #06131a;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.24);
  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 24px 70px rgba(8, 145, 178, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background-color: #111827;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

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

.card-quality {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  color: #052e16;
  background: #86efac;
  font-size: 0.75rem;
  font-weight: 800;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06131a;
  background: rgba(103, 232, 249, 0.95);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.78rem;
}

.card-body h3 {
  margin: 8px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.card-body h3 a:hover,
.ranking-info a:hover {
  color: #67e8f9;
}

.card-body p {
  min-height: 3.3em;
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.65;
}

.card-tags .tag,
.detail-tags .tag {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.74rem;
  color: #bae6fd;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.feature-panel,
.ranking-panel,
.content-card,
.catalogue-tools,
.subpage-hero {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow);
}

.feature-panel,
.ranking-panel {
  padding: 24px;
}

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

.category-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.4);
}

.category-chip b {
  color: #67e8f9;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

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

.rank-num,
.ranking-index {
  font-weight: 900;
  color: #67e8f9;
  font-variant-numeric: tabular-nums;
}

.rank-list a {
  display: block;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
}

.subpage-hero {
  margin-top: 34px;
  padding: clamp(28px, 5vw, 60px);
}

.subpage-hero p {
  max-width: 760px;
  color: #94a3b8;
  line-height: 1.85;
}

.catalogue-tools {
  margin-top: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(110px, 0.6fr)) auto;
  gap: 12px;
  align-items: center;
}

.compact-tools {
  grid-template-columns: minmax(240px, 1fr) auto;
}

.result-line {
  margin-bottom: 16px;
  color: #94a3b8;
}

.result-line span {
  color: #67e8f9;
  font-weight: 900;
}

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

.category-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-card span {
  color: #67e8f9;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.category-card h2 {
  margin: 8px 0;
  font-size: 1.65rem;
}

.category-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.65;
}

.category-card strong {
  color: #a5f3fc;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
}

.ranking-cover {
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.ranking-info p {
  margin: 0 0 10px;
  color: #94a3b8;
  line-height: 1.7;
}

.detail-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: 60px 0;
}

.detail-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
}

.detail-poster span {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #052e16;
  background: #86efac;
  font-weight: 900;
}

.detail-copy h1 {
  max-width: 920px;
}

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

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

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #f8fafc;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 260px),
    rgba(2, 6, 23, 0.58);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-frame.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06131a;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.42);
  font-size: 1.8rem;
}

.play-overlay strong {
  font-size: 1.4rem;
}

.play-overlay small {
  color: #cbd5e1;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: none;
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: 14px;
  color: #fecdd3;
  background: rgba(127, 29, 29, 0.35);
}

.player-message:not(:empty) {
  display: block;
}

.detail-content-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  padding: 24px;
}

.content-card p {
  color: #cbd5e1;
  line-height: 1.9;
}

.facts-card {
  grid-column: 1 / -1;
}

.facts-card dl {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px 18px;
  margin: 18px 0 0;
}

.facts-card dt {
  color: #67e8f9;
  font-weight: 800;
}

.facts-card dd {
  margin: 0;
  color: #cbd5e1;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-cloud a,
.movie-link-list a {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.68);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-cloud a {
  padding: 10px 12px;
}

.link-cloud a:hover,
.movie-link-list a:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
}

.link-cloud small,
.movie-link-list small {
  color: #94a3b8;
}

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

.movie-link-list a {
  padding: 12px;
  color: #e2e8f0;
}

.movie-link-list small {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.78);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer h2 {
  color: #67e8f9;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer a {
  display: block;
  margin: 6px 0;
}

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

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

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

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

  .filter-search {
    grid-column: 1 / -1;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .hero-slide {
    align-items: flex-end;
    padding: 70px 18px 180px;
  }

  .hero-thumbs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-thumb {
    min-width: 150px;
  }

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

  .search-panel {
    margin-top: 18px;
  }

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

  .catalogue-tools {
    grid-template-columns: 1fr 1fr;
  }

  .catalogue-tools button {
    grid-column: 1 / -1;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-poster {
    width: min(280px, 78vw);
    margin: 0 auto;
  }

  .ranking-card {
    grid-template-columns: 40px 74px minmax(0, 1fr);
  }

  .ranking-card .button {
    grid-column: 2 / -1;
  }
}

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

  .brand-text {
    font-size: 1.06rem;
  }

  .hero-shell,
  .hero-slides {
    min-height: 720px;
  }

  .hero-controls {
    grid-template-columns: 38px 1fr 38px;
    width: calc(100% - 22px);
    bottom: 18px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .hero-content h1,
  .subpage-hero h1,
  .detail-copy h1 {
    font-size: clamp(2rem, 16vw, 3.4rem);
  }

  .hero-actions,
  .search-form {
    flex-direction: column;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body p {
    display: none;
  }

  .category-chip-grid,
  .category-card-grid,
  .movie-link-list {
    grid-template-columns: 1fr;
  }

  .catalogue-tools {
    grid-template-columns: 1fr;
  }

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