:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-bright: rgba(34, 211, 238, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --purple: #a855f7;
  --orange: #fb923c;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(8, 145, 178, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(168, 85, 247, 0.14), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 70vh;
}

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

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.34);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text em {
  margin-top: 3px;
  color: rgba(34, 211, 238, 0.78);
  font-size: 12px;
  font-style: normal;
}

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

.desktop-nav a {
  color: var(--soft);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--cyan);
}

.header-search {
  position: relative;
  width: 270px;
  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,
.mobile-panel input,
.quick-search input,
.search-large input,
.catalog-filter input,
.catalog-filter select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.header-search input {
  padding: 11px 12px 11px 16px;
  font-size: 14px;
}

.header-search button,
.quick-search button,
.search-large button,
.mobile-panel button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
}

.header-search button {
  align-self: stretch;
  padding: 0 16px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.96);
  padding: 18px 20px 24px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.mobile-panel input {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.86);
}

.mobile-panel button {
  border-radius: 14px;
  padding: 0 18px;
}

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

.mobile-panel nav a {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.58);
}

.hero {
  position: relative;
  min-height: 620px;
  height: 85vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.015);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.62) 48%, rgba(2, 6, 23, 0.26) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 42%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 94px;
}

.hero-kicker,
.eyebrow,
.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--soft);
  font-weight: 800;
}

.hero-kicker span,
.eyebrow,
.detail-badge {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  border-radius: 999px;
  padding: 7px 12px;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.28);
}

.hero-kicker em {
  color: var(--muted);
  font-style: normal;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero p {
  width: min(720px, 100%);
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.48);
}

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

.btn-primary,
.btn-soft,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.26);
}

.btn-soft {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.62);
}

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

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

.tag-row span {
  color: rgba(226, 232, 240, 0.86);
  font-size: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.5);
  border-radius: 999px;
  padding: 4px 9px;
}

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

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(226, 232, 240, 0.4);
  transition: width 0.3s ease, background 0.3s ease;
}

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

.hero-panel {
  position: absolute;
  z-index: 4;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 84px;
  width: 310px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel > span {
  display: block;
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: 12px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 18px;
  color: var(--soft);
  transition: background 0.2s ease;
}

.hero-mini:hover {
  background: rgba(34, 211, 238, 0.12);
}

.hero-mini img {
  width: 62px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.9);
}

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

.quick-search-wrap {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.quick-search,
.search-large {
  display: flex;
  gap: 12px;
}

.quick-search input,
.search-large input {
  min-height: 54px;
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.quick-search button,
.search-large button {
  border-radius: 18px;
  padding: 0 28px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  color: var(--soft);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(2, 6, 23, 0.34);
}

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

.first-section {
  padding-top: 82px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.section-more,
.text-link {
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 10px 15px;
  background: rgba(8, 145, 178, 0.08);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-bright);
  box-shadow: 0 22px 50px rgba(34, 211, 238, 0.14);
}

.poster-link,
.poster-wrap {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.12)), #0f172a;
}

.small-card .poster-wrap,
.catalog-grid .poster-wrap {
  aspect-ratio: 4 / 3;
}

.movie-card img,
.category-card img,
.category-cover img,
.ranking-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.movie-card:hover img,
.category-card:hover img,
.ranking-card:hover img {
  transform: scale(1.08);
}

.movie-image.is-missing {
  opacity: 0;
}

.poster-shade,
.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 58%);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card-body {
  padding: 16px;
}

.card-meta {
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
}

.card-meta span {
  padding: 3px 8px;
}

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

.movie-card p {
  min-height: 48px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.spotlight-section {
  width: min(1220px, calc(100% - 24px));
  margin-top: 72px;
  padding: 42px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.72));
  box-shadow: var(--shadow);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.72);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
}

.category-card strong {
  font-size: 24px;
  font-weight: 900;
}

.category-card em {
  margin-top: 8px;
  color: var(--soft);
  font-style: normal;
  line-height: 1.5;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 70px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.58);
}

.rank-number {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 70px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #0f172a;
}

.rank-title {
  color: #fff;
  font-weight: 900;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 148px max(16px, calc((100vw - 1180px) / 2)) 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.22), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.slim-hero {
  min-height: 420px;
  display: flex;
  align-items: end;
}

.page-hero h1,
.detail-main h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  width: min(760px, 100%);
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
}

.crumbs a {
  color: var(--cyan);
}

.catalog-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.64);
}

.catalog-filter label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog-filter input,
.catalog-filter select {
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 15px;
  padding: 0 14px;
  background: rgba(2, 6, 23, 0.45);
}

.category-overview-grid {
  display: grid;
  gap: 20px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.62);
}

.category-cover {
  display: block;
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.category-overview-card p {
  color: var(--soft);
  line-height: 1.8;
}

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

.category-preview span {
  color: var(--soft);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
}

.ranking-grid {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-bright);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 120px;
  background: #0f172a;
}

.ranking-cover span {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
}

.ranking-card h2 {
  margin: 12px 0 10px;
  font-size: 26px;
}

.ranking-card p {
  color: var(--soft);
  line-height: 1.75;
}

.detail-hero {
  min-height: 650px;
  padding-bottom: 76px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(2px);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 8%, rgba(2, 6, 23, 0.64) 100%);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.detail-one {
  width: min(780px, 100%);
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-shell {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
}

.player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 25px;
  background: #000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.24), rgba(2, 6, 23, 0.36) 45%, rgba(2, 6, 23, 0.76) 100%);
}

.player-start span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.34);
  position: relative;
}

.player-start span::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 27px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #fff;
}

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

.player.is-playing .player-start {
  display: none;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}

.text-panel {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.58);
}

.text-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.text-panel p {
  margin: 0;
  color: var(--soft);
  line-height: 1.95;
  font-size: 16px;
}

.search-page {
  min-height: 520px;
}

.search-large {
  margin-bottom: 24px;
}

.search-status {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--soft);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
}

.is-hidden {
  display: none !important;
}

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

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

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

  .hero-panel {
    display: none;
  }

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

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .brand-text em {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 720px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .quick-search,
  .search-large,
  .catalog-filter,
  .detail-layout,
  .detail-columns,
  .category-overview-card,
  .ranking-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .quick-search,
  .search-large {
    flex-direction: column;
  }

  .quick-search button,
  .search-large button {
    min-height: 48px;
  }

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

  .spotlight-section {
    padding: 24px;
  }

  .detail-layout {
    align-items: start;
  }

  .detail-poster {
    width: min(320px, 100%);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .quick-search-wrap,
  .content-section,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero {
    min-height: 660px;
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .hero h1,
  .page-hero h1,
  .detail-main h1 {
    font-size: 40px;
  }

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

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

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

  .page-hero,
  .detail-hero {
    padding-top: 118px;
  }

  .rank-row {
    grid-template-columns: 34px 60px 1fr;
  }

  .rank-row em {
    grid-column: 3;
  }
}
