:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.32);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --yellow: #facc15;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(34, 211, 238, 0.16), transparent 24rem),
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.2), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.34);
}

.brand__text {
  font-size: 22px;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #67e8f9;
  background: rgba(14, 165, 233, 0.12);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.top-search {
  margin-left: auto;
  position: relative;
  width: 300px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.top-search input {
  padding: 12px 48px 12px 18px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.top-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--cyan);
  background: transparent;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
}

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

.mobile-panel__inner {
  padding: 14px 0 18px;
  display: grid;
  gap: 10px;
}

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

.mobile-search input {
  padding: 12px 16px;
}

.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: white;
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.24);
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s 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.04);
  filter: saturate(1.08) contrast(1.06);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 26%, rgba(34, 211, 238, 0.12), transparent 28rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.28) 72%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.25) 40%, rgba(2, 6, 23, 0.65) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 82px;
}

.hero-copy {
  max-width: 760px;
  padding-top: 120px;
}

.hero-kicker,
.hero-meta,
.movie-card__labels,
.movie-card__foot,
.movie-list-card__top,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kicker span,
.hero-kicker a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

.hero-kicker span {
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  color: white;
}

.hero-kicker a {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.54);
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-meta span,
.detail-meta span {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
}

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

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

.primary-button {
  color: white;
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  padding: 14px 24px;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

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

.primary-button:hover {
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.34);
}

.soft-button {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 14px 24px;
}

.hero-dots {
  position: absolute;
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  display: flex;
  gap: 10px;
  z-index: 8;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.78);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: var(--cyan);
}

.intro-strip {
  margin-top: -42px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.76));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-strip h2,
.page-hero h1,
.section-head h2,
.detail-copy h1 {
  margin: 0;
}

.intro-strip h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.intro-strip p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

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

.hero-search input,
.search-page-form input {
  padding: 14px 18px;
}

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

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

.section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--cyan);
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
}

.section-more,
.ghost-link {
  color: #bae6fd;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  padding: 10px 16px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card,
.movie-list-card,
.category-overview-card,
.detail-article,
.detail-side,
.player-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 24px 60px rgba(8, 145, 178, 0.18);
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.movie-card--large .movie-card__poster {
  aspect-ratio: 16 / 10;
}

.movie-card__poster img,
.movie-list-card__poster img,
.category-tile img,
.category-overview-card__cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-card__poster img,
.movie-list-card:hover .movie-list-card__poster img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
}

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

.quality,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 850;
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
}

.rank-badge {
  left: 10px;
  right: auto;
  background: linear-gradient(90deg, #f97316, #facc15);
  color: #111827;
}

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: white;
  background: rgba(6, 182, 212, 0.88);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.movie-card__body {
  padding: 14px;
}

.movie-card__labels span,
.movie-list-card__top span {
  color: var(--muted);
  font-size: 12px;
}

.movie-card h2,
.movie-list-card h2,
.category-overview-card h2 {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.movie-list-card h2 a:hover,
.category-overview-card h2 a:hover,
.mini-link-list a:hover,
.detail-side a:hover {
  color: var(--cyan);
}

.movie-card p,
.movie-list-card p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.movie-card p {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__foot {
  margin-top: 14px;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 13px;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--yellow);
  font-weight: 850;
}

.movie-card--minimal .movie-card__body {
  padding: 12px 0 0;
  background: transparent;
}

.movie-card--minimal {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.movie-card--minimal:hover {
  box-shadow: none;
}

.movie-card--minimal h2 {
  font-size: 15px;
  margin-top: 0;
}

.movie-card__meta {
  color: var(--muted-2);
  font-size: 12px;
}

.category-section {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  padding: 34px;
  margin-top: 72px;
  background: rgba(15, 23, 42, 0.42);
}

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

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

.category-tile {
  position: relative;
  min-height: 190px;
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
  border: 1px solid var(--line);
}

.category-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.92));
}

.category-tile__name,
.category-tile__desc {
  position: absolute;
  left: 16px;
  right: 16px;
}

.category-tile__name {
  bottom: 56px;
  font-size: 20px;
  font-weight: 850;
}

.category-tile__desc {
  bottom: 16px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.movie-list-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-list-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 18px 50px rgba(8, 145, 178, 0.14);
}

.movie-list-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
}

.movie-list-card h2 {
  font-size: 22px;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #cbd5e1;
  font-size: 12px;
  background: rgba(51, 65, 85, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.subpage {
  padding-top: var(--header-h);
  min-height: 70vh;
}

.page-hero {
  padding: 64px 0 12px;
}

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

.page-hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
}

.category-overview-card__cover {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.category-overview-card__cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 6px 12px;
  color: white;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.9);
}

.category-overview-card__body {
  padding: 22px;
}

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-link-list a {
  color: #cbd5e1;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(51, 65, 85, 0.52);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 16px;
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.filter-panel input,
.filter-panel select {
  padding: 12px 14px;
  border-radius: 14px;
}

.detail-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  padding-top: var(--header-h);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.04);
}

.detail-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.38)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.52) 55%, rgba(2, 6, 23, 0.72) 100%);
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 74px;
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1.75;
}

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

.player-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: white;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 20rem),
    rgba(2, 6, 23, 0.58);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-cover__button {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  color: white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.36);
}

.player-cover__button svg {
  font-size: 34px;
}

.player-cover__title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 850;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
}

.player-cover__text {
  color: #dbeafe;
  font-weight: 750;
}

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

.detail-article,
.detail-side {
  border-radius: var(--radius);
  padding: 28px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 28px;
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.detail-side dl {
  margin: 0;
}

.detail-side dt {
  color: var(--muted-2);
  margin-top: 16px;
  font-size: 13px;
}

.detail-side dd {
  margin: 4px 0 0;
  color: var(--text);
  line-height: 1.6;
}

.search-page-form {
  max-width: 680px;
  margin-top: 28px;
}

.search-empty {
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 42px 18px;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 44px 0;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.7;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--cyan);
}

.brand--footer {
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted-2);
  text-align: center;
  padding: 18px;
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero {
    min-height: 620px;
  }

  .intro-strip,
  .detail-hero__grid,
  .detail-content-grid,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

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

  .brand__text {
    font-size: 19px;
  }

  .brand__icon {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 590px;
    height: 78vh;
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .hero-meta span {
    font-size: 12px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 24px;
  }

  .intro-strip {
    padding: 20px;
  }

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

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

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

  .movie-grid--four,
  .movie-grid--three,
  .movie-grid--six,
  .movie-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .movie-list-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .movie-list-card .ghost-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .movie-list-card h2 {
    font-size: 17px;
  }

  .movie-list-card p,
  .tag-row {
    display: none;
  }

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

  .category-overview-card__cover {
    min-height: 190px;
  }

  .detail-hero {
    min-height: auto;
    padding-bottom: 40px;
  }

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

  .detail-copy h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .detail-one-line {
    font-size: 17px;
  }

  .detail-article,
  .detail-side {
    padding: 20px;
  }

  .footer-grid {
    gap: 20px;
  }
}

@media (max-width: 460px) {
  .movie-grid--four,
  .movie-grid--three,
  .movie-grid--six,
  .movie-grid--catalog {
    grid-template-columns: 1fr 1fr;
  }

  .movie-card__body {
    padding: 11px;
  }

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

  .movie-card p {
    display: none;
  }

  .player-cover__button {
    width: 68px;
    height: 68px;
  }
}
