/* ========================================================================
   pages.css — Per-page styles (archive design, v4)
   Header/footer/home-hero/services live in design.css.
   This file covers: entertainment hub, catalog, page-hero, music,
   info blocks, language switcher, player bar, plus SPA-only helpers.
   ======================================================================== */

/* -------- Breadcrumbs -------- */
/* Fixed height so that the breadcrumb strip is identical in size on every
   page (catalog, ent-hero, info-home, container). Wrapping (flex-wrap)
   may take a second row on extremely narrow screens — height grows then. */
.breadcrumbs {
  display: flex;
  gap: 2px;
  align-items: center;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  flex-wrap: wrap;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
}
.breadcrumbs a,
.breadcrumbs__sep {
  opacity: 0.6;
  padding: 4px 4px;
}
.breadcrumbs__current {
  opacity: 0.85;
  padding: 4px 4px;
}
.breadcrumbs a:hover {
  opacity: 1;
  color: #fe0bbc;
}

/* Legacy breadcrumb (SPA older) — kept for compat */
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #a78bfa;
}
.breadcrumb span {
  color: rgba(255, 255, 255, 0.85);
}

/* =================================================================
   HERO-GLASS — общий компонент для /entertainment, /services,
   /landmarks, /information. Контент (заголовок, описание, иконка)
   меняется per-страница; CSS общий. Модификатор --services сильнее
   сдвигает иконку (колокольчик заходит на рамку чуть глубже).
   ================================================================= */
.hero-glass {
  position: relative;
  margin: 24px 0 48px;
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-glass__text {
  flex: 0 1 700px;
  min-width: 0;
  min-height: 494px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 100px 80px;
  border-radius: 100px;
  background: rgba(4, 21, 63, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0.3px 1px 2px rgba(255, 255, 255, 0.4),
    inset 0.3px -1px 2px rgba(255, 255, 255, 0.4),
    0 24px 60px rgba(0, 0, 0, 0.35);
}
.hero-glass__title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0;
}
.hero-glass__desc {
  font-size: 26px;
  line-height: 1.45;
  color: #fff;
  opacity: 0.75;
  max-width: 560px;
  margin: 0;
}
.hero-glass__image {
  flex: 0 0 auto;
  width: 460px;
  height: 540px;
  object-fit: contain;
  margin-left: -40px; /* лёгкий overlap правой рамки текст-блока */
  align-self: center;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 32px rgba(192, 132, 252, 0.5));
  pointer-events: none;
}
/* Модификатор для /services — колокольчик сильнее заходит на рамку */
.hero-glass--services .hero-glass__image {
  width: 520px;
  margin-left: -80px;
  transform: rotate(-5deg);
  transform-origin: center;
}

/* Stacked: image уходит вниз и заходит в padding-bottom рамки */
@media (max-width: 1100px) {
  .hero-glass {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
  }
  .hero-glass__text {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: 360px;
    padding: 60px 50px 160px;
    border-radius: 60px;
    justify-content: flex-start;
  }
  .hero-glass__title {
    font-size: 40px;
  }
  .hero-glass__image {
    width: 240px;
    height: auto;
    margin: -140px auto 0; /* image заходит в padding-bottom и торчит снизу */
    align-self: center;
  }
  .hero-glass--services .hero-glass__image {
    width: 240px;
    margin: -140px auto 0;
  }
}

@media (max-width: 768px) {
  .hero-glass {
    margin: 16px 0 28px;
  }
  .hero-glass__text {
    padding: 24px 22px 130px;
    border-radius: 28px;
    min-height: 240px;
    gap: 14px;
  }
  .hero-glass__title {
    font-size: 26px;
    line-height: 1.2;
  }
  .hero-glass__desc {
    font-size: 16px;
    line-height: 1.5;
  }
  .hero-glass__image {
    width: 200px;
    margin: -110px auto 0;
  }
  .hero-glass--services .hero-glass__image {
    width: 200px;
    margin: -110px auto 0;
  }
}

/* -------- Entertainment hero -------- */
.ent-hero {
  position: relative;
  padding: 36px 0 40px;
}
.ent-hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 108px;
}

/* chips must be above decorative image */

/* -------- Chips row (categories) -------- */
.chips {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 108px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.chip {
  flex: 0 1 220px;
  height: 60px;
  padding: 16px 40px;
  border-radius: 40px;
  background: rgba(3, 16, 47, 0.4);
  border: 2px solid #a100ff;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}
.chip:hover {
  background: rgba(161, 0, 255, 0.25);
  transform: translateY(-1px);
}
.chip--active,
.chip.active {
  background: linear-gradient(100deg, #a100ff 5%, #fe0bbc 100%);
  border-color: transparent;
  box-shadow:
    inset 0 2px 2px rgba(240, 215, 255, 0.4),
    inset -2px 0 2px rgba(255, 205, 244, 0.4);
}

/* -------- Section header with "see all" link -------- */
.ent-section {
  position: relative;
  padding: 40px 0;
}
.ent-section__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 108px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.ent-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ent-section__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  color: #fff;
}
.ent-section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 16px 22px 16px 24px;
  border-radius: 12px;
  background: rgba(4, 21, 63, 0.4);
  box-shadow:
    inset 1.5px 1.5px 2px rgba(250, 0, 255, 0.6),
    inset -1px -1px 2px rgba(173, 32, 255, 0.8);
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  transition: transform 0.15s;
}
.ent-section__link:hover {
  transform: translateY(-1px);
}
.ent-section__link img {
  width: 24px;
  height: 24px;
  transform: rotate(-90deg);
}

/* -------- Media grid (6 cards per row) -------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(6, 184px);
  gap: 24px;
  justify-content: space-between;
  width: 100%;
}
.media-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 184px;
  color: #fff;
}
.media-card__cover {
  position: relative;
  width: 184px;
  height: 284px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.media-card__cover img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}
.media-card__audio-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(4, 21, 63, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 1px 1px 1px rgba(250, 0, 255, 0.55),
    inset -1px -1px 1px rgba(173, 32, 255, 0.7),
    0 2px 10px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2;
}
.media-card__audio-badge svg {
  width: 16px;
  height: 16px;
}
.media-card__lang-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(4, 21, 63, 0.55);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 1px 1px 1px rgba(250, 0, 255, 0.45),
    inset -1px -1px 1px rgba(173, 32, 255, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2;
}
.media-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.5;
}
.media-card__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #fff;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.media-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #9cabbc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-card__bullet {
  width: 3px;
  height: 3px;
  flex-shrink: 0;
}
.media-card__artist {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #aeb3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-card__age {
  position: absolute;
  top: 6px;
  right: 6px;
  height: 28px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(4, 21, 63, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0.3px 1px 2px rgba(255, 255, 255, 0.4),
    inset 0.3px -1px 2px rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #fff;
  z-index: 2;
}

/* Song variant — square cover */
.media-card--song .media-card__cover {
  height: 184px;
}
/* Book variant — taller cover */
.media-card--book .media-card__cover {
  height: 292px;
}

/* -------- Games + Press CTA pair -------- */
.ent-cta-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 108px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.ent-cta {
  padding: 32px;
  height: 340px;
  border-radius: 24px;
  background: rgba(4, 21, 63, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0.3px 1px 2px rgba(255, 255, 255, 0.4),
    inset 0.3px -1px 2px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.ent-cta__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
}
.ent-cta__desc {
  font-size: 20px;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.8);
}
.ent-cta__btn {
  width: 100%;
}

/* -------- Decor placements for entertainment -------- */
.decor--ent-spiral {
  left: -80px;
  top: 60px;
  width: 238px;
  height: 190px;
  transform: rotate(56deg);
  z-index: 0;
}
.decor--ent-leaf1 {
  left: -50px;
  bottom: -60px;
  width: 174px;
  height: 152px;
  transform: rotate(150deg);
  z-index: 0;
}
.decor--ent-leaf2 {
  right: -20px;
  top: -40px;
  width: 122px;
  height: 195px;
  transform: rotate(-3.5deg);
  z-index: 0;
}
.decor--ent-leaf3 {
  left: -80px;
  bottom: -80px;
  width: 211px;
  height: 182px;
  transform: rotate(69deg);
  z-index: 0;
}
.decor--ent-leaf4 {
  right: -80px;
  top: -60px;
  width: 211px;
  height: 182px;
  transform: rotate(-54deg);
  z-index: 0;
}

/* -------- Responsive: entertainment -------- */
@media (max-width: 1200px) {
  .ent-hero__inner,
  .chips,
  .ent-section__container,
  .ent-cta-grid {
    padding-left: 40px;
    padding-right: 40px;
  }
  .chips {
    flex-wrap: wrap;
  }
  .chip {
    flex: 1 1 calc(33% - 16px);
    min-width: 140px;
  }
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
  .media-card {
    width: 100%;
  }
  .media-card__cover {
    width: 100%;
  }
  .ent-cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body,
  .page-wrap {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .ent-hero,
  .ent-section,
  .ent-cta-grid,
  .chips {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .ent-hero {
    padding: 20px 0 24px;
  }
  .ent-hero__inner,
  .ent-section__container {
    width: 100%;
    max-width: 100%;
    padding-left: 19px;
    padding-right: 19px;
    margin: 0;
  }
  .chips,
  .ent-cta-grid {
    padding-left: 19px;
    padding-right: 19px;
    margin: 0;
  }
  .breadcrumbs {
    font-size: 14px;
  }

  .chips {
    padding-top: 24px;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex: 0 0 auto;
    height: 40px;
    padding: 10px 20px;
    font-size: 15px;
    line-height: 1;
    border-width: 1px;
  }

  .ent-section {
    padding: 24px 0;
  }
  .ent-section__container {
    gap: 20px;
  }
  .ent-section__head {
    gap: 12px;
  }
  .ent-section__title {
    font-size: 22px;
  }
  .ent-section__link {
    height: 36px;
    padding: 6px 12px 6px 14px;
    font-size: 13px;
    gap: 4px;
  }
  .ent-section__link img {
    width: 18px;
    height: 18px;
  }

  .media-grid {
    display: grid;
    /* minmax(0, 1fr) обязательно — иначе при natural-size картинки внутри
       (audiobook с реальной обложкой) колонка может вырасти за 1fr и
       соседняя сжимается. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    width: 100%;
  }
  .media-card {
    width: 100%;
    /* min-width: 0 — отключает grid-item default min-content sizing, иначе
       картинка натурального размера внутри расширяет ячейку за 1fr. */
    min-width: 0;
  }
  /* Padding-bottom hack для устойчивого аспекта на любом браузере, включая
     Opera Mobile / старые WebKit, где aspect-ratio + height:auto иногда
     ломается, и img натурального размера тянет высоту родителя.
     box-sizing:content-box обязательно — с border-box (глобально через *)
     и height:0 padding-bottom непредсказуемо схлопывается в ряде моторов.
     height:0 повторяется на каждом варианте, иначе фиксированный height
     из desktop-правил .media-card--book/.media-card--song не уйдёт. */
  .media-card__cover {
    box-sizing: content-box;
    width: 100%;
    height: 0;
    aspect-ratio: auto;
    padding-bottom: calc(284 / 184 * 100%);
  }
  .media-card--song .media-card__cover {
    height: 0;
    padding-bottom: 100%;
  }
  .media-card--book .media-card__cover {
    height: 0;
    padding-bottom: calc(292 / 184 * 100%);
  }
  .media-card__title {
    font-size: 14px;
  }
  .media-card__meta,
  .media-card__artist {
    font-size: 12px;
  }

  .ent-cta-grid {
    grid-template-columns: 1fr;
    padding-top: 12px;
    padding-bottom: 24px;
    gap: 16px;
  }
  .ent-cta {
    height: auto;
    padding: 24px;
    gap: 20px;
    border-radius: 20px;
  }
  .ent-cta__title {
    font-size: 24px;
  }
  .ent-cta__desc {
    font-size: 14px;
  }

  .footer {
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px) + 80px);
  }
}

/* =================================================================
   Catalog (movies / books / games / press)
   ================================================================= */
.catalog {
  position: relative;
  padding: 36px 0 40px;
}
.catalog__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 108px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.catalog__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}
.catalog__title {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.2;
  color: #fff;
}
.catalog__desc {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
  opacity: 0.85;
}

