.header {
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(16px);
}

.header__inner {
  grid-template-columns: auto auto minmax(160px, 1fr) auto;
  grid-template-areas: none;
  gap: 18px 22px;
  min-height: 72px;
}

.header .logo__word,
.footer .logo__word {
  font-size: 18px;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.header .logo__word span,
.footer .logo__word span {
  color: var(--green);
  letter-spacing: 0.04em;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-nav);
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-current {
  color: var(--green);
  background: var(--hover-soft);
}

.search {
  width: min(100%, 280px);
  justify-self: end;
}

.search input:focus {
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.16);
}

.page {
  padding-top: 18px;
}

.panel {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 6px 0 2px;
}

.section__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section__glyph {
  color: var(--green);
}

.see-all {
  color: var(--text-muted);
  font-weight: 600;
}

.see-all:hover {
  color: var(--green);
}

.hero {
  position: relative;
  margin: 0 0 10px;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0d12;
  color: #fff;
}

.hero__slider {
  position: relative;
  min-height: 460px;
}

.hero__track {
  position: relative;
  min-height: 460px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.hero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  min-height: 460px;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.94) 0%, rgba(8, 10, 14, 0.62) 46%, rgba(8, 10, 14, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.05) 40%, rgba(8, 10, 14, 0.72) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 620px;
  min-height: 460px;
  padding: 52px 64px 72px;
  box-sizing: border-box;
}

.badge--premiere {
  height: auto;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  max-width: 12ch;
  font-family: "Manrope", var(--font);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.hero__meta > span + span::before {
  content: "·";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.45);
}

.hero__desc {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.hero .btn--primary {
  background: var(--green);
  color: #fff;
}

.hero .btn--primary:hover {
  background: var(--green-dark);
  color: #fff;
}

.hero .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 14, 18, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.hero__arrow:hover {
  background: rgba(12, 14, 18, 0.72);
}

.hero__arrow--prev { left: 14px; }
.hero__arrow--next { right: 14px; }

.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.hero__dots button {
  width: 18px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero__dots button.is-active {
  width: 28px;
  background: var(--green);
}

.card--catalog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.card--catalog .card__poster {
  border-radius: 14px 14px 0 0;
}

.card--catalog .card__badges {
  left: auto;
  right: 8px;
  top: 8px;
  justify-content: flex-end;
}

.card--catalog .badge {
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(10, 12, 16, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.card--catalog .card__fav {
  top: 8px;
  left: 8px;
  right: auto;
  border-radius: 8px;
}

.card--catalog .card__info {
  background: transparent;
  padding: 10px 12px 12px;
}

.card--catalog .card__title {
  font-size: 14px;
}

.card--catalog .card__meta {
  color: var(--text-muted);
  font-size: 12px;
}

.card--catalog .rating-kp {
  color: var(--star);
  font-weight: 700;
}

.card--catalog .rating-kp svg {
  color: var(--star);
}

.news-feed {
  display: grid;
  gap: 12px;
}

.news-feed .ncard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.news-feed .ncard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
}

.news-feed .ncard__link {
  display: block;
  padding: 16px 18px 16px 20px;
}

.news-feed .ncard__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 22px;
  margin-bottom: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--hover-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-feed .ncard__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.news-feed .ncard__text {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.news-feed .ncard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.title-info__name {
  font-family: "Manrope", var(--font);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.title-watch,
.title-trailer,
.title-fav {
  border-radius: 12px;
}

.title-layout {
  gap: 28px;
}

.footer {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer__label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.socials a,
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--hover-soft);
  color: var(--green);
}

.socials a:hover,
.footer__social a:hover {
  background: var(--green);
  color: #fff;
}

@media (min-width: 1100px) {
  .nav {
    display: flex;
  }

  .header__burger {
    display: none;
  }
}

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

  .search {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 768px) {
  .header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "search search";
    gap: 10px 8px;
    min-height: 0;
    padding-block: 10px;
  }

  .header__inner .logo { grid-area: logo; }
  .header__actions { grid-area: actions; }

  .header__inner .search {
    grid-area: search;
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .hero__slider,
  .hero__track,
  .hero__slide.is-active,
  .hero__content {
    min-height: 420px;
  }

  .hero__content {
    padding: 28px 22px 64px;
  }

  .hero__arrow {
    display: none;
  }

  .header__action > span:not(.header__fav-count) {
    display: none;
  }

  .header__action {
    padding-right: 0;
  }
}
