:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-panel: rgba(15, 23, 42, 0.92);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(148, 163, 184, 0.22);
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 8%, rgba(239, 68, 68, 0.15), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #f8fafc 44%, #f8fafc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.36);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text em {
  display: block;
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links > a,
.nav-dropdown > button {
  color: #e2e8f0;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-links > a:hover,
.nav-dropdown > button:hover {
  color: #fbbf24;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dropdown-panel {
  position: absolute;
  top: 130%;
  left: 50%;
  width: 190px;
  transform: translateX(-50%) translateY(8px);
  padding: 10px;
  display: grid;
  gap: 4px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  padding: 9px 11px;
  color: #cbd5e1;
  border-radius: 10px;
}

.dropdown-panel a:hover {
  color: white;
  background: rgba(245, 158, 11, 0.16);
}

.nav-search,
.mobile-search,
.intro-search form,
.search-large {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.intro-search input,
.search-large input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  color: white;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  outline: 0;
  transition: 0.2s ease;
}

.nav-search input {
  width: 230px;
  padding: 10px 14px;
}

.nav-search button,
.mobile-search button,
.intro-search button,
.search-large button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.nav-search button,
.mobile-search button {
  padding: 10px 16px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-panel a {
  padding: 10px 4px;
  color: #e2e8f0;
}

.mobile-search input {
  flex: 1;
  padding: 11px 14px;
}

.hero {
  position: relative;
  background: #020617;
}

.hero-stage {
  position: relative;
  height: clamp(560px, 72vh, 760px);
  overflow: hidden;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.62) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, transparent 52%);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  width: min(620px, 100%);
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.72;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--red));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.26);
}

.ghost-btn {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  color: white;
  background: rgba(0, 0, 0, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.hero-control:hover {
  background: rgba(245, 158, 11, 0.88);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--amber);
}

.section {
  padding: 72px 0;
}

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

.section-head h2,
.sub-hero h1,
.detail-side h1,
.article-card h2 {
  margin: 0;
  color: #0f172a;
}

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

.section-head > a {
  color: #b45309;
  font-weight: 900;
}

.section-head.light h2,
.section-head.light {
  color: white;
}

.section-head.slim {
  margin-bottom: 18px;
}

.intro-strip {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  margin-top: -42px;
  position: relative;
  z-index: 8;
}

.intro-card,
.intro-search,
.article-card,
.filter-panel,
.search-large,
.search-status {
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.intro-card,
.intro-search {
  padding: 28px;
}

.intro-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.04em;
}

.intro-card p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.intro-search {
  display: grid;
  place-items: center;
}

.intro-search form {
  width: 100%;
}

.intro-search input,
.search-large input {
  flex: 1;
  padding: 15px 18px;
  color: #0f172a;
  background: #f8fafc;
}

.intro-search button,
.search-large button {
  min-height: 50px;
  padding: 0 22px;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  transition: 0.2s ease;
}

.category-tile::after,
.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.42), transparent 70%);
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
}