/* -------- Catalog search bar -------- */
.catalog__search-wrap {
  width: 100%;
}

.catalog__search {
  display: block;
  width: 100%;
  height: 48px;
  padding: 10px 20px 10px 48px;
  border-radius: 40px;
  background: rgba(4, 21, 63, 0.4)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E")
    no-repeat 18px center;
  box-shadow:
    inset 1.5px 1.5px 2px 0 rgba(250, 0, 255, 0.5),
    inset -1px -1px 2px 0 rgba(173, 32, 255, 0.7);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  border: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow 0.2s ease;
}

.catalog__search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.catalog__search:focus {
  box-shadow:
    inset 1.5px 1.5px 2px 0 rgba(250, 0, 255, 0.8),
    inset -1px -1px 2px 0 rgba(173, 32, 255, 0.9),
    0 0 0 2px rgba(161, 0, 255, 0.3);
}

/* -------- Filter dropdowns row -------- */
.catalog__filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Каждый селект (обёрнутый кастомным dropdown'ом) и нативный input */
.catalog__filters > .dropdown,
.catalog__filters > .dropdown--mini,
.catalog__filters > input.dropdown-mini {
  width: 184px;
  flex: 0 0 184px;
}
.dropdown-mini {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 184px;
  height: 40px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(4, 21, 63, 0.4);
  box-shadow:
    inset 1px 1px 1px rgba(250, 0, 255, 0.6),
    inset -1px -1px 1px rgba(173, 32, 255, 0.8);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
}
select.dropdown-mini {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 32px;
  text-align: center;
  text-align-last: center;
}
.dropdown-mini:hover {
  background: rgba(161, 0, 255, 0.25);
  transform: translateY(-1px);
}
.dropdown-mini__value {
  flex: 1;
  text-align: center;
}
.dropdown-mini__arrow {
  width: 16px;
  height: 16px;
}
.dropdown-mini option {
  background: #2503a9;
  color: #fff;
}

input.dropdown-mini {
  text-align: left;
  padding-left: 16px;
}
input.dropdown-mini::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* -------- Catalog count line -------- */
.catalog__count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.catalog__count-label {
  color: #9cabbc;
  font-weight: 400;
}
.catalog__count-value {
  color: #fff;
  opacity: 0.85;
  font-weight: 500;
}
.catalog__count-sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 6px;
}

/* -------- Movie cards grid (4-col; posters variant: 6-col) -------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 24px;
}
.catalog-grid--posters {
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 16px;
}
.movie-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.movie-card__cover {
  width: 100%;
  aspect-ratio: 288 / 168;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  isolation: isolate; /* чтобы blur не выходил за rounded corners */
}
.catalog-grid--posters .movie-card__cover {
  aspect-ratio: 2 / 3;
}
/* В 9:16-карточке плейсхолдер занимает весь фрейм (а не свой 2/3) */
.catalog-grid--posters .movie-card__cover .no-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
/* Размытая копия того же постера в фоне — заполняет «лишнее» пространство в тон постера. */
.movie-card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--poster-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(160%);
  transform: scale(1.2); /* спрятать края размытия */
  z-index: 0;
}
.movie-card__cover img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain; /* постер виден полностью */
  z-index: 1;
}
.press-pdf-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  color: #0f172a;
}
.press-pdf-cover.is-hidden {
  display: none;
}
.press-pdf-cover canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain;
}
.press-pdf-cover span,
.press-pdf-cover.is-error {
  padding: 12px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.catalog-grid--posters .movie-card__cover::before {
  display: none;
}
.catalog-grid--posters .movie-card__cover img {
  object-fit: cover;
  object-position: center;
}
.movie-card__age {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 10px;
  background: rgba(4, 21, 63, 0.5);
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}
.movie-card__series-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 10px;
  background: linear-gradient(90deg, #a100ff, #fe0bbc);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
  z-index: 100;
}
.movie-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.movie-card__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.movie-card__desc {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}
.movie-card__genres {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #9cabbc;
  overflow: hidden;
  white-space: nowrap;
  flex-wrap: wrap;
}
.movie-card__bullet {
  width: 3px;
  height: 3px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* -------- Pagination (archive design) -------- */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.page-item {
  min-width: 40px;
  height: 40px;
  padding: 10px 16px;
  border-radius: 4px;
  background: rgba(3, 16, 47, 0.4);
  border: 1px solid #a100ff;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.page-item:hover {
  background: rgba(161, 0, 255, 0.25);
}
.page-item--active {
  background: #e612a7;
  border-color: transparent;
  font-weight: 700;
}
.page-item--disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* -------- Decor for catalog -------- */
.decor--cat-leaf-tl {
  left: -80px;
  top: 680px;
  width: 167px;
  height: 145px;
  transform: rotate(139deg);
  z-index: 0;
}
.decor--cat-leaf-tr {
  right: -120px;
  top: -40px;
  width: 211px;
  height: 182px;
  transform: rotate(-54deg);
  z-index: 0;
}
.decor--cat-spiral-br {
  right: -80px;
  bottom: 320px;
  width: 238px;
  height: 190px;
  transform: rotate(-55deg);
  z-index: 0;
}
.decor--cat-leaf-bl {
  left: -150px;
  bottom: -80px;
  width: 211px;
  height: 182px;
  transform: rotate(69deg);
  z-index: 0;
}

/* -------- Responsive: catalog -------- */
@media (max-width: 1200px) {
  .catalog__inner {
    padding-left: 40px;
    padding-right: 40px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 20px;
  }
  .catalog-grid--posters {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 14px;
  }
}
@media (max-width: 768px) {
  body,
  .page-wrap {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .catalog {
    padding: 20px 0 24px;
  }
  .catalog__inner {
    padding: 0 19px;
    gap: 24px;
  }
  .catalog__head {
    gap: 12px;
    max-width: 100%;
  }
  .catalog__title {
    font-size: 28px;
    line-height: 1.2;
  }
  .catalog__desc {
    font-size: 14px;
  }

  .catalog__filters {
    gap: 8px;
  }
  .catalog__filters > .dropdown,
  .catalog__filters > .dropdown--mini,
  .catalog__filters > input.dropdown-mini {
    flex: 1 0 calc(50% - 4px);
    width: auto;
    min-width: 0;
  }
  .catalog__search {
    height: 44px;
    padding: 10px 18px 10px 44px;
    background-size: 18px 18px;
    background-position: 14px center;
    font-size: 14px;
  }
  .dropdown-mini {
    padding: 6px 10px;
    font-size: 14px;
  }

  .catalog__count {
    font-size: 12px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .movie-card {
    gap: 8px;
    min-width: 0;
  }
  .movie-card__cover {
    border-radius: 6px;
  }
  .movie-card__title {
    font-size: 14px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
  .movie-card__desc {
    display: none;
  }
  .movie-card__genres {
    font-size: 11px;
    gap: 3px;
    white-space: normal;
    flex-wrap: wrap;
    height: auto;
    max-height: 32px;
    overflow: hidden;
  }

  .pagination {
    gap: 4px;
    justify-content: center;
    margin-top: 28px;
  }
  .page-item {
    min-width: 32px;
    height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* =================================================================
   Shared helpers: page-hero, info-block, similar-row, artists, genres
   ================================================================= */
.page-hero {
  position: relative;
  /* full-bleed: во всю ширину viewport, уходит под header (padding-top у .page-wrap компенсируем отрицательным margin-top) */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -84px;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  background-color: #2503a9;
  isolation: isolate;
  /* Жёстко 100vh: hero полностью помещается в один экран, постер не выходит
   * за пределы видимой части. Описание/инфо-карточки рендерятся НИЖЕ hero
   * (см. .movie-detail__body > .info-cards). */
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.movie-detail .movie-hero {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
}
.movie-detail .movie-hero .page-hero__inner {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}
/* Сериалы держат в hero И постер-плитку, И dropdown эпизодов, И info-cards
 * — фиксированная 100vh их режет (overflow:hidden). Возвращаем гибкую высоту
 * только для series. */
.page-hero.series-hero {
  height: auto;
  min-height: calc(100vh + 84px);
}
/* Оба фон-слоя ограничены шириной контентного контейнера (.catalog__inner:
 * max-width 1440px, padding 108px). Снаружи 1440px — сплошной фон #2503a9. */
/* Слой 1 (фоновый): размытая копия постера — заполняет область контентного
 * контейнера в тон. Всё что НЕ покрыто центральным постером показывает блюр. */
.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - 720px));
  right: max(0px, calc(50% - 720px));
  background-image: var(--hero-poster, none);
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(140%);
  z-index: -2;
}
/* Слой 2 (резкий): постер БЕЗ размытия, ~25% ширины контентной области,
 * выровнен по правому padding-краю (108px от правого края контейнера 1440px).
 * Слева остаётся ~75% — место под контент (заголовок, описание, кнопки).
 * Соотношение left/right = ~75/25. */
.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* Правый край ::after = правый padding-edge .catalog__inner.
   * 612px = 720 (half max-width) - 108 (padding). */
  right: max(108px, calc(50% - 612px));
  /* Ширина авто из высоты × aspect-ratio. Постеры обычно 2:3 — width
   * = hero_height × 2/3. Растянут от верха до низа hero, по бокам ничего
   * не подрезается, постер виден целиком. */
  aspect-ratio: 2 / 3;
  background-image: var(--hero-poster, none);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}
/* На узких viewport (< 1100px) для постера справа нет места рядом с контентом.
 * Постер становится полноценным фоном hero (cover), растянутым во все края —
 * сверху, снизу и по бокам. При уменьшении ширины экрана постер пропорционально
 * масштабируется вместе с viewport (cover сохраняет соотношение сторон, обрезая
 * горизонтальные поля по мере необходимости). Контент (.page-hero__inner) лежит
 * поверх через z-index. */
@media (max-width: 1100px) {
  .page-hero::after {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    transform: none;
    aspect-ratio: auto;
    background-size: cover;
    background-position: center;
  }
}
/* Контейнер контента внутри full-bleed hero — те же отступы, что у остального
 * сайта (управляются .catalog__inner). Скрим-затемнение на всю ширину контейнера
 * — приглушает постер, чтобы title/desc/info-cards читались на любых афишах
 * (светлых, золотых, многоцветных). На мобиле (<1100px) перебивается ниже на
 * вертикальный градиент (тёмный сверху/снизу). */
.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 124px; /* 84 header + 40 воздух */
  padding-bottom: 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(4, 21, 63, 0.4);
}
/* На широких мониторах (>=1440px) .catalog__inner центрируется max-width:1440px
 * и с боков остаются полосы без скрима — выглядит «обрезанно». Растягиваем inner
 * на 100% от 100vw .page-hero, паддингами компенсируем чтобы content остался
 * центрирован внутри 1440. */
@media (min-width: 1440px) {
  .page-hero__inner {
    max-width: none;
    width: 100%;
    padding-left: calc(50% - 612px);
    padding-right: calc(50% - 612px);
  }
}
/* На мобилке постер растянут во весь hero (cover, см. .page-hero::after выше).
 * Скрим на инструмент-контейнере catalog__inner оставит широкие полосы без
 * затемнения (на мобильном padding всего 19px, контейнер ~= ширина viewport,
 * но всё равно лучше явно — симметричный вертикальный градиент: темнее сверху
 * и снизу (там лежат title и info-cards), светлее в центре где видно постер). */
@media (max-width: 1100px) {
  .page-hero__inner {
    background: linear-gradient(
      180deg,
      rgba(4, 21, 63, 0.7) 0%,
      rgba(4, 21, 63, 0.3) 35%,
      rgba(4, 21, 63, 0.3) 65%,
      rgba(4, 21, 63, 0.7) 100%
    );
  }
}
/* Legacy (пока нигде не используется, но оставляю на случай внешних ссылок) */
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__content {
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.page-hero__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-hero__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(4, 21, 63, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0.3px 1px 2px rgba(255, 255, 255, 0.4),
    inset 0.3px -1px 2px rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #fff;
}
.page-hero__title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.page-hero__desc {
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
}
.page-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.page-hero__play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.page-hero__play svg {
  width: 20px;
  height: 20px;
}

/* Строка «Язык карточки» + ряд кнопок */
.page-hero__lang-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.page-hero__lang-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Языки-кнопки в hero */
.page-hero__langs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-hero__lang {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  border: 0;
  border-radius: 8px;
  background: rgba(4, 21, 63, 0.5);
  box-shadow:
    inset 0.5px 0.5px 1px rgba(255, 255, 255, 0.3),
    inset -0.5px -0.5px 1px rgba(255, 255, 255, 0.3);
  font-family: inherit;
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.page-hero__lang:hover:not(:disabled) {
  transform: translateY(-1px);
}
.page-hero__lang--active {
  background: linear-gradient(100deg, #a100ff 5%, #fe0bbc 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.page-hero__lang--disabled,
.page-hero__lang:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* Disabled play-кнопка */
.page-hero__play--disabled,
.page-hero__play:disabled {
  background: rgba(4, 21, 63, 0.5) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
  opacity: 0.7;
  cursor: not-allowed;
}

/* Теги-жанры под описанием в hero */
.page-hero__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 40px;
  background: rgba(4, 21, 63, 0.5);
  box-shadow:
    inset 1px 1px 1px rgba(250, 0, 255, 0.4),
    inset -1px -1px 1px rgba(173, 32, 255, 0.6);
  font-size: 13px;
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Контент под hero — возвращаемся в нормальный контейнер */
.movie-detail__body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 108px 60px;
}

/* Glass-карточки с доп. информацией. Лежат внутри .page-hero__inner (flex column),
 * margin-top: auto прижимает их к НИЗУ hero — между play-кнопкой и инфо-карточками
 * образуется пустое пространство, декоративно заполненное постером. */
.info-cards {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 24px;
  margin-top: auto;
}
.info-card {
  position: relative;
  padding: 28px 32px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(4, 21, 63, 0.4);
  box-shadow:
    inset 1px 1px 2px rgba(250, 0, 255, 0.4),
    inset -1px -1px 2px rgba(173, 32, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-card__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 4px;
  color: #fff;
}
.info-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.info-card__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-card__label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.info-card__value {
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}

/* -------- Info block (movie details) -------- */
.info-block {
  max-width: 1224px;
  margin: 40px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-block__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}
.info-block__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 900px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 48px;
  max-width: 800px;
}
.info-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.5;
}
.info-row__label {
  color: #9cabbc;
  min-width: 150px;
  flex-shrink: 0;
}
.info-row__value {
  color: #fff;
  font-weight: 500;
}

/* -------- Similar row -------- */
.similar-row {
  margin-top: 48px;
}
.similar-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.similar-row__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}
.similar-row__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 40px;
  background: rgba(4, 21, 63, 0.5);
  box-shadow:
    inset 1px 1px 1px rgba(250, 0, 255, 0.5),
    inset -1px -1px 1px rgba(173, 32, 255, 0.7);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s;
}
.similar-row__link img {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}
.similar-row__link:hover {
  transform: translateY(-1px);
}
.similar-row__grid {
  display: grid;
  grid-template-columns: repeat(6, 184px);
  gap: 24px;
  justify-content: space-between;
}

/* -------- Artist card -------- */
.artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 160px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.artist-card__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.artist-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artist-card__name {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

/* -------- Genre chips (music) -------- */
.genre-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.genre-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  height: 44px;
  border-radius: 40px;
  border: 2px solid #a100ff;
  background: rgba(3, 16, 47, 0.4);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}
.genre-chip:hover {
  background: rgba(161, 0, 255, 0.25);
  transform: translateY(-1px);
}
.genre-chip--active {
  background: linear-gradient(100deg, #a100ff 5%, #fe0bbc 100%);
  border-color: transparent;
}

/* -------- Large song row -------- */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  width: 100%;
  min-width: 0;
}
.song-row {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(4, 21, 63, 0.25);
  backdrop-filter: blur(20px);
  color: #fff;
  transition: background 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.song-row:hover {
  background: rgba(161, 0, 255, 0.18);
}
.song-row--active {
  background: rgba(161, 0, 255, 0.3);
}
.song-row__cover {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}
.song-row__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.song-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.song-row__title {
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-row__artist {
  min-width: 0;
  font-size: 12px;
  color: #aeb3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-row__time {
  font-size: 12px;
  color: #aeb3b8;
  flex-shrink: 0;
}
.song-row__add {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.2s;
}
.song-row__add:hover {
  background: rgba(192, 132, 252, 0.25);
  color: #fff;
  border-color: rgba(192, 132, 252, 0.8);
}
.song-row__add--ok {
  background: #34d399;
  color: #07072a;
  border-color: #34d399;
  transform: scale(1.12);
}

/* Book detail hero (mobile-first) */
.book-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 0 24px;
}
.book-hero__cover-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.book-hero__poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-width: 420px;
  align-self: center;
}
.book-hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-hero__poster .no-poster {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.book-hero__cta {
  width: 100%;
  max-width: 420px;
  align-self: center;
}
.book-hero__cta-empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  text-align: center;
  margin: 0;
}
.book-hero__info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: center;
}
.book-hero__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.book-hero__author {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.book-hero__about {
  margin-top: 8px;
  text-align: left;
}
.book-hero__about-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}
.book-hero__about-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  white-space: pre-wrap;
}
.book-hero__tags {
  margin-top: 16px;
}

/* Custom audiobook player (glassmorphism, full-width under hero) */
.book-player {
  position: relative;
  width: 100%;
  margin: 8px 0 24px;
  padding: 18px 24px 18px;
  border-radius: 20px;
  background: rgba(4, 21, 63, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}
.book-player__times {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.75);
}
.book-player__progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #a100ff 0%, #fe0bbc 100%) 0 / var(--fill, 0%) 100%
      no-repeat,
    rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  margin: 0;
}
.book-player__progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(161, 0, 255, 0.35);
  border: 0;
  cursor: pointer;
}
.book-player__progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(161, 0, 255, 0.35);
  border: 0;
  cursor: pointer;
}
.book-player__progress::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.book-player__progress::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a100ff 0%, #fe0bbc 100%);
}
.book-player__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.book-player__controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.book-player__speed {
  grid-column: 3;
  justify-self: end;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  min-width: 56px;
}
.book-player__speed:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}
.book-player__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s,
    border-color 0.15s;
}
.book-player__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}
.book-player__btn:active {
  transform: scale(0.94);
}
.book-player__btn--play {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #a100ff 0%, #fe0bbc 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(254, 11, 188, 0.35);
}
.book-player__btn--play:hover {
  background: linear-gradient(135deg, #b222ff 0%, #ff2ec9 100%);
  border-color: transparent;
}
.book-player__btn--play .book-player__icon--play {
  margin-left: 3px;
}

@media (max-width: 480px) {
  .book-player {
    padding: 14px 16px;
  }
  .book-player__controls {
    gap: 14px;
  }
  .book-player__btn {
    width: 40px;
    height: 40px;
  }
  .book-player__btn--play {
    width: 56px;
    height: 56px;
  }
  .book-player__speed {
    min-width: 50px;
    padding: 5px 10px;
    font-size: 12px;
  }
}

@media (min-width: 769px) {
  .book-hero--split {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    align-items: start;
    gap: 40px;
    padding: 16px 0 40px;
  }
  .book-hero__cover-col {
    width: auto;
  }
  .book-hero__poster {
    max-width: none;
    align-self: stretch;
  }
  .book-hero__cta {
    max-width: none;
    align-self: stretch;
  }
  .book-hero__info-col {
    text-align: left;
    gap: 14px;
  }
  .book-hero__title {
    font-size: 34px;
  }
  .book-hero__about {
    margin-top: 14px;
  }
  .book-hero__about-title {
    font-size: 22px;
  }
  .book-hero__about-text {
    font-size: 16px;
  }
}

/* Book reader page (dedicated PDF viewer route) */
.pdf-reader {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 84px);
  padding: 0;
}
.pdf-reader__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(10, 1, 45, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 84px;
  z-index: 5;
}
.pdf-reader__back,
.pdf-reader__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.pdf-reader__back:hover,
.pdf-reader__open:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.pdf-reader__title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-reader__tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pdf-reader__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.pdf-reader__tool:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.pdf-reader__page-indicator {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
  min-width: 60px;
  text-align: center;
}

