:root {
  --color-cyan: #0891b2;
  --color-blue: #2563eb;
  --color-teal: #0d9488;
  --color-slate: #0f172a;
  --color-text: #1f2937;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 30rem),
    linear-gradient(180deg, #ecfeff 0%, #eff6ff 42%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue), var(--color-teal));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.24);
}

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

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

.brand-name,
.footer-brand span:last-child {
  font-size: 24px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.04);
}

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

.nav-link {
  padding: 8px 4px;
  font-weight: 650;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #cffafe;
  opacity: 1;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  outline: none;
}

.header-search input {
  width: 220px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #cffafe;
}

.header-search button,
.mobile-search button,
.big-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: var(--color-blue);
  background: #ffffff;
  padding: 10px 18px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.search-page-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.mobile-nav-link {
  padding: 10px 0;
  font-weight: 700;
}

.mobile-nav-link.active {
  color: #cffafe;
}

.mobile-search {
  display: flex;
  gap: 10px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: var(--color-slate);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.78)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.32), transparent 26rem),
    linear-gradient(0deg, rgba(15, 23, 42, 0.42), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  min-height: 620px;
  margin: 0 auto;
  padding: 92px 24px 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 48px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.24);
  border: 1px solid rgba(103, 232, 249, 0.38);
  font-weight: 750;
}

.hero-copy h1,
.detail-copy h1,
.small-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.small-hero p,
.detail-one-line {
  max-width: 720px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row,
.genre-row,
.stats-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.genre-row span,
.stats-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button,
.section-action,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue), var(--color-teal));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.section-action:hover,
.panel-link:hover {
  transform: translateY(-2px);
}

.hero-poster,
.detail-poster,
.poster-wrap,
.category-card-image {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.26), rgba(37, 99, 235, 0.36)),
    #0f172a;
}

.hero-poster {
  width: min(100%, 360px);
  justify-self: center;
  aspect-ratio: 2 / 3;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-fallback-text {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: #ffffff;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.is-missing .poster-fallback-text,
.poster-wrap.is-missing .poster-fallback-text {
  display: flex;
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  opacity: 0.64;
}

.hero-dot.active {
  width: 32px;
  opacity: 1;
  background: #67e8f9;
}

.search-band,
.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 24px;
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1fr);
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.search-band h2,
.section-heading h2,
.ranking-panel h2,
.site-footer h2,
.info-card h2,
.detail-text-block h2 {
  margin: 0 0 10px;
  color: #0f172a;
}

.search-band p,
.section-heading p,
.ranking-panel p,
.category-card-large p,
.category-tile p,
.info-card dd,
.detail-text-block p {
  color: var(--color-muted);
  line-height: 1.75;
}

.big-search,
.search-page-form {
  display: flex;
  gap: 12px;
}

.big-search input,
.search-page-form input {
  flex: 1;
  min-height: 54px;
  padding: 0 20px;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.big-search button,
.search-page-form button {
  min-width: 110px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
}

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

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-action,
.panel-link {
  padding: 10px 16px;
  color: var(--color-blue);
  background: #dbeafe;
}

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

.category-tile {
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  overflow: hidden;
  color: #ffffff;
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.88)),
    var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.category-tile span {
  font-size: 22px;
  font-weight: 850;
}

.category-tile strong {
  width: fit-content;
  margin: 10px 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

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

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

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

.movie-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.poster-wrap {
  aspect-ratio: 2 / 3;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-meta-row span,
.tag-row span {
  color: #0e7490;
  background: #cffafe;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  font-size: 12px;
}

.ranking-panel,
.info-card,
.detail-text-block,
.filter-panel,
.stats-grid article,
.search-page-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.ranking-panel ol {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
}

.ranking-number {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  border-radius: 50%;
  font-weight: 850;
}

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

.ranking-meta {
  color: var(--color-muted);
  font-size: 13px;
}

.page-hero.small-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 12%, rgba(103, 232, 249, 0.36), transparent 24rem),
    linear-gradient(120deg, #0f172a, #155e75 54%, #1d4ed8);
}

.small-hero > div {
  max-width: 1240px;
  margin: 0 auto;
  padding: 86px 24px;
}

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

.category-card-large {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-large a {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 180px;
}

.category-card-image {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.58)),
    var(--tile-image);
  background-size: cover;
  background-position: center;
}

.category-card-large div:last-child {
  padding: 24px;
}

.category-card-large h2 {
  margin: 0 0 10px;
  color: #0f172a;
}

.category-card-large span {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0e7490;
  background: #cffafe;
  font-weight: 800;
}

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

.stats-grid article {
  padding: 22px;
}

.stats-tags span {
  color: #0f172a;
  background: #f1f5f9;
}

.stats-tags strong {
  color: var(--color-cyan);
}

.filter-panel {
  padding: 20px;
  margin-bottom: 26px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.filter-count,
.search-hint {
  margin: 14px 0 0;
  color: var(--color-muted);
}

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

.detail-hero {
  position: relative;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.56)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.26), transparent 25rem),
    linear-gradient(0deg, rgba(15, 23, 42, 0.64), transparent);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cffafe;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-weight: 760;
}

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

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(8, 145, 178, 0.42), rgba(2, 6, 23, 0.78)),
    rgba(2, 6, 23, 0.44);
  cursor: pointer;
}

.video-shell.playing .player-start {
  display: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  color: var(--color-blue);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.player-start strong {
  font-size: 24px;
}

.player-start small {
  color: #cffafe;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  color: #cffafe;
  font-size: 14px;
  pointer-events: none;
}

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

.detail-text-block p {
  font-size: 17px;
}

.info-card {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.info-card dl {
  display: grid;
  gap: 14px;
}

.info-card dl > div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.info-card dt {
  color: #0f172a;
  font-weight: 800;
}

.genre-row span {
  color: #1d4ed8;
  background: #dbeafe;
}

.related-grid .compact .movie-card-body p {
  display: none;
}

.ranking-table-section .section-heading {
  margin-bottom: 16px;
}

.table-scroll {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.ranking-table th {
  color: #0f172a;
  background: #f8fafc;
}

.ranking-table a {
  color: var(--color-blue);
  font-weight: 780;
}

.search-page-panel {
  padding: 24px;
}

.search-page-form {
  margin-bottom: 12px;
}

.site-footer {
  margin-top: 54px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-about p,
.site-footer li {
  line-height: 1.8;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.site-footer h2 {
  color: #ffffff;
  font-size: 18px;
}

.footer-contact {
  color: #94a3b8;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-content,
  .detail-hero-inner,
  .detail-layout,
  .layout-with-sidebar,
  .search-band {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    justify-self: start;
    width: min(74vw, 320px);
  }

  .ranking-panel,
  .info-card {
    position: static;
  }

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

@media (max-width: 900px) {
  .category-grid,
  .movie-grid,
  .home-grid,
  .catalog-grid,
  .stats-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .category-card-large a {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 20px;
  }

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

  .hero-content {
    padding: 70px 18px 96px;
  }

  .search-band,
  .content-section,
  .small-hero > div,
  .detail-hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .big-search,
  .search-page-form,
  .mobile-search {
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .home-grid,
  .catalog-grid,
  .stats-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .category-card-image {
    min-height: 180px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .detail-poster {
    width: min(72vw, 240px);
  }
}
