:root {
  --dark-950: #030507;
  --dark-900: #07090c;
  --dark-850: #0d1117;
  --dark-800: #12171e;
  --dark-700: #1d2530;
  --dark-600: #2a3442;
  --primary-600: #0043ad;
  --primary-500: #0056e0;
  --primary-400: #2f7dff;
  --accent-500: #e6a800;
  --accent-400: #ffc61a;
  --text-main: #ffffff;
  --text-soft: #d1d5db;
  --text-muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 86, 224, 0.25), transparent 30rem),
    radial-gradient(circle at 80% 0%, rgba(230, 168, 0, 0.16), transparent 26rem),
    linear-gradient(180deg, var(--dark-900), var(--dark-800) 44%, var(--dark-900));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(7, 9, 12, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 12px 30px rgba(0, 86, 224, 0.26);
}

.logo-text {
  font-size: 21px;
}

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

.nav-link {
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
  color: var(--accent-400);
}

.site-search {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34vw);
  padding: 7px;
  background: rgba(18, 23, 30, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-search input,
.mobile-search input,
.search-page-form input,
.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  color: var(--text-main);
  background: transparent;
  border: 0;
  outline: none;
}

.site-search input {
  padding: 0 8px 0 12px;
  min-width: 0;
}

.site-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: var(--primary-600);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 460px;
  overflow: auto;
  padding: 10px;
  display: none;
  background: rgba(18, 23, 30, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  color: var(--text-soft);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.search-result-item img {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.search-result-item span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  color: var(--text-soft);
  background: var(--dark-800);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--dark-850);
}

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

.mobile-nav-link {
  padding: 10px 12px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--dark-900);
  border-radius: 14px;
}

main {
  padding-top: 68px;
}

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

.hero-shell {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--dark-900);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 74px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.12);
  opacity: 0.46;
  transform: scale(1.08);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.96), rgba(7, 9, 12, 0.62) 54%, rgba(7, 9, 12, 0.88)),
    linear-gradient(0deg, rgba(7, 9, 12, 0.95), transparent 42%);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.spotlight-box span,
.category-card-large span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  color: var(--accent-400);
  background: rgba(230, 168, 0, 0.12);
  border: 1px solid rgba(230, 168, 0, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 670px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags a,
.hero-tags span,
.movie-card-meta span,
.movie-card-foot span,
.tag-cloud a {
  padding: 6px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 18px 40px rgba(0, 86, 224, 0.28);
}

.btn-soft,
.section-more {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.btn-primary:hover,
.btn-soft:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  align-self: center;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
}

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

.hero-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 12px;
}

.hero-dot.is-active {
  color: #111;
  background: var(--accent-400);
}

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

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

.page-main {
  padding-top: 104px;
}

.page-section {
  padding-top: 36px;
}

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

.section-heading h2,
.page-hero h1,
.spotlight-box h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.spotlight-box p,
.category-card-large p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: rgba(18, 23, 30, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  background: rgba(29, 37, 48, 0.9);
  border-color: rgba(255, 198, 26, 0.35);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--dark-700);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.poster-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 999px;
  font-size: 12px;
}

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

.movie-card-meta,
.movie-card-foot {
  color: var(--text-muted);
  font-size: 12px;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
}

.rank-list,
.rank-page-list {
  display: grid;
  gap: 12px;
}

.rank-row,
.rank-card {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 12px;
  color: var(--text-soft);
  background: rgba(18, 23, 30, 0.84);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.rank-row:hover,
.rank-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 198, 26, 0.32);
}

.rank-row span,
.rank-number {
  color: var(--accent-400);
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong,
.rank-card strong {
  color: #fff;
}

.rank-row em,
.rank-card em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 13px;
}

.spotlight-box,
.page-hero,
.detail-meta-card,
.detail-text-block,
.category-card-large {
  background:
    linear-gradient(145deg, rgba(0, 86, 224, 0.16), rgba(230, 168, 0, 0.07)),
    rgba(18, 23, 30, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.spotlight-box {
  min-height: 100%;
  padding: 34px;
}

.spotlight-box .btn-primary {
  margin-top: 26px;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--dark-800);
}

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

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.08));
}