.pdf-reader__viewport {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 84px - 56px);
  background: #202124;
  display: block;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* PDF.js viewer (rendered inside .pdf-reader__viewport) */
.pdf-viewer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  min-height: 100%;
}
.pdf-viewer__loading,
.pdf-viewer__error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 24px;
}
.pdf-viewer__error {
  color: #ff8c8c;
}
.pdf-viewer__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fe0bbc;
  animation: pdf-spin 0.9s linear infinite;
}
@keyframes pdf-spin {
  to {
    transform: rotate(360deg);
  }
}
.pdf-viewer__loading-text {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}
.pdf-viewer__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.pdf-viewer__page {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  max-width: 100%;
  position: relative;
}
.pdf-viewer__page canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.pdf-reader__fallback {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 40px 16px;
  font-size: 15px;
}

@media (max-width: 768px) {
  .pdf-reader__bar {
    top: 60px;
    padding: 10px 12px;
    gap: 8px;
  }
  .pdf-reader__title {
    display: none;
  }
  .pdf-reader__back span {
    display: none;
  }
  .pdf-reader__open {
    font-size: 13px;
    padding: 6px 10px;
  }
  .pdf-reader__viewport {
    min-height: calc(100vh - 60px - 52px);
  }
  .pdf-viewer {
    padding: 8px;
  }
  .pdf-viewer__pages {
    gap: 8px;
  }
  .pdf-reader__tools {
    gap: 4px;
  }
  .pdf-reader__tool {
    width: 32px;
    height: 32px;
  }
  .pdf-reader__page-indicator {
    min-width: 50px;
    font-size: 12px;
  }
}
.song-row__play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(161, 0, 255, 0.2);
  flex-shrink: 0;
}
.song-row__play svg {
  width: 14px;
  height: 14px;
}

/* -------- Responsive: shared layouts -------- */
@media (max-width: 1200px) {
  .page-hero__inner {
    /* Постер теперь cover-фон hero (см. @media 1100px выше) — контент лежит
     * поверх. Только клиренс под header. */
    padding-top: 124px;
    padding-bottom: 40px;
  }
  .similar-row__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .songs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }
  .movie-detail__body {
    padding: 32px 40px 48px;
  }
  .info-cards {
    grid-template-columns: 1fr 1fr;
  }
  .info-card--about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .page-hero {
    border-radius: 0;
    padding: 0;
    margin-top: -60px;
  }
  .page-hero__inner {
    /* Постер — cover-фон hero (см. .page-hero::after @media 1100px),
     * контент сверху, нужен только клиренс под мобильный header (60px). */
    padding-top: 100px;
    padding-bottom: 28px;
  }
  .page-hero__content {
    gap: 14px;
    margin-top: 12px;
  }
  .page-hero__title {
    font-size: 28px;
  }
  .page-hero__desc {
    font-size: 14px;
  }
  .movie-detail__body {
    padding: 24px 19px 40px;
  }
  .info-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .info-card {
    padding: 18px 20px;
    border-radius: 16px;
    gap: 10px;
  }
  .info-card--about {
    grid-column: 1 / -1;
  }
  .info-card__title {
    font-size: 16px;
  }
  .info-card__text {
    font-size: 13px;
  }
  .info-card__row {
    gap: 2px;
  }
  .info-card__label {
    font-size: 10px;
  }
  .info-card__value {
    font-size: 13px;
  }
  .page-hero__langs {
    gap: 6px;
  }
  .page-hero__lang {
    padding: 3px 10px;
    font-size: 11px;
  }
  .page-hero__tags {
    gap: 6px;
  }
  .page-hero__tag {
    padding: 4px 12px;
    font-size: 12px;
  }
  .page-hero__play {
    width: 100%;
    justify-content: center;
  }
  .info-block {
    gap: 16px;
    margin-top: 28px;
  }
  .info-block__title {
    font-size: 22px;
  }
  .info-block__desc {
    font-size: 14px;
    line-height: 1.5;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .info-row {
    font-size: 13px;
  }
  .info-row__label {
    min-width: 110px;
  }
  .similar-row {
    margin-top: 32px;
  }
  .similar-row__title {
    font-size: 22px;
    margin-bottom: 16px;
  }
  .similar-row__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .songs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .artist-card__name {
    font-size: 14px;
  }
  .genre-chip {
    height: 36px;
    padding: 8px 16px;
    font-size: 14px;
    border-width: 1px;
  }
  .page-hero__chips {
    gap: 4px;
  }
  .page-hero__chip {
    font-size: 11px;
    padding: 3px 8px;
  }
  .page-hero__actions {
    gap: 8px;
  }
  .page-hero__actions .btn {
    height: 44px;
    font-size: 14px;
    padding: 10px 20px;
  }
  .info-grid {
    max-width: 100%;
  }
}

