:root {
  --color-bg: #020617;
  --color-bg-soft: #0f172a;
  --color-panel: rgba(15, 23, 42, 0.82);
  --color-panel-strong: rgba(30, 41, 59, 0.9);
  --color-border: rgba(51, 65, 85, 0.9);
  --color-text: #f8fafc;
  --color-muted: #94a3b8;
  --color-muted-strong: #cbd5e1;
  --color-cyan: #22d3ee;
  --color-cyan-deep: #06b6d4;
  --color-teal: #14b8a6;
  --color-emerald: #10b981;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at 15% 5%, rgba(34, 211, 238, 0.12), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(20, 184, 166, 0.11), transparent 38rem),
    var(--color-bg);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-cyan-deep), var(--color-teal));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24);
  transition: transform 0.28s ease;
}

.brand:hover .brand__mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand__text {
  display: grid;
  line-height: 1.2;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__tagline {
  color: var(--color-muted);
  font-size: 0.72rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  color: var(--color-muted-strong);
  padding: 10px 11px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-cyan);
  background: rgba(34, 211, 238, 0.1);
}

.header-search,
.mobile-search,
.home-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.home-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(51, 65, 85, 0.9);
  color: var(--color-text);
  background: rgba(15, 23, 42, 0.92);
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.home-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-cyan-deep), var(--color-teal));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.home-search button:hover,
.search-page-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--color-text);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  margin-bottom: 14px;
}

.mobile-search input {
  width: 100%;
  padding: 11px 14px;
}

.mobile-nav__links {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  max-height: 820px;
  overflow: hidden;
  background: #020617;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.06);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.18) 40%, rgba(2, 6, 23, 0.68) 100%);
}

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

.hero-pill,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--color-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.12);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 16px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--color-muted-strong);
  font-size: clamp(1rem, 1.6vw, 1.26rem);
}

.hero-tags,
.detail-tags,
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.genre-tags span {
  color: #dffbff;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 850;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan-deep), var(--color-teal));
  padding: 13px 22px;
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.22);
}

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

.primary-button--full {
  width: 100%;
}

.ghost-button {
  color: var(--color-text);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.58);
  padding: 12px 18px;
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  border-color: rgba(34, 211, 238, 0.46);
  color: var(--color-cyan);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.56);
  border-radius: 999px;
  font-size: 2.1rem;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-arrow:hover {
  color: var(--color-cyan);
  background: rgba(15, 23, 42, 0.86);
}

.hero-arrow--prev {
  left: 22px;
}

.hero-arrow--next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.65);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.home-search-band {
  width: min(1280px, calc(100% - 32px));
  margin: -46px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px);
  gap: 26px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.78));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.home-search-band h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.home-search-band p {
  margin: 0;
  color: var(--color-muted);
}

.home-search input,
.search-page-form input {
  width: 100%;
  padding: 13px 16px;
}

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

.page-container--top {
  padding-top: 38px;
}

.content-section {
  margin: 70px 0;
}

.content-section--panel {
  padding: 28px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.52));
}

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

.section-heading--compact {
  align-items: center;
}

.section-heading h2,
.page-hero h1,
.detail-header h1 {
  margin: 10px 0 0;
  color: var(--color-text);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-more,
.text-button {
  color: var(--color-cyan);
  padding: 10px 13px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(34, 211, 238, 0.08);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.76);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, border 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34);
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.movie-card:hover .movie-card__poster img {
  transform: scale(1.08);
  opacity: 0.92;
}

.movie-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.88);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 850;
}

.movie-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .movie-card__play {
  opacity: 1;
  transform: scale(1);
}

.movie-card__body {
  padding: 15px;
}