.category-tile span,
.category-card h2 {
  position: relative;
  z-index: 2;
  display: block;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong,
.category-card p {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.category-card {
  min-height: 280px;
}

.category-covers {
  position: relative;
  z-index: 2;
  height: 120px;
  margin-bottom: 18px;
  display: flex;
  align-items: end;
}

.category-covers img {
  width: 82px;
  height: 116px;
  margin-right: -28px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

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

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

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

.ranking-grid {
  counter-reset: ranking;
}

.movie-card {
  overflow: hidden;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
  transition: 0.2s ease;
}

.dark-section .movie-card,
.movie-card.compact {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.movie-card.compact .card-cover {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.07);
}

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

.card-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  background: rgba(239, 68, 68, 0.95);
}

.rank-badge + .card-type {
  left: auto;
  right: 12px;
}

.card-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: white;
  background: rgba(245, 158, 11, 0.94);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: 0.2s ease;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

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

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card.compact .card-body h2,
.dark-section .card-body h2 {
  color: white;
}

.card-body p {
  margin: 0 0 12px;
  min-height: 48px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.movie-card.compact .card-body p,
.dark-section .card-body p {
  color: #cbd5e1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 12px;
}

.card-meta span {
  padding: 4px 8px;
  background: #f1f5f9;
  border-radius: 999px;
}

.movie-card.compact .card-meta span,
.dark-section .card-meta span {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}

.dark-section {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 26rem),
    linear-gradient(135deg, #0f172a, #020617);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.rank-list.wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px;
  color: #e2e8f0;
  border-radius: 14px;
  transition: 0.2s ease;
}

.rank-list.wide .rank-item {
  color: #0f172a;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.rank-item:hover {
  background: rgba(245, 158, 11, 0.12);
}

.rank-item span {
  grid-row: 1 / 3;
  color: #f59e0b;
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  grid-row: 1 / 3;
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-item strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

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

.sub-hero {
  padding: 78px 0 68px;
  color: white;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.24), transparent 28rem),
    linear-gradient(135deg, #0f172a, #1e293b 52%, #020617);
}

.sub-hero h1 {
  color: white;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.05em;
}

.sub-hero p {
  width: min(720px, 100%);
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px 170px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 15px;
  color: #0f172a;
  background: #f8fafc;
}

.empty-state {
  display: none;
  padding: 46px 20px;
  color: #64748b;
  text-align: center;
  background: white;
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

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

.search-large {
  padding: 16px;
  margin-bottom: 18px;
}

.search-status {
  margin-bottom: 26px;
  padding: 16px 20px;
  color: #475569;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 24px 0;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-main {
  background:
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #f8fafc 42%, #f8fafc 100%);
}

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

.player-card,
.detail-side {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28));
  border: 0;
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--amber), var(--red));
  border-radius: 50%;
  box-shadow: 0 24px 54px rgba(239, 68, 68, 0.34);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 20px;
}

.detail-side {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.detail-side > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.detail-side h1 {
  margin-bottom: 12px;
  color: white;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.detail-side p {
  color: #cbd5e1;
  line-height: 1.8;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.meta-list dt {
  color: #94a3b8;
}

.meta-list dd {
  margin: 0;
  color: white;
}

.detail-text {
  padding-top: 42px;
}

.article-card {
  padding: clamp(24px, 4vw, 42px);
}

.article-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 30px;
}

.article-card h2:not(:first-child) {
  margin-top: 34px;
}

.article-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

.footer-brand strong {
  color: white;
  font-size: 22px;
}

.site-footer p {
  margin: 18px 0 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

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

  .two-column,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  body {
    background: linear-gradient(180deg, #020617 0%, #0f172a 30%, #f8fafc 30%, #f8fafc 100%);
  }

  .site-nav {
    height: 64px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .hero-stage {
    height: 610px;
  }

  .hero-content {
    left: 18px;
    bottom: 76px;
    width: calc(100% - 36px);
  }

  .hero-control {
    display: none;
  }

  .intro-strip,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .category-overview,
  .movie-grid,
  .mini-grid,
  .compact-grid,
  .catalog-grid,
  .rank-list.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 50px 0;
  }

  .detail-layout {
    gap: 18px;
  }
}

@media (max-width: 540px) {
  .page-wrap,
  .site-nav,
  .footer-grid,
  .mini-section {
    width: min(100% - 22px, 1180px);
  }

  .hero-stage {
    height: 560px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .category-grid,
  .category-overview,
  .movie-grid,
  .mini-grid,
  .compact-grid,
  .catalog-grid,
  .rank-list.wide {
    grid-template-columns: 1fr;
  }

  .intro-search form,
  .search-large,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-search input,
  .search-large input {
    width: 100%;
  }

  .card-cover,
  .detail-side > img {
    aspect-ratio: 16 / 10;
  }
}