/* -------- Books grid variants -------- */
.media-grid--books {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.media-grid--audiobooks {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .media-grid--books {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .media-grid--audiobooks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .media-grid--books,
  .media-grid--audiobooks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -------- Books page glass blocks -------- */
.books-block {
  position: relative;
  z-index: 1;
  padding: 32px;
  border-radius: 24px;
  background: rgba(4, 21, 63, 0.4);
  box-shadow:
    inset 1px 1px 2px rgba(250, 0, 255, 0.35),
    inset -1px -1px 2px rgba(173, 32, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.books-block__head {
  position: relative;
  z-index: 5;
}
.books-block__head .dropdown__menu,
.books-block__head .dropdown__trigger {
  z-index: 100;
}

/* При открытом дропдауне блок поднимается над соседними (у каждого
   свой stacking context из-за backdrop-filter) — меню видно поверх
   книг и поверх следующего блока. Высота блока не меняется. */
.books-block:has(.dropdown--open) {
  z-index: 10;
}
.books-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.books-block__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}
.books-block__head .dropdown,
.books-block__head > .dropdown-mini {
  width: 200px;
  flex: 0 0 auto;
}
.books-block__count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .books-block {
    padding: 20px;
    border-radius: 18px;
    gap: 16px;
  }
  .books-block__title {
    font-size: 22px;
  }
  .books-block__head .dropdown,
  .books-block__head > .dropdown-mini {
    width: 150px;
  }
}

/* =================================================================
   Language switcher dropdown (header)
   ================================================================= */
.lang {
  position: relative;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 100%;
  padding: 6px;
  border-radius: 12px;
  background: rgba(4, 21, 63, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(161, 0, 255, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.18s,
    transform 0.18s,
    visibility 0.18s;
}
.lang--open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu__item {
  display: block;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 16px;
  color: #fff;
  text-align: center;
  transition: background 0.15s;
  cursor: pointer;
  border: 0;
  width: 100%;
  background: none;
  font-family: inherit;
}
.lang-menu__item:hover {
  background: rgba(161, 0, 255, 0.3);
}
.lang-menu__item--active {
  background: rgba(161, 0, 255, 0.4);
}

@media (max-width: 768px) {
  .lang {
    display: inline-block;
  }
  .lang .header__lang {
    padding: 6px 12px;
    font-size: 14px;
    height: 36px;
  }
  .lang-menu {
    background: rgba(4, 21, 63, 0.95);
  }
  .lang-menu__item {
    font-size: 14px;
    padding: 6px 14px;
  }
}

/* -------- Sub-category chips inside catalog -------- */
.chips.chips--sub {
  max-width: 100%;
  margin: 0;
  padding: 0;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.chips--sub .chip {
  flex: 0 0 auto;
  height: 44px;
  padding: 10px 24px;
  font-size: 16px;
  border-width: 1px;
}
@media (max-width: 768px) {
  .chips.chips--sub {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    gap: 8px;
    scrollbar-width: none;
  }
  .chips.chips--sub::-webkit-scrollbar {
    display: none;
  }
  .chips--sub .chip {
    height: 36px;
    padding: 8px 18px;
    font-size: 14px;
  }
}

/* =================================================================
   Media Section (panel with title + filter + grid)
   ================================================================= */
.media-section {
  position: relative;
  border-radius: 24px;
  padding: 32px;
  margin-top: 40px;
  overflow: hidden;
  background: rgba(4, 21, 63, 0.3);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: inset 0 0 0 1px rgba(181, 60, 251, 0.3);
}
.media-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.media-section__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}
.media-section__count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .media-section {
    padding: 20px 16px;
    margin-top: 24px;
    border-radius: 20px;
  }
  .media-section__head {
    margin-bottom: 8px;
  }
  .media-section__title {
    font-size: 22px;
  }
  .media-section__count {
    font-size: 12px;
    margin-bottom: 16px;
  }
}

/* =================================================================
   Music hero + player bar + genre tiles + artists grid
   ================================================================= */
.music-hero {
  position: relative;
  border-radius: 32px;
  padding: 72px 32px;
  margin-top: 32px;
  min-height: 260px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 60% 60% at 50% 40%,
      rgba(181, 60, 251, 0.35) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 80% 30%,
      rgba(230, 18, 167, 0.25) 0%,
      transparent 60%
    ),
    rgba(4, 21, 63, 0.35);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: inset 0 0 0 1px rgba(181, 60, 251, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.music-hero__play {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s,
    background 0.2s;
}
.music-hero__play:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.18);
}
.music-hero__play svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;
}
.music-hero__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: #fff;
}
.music-hero__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.player-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  margin-top: 32px;
  border-radius: 16px;
  background: rgba(4, 21, 63, 0.4);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: inset 0 0 0 1px rgba(181, 60, 251, 0.3);
}
.player-bar__track {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 320px;
  min-width: 0;
}
.player-bar__cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}
.player-bar__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-bar__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.player-bar__title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-bar__artist {
  font-size: 12px;
  color: #aeb3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-bar__controls {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.player-bar__extra {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.player-bar__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.player-bar__btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.player-bar__btn svg {
  width: 18px;
  height: 18px;
}
.player-bar__btn--active {
  background: rgba(161, 0, 255, 0.3);
}
.player-bar__btn--main {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #a100ff 0%, #fe0bbc 100%);
}
.player-bar__btn--main:hover {
  background: linear-gradient(135deg, #b222ff 0%, #ff2ec9 100%);
}
.player-bar__btn--main svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.genre-tiles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.genre-tile {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 172px;
  height: 44px;
  padding: 6px 6px 6px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.2s,
    border-color 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.genre-tile:hover {
  background: rgba(161, 0, 255, 0.15);
  border-color: rgba(161, 0, 255, 0.6);
}
.genre-tile__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.genre-tile__play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.genre-tile__play svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px;
  justify-items: center;
}
.artists-grid .artist-card {
  width: 130px !important;
  max-width: 130px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px;
}
.artists-grid .artist-card__avatar {
  width: 130px !important;
  height: 130px !important;
  aspect-ratio: 1 / 1 !important;
  flex: none !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.04);
}
.artists-grid .artist-card__avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 30% !important;
  display: block;
}
.artists-grid .artist-card__name {
  font-size: 14px;
  text-align: center;
  word-break: break-word;
  min-height: 0;
}

@media (max-width: 1200px) {
  .player-bar {
    gap: 16px;
    padding: 10px 16px;
  }
  .player-bar__track {
    flex: 0 1 240px;
  }
}
@media (max-width: 768px) {
  .music-hero {
    padding: 48px 20px;
    border-radius: 24px;
    min-height: 200px;
  }
  .music-hero__play {
    width: 72px;
    height: 72px;
  }
  .music-hero__play svg {
    width: 28px;
    height: 28px;
  }
  .music-hero__title {
    font-size: 24px;
  }
  .music-hero__desc {
    font-size: 13px;
  }

  .player-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }
  .player-bar__track {
    flex: 1 1 100%;
  }
  .player-bar__controls {
    order: 3;
    gap: 8px;
    flex: 1 1 100%;
  }
  .player-bar__extra {
    order: 2;
  }

  .genre-tile {
    min-width: 0;
    flex: 1 0 calc(50% - 6px);
  }
  .artists-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 12px;
  }
  .artists-grid .artist-card {
    width: 100% !important;
    max-width: 110px !important;
    gap: 8px;
  }
  .artists-grid .artist-card__avatar {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
  }
  .artists-grid .artist-card__name {
    font-size: 13px;
  }
}

/* =================================================================
   SPA-only helpers (legacy render functions, small misc bits)
   ================================================================= */
.back-link {
  display: inline-block;
  color: #a78bfa;
  margin: 20px 0;
  font-size: 14px;
}

.loading {
  text-align: center;
  padding: 60px 0;
  color: rgba(255, 255, 255, 0.4);
}
.error {
  color: #ff6b6b;
  padding: 20px 0;
}
.empty {
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 40px 0;
}

.no-poster {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(135deg, #1a0a4a 0%, #3a0f6e 45%, #7b1fa2 100%);
  border-radius: inherit;
  overflow: hidden;
}

.no-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(254, 11, 188, 0.35),
      transparent 55%
    ),
    radial-gradient(circle at 80% 90%, rgba(161, 0, 255, 0.4), transparent 55%);
  pointer-events: none;
}

.no-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 1px 1px 2px 0 rgba(250, 0, 255, 0.4),
    inset -1px -1px 2px 0 rgba(173, 32, 255, 0.5);
  pointer-events: none;
}

.no-poster__label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

/* Container shim for non-archive pages (services, landmarks, info) */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 108px;
}
@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 19px;
  }
}