.category-tile div {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.category-tile span {
  color: var(--accent-400);
  font-size: 12px;
  font-weight: 800;
}

.category-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.site-footer {
  margin-top: 90px;
  background: rgba(7, 9, 12, 0.92);
  border-top: 1px solid var(--line);
}

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

.footer-inner p,
.footer-inner a,
.footer-bottom {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 14px;
}

.footer-inner h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.footer-inner a {
  display: block;
  margin: 7px 0;
}

.footer-inner a:hover {
  color: var(--accent-400);
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.page-hero {
  padding: 44px;
}

.small-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-hero {
  min-height: 220px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--accent-400);
}

.category-large-grid {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 16px;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-links a {
  padding: 7px 10px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 13px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.6fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  background: rgba(18, 23, 30, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.filter-toolbar label {
  display: grid;
  gap: 7px;
}

.filter-toolbar span {
  color: var(--text-muted);
  font-size: 12px;
}

.filter-toolbar input,
.filter-toolbar select {
  min-height: 42px;
  padding: 0 12px;
  background: rgba(7, 9, 12, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.filter-toolbar option {
  background: var(--dark-900);
}

.empty-state {
  display: none;
  padding: 36px;
  color: var(--text-muted);
  text-align: center;
  background: rgba(18, 23, 30, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
}

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

.rank-page-list {
  margin-top: 30px;
}

.rank-card {
  grid-template-columns: 62px 86px minmax(0, 1fr);
}

.rank-card img {
  width: 86px;
  height: 116px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-card p {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  color: var(--text-muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background:
    radial-gradient(circle, rgba(0, 86, 224, 0.14), rgba(0, 0, 0, 0.56)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74));
  border: 0;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: #111;
  background: var(--accent-400);
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 18px 60px rgba(255, 198, 26, 0.3);
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 42px);
}

.player-cover em {
  color: var(--text-soft);
  font-style: normal;
}

.detail-text-block {
  margin-top: 24px;
  padding: 30px;
}

.detail-text-block h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.detail-text-block h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-text-block p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.92;
}

.detail-one-line {
  color: var(--accent-400) !important;
  font-size: 18px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-meta-card {
  padding: 22px;
}

.detail-meta-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.detail-meta-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-meta-card div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
}

.detail-meta-card dt {
  color: var(--text-muted);
}

.detail-meta-card dd {
  margin: 0;
  color: #fff;
}

.detail-meta-card a:hover {
  color: var(--accent-400);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.search-page-form {
  display: flex;
  gap: 12px;
  width: min(680px, 100%);
  margin-top: 24px;
}

.search-page-form input {
  min-height: 52px;
  padding: 0 18px;
  background: rgba(7, 9, 12, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

[data-search-results] {
  min-height: 120px;
}

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

  .site-search {
    width: min(420px, 48vw);
  }

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 290px;
    padding: 48px;
  }

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

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

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

  .detail-side {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    width: calc(100% - 24px);
    gap: 12px;
  }

  .site-search {
    display: none;
  }

  .hero {
    width: calc(100% - 24px);
    margin-top: 20px;
  }

  .hero-shell {
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 28px;
  }

  .hero-poster {
    width: min(240px, 70vw);
    justify-self: center;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-controls {
    right: 18px;
    bottom: 18px;
    left: 18px;
    justify-content: space-between;
  }

  .content-section,
  .page-main {
    width: calc(100% - 24px);
  }

  .content-section {
    padding-top: 54px;
  }

  .section-heading {
    display: grid;
  }

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

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

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

  .movie-card p {
    font-size: 12px;
  }

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

  .rank-row em {
    display: none;
  }

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

  .category-cover-stack img {
    height: 160px;
  }

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

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

  .rank-card img {
    width: 72px;
    height: 96px;
  }

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

  .detail-poster {
    max-width: 320px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }
}

@media (max-width: 520px) {
  .logo-text {
    font-size: 18px;
  }

  .page-hero,
  .spotlight-box,
  .detail-text-block {
    padding: 24px;
  }

  .featured-grid,
  .catalog-grid,
  .compact-grid,
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .search-page-form {
    display: grid;
  }
}