.movie-card__title {
  display: -webkit-box;
  min-height: 3em;
  overflow: hidden;
  color: var(--color-text);
  font-weight: 850;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__title:hover {
  color: var(--color-cyan);
}

.movie-card__meta {
  margin: 7px 0 8px;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.movie-card__desc {
  display: -webkit-box;
  height: 3.9em;
  margin: 0;
  overflow: hidden;
  color: var(--color-muted-strong);
  font-size: 0.88rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card--wide {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card--wide .movie-card__poster {
  min-height: 100%;
  aspect-ratio: 16 / 13;
}

.movie-card--wide .movie-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

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

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.ranking-panel,
.aside-panel,
.poster-panel,
.search-page-panel,
.filter-panel {
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

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

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.46);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(3px);
  background: rgba(30, 41, 59, 0.74);
}

.rank-item__number {
  color: var(--color-cyan);
  font-size: 1.2rem;
  font-weight: 900;
}

.rank-item__poster {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
}

.rank-item__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-item__title {
  display: block;
  overflow: hidden;
  color: var(--color-text);
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item p,
.rank-item span {
  display: block;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item span {
  color: var(--color-muted-strong);
}

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

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

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

.category-tile,
.category-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.68);
  transition: transform 0.24s ease, border 0.24s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.38);
}

.category-tile__images,
.category-card__image {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.category-tile__images img,
.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile__body,
.category-card__body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.category-tile strong,
.category-card h2 {
  color: var(--color-text);
  font-size: 1.18rem;
  line-height: 1.25;
}

.category-tile em,
.category-card span,
.category-card p {
  color: var(--color-muted);
  font-style: normal;
  font-size: 0.9rem;
}

.category-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.category-card__links a {
  color: var(--color-muted-strong);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.category-card__links a:hover {
  color: var(--color-cyan);
  border-color: rgba(34, 211, 238, 0.32);
}

.page-hero {
  padding: 36px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.16), transparent 32rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
  box-shadow: var(--shadow-soft);
}

.page-hero p {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--color-muted-strong);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 160px 180px auto;
  gap: 12px;
  align-items: center;
  margin: 28px 0;
  padding: 18px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
}

.filter-count {
  color: var(--color-cyan);
  font-weight: 850;
  white-space: nowrap;
}

.ranking-layout {
  margin: 30px 0 76px;
}

.search-page-panel {
  margin: 26px 0;
  padding: 22px;
}

.search-page-form {
  max-width: 760px;
}

.search-status {
  margin-top: 14px;
  color: var(--color-muted);
}

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

.detail-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
}

.player-overlay.is-hidden {
  display: none;
}

.player-overlay__icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-cyan-deep), var(--color-teal));
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.28);
  font-size: 2rem;
  text-indent: 5px;
}

.player-overlay__title {
  max-width: min(72%, 620px);
  font-size: clamp(1.1rem, 2.3vw, 2rem);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.detail-header {
  margin: 28px 0;
}

.detail-header p {
  margin: 14px 0 18px;
  color: var(--color-muted-strong);
  font-size: 1.08rem;
}

.detail-section {
  margin: 22px 0;
  padding: 24px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.66);
}

.detail-section h2,
.aside-panel h2,
.footer-column h2 {
  margin: 0 0 12px;
  color: var(--color-text);
  font-size: 1.25rem;
}

.detail-section p {
  margin: 0;
  color: var(--color-muted-strong);
}

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

.movie-info-grid div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.58);
}

.movie-info-grid dt {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.movie-info-grid dd {
  margin: 4px 0 0;
  color: var(--color-text);
  font-weight: 850;
}

.movie-info-grid a:hover {
  color: var(--color-cyan);
}

.detail-aside {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.poster-panel {
  padding: 16px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.aside-panel {
  padding: 20px;
}

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

.aside-links a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 12px;
  color: var(--color-text);
  background: rgba(30, 41, 59, 0.46);
  font-weight: 800;
}

.aside-links a:hover {
  color: var(--color-cyan);
  background: rgba(30, 41, 59, 0.72);
}

.aside-links span {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(2, 6, 23, 0.72);
}

.site-footer__inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--color-muted);
}

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

.footer-links a {
  color: var(--color-muted);
}

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

.site-footer__bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #64748b;
  border-top: 1px solid rgba(30, 41, 59, 0.82);
  font-size: 0.9rem;
}

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

  .header-search {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

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

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

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

  .detail-aside,
  .ranking-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    height: auto;
    min-height: 66px;
    padding: 10px 0;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .header-search {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

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

  .home-search-band,
  .two-column-section,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .home-search-band {
    margin-top: 16px;
  }

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

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

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

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

@media (max-width: 640px) {
  .page-container,
  .site-header__inner,
  .site-footer__inner,
  .site-footer__bottom,
  .home-search-band,
  .mobile-nav {
    width: min(100% - 24px, 1280px);
  }

  .brand__tagline {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-arrow {
    display: none;
  }

  .content-section,
  .site-footer {
    margin-top: 48px;
  }

  .content-section--panel,
  .page-hero,
  .detail-section {
    padding: 20px;
  }

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

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

  .movie-card--wide {
    grid-template-columns: 1fr;
  }

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

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

  .rank-item {
    grid-template-columns: 34px 62px minmax(0, 1fr);
    gap: 10px;
  }

  .player-overlay__icon {
    width: 60px;
    height: 60px;
  }
}