/* Generic content list / card (services, landmarks, news, info) */
.content-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.content-card {
  background: rgba(4, 21, 63, 0.4);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  transition: transform 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.content-card:hover {
  transform: translateY(-2px);
}
.content-card-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.content-card-body h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}
.meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.subcategory-tile {
  background: rgba(4, 21, 63, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  min-height: 120px;
  backdrop-filter: blur(10px);
}
.subcategory-tile:hover {
  transform: translateY(-3px);
  border-color: #a100ff;
}
.subcategory-icon {
  font-size: 2rem;
}
.subcategory-label {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

/* News portal — list of date+title rows + sidebar */
.news-portal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 28px;
  flex-wrap: wrap;
}
.news-portal__intro {
  flex: 1;
  min-width: 260px;
}
.news-portal__title {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.15;
}
.news-portal__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  line-height: 1.5;
  margin: 0;
}
.news-portal__filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.news-portal__filters .dropdown-mini {
  min-width: 140px;
}
.news-portal__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.news-portal__main {
  min-width: 0;
}
.news-portal__count {
  font-size: 14px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* Search input above the layout (full width on the main column area) */
.news-portal__search-wrap {
  margin: 0 0 20px;
}
.news-portal__search {
  width: 100%;
  max-width: 520px;
  background: rgba(4, 21, 63, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.news-portal__search::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.news-portal__search:focus {
  border-color: rgba(192, 132, 252, 0.6);
  background: rgba(4, 21, 63, 0.6);
}

/* Detach pagination from the last row */
.news-portal__pag .pagination {
  margin-top: 28px;
}

.news-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(4, 21, 63, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.news-row:hover {
  background: rgba(161, 0, 255, 0.18);
  border-color: rgba(192, 132, 252, 0.4);
  transform: translateY(-1px);
}
.news-row__date {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.news-row__title {
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar with photo tiles */
.news-portal__side {
  position: sticky;
  top: 100px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(4, 21, 63, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #fff;
}
.news-portal__side-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.news-portal__side-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s;
}
.news-portal__side-card:hover {
  transform: translateY(-2px);
}
.news-portal__side-photo {
  width: 100%;
  height: 130px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}
.news-portal__side-info {
  padding: 0 4px;
}
.news-portal__side-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}
.news-portal__side-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .news-portal__layout {
    grid-template-columns: 1fr;
  }
  .news-portal__side {
    position: static;
  }
}
@media (max-width: 768px) {
  .news-portal__head {
    gap: 16px;
    margin: 12px 0 20px;
    flex-direction: column;
  }
  .news-portal__title {
    font-size: 26px;
  }
  .news-portal__desc {
    font-size: 13px;
  }
  .news-portal__filters {
    width: 100%;
  }
  .news-portal__filters .dropdown-mini {
    flex: 1;
  }
  .news-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }
  .news-row__date {
    font-size: 12px;
  }
  .news-row__title {
    font-size: 14px;
  }
}

.news-detail h1,
.content-detail h1 {
  font-size: 2rem;
  color: #fff;
  margin: 16px 0 12px;
}
.content-detail-img,
.news-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
}
.content-body,
.news-body {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 16px;
}
.content-body p,
.news-body p {
  margin-bottom: 12px;
}
.content-body h2,
.news-body h2 {
  color: #fff;
  margin: 20px 0 10px;
}
.content-body img,
.news-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 16px 0;
  display: block;
}
.content-body figure,
.news-body figure {
  margin: 16px 0;
}
.content-body figure img,
.news-body figure img {
  margin: 0;
}
.content-body figcaption,
.news-body figcaption {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
}

/* Callout / tip block — purple-bordered glass quote with accent dot */
.content-body .callout,
.news-body .callout {
  position: relative;
  background: rgba(160, 130, 250, 0.06);
  border: 1px solid rgba(160, 130, 250, 0.22);
  border-radius: 22px;
  padding: 22px 28px;
  margin: 28px 0;
  color: #fff;
  font-weight: 500;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.content-body .callout::before,
.news-body .callout::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a100ff 0%, #fe0bbc 100%);
  box-shadow: 0 0 18px rgba(254, 11, 188, 0.6);
}
.content-body .callout p,
.news-body .callout p {
  margin: 0;
}

/* Restaurant menu */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.menu-item {
  background: rgba(4, 21, 63, 0.4);
  border-radius: 16px;
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.menu-info h3 {
  color: #fff;
  margin-bottom: 4px;
}
.menu-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.menu-price {
  color: #fe0bbc;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Schedule table */
.schedule-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th {
  text-align: left;
  padding: 12px;
  background: rgba(4, 21, 63, 0.6);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.schedule-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.schedule-table tr:hover td {
  background: rgba(161, 0, 255, 0.05);
}
.schedule-route-card {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(4, 21, 63, 0.46);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.schedule-route-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
}
.schedule-route-card__eyebrow {
  margin-bottom: 6px;
  color: #fe0bbc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.schedule-route-card__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}
.schedule-route-card__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.schedule-route-card__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.schedule-route-card__arrow:hover:not(:disabled) {
  background: rgba(254, 11, 188, 0.28);
  border-color: rgba(254, 11, 188, 0.7);
}
.schedule-route-card__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.schedule-route-card__counter {
  min-width: 52px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.schedule-route-card__summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 24px 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.schedule-stop-table-wrap {
  overflow-x: auto;
}
.schedule-stop-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-stop-table th {
  text-align: left;
  padding: 13px 24px;
  background: linear-gradient(90deg, rgba(161, 0, 255, 0.82), rgba(254, 11, 188, 0.7));
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}
.schedule-stop-table td {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
}
.schedule-stop-table td:not(:first-child) {
  width: 140px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.84);
  white-space: nowrap;
}
.schedule-stop-table tbody tr:last-child td {
  border-bottom: 0;
}
.schedule-stop-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
@media (max-width: 768px) {
  .schedule-route-card__head {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 16px 12px;
  }
  .schedule-route-card__title {
    font-size: 18px;
  }
  .schedule-route-card__summary {
    margin: 0 16px 14px;
  }
  .schedule-route-card__controls {
    width: 100%;
    justify-content: space-between;
  }
  .schedule-stop-table thead {
    display: none;
  }
  .schedule-stop-table,
  .schedule-stop-table tbody,
  .schedule-stop-table tr,
  .schedule-stop-table td {
    display: block;
    width: 100%;
  }
  .schedule-stop-table tbody {
    padding: 0 12px 12px;
  }
  .schedule-stop-table tr {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
  }
  .schedule-stop-table td {
    display: grid;
    grid-template-columns: minmax(96px, 38%) 1fr;
    gap: 10px;
    padding: 5px 0;
    border: 0;
    font-size: 13px;
  }
  .schedule-stop-table td:not(:first-child) {
    width: 100%;
  }
  .schedule-stop-table td::before {
    content: attr(data-label);
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    text-transform: uppercase;
  }
}
.search-input {
  padding: 10px 16px;
  background: rgba(4, 21, 63, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}
select.search-input option {
  background: #2503a9;
  color: #fff;
}

/* Pagination extra (existing renderPagination in app.js) */
.pag-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pag-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 21, 63, 0.4);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
}
.pag-btn:hover:not(:disabled) {
  background: rgba(161, 0, 255, 0.2);
  color: #fff;
}
.pag-btn--active {
  background: rgba(161, 0, 255, 0.4);
  border-color: #a100ff;
  color: #fff;
}
.pag-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.pag-dots {
  color: rgba(255, 255, 255, 0.3);
  padding: 0 4px;
}
.pag-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.pag-select {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(4, 21, 63, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.pag-select option {
  background: #2503a9;
}

/* Video/audio player basics */
.video-player {
  width: 100%;
  border-radius: 16px;
  background: #000;
}

/* Language switcher для видео-достопримечательностей */
.video-lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: rgba(4, 21, 63, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.video-lang-switch__btn {
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.video-lang-switch__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.video-lang-switch__btn.is-active {
  background: linear-gradient(100deg, #a100ff 5%, #fe0bbc 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(161, 0, 255, 0.35);
}
audio {
  width: 100%;
}

/* Survey */
.survey-page__head {
  max-width: 720px;
  margin: 16px 0 24px;
  padding: 32px 36px;
  border-radius: 28px;
  background: rgba(4, 21, 63, 0.45);
  border: 1px solid rgba(173, 32, 255, 0.35);
  box-shadow:
    inset 0.3px 1px 2px rgba(255, 255, 255, 0.18),
    inset 0.3px -1px 2px rgba(173, 32, 255, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.3);
}
.survey-page__title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: #fff;
  margin: 0;
}
.survey-page__desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.survey-form {
  max-width: 720px;
  margin-top: 20px;
}
.survey-question {
  border: 1px solid rgba(173, 32, 255, 0.45);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 18px;
  background: rgba(4, 21, 63, 0.7);
  box-shadow:
    inset 0.3px 1px 2px rgba(255, 255, 255, 0.18),
    inset 0.3px -1px 2px rgba(173, 32, 255, 0.18);
}
.survey-question__title {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 14px;
}
.survey-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
}
.survey-option input {
  accent-color: #a100ff;
}
.survey-text {
  width: 100%;
  padding: 10px 14px;
  background: rgba(4, 21, 63, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  resize: vertical;
}
.survey-form__submit {
  margin-top: 12px;
  min-width: 200px;
  height: 48px;
}

/* Карточка «Спасибо за ответ» — показывается после submit или при
   повторном заходе (если localStorage `survey_done_<id>` стоит). */
.survey-thanks {
  max-width: 560px;
  margin: 32px auto;
  padding: 40px 32px;
  border-radius: 28px;
  background: rgba(4, 21, 63, 0.55);
  border: 1px solid rgba(34, 197, 94, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.survey-thanks__icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
}
.survey-thanks h2 {
  margin: 0;
  font-size: 24px;
  color: #fff;
}
.survey-thanks p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.55;
}
.survey-thanks__redirect {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-style: italic;
}
.survey-thanks .btn {
  min-width: 180px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .survey-page__head {
    padding: 22px 20px;
    border-radius: 22px;
    margin: 12px 0 18px;
  }
  .survey-page__title {
    font-size: 22px;
  }
  .survey-page__desc {
    font-size: 14px;
  }
  .survey-question {
    padding: 16px 18px;
    border-radius: 14px;
  }
  .survey-question legend {
    font-size: 15px;
  }
  .survey-thanks {
    padding: 30px 22px;
    border-radius: 22px;
  }
  .survey-thanks h2 {
    font-size: 20px;
  }
}

/* legacy — старый класс, если используется где-то ещё */
.thank-you {
  text-align: center;
  padding: 60px 0;
  color: #4ecdc4;
}

/* Notifications */
.notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.notif-modal {
  position: relative;
  background: #2503a9;
  border-radius: 24px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.notif-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}
.notif-video {
  width: 100%;
  max-height: 60vh;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #000;
  display: block;
}
.notif-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}
.notif-lang {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding-right: 32px; /* отступ под крестик */
}
.notif-lang__btn {
  padding: 4px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.notif-lang__btn:hover {
  background: rgba(173, 32, 255, 0.18);
  color: #fff;
}
.notif-lang__btn--active {
  background: rgba(173, 32, 255, 0.45);
  border-color: rgba(250, 0, 255, 0.55);
  color: #fff;
}

/* PWA install promo — модалка после закрытия объявления (один раз навсегда) */
.install-promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.install-promo {
  position: relative;
  background: linear-gradient(
    160deg,
    rgba(20, 6, 60, 0.95),
    rgba(10, 1, 45, 0.95)
  );
  border: 1px solid rgba(254, 11, 188, 0.35);
  border-radius: 28px;
  padding: 32px 28px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(161, 0, 255, 0.18);
}
.install-promo__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.install-promo__close:hover {
  color: rgba(255, 255, 255, 0.9);
}
.install-promo__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(161, 0, 255, 0.45);
}
.install-promo__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.install-promo__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.25;
}
.install-promo__desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 24px;
}
.install-promo__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-promo__yes {
  width: 100%;
  height: 52px;
  font-size: 16px;
}
.install-promo__later {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  height: 44px;
  cursor: pointer;
  border-radius: 8px;
  transition:
    color 0.15s,
    background 0.15s;
}
.install-promo__later:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
  .install-promo {
    padding: 26px 22px 22px;
    border-radius: 24px;
  }
  .install-promo__title {
    font-size: 20px;
  }
  .install-promo__desc {
    font-size: 14px;
  }
}

/* Detail page (book / music) */
.detail-page {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin: 24px 0 40px;
}
.detail-poster img {
  border-radius: 16px;
  width: 100%;
}
.detail-poster .no-poster {
  border-radius: 16px;
}
.detail-info h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 12px;
}
.description {
  color: rgba(255, 255, 255, 0.75);
  margin: 16px 0;
  line-height: 1.7;
}
.description p {
  margin-bottom: 10px;
}

/* Music track-list (legacy) */
.track-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.track:hover {
  background: rgba(161, 0, 255, 0.1);
}
.track.active {
  background: rgba(161, 0, 255, 0.15);
  color: #fe0bbc;
}
.track-num {
  color: rgba(255, 255, 255, 0.3);
  width: 24px;
  font-size: 0.85rem;
}
.track-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-dur {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.tags {
  margin: 12px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  background: rgba(4, 21, 63, 0.4);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
}
.badge {
  display: inline-block;
  background: rgba(161, 0, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .detail-page {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-poster {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* Play icon button helper (for page-hero__play) */
.page-hero__play svg {
  fill: #fff;
}

/* =================================================================
   SERVICES PAGE  — /services
   ================================================================= */
.services-row {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 24px;
}
.services-card {
  position: relative;
  padding: 32px;
  border-radius: 24px;
  background: rgba(4, 21, 63, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    inset 1.5px 1.5px 2px rgba(250, 0, 255, 0.35),
    inset -1px -1px 2px rgba(173, 32, 255, 0.45),
    0 30px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  min-height: 320px;
  color: #fff;
  overflow: hidden;
}
.services-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.services-card__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.services-card__art img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(161, 0, 255, 0.45));
}
.services-card--taxi {
  grid-template-columns: 1fr 380px;
  align-items: center;
  gap: 32px;
}
.services-card--tickets {
  grid-template-columns: 1fr;
}

/* Общий шаблон такси (.card--taxi) теперь живёт в .services-row тоже —
   разрешаем растягиваться по 7fr колонке, не упираясь в 807px-кэп с главной. */
.services-row > .card--taxi {
  max-width: none;
  width: 100%;
}

.services-card__pin {
  width: 380px;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(192, 132, 252, 0.5));
  pointer-events: none;
}
.services-card__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  color: #fff;
}
.services-card__desc {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  opacity: 0.85;
}
.services-card__field {
  margin-top: auto;
}
.services-card__select {
  width: 100%;
  max-width: 340px;
  height: 48px;
  padding: 10px 16px;
  font-size: 16px;
}
.services-card__numbers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services-card__phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}
.services-card__phone-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}
.services-card__phone-icon {
  width: 18px;
  height: 18px;
}
.services-card__phone {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.services-card__phone:hover {
  color: #fe0bbc;
}
.services-card__btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 900px) {
  .services-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .services-card {
    grid-template-columns: 1fr 200px;
    min-height: 0;
    padding: 24px;
  }
  .services-card--taxi {
    grid-template-columns: 1fr 200px;
    gap: 20px;
  }
  .services-card--tickets {
    grid-template-columns: 1fr;
  }
  .services-card__title {
    font-size: 26px;
  }
  .services-card__art img {
    width: 200px;
  }
  .services-card__pin {
    width: 200px;
  }
}
@media (max-width: 560px) {
  .services-card--taxi {
    grid-template-columns: 1fr;
  }
  .services-card__pin {
    width: 160px;
    margin: 0 auto;
  }
}
@media (max-width: 560px) {
  .services-card {
    grid-template-columns: 1fr 150px;
    padding: 20px;
    gap: 14px;
  }
  .services-card--tickets {
    grid-template-columns: 1fr;
  }
  .services-card__art img {
    width: 150px;
  }
}

/* =================================================================
   INFORMATION HOME — /information
   ================================================================= */
.info-home {
  padding: 36px 0 60px;
}
.info-home__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 108px;
}

/* (info-hero* CSS удалён — используется общий .hero-glass) */

/* =================================================================
   PHOTO-CARDS — общий компонент 3-в-ряд (фото + заголовок + описание).
   Используется на /information и /landmarks. Контент per-страница,
   стили общие.
   ================================================================= */
.photo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.photo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s;
}
.photo-card:hover {
  transform: translateY(-3px);
}
.photo-card:hover .photo-card__photo {
  filter: brightness(1.05);
}
.photo-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.04);
  transition: filter 0.2s;
}
.photo-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}
.photo-card__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.photo-card__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 900px) {
  .photo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .photo-card__photo {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }
  .photo-card__title {
    font-size: 17px;
  }
  .photo-card__desc {
    font-size: 13px;
  }
}

