:root {
  --bg: #030712;
  --bg-soft: #07111f;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(17, 24, 39, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #ffffff;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --cyan: #22d3ee;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.20), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(34, 211, 238, 0.12), transparent 26%),
    linear-gradient(180deg, #020617 0%, #030712 38%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.38);
}

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

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  color: var(--muted-2);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.16);
}

.header-search {
  width: min(310px, 28vw);
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  color: #fff;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button,
.big-search button,
.filter-panel button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  padding: 10px 16px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 12px;
  width: 42px;
  height: 42px;
}

.mobile-nav {
  display: none;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-nav form {
  display: flex;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  overflow: hidden;
}

.mobile-nav input {
  width: 100%;
  border: 0;
  color: #fff;
  outline: 0;
  padding: 12px;
  background: rgba(15, 23, 42, 0.84);
}

.mobile-nav button {
  border: 0;
  color: #fff;
  padding: 0 16px;
  background: var(--blue);
}

main {
  overflow: hidden;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 5s ease;
}

.hero-slide.is-active img {
  transform: scale(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.74) 45%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.48) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1320px) / 2 + 24px));
  bottom: 96px;
  width: min(680px, calc(100vw - 48px));
  z-index: 2;
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.76);
  color: #fff;
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.3);
}

.hero-content h2,
.search-card h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-content h2 {
  font-size: clamp(42px, 6vw, 88px);
  max-width: 820px;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.6);
}

.hero-content p,
.search-card p,
.page-hero p,
.detail-one-line {
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1.8;
}

.hero-content p {
  max-width: 640px;
  margin: 22px 0 30px;
}

.hero-actions,
.detail-actions,
.quick-links,
.chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.section-more,
.quick-links a,
.chips-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.ghost-btn,
.quick-links a,
.chips-row a {
  min-height: 48px;
  padding: 0 22px;
  color: #dbeafe;
  border: 1px solid rgba(191, 219, 254, 0.24);
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.quick-links a:hover,
.chips-row a:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dot {
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.search-band,
.page-shell,
.content-section,
.detail-wrap {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.search-band {
  margin-top: -72px;
  position: relative;
  z-index: 5;
}

.search-card,
.page-hero,
.category-overview-block,
.detail-text,
.player-section,
.related-section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.62));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-card {
  padding: clamp(28px, 5vw, 54px);
}

.search-card h1,
.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 64px);
}

.search-card p {
  max-width: 780px;
}

.big-search {
  width: min(780px, 100%);
  display: flex;
  margin: 28px 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.44);
}

.big-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  color: #fff;
  outline: 0;
  padding: 18px 22px;
  background: transparent;
}

.big-search button {
  padding: 0 28px;
}

.content-section {
  padding: 72px 0 0;
}

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

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

.section-more {
  min-height: 42px;
  padding: 0 18px;
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(37, 99, 235, 0.12);
}

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

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

.category-tile {
  position: relative;
  min-height: 184px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: #0f172a;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.26);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.7;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.92) 100%);
}

.category-glow {
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 80px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.24);
  filter: blur(28px);
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  font-size: 24px;
}

.category-tile small {
  margin-top: 6px;
  color: var(--muted-2);
}

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

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

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

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

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

.movie-card-link {
  display: block;
  height: 100%;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(15, 23, 42, 0.9);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #0b1120;
  overflow: hidden;
}

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

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

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

.poster-type,
.rank-badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  background: rgba(37, 99, 235, 0.86);
}

.poster-type {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.movie-info {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  margin: 0;
  min-height: 66px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.20);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.page-shell {
  padding-top: 112px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  margin-bottom: 34px;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.34), transparent 65%);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero p {
  max-width: 780px;
}

.category-overview-block {
  padding: 28px;
  margin-bottom: 28px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: 0;
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.84);
}

.empty-state {
  display: none;
  color: var(--muted-2);
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: 20px;
  padding: 44px;
  text-align: center;
}

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

.top-rank-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.top-rank-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: #0f172a;
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.94));
}

.top-rank-card span,
.top-rank-card strong,
.top-rank-card small {
  position: relative;
  z-index: 1;
}

.top-rank-card span {
  color: #fed7aa;
  font-weight: 900;
}

.top-rank-card strong {
  margin-top: 8px;
  font-size: 26px;
}

.top-rank-card small {
  margin-top: 8px;
  color: var(--muted-2);
  line-height: 1.6;
}

.movie-detail-page {
  padding-top: 72px;
}

.detail-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: end;
  background: #020617;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.09);
  opacity: 0.42;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.92)),
    linear-gradient(0deg, #020617, transparent 50%);
}

.detail-wrap {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  margin: 32px 0 24px;
}

.breadcrumb a {
  color: #bfdbfe;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: end;
  padding-bottom: 56px;
}

.detail-poster {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
}

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

.detail-copy h1 {
  font-size: clamp(42px, 6vw, 78px);
}

.detail-one-line {
  max-width: 840px;
  margin: 22px 0 0;
}

.detail-tags {
  margin: 24px 0;
}

.player-section {
  margin-top: 52px;
  padding: clamp(20px, 3vw, 34px);
}

.player-section h2,
.detail-text h2,
.related-section h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 34px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: #fff;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: #000;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.08);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.14), rgba(2, 6, 23, 0.78));
}

.player-cover strong,
.play-circle {
  position: relative;
  z-index: 1;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.46);
}

.player-cover strong {
  margin-top: 120px;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.player-cover.is-hidden {
  display: none;
}

.detail-text,
.related-section {
  padding: clamp(24px, 4vw, 42px);
  margin-top: 34px;
}

.detail-text p {
  color: var(--muted-2);
  line-height: 2;
  font-size: 17px;
  margin: 0 0 28px;
}

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

.info-table div {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 18px;
  background: rgba(2, 6, 23, 0.38);
}

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

.info-table strong {
  color: #fff;
}

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

.footer-inner {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 8px;
}

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

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

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

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero {
    height: 72vh;
    min-height: 560px;
  }

  .hero-content {
    bottom: 76px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .detail-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .info-table,
  .top-rank-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .mobile-nav {
    padding: 0 16px 16px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-shade {
    background: linear-gradient(0deg, #020617 4%, rgba(2, 6, 23, 0.78) 72%, rgba(2, 6, 23, 0.58));
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 76px;
    width: auto;
  }

  .hero-content h2 {
    font-size: 40px;
  }

  .hero-content p,
  .search-card p,
  .page-hero p,
  .detail-one-line {
    font-size: 15px;
  }

  .search-band,
  .page-shell,
  .content-section,
  .detail-wrap,
  .footer-inner {
    width: min(100% - 32px, 1320px);
  }

  .big-search {
    border-radius: 20px;
    display: grid;
  }

  .big-search button {
    min-height: 48px;
  }

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

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .filter-panel,
  .info-table,
  .top-rank-row {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding-bottom: 36px;
  }

  .detail-poster {
    width: min(250px, 80vw);
  }

  .player-section,
  .detail-text,
  .related-section,
  .category-overview-block {
    padding: 20px;
  }

  .footer-links,
  .quick-links,
  .chips-row {
    align-items: stretch;
  }
}