/* Bottom row: schedule (wide) + survey (narrow) */
.info-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Schedule glass card with table */
.info-schedule {
  position: relative;
  padding: 28px 32px;
  border-radius: 24px;
  background: rgba(4, 21, 63, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
}
.info-schedule__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.info-schedule__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.info-schedule__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.info-schedule__train {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 12px 0;
}
.info-schedule__directions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.info-schedule__direction {
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.info-schedule__direction-label {
  color: #fe0bbc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.info-schedule__direction-route {
  margin-top: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.info-schedule__direction-route span {
  color: rgba(255, 255, 255, 0.56);
}
.info-schedule__direction-time {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
  .info-schedule__directions {
    grid-template-columns: 1fr;
  }
}
.info-schedule__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.info-schedule__table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.info-schedule__table thead {
  background: linear-gradient(
    90deg,
    rgba(161, 0, 255, 0.7) 0%,
    rgba(254, 11, 188, 0.7) 100%
  );
}
.info-schedule__table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.info-schedule__table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}
.info-schedule__table td.t {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
}
.info-schedule__table tbody tr:last-child td {
  border-bottom: 0;
}
.info-schedule__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.info-schedule__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #fe0bbc;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  align-self: flex-end;
}
.info-schedule__more:hover {
  text-decoration: underline;
}

/* Survey card */
.info-survey {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: rgba(4, 21, 63, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
}
.info-survey__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.info-survey__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info-survey__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-survey__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.info-survey__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}
.info-survey__btn {
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 1100px) {
  .info-bottom {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .info-home {
    padding: 20px 0 60px;
  }
  .info-home__inner {
    padding: 0 19px;
  }
  .info-schedule {
    padding: 18px;
    border-radius: 20px;
  }
  .info-schedule__title {
    font-size: 22px;
  }

  /* Mobile: каждая строка таблицы становится карточкой со 2-х колонной разметкой
     "label / value" вместо горизонтальной table. Никаких overflow-scroll. */
  .info-schedule__table {
    border-radius: 0;
  }
  .info-schedule__table thead {
    display: none;
  }
  .info-schedule__table tbody,
  .info-schedule__table tr {
    display: block;
    width: 100%;
  }
  .info-schedule__table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .info-schedule__table tr {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 4px;
  }
  .info-schedule__table tr:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .info-schedule__table td {
    padding: 4px 0;
    border: none !important;
    font-size: 13px;
  }
  /* Pseudo-labels for each cell from data-label attr (set in JS) */
  .info-schedule__table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
  }

  .info-survey {
    padding: 18px;
    border-radius: 20px;
  }
  .info-survey__title {
    font-size: 18px;
  }
  .info-survey__photo {
    aspect-ratio: 16 / 9;
  }
}

/* Disabled survey button placeholder */
.info-survey__btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.3);
}

/* Pages with text + vertically-stacked infographic images (/useful, /additional) */
.info-images__text {
  margin: 8px 0 28px;
  padding: 28px 32px;
  border-radius: 22px;
  background: rgba(4, 21, 63, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.info-images__text h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.25;
}
.info-images__text ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-images__text li {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.info-images__text li::marker {
  color: #fe0bbc;
}

.info-images__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}
.info-images__item {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 21, 63, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.info-images__item img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .info-images__text {
    padding: 18px 18px;
    border-radius: 18px;
    margin: 4px 0 18px;
  }
  .info-images__text h2 {
    font-size: 18px;
  }
  .info-images__text li {
    font-size: 13px;
  }
  .info-images__list {
    gap: 16px;
    margin-top: 12px;
  }
  .info-images__item {
    border-radius: 16px;
  }
}

/* =================================================================
   ADDITIONAL INFO — /information/additional
   ================================================================= */
.info-additional__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.info-additional__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.info-additional__card:hover {
  transform: translateY(-3px);
}
.info-additional__card:hover .info-additional__photo {
  filter: brightness(1.05);
}
.info-additional__card:hover .info-additional__play {
  transform: translate(-50%, -50%) scale(1.06);
}
.info-additional__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-color: rgba(4, 21, 63, 0.4);
  overflow: hidden;
  transition: filter 0.2s ease;
}
.info-additional__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 1, 45, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  transform: translate(-50%, -50%);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  backdrop-filter: blur(8px);
}
.info-additional__play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}
.info-additional__info {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-additional__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: #fff;
}
.info-additional__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 1100px) {
  .info-additional__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}
@media (max-width: 640px) {
  .info-additional__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 16px;
  }
  .info-additional__photo {
    border-radius: 18px;
  }
  .info-additional__play {
    width: 48px;
    height: 48px;
  }
  .info-additional__play svg {
    width: 20px;
    height: 20px;
  }
  .info-additional__title {
    font-size: 16px;
  }
  .info-additional__desc {
    font-size: 13px;
  }
}

/* =================================================================
   NEWS ARTICLE DETAIL — /information/news/:id
   ================================================================= */
.news-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}
.news-article__main {
  min-width: 0;
  color: #fff;
}
.news-article__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
}
.news-article__date {
  display: inline-block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  margin-bottom: 24px;
}
.news-article__hero {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 28px;
}
.news-article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-article__body {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
}
.news-article__body :where(p, div, span, li, strong, b, em, i, u, font) {
  color: rgba(255, 255, 255, 0.88) !important;
  background-color: transparent !important;
}
.news-article__body :where(a) {
  color: #d9c7ff !important;
}
.news-article__body p {
  margin-bottom: 14px;
}
.news-article__body h2 {
  color: #fff;
  font-size: 24px;
  margin: 28px 0 12px;
  font-weight: 700;
}
.news-article__body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 16px 0;
}

.news-article__side {
  position: sticky;
  top: 100px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(4, 21, 63, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-article__side-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.news-article__side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-row--side {
  padding: 12px 14px;
  gap: 10px;
}
.news-row--side .news-row__title {
  -webkit-line-clamp: 2;
  font-size: 13px;
}
.news-row--side .news-row__date {
  font-size: 12px;
}
.news-article__side-cta {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .news-article__layout {
    grid-template-columns: 1fr;
  }
  .news-article__side {
    position: static;
  }
}
@media (max-width: 768px) {
  .news-article__hero {
    height: 220px;
    border-radius: 16px;
  }
  .news-article__title {
    font-size: 24px;
  }
  .news-article__layout {
    gap: 24px;
  }
}

/* =================================================================
   ARTICLES GRID (landmarks/text)
   ================================================================= */
.article-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s;
}
.article-card:hover {
  transform: translateY(-2px);
}
.article-card__cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.article-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-card__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.article-card__tag {
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(161, 0, 255, 0.25);
  color: #fff;
  font-size: 11px;
}
.article-card__date {
  color: #9cabbc;
}
@media (max-width: 1200px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
}

/* =================================================================
   AUDIO GUIDE (landmarks/audio)
   ================================================================= */
.audio-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 120px;
}
.audio-track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(4, 21, 63, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  cursor: pointer;
}
.audio-track-row:hover {
  background: rgba(161, 0, 255, 0.2);
  transform: translateY(-1px);
}
.audio-track-row--active {
  background: rgba(161, 0, 255, 0.3);
  border-color: rgba(161, 0, 255, 0.6);
}
.audio-track-row__play {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.audio-track-row__play svg {
  width: 100%;
  height: 100%;
}
.audio-track-row__title {
  flex: 1;
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.audio-track-row__time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
/* Always-visible audio player (replaces the floating popup) */
.audio-player {
  position: relative;
  margin: 28px 0 24px;
  padding: 24px 28px 22px;
  border-radius: 24px;
  background: rgba(4, 21, 63, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
}
.audio-player__top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.audio-player__cover {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.audio-player__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.audio-player__cover .no-poster {
  width: 100%;
  height: 100%;
  min-height: 0;
  font-size: 11px;
}
.audio-player__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.audio-player__title {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-player__subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.audio-player__progress-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.audio-player__time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: center;
}
.audio-player__seek,
.audio-player__vol {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #a100ff 0%, #fe0bbc 100%) 0 / var(--fill, 0%) 100%
      no-repeat,
    rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  margin: 0;
}
.audio-player__seek::-webkit-slider-thumb,
.audio-player__vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(161, 0, 255, 0.35);
  border: 0;
  cursor: pointer;
}
.audio-player__seek::-moz-range-thumb,
.audio-player__vol::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(161, 0, 255, 0.35);
  border: 0;
  cursor: pointer;
}

.audio-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.audio-player__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.audio-player__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}
.audio-player__btn:active {
  transform: scale(0.94);
}
.audio-player__btn--play {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #a100ff 0%, #fe0bbc 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(254, 11, 188, 0.35);
}
.audio-player__btn--play:hover {
  background: linear-gradient(135deg, #b222ff 0%, #ff2ec9 100%);
  border-color: transparent;
}
.audio-player__btn--play .audio-player__icon--play {
  margin-left: 3px;
}

.audio-player__bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.audio-player__speed {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 56px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.audio-player__speed:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.audio-player__volume {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.audio-player__mute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.audio-player__mute:hover {
  background: rgba(255, 255, 255, 0.14);
}
.audio-player__vol {
  width: 120px;
  height: 4px;
}

@media (max-width: 768px) {
  .audio-player {
    padding: 18px 18px 16px;
    gap: 12px;
  }
  .audio-player__cover {
    width: 52px;
    height: 52px;
  }
  .audio-player__title {
    font-size: 14px;
  }
  .audio-player__btn {
    width: 40px;
    height: 40px;
  }
  .audio-player__btn--play {
    width: 56px;
    height: 56px;
  }
  .audio-player__controls {
    gap: 8px;
  }
  .audio-player__bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .audio-player__volume {
    grid-column: 1;
    min-width: 0;
    justify-self: stretch;
  }
  .audio-player__vol {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 1024px) {
  .audio-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .audio-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   VIDEO GUIDE (landmarks/video)
   ================================================================= */
.video-guide-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
}
.video-guide-section__title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 28px;
  color: #fff;
}

/* Category card — glass wrapper around a group of videos (matches figma) */
.video-category {
  position: relative;
  margin: 0 0 32px;
  padding: 28px 32px 32px;
  border-radius: 28px;
  background: rgba(4, 21, 63, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.video-category__head {
  margin-bottom: 22px;
}
.video-category__title {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.video-category__count {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
@media (max-width: 768px) {
  .video-category {
    padding: 20px 18px 22px;
    border-radius: 22px;
    margin-bottom: 22px;
  }
  .video-category__title {
    font-size: 22px;
  }
  .video-category__count {
    font-size: 13px;
  }
}
.video-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s;
}
.video-card:hover {
  transform: translateY(-2px);
}
.video-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.video-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 1;
}
.video-card__title {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .video-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .video-guide-grid {
    grid-template-columns: 1fr;
  }
  .video-guide-section__title {
    font-size: 22px;
  }
}

/* -------- Games grid -------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.game-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
}
.game-card__cover {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.game-card__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}
@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Songs Horizontal Scroll (recommended tracks) ===== */
.songs-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.songs-scroll::-webkit-scrollbar {
  display: none;
}
.songs-scroll-item {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
  text-align: left;
  color: #fff;
}
.songs-scroll-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}
.songs-scroll-item--active {
  border-color: rgba(192, 132, 252, 0.6);
}
.songs-scroll-item {
  position: relative;
}
.songs-scroll-item__add {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(7, 7, 42, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  z-index: 2;
  transition:
    background 0.15s,
    transform 0.2s,
    opacity 0.2s;
}
.songs-scroll-item__add:hover {
  background: rgba(192, 132, 252, 0.85);
  opacity: 1;
}
.songs-scroll-item__add--ok {
  background: #34d399;
  transform: scale(1.15);
  opacity: 1;
}
.songs-scroll-item__cover {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.songs-scroll-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.songs-scroll-item__cover .no-poster {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.songs-scroll-item__info {
  padding: 10px 12px;
}
.songs-scroll-item__title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.songs-scroll-item__artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Music Player Modal (centered card with backdrop) ===== */
.music-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: auto;
}
.music-modal__panel {
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: min(720px, calc(100vh - 64px));
  background: #07072a;
  border-radius: 24px;
  border: 1px solid rgba(173, 32, 255, 0.45);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(161, 0, 255, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.music-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(161, 0, 255, 0.85) 0%,
    rgba(254, 11, 188, 0.85) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  padding: 0;
}
.music-modal__close:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(161, 0, 255, 0.55);
}
.music-modal__close svg {
  width: 22px;
  height: 22px;
}
.music-modal__body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.music-modal__left {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background: rgba(255, 255, 255, 0.025);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.music-modal__cover {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.music-modal__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.music-modal__cover .no-poster {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.music-modal__title-wrap {
  width: 100%;
  overflow: hidden;
  text-align: center;
  margin-bottom: 4px;
}
.music-modal__title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-modal__title.is-scrolling {
  display: inline-block;
  animation: mm-scroll 10s linear infinite;
}
@keyframes mm-scroll {
  0%,
  20% {
    transform: translateX(0);
  }
  80%,
  100% {
    transform: translateX(-50%);
  }
}
.music-modal__artist {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.music-modal__progress {
  width: 100%;
  margin-bottom: 24px;
}
.music-modal__seek {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  cursor: pointer;
  margin-bottom: 8px;
  display: block;
}
.music-modal__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
.music-modal__times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.music-modal__controls {
  display: flex;
  align-items: center;
  gap: 18px;
}
.music-modal__btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  opacity: 0.6;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.music-modal__btn:hover {
  opacity: 1;
}
.music-modal__btn--active {
  opacity: 1;
  color: #c084fc;
}
.music-modal__btn--play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}
.music-modal__btn--play:hover {
  background: rgba(255, 255, 255, 0.25);
}
.music-modal__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 32px 24px;
  overflow: hidden;
  min-width: 0;
}
.music-modal__queue-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.music-modal__search {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  width: 100%;
  margin-bottom: 12px;
  outline: none;
  font-family: inherit;
}
.music-modal__search::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.music-modal__search:focus {
  border-color: rgba(192, 132, 252, 0.5);
}
.music-modal__queue {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.music-modal__queue::-webkit-scrollbar {
  width: 4px;
}
.music-modal__queue::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
.music-modal__qi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: #fff;
  font-family: inherit;
  transition: background 0.15s;
}
.music-modal__qi:hover {
  background: rgba(255, 255, 255, 0.06);
}
.music-modal__qi--active {
  background: rgba(255, 255, 255, 0.1);
}
.music-modal__qi-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
}
.music-modal__qi-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.music-modal__qi-cover .no-poster {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.music-modal__qi-info {
  flex: 1;
  min-width: 0;
}
.music-modal__qi-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-modal__qi-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-modal__qi-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}
.music-modal__qi-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.music-modal__qi-remove:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ===== Mini "now playing" bar (global, shows when track active & modal closed) ===== */
.vmp-mini {
  position: fixed;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 10px;
  background: rgba(7, 7, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  color: #fff;
  /* Desktop: bottom-right floating */
  right: 20px;
  bottom: 20px;
  width: 360px;
  max-width: calc(100vw - 40px);
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.vmp-mini:hover {
  transform: translateY(-2px);
}
.vmp-mini__cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
}
.vmp-mini__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vmp-mini__cover .no-poster {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.vmp-mini__info {
  flex: 1;
  min-width: 0;
}
.vmp-mini__title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vmp-mini__artist {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vmp-mini__btn {
  background: none;
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.vmp-mini__btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.vmp-mini__btn svg {
  width: 22px;
  height: 22px;
}
.vmp-mini__close {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
  padding: 0;
}
.vmp-mini__close:hover {
  background: rgba(255, 60, 60, 0.5);
  color: #fff;
}
.vmp-mini__progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.vmp-mini__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c084fc, #fe0bbc);
  border-radius: 2px;
  transition: width 0.15s linear;
}
@media (max-width: 768px) {
  .vmp-mini {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* Audiobook mini-bar — same shape as music, stacked above it so they
   don't overlap when both have a queued track. */
.abp-mini {
  bottom: calc(20px + 78px);
}
@media (max-width: 768px) {
  .abp-mini {
    bottom: calc(76px + 78px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== /install — PWA install instructions (no QR, grandpa-friendly) ===== */
.install-page__head {
  max-width: 720px;
}
.install-page__notice {
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.install-page__notice--warn {
  background: rgba(254, 11, 188, 0.12);
  border: 1px solid rgba(254, 11, 188, 0.45);
  color: #ffd6f0;
}
.install-page__notice--ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #c8f5d3;
}
.install-page__cta {
  max-width: 720px;
  margin: 16px auto 28px;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(4, 21, 63, 0.45);
  border: 1px solid rgba(254, 11, 188, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.install-page__cta-btn {
  min-width: 240px;
  height: 56px;
  font-size: 18px;
}
.install-page__cta-hint {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.install-page__detected {
  max-width: 720px;
  margin: 16px auto 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(4, 21, 63, 0.35);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}
.install-page__detected b {
  color: #fff;
  font-weight: 700;
}

.install-guide {
  max-width: 720px;
  margin: 12px auto;
}
.install-guide__heading {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.install-steps__item {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(4, 21, 63, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.install-steps__num {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #a100ff 0%, #fe0bbc 100%);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(161, 0, 255, 0.4);
}
.install-steps__body {
  flex: 1;
  min-width: 0;
}
.install-steps__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.install-steps__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.install-page__alts {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(4, 21, 63, 0.25);
}
.install-page__alts > summary {
  cursor: pointer;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  user-select: none;
  list-style: none;
}
.install-page__alts > summary::marker {
  display: none;
}
.install-page__alts > summary::-webkit-details-marker {
  display: none;
}
.install-page__alts[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.install-page__alts .install-guide {
  padding: 16px 22px;
  max-width: none;
  margin: 0;
}
.install-page__alts .install-guide__heading {
  font-size: 18px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.install-page__alts .install-steps__body p {
  font-size: 15px;
}

@media (max-width: 768px) {
  .install-steps__item {
    padding: 16px 18px;
    gap: 14px;
    border-radius: 14px;
  }
  .install-steps__num {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .install-steps__body h3 {
    font-size: 16px;
  }
  .install-steps__body p {
    font-size: 15px;
  }
  .install-guide__heading {
    font-size: 19px;
  }
  .install-page__cta-btn {
    width: 100%;
    min-width: 0;
  }
  .install-page__alts {
    border-radius: 14px;
  }
  .install-page__alts > summary {
    padding: 14px 18px;
    font-size: 15px;
  }
  .install-page__alts .install-guide {
    padding: 12px 18px;
  }
}

/* ===== Landmarks Home Page ===== */
.landmarks-home {
  padding: 36px 0 60px;
}
.landmarks-home__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 108px;
}

/* (landmarks-hero* CSS удалён — используется общий .hero-glass) */

/* (landmarks-card* CSS удалён — используется общий .photo-card в верху файла) */

@media (max-width: 768px) {
  .landmarks-home {
    padding: 24px 0 60px;
  }
  .landmarks-home__inner {
    padding: 0 19px;
  }
}

/* ===== Books page search ===== */
.books-search {
  margin-bottom: 24px;
}
.books-search__input {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.books-search__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.books-search__input:focus {
  border-color: rgba(192, 132, 252, 0.5);
}

/* ===== Mobile improvements ===== */
@media (max-width: 768px) {
  /* На мобиле модалка занимает почти весь экран, но остаётся как «карточка»
     с тонкой рамкой backdrop сверху/снизу — чтобы было видно что это окно. */
  .music-modal {
    padding: 12px;
  }
  .music-modal__panel {
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    max-width: 100%;
    border-radius: 18px;
  }
  .music-modal__close {
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
  }
  /* Whole modal scrolls as one page on mobile. Search bar is sticky. */
  .music-modal__body {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .music-modal__left {
    width: 100%;
    flex: 0 0 auto;
    padding: 24px 24px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: flex-start;
  }
  .music-modal__cover {
    max-width: 150px;
    margin-bottom: 14px;
  }
  .music-modal__title {
    font-size: 18px;
  }
  .music-modal__artist {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .music-modal__progress {
    margin-bottom: 14px;
  }
  .music-modal__right {
    flex: 0 0 auto;
    padding: 16px 20px 28px;
    max-height: none;
    min-height: 0;
  }
  /* Queue items flow in parent scroll (no inner scroll on mobile) */
  .music-modal__queue {
    overflow: visible;
    flex: 0 0 auto;
  }
  /* Sticky search — stays pinned to the top of the scrolling modal body */
  .music-modal__search {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(7, 7, 42, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  /* Catalog grids responsive */
  .media-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .artists-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px;
  }
  .artists-grid .artist-card {
    width: 100% !important;
    max-width: 110px !important;
  }
  .artists-grid .artist-card__avatar {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
  }

  /* Songs scroll smaller on mobile */
  .songs-scroll-item {
    flex: 0 0 130px;
  }
}

/* -------- Video player page (full dark, no bg-wave bleed) -------- */
.video-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
}
.video-page__bar {
  flex-shrink: 0;
  height: 56px;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
}
.video-page__back {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.video-page__back:hover {
  opacity: 1;
}
.video-page__wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.video-page__player {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 56px);
  object-fit: contain;
  display: block;
}

/* =================================================================
   404 / not-found page
   ================================================================= */
.not-found {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.not-found__inner {
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.not-found__code {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(96px, 18vw, 180px);
  line-height: 1;
  background: linear-gradient(135deg, #a100ff 0%, #fe0bbc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.not-found__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
  color: #fff;
  margin: 0 0 12px;
}
.not-found__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 32px;
}
.not-found__btn {
  display: inline-flex;
  min-width: 200px;
}

/* =================================================================
   RESTAURANT BLOCK — home page carousel + PDF menu link
   ================================================================= */
.section.restaurant {
  padding: 40px 0;
}
.restaurant__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.restaurant__menu-btn[hidden] {
  display: none !important;
}
.restaurant__menu-btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  filter: saturate(0.7);
}
.restaurant__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.restaurant__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.restaurant__dot--active {
  background: linear-gradient(135deg, #a100ff 0%, #fe0bbc 100%);
  transform: scale(1.25);
}
/* Десктоп-стрелки прокрутки. Показываем только на устройствах с реальным
   указателем — на тач-экранах работает нативный свайп. */
.restaurant__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(4, 21, 63, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(173, 32, 255, 0.55);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition:
    background 0.2s,
    transform 0.15s,
    opacity 0.2s,
    box-shadow 0.2s;
  box-shadow:
    inset 1px 1px 2px rgba(250, 0, 255, 0.25),
    inset -1px -1px 2px rgba(173, 32, 255, 0.35),
    0 0 14px rgba(161, 0, 255, 0.25);
}
.restaurant__arrow--prev {
  left: 6px;
}
.restaurant__arrow--next {
  right: 6px;
}
.restaurant__arrow--prev svg {
  transform: rotate(180deg);
}
.restaurant__arrow:hover {
  background: rgba(4, 21, 63, 0.85);
  transform: translateY(-50%) scale(1.08);
  box-shadow:
    inset 1px 1px 2px rgba(250, 0, 255, 0.4),
    inset -1px -1px 2px rgba(173, 32, 255, 0.5),
    0 0 22px rgba(161, 0, 255, 0.5);
}
.restaurant__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.restaurant__arrow--hidden {
  display: none !important;
}
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .restaurant__arrow {
    display: inline-flex;
  }
}
.restaurant__menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(4, 21, 63, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(173, 32, 255, 0.55);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: "Roboto", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition:
    box-shadow 0.2s,
    transform 0.15s,
    background 0.2s;
  box-shadow:
    inset 1px 1px 2px rgba(250, 0, 255, 0.25),
    inset -1px -1px 2px rgba(173, 32, 255, 0.35),
    0 0 18px rgba(161, 0, 255, 0.25);
}
.restaurant__menu-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 1px 1px 2px rgba(250, 0, 255, 0.4),
    inset -1px -1px 2px rgba(173, 32, 255, 0.5),
    0 0 28px rgba(161, 0, 255, 0.5);
}
.restaurant__carousel {
  position: relative;
  /* Glass-рамка в тон с другими карточками сайта */
  background: rgba(4, 21, 63, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(173, 32, 255, 0.45);
  border-radius: 24px;
  padding: 24px;
  box-shadow:
    inset 1.5px 1.5px 2px rgba(250, 0, 255, 0.25),
    inset -1px -1px 2px rgba(173, 32, 255, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.35);
}
/* Сама дорожка скроллится горизонтально, в неё кладутся слайды
   фиксированной ширины. Так и на десктопе, и на мобиле работает свайп. */
.restaurant__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0;
  scrollbar-width: none;
}
.restaurant__track::-webkit-scrollbar {
  height: 0;
  display: none;
}
.restaurant__slide {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 карточки в ряд на десктопе, gap 20 × 2 = 40 */
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.04);
}
.restaurant__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.restaurant__dots {
  padding-top: 18px;
  margin-top: 0;
  flex-wrap: wrap;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .restaurant__slide {
    flex: 0 0 calc((100% - 20px) / 2);
  } /* 2 в ряд */
}
@media (max-width: 768px) {
  .section.restaurant {
    padding: 24px 0;
  }
  .restaurant__head {
    margin-bottom: 16px;
  }
  .restaurant__menu-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .restaurant__carousel {
    padding: 14px;
    border-radius: 18px;
  }
  .restaurant__track {
    gap: 14px;
  }
  .restaurant__slide {
    flex: 0 0 70%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
  }
  .restaurant__dots {
    padding-top: 14px;
  }
}

/* =================================================================
   iOS install guide (visual step-by-step on /install for iPhone/iPad)
   ================================================================= */
.install-page--ios .install-page__qr-wrap,
.install-page--ios .install-page__detected,
.install-page--ios .install-page__steps {
  display: none;
}

.ios-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 16px;
}
.ios-guide__step {
  position: relative;
  background: rgba(4, 21, 63, 0.45);
  border: 1px solid rgba(173, 32, 255, 0.35);
  border-radius: 22px;
  padding: 24px 18px 20px;
  box-shadow:
    inset 1px 1px 2px rgba(250, 0, 255, 0.25),
    inset -1px -1px 2px rgba(173, 32, 255, 0.35);
}
.ios-guide__num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a100ff 0%, #fe0bbc 100%);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  box-shadow: 0 4px 12px rgba(161, 0, 255, 0.45);
}
.ios-guide__art {
  width: 100%;
  margin-bottom: 14px;
}
.ios-guide__art svg {
  width: 100%;
  height: auto;
  display: block;
}
.ios-guide__title {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px;
}
.ios-guide__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.install-page__url-fallback {
  margin: 24px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.install-page__url-fallback a {
  color: #c084fc;
  word-break: break-all;
}

@media (max-width: 768px) {
  .ios-guide {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 36px 0 16px;
  }
}

/* ==================== User Agreement Modal ==================== */
.agreement-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 30, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.agreement-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  background: rgba(10, 4, 50, 0.85);
  border: 1px solid rgba(173, 32, 255, 0.4);
  border-radius: 24px;
  box-shadow:
    inset 1px 1px 2px rgba(250, 0, 255, 0.3),
    0 30px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  color: #fff;
  overflow: hidden;
}
.agreement-modal__lang {
  display: flex;
  gap: 8px;
}
.agreement-modal__lang-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.agreement-modal__lang-btn:hover {
  background: rgba(173, 32, 255, 0.18);
  color: #fff;
}
.agreement-modal__lang-btn--active {
  background: rgba(173, 32, 255, 0.45);
  border-color: rgba(250, 0, 255, 0.6);
  color: #fff;
}
.agreement-modal__video {
  width: 100%;
  max-height: 60vh;
  border-radius: 16px;
  background: #000;
  display: block;
}
.agreement-modal__accept {
  min-width: 200px;
}
@media (max-width: 768px) {
  .agreement-overlay {
    padding: 16px;
  }
  .agreement-modal {
    padding: 16px;
    gap: 12px;
    border-radius: 18px;
  }
  .agreement-modal__lang-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
  .agreement-modal__video {
    max-height: 50vh;
    border-radius: 12px;
  }
  .agreement-modal__accept {
    min-width: 160px;
    width: 100%;
  }
}

/* =============================================================================
 * Series detail page — постер слева, плоский список серий справа.
 * Не дублируем `.movie-hero` — оверрайдим только differing bits.
 * ============================================================================= */
.series-detail__head {
  margin-bottom: 24px;
}
.series-detail__body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.series-detail__poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  isolation: isolate;
}
.series-detail__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--poster-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(40px) saturate(160%);
  transform: scale(1.2);
  z-index: 0;
}
.series-detail__poster img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.series-detail__episodes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.series-detail__sub {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  margin: 0;
}
/* Episode dropdown — "Выберите серию ▾" + scrollable list */
.ep-dropdown {
  position: relative;
  width: 100%;
}
.ep-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(90deg, #a100ff, #fe0bbc);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  transition: filter 0.15s ease;
}
.ep-dropdown__trigger:hover {
  filter: brightness(1.08);
}
.ep-dropdown__play-icon {
  font-size: 14px;
}
.ep-dropdown__label {
  flex: 1;
}
.ep-dropdown__caret {
  font-size: 12px;
  transition: transform 0.2s ease;
}
.ep-dropdown--open .ep-dropdown__caret {
  transform: rotate(180deg);
}
.ep-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #1a2347;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.ep-dropdown__menu::-webkit-scrollbar {
  width: 8px;
}
.ep-dropdown__menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.ep-list__item {
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2px;
}
.ep-list__item:last-child {
  margin-bottom: 0;
}
.ep-list__link {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease;
  border-radius: 6px;
}
.ep-list__link:hover {
  background: rgba(161, 0, 255, 0.28);
}
.ep-list__item--disabled {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  opacity: 0.4;
  cursor: not-allowed;
  color: #fff;
}
.ep-list__num {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, #a100ff, #fe0bbc);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-list__title {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
}
.ep-list__time {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .series-detail__body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .series-detail__poster {
    max-width: 240px;
    margin: 0 auto;
  }
}

.ep-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.ep-nav__btn {
  flex: 0 1 auto;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.ep-nav__btn:hover {
  background: rgba(161, 0, 255, 0.18);
}
.ep-nav__btn--next {
  margin-left: auto;
  background: linear-gradient(90deg, #a100ff, #fe0bbc);
}

/* =================================================================
   ADDITIONAL INFO V2 — /information/additional.
   Переиспользуем визуал .restaurant__carousel/.restaurant__track/.restaurant__slide
   (стеклянная рамка + точки), как в секции «Ресторан». Здесь только
   модификаторы под другие aspect-ratio и подпись под видео.
   ================================================================= */
.addinfo-page .catalog__head {
  margin-bottom: 28px;
}
.addinfo-carousel__head {
  margin: 0 0 20px;
}
.addinfo-carousel__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
}
.addinfo-carousel__count {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 768px) {
  .addinfo-carousel__title {
    font-size: 20px;
  }
  .addinfo-carousel__count {
    font-size: 13px;
  }
}
.addinfo-carousel {
  margin: 28px 0;
}

/* Слайд = карточка <video> или <img>; в нашем случае без бэкграунда
   сверху на видео — фон и так чёрный. */
.addinfo-slide {
  background: transparent;
  display: flex;
  flex-direction: column;
  /* Поверх .restaurant__slide overflow:hidden + aspect-ratio 3/4 — для нас лишнее.
     Сбрасываем, и задаём собственный размер по типу слайда. */
  overflow: visible;
  aspect-ratio: auto;
  border-radius: 0;
}
.addinfo-slide__video {
  width: 100%;
  border-radius: 16px;
  background: #000;
  display: block;
  object-fit: cover;
}
.addinfo-slide--vert .addinfo-slide__video {
  aspect-ratio: 9 / 16;
}
.addinfo-slide--wide .addinfo-slide__video {
  aspect-ratio: 16 / 9;
}
.addinfo-slide--image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}
.addinfo-slide__caption {
  margin-top: 10px;
  padding: 0 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Top — вертикальные видео: 3 в ряд на десктопе.
   Базовая раскладка .restaurant__slide делает 3 в ряд по умолчанию,
   но aspect-ratio там 3/4 — нам нужно 9/16, поэтому ширину оставляем,
   а высоту даёт addinfo-slide__video. */
.addinfo-carousel--top .restaurant__slide.addinfo-slide {
  flex: 0 0 calc((100% - 40px) / 3);
}

/* Middle — карусель картинок: ширина слайда = почти весь контейнер,
   чтобы каждое изображение занимало большую центральную область. */
.addinfo-carousel--middle .restaurant__slide.addinfo-slide {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Bottom — широкие видео: 3 в ряд на десктопе. */
.addinfo-carousel--bottom .restaurant__slide.addinfo-slide {
  flex: 0 0 calc((100% - 40px) / 3);
}

@media (max-width: 900px) {
  .addinfo-carousel--top .restaurant__slide.addinfo-slide,
  .addinfo-carousel--bottom .restaurant__slide.addinfo-slide {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}
@media (max-width: 768px) {
  .addinfo-carousel {
    margin: 18px 0;
  }
  .addinfo-carousel--top .restaurant__slide.addinfo-slide,
  .addinfo-carousel--bottom .restaurant__slide.addinfo-slide {
    flex: 0 0 80%;
  }
  .addinfo-slide__video,
  .addinfo-slide--image img {
    border-radius: 12px;
  }
}
