/* ========================================================================
   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--disabled {
  cursor: default;
  opacity: 0.72;
}
.song-row--disabled:hover {
  background: rgba(4, 21, 63, 0.25);
}
.song-row__restricted {
  display: block;
  min-width: 0;
  flex: 1;
  color: #aeb3b8;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.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:disabled {
  cursor: default;
  opacity: 0.45;
}
.song-row__add:disabled:hover {
  background: none;
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.18);
}
.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--disabled,
.music-hero__play--disabled:hover {
  cursor: default;
  opacity: 0.62;
  transform: none;
  background: rgba(255, 255, 255, 0.08);
}
.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);
}

.onboard-access-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 10px;
  padding: 17px 20px;
  border: 1px solid rgba(211,80,255,.46);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(83,23,150,.72), rgba(17,78,133,.62));
  color: #fff;
  box-shadow: 0 14px 36px rgba(17,4,62,.24);
}

.onboard-access-banner__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #d844e7, #3b82f6);
  box-shadow: 0 8px 20px rgba(87,47,211,.32);
}

.onboard-access-banner__icon svg { width: 27px; height: 27px; }
.onboard-access-banner strong { display: block; font-size: 16px; }
.onboard-access-banner small { display: block; margin-top: 4px; color: rgba(255,255,255,.7); font-size: 12px; }

.songs-scroll-item--restricted {
  cursor: default;
}

.songs-scroll-item--restricted .songs-scroll-item__cover {
  filter: saturate(.72);
}

.songs-scroll-item--restricted .songs-scroll-item__add {
  opacity: .38;
  cursor: not-allowed;
}

.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;
}
.nomadas-logo { display: inline-block; position: relative; flex-shrink: 0; vertical-align: middle; line-height: 0; width: 98px; height: 56px; }
.nomadas-logo--header { width: 77px; height: 44px; }
.nomadas-logo--footer { align-self: center; }
.nomadas-logo--hero { width: 161px; height: 92px; margin-bottom: 32px; }
.nomadas-logo img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; }
.nomadas-logo .nomadas-logo__white-name { position: absolute; inset: 0; clip-path: inset(79% 0 0 0); filter: brightness(0) invert(1); pointer-events: none; }
@media (max-width: 767px) {
  .nomadas-logo--hero { display: block; width: 119px; height: 68px; margin: 0 auto 24px; }
}
.carrier-information-page .catalog__inner { width: 100%; max-width: 948px; padding-inline: 24px; }
.carrier-information-page .catalog__title { text-align: center; }
.carrier-information { width: 100%; max-width: 900px; margin: 24px auto; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .carrier-information-page .catalog__inner { padding-inline: 19px; }
}
.carrier-information ul, .carrier-information ol { padding-left: 24px; }
.carrier-information li { margin-bottom: 10px; }

.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);
}
.schedule-view-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 22px 24px 16px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(6, 13, 48, .45);
}
.schedule-view-toggle button {
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.schedule-view-toggle button:hover { color: #fff; }
.schedule-view-toggle button:active { transform: scale(.98); }
.schedule-view-toggle button.is-active { color: #15102f; background: #fff; }
.schedule-stop-table-wrap.is-hidden,
.schedule-map-panel.is-hidden { display: none; }
/* Карта маршрута готовится в админке и временно не показывается пассажирам. */
.schedule-view-toggle,
.schedule-map-panel { display: none !important; }
#sched-body.schedule-map-preview .schedule-view-toggle { display: flex !important; }
#sched-body.schedule-map-preview .schedule-map-panel:not(.is-hidden) { display: block !important; }
.schedule-map-panel { padding: 0 24px 24px; }
.schedule-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
.schedule-map-main { position: relative; min-width: 0; }
.schedule-map-side { display: grid; align-content: start; gap: 16px; min-width: 0; }
.schedule-map-canvas {
  --map-focus-x: 50%;
  --map-focus-y: 50%;
  --map-pan-x: 0px;
  --map-pan-y: 0px;
  position: relative;
  aspect-ratio: 1000 / 520;
  overflow: hidden;
  border: 1px solid rgba(165, 195, 255, .28);
  border-radius: 18px;
  background: #07111f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 20px 40px rgba(1, 5, 28, .32);
  cursor: grab;
  touch-action: none;
}
.schedule-map-canvas.is-dragging { cursor: grabbing; }
.schedule-map-canvas::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(120, 97, 255, .08), transparent 46%);
  content: "";
  mix-blend-mode: screen;
}
.schedule-map-zoom { position: absolute; z-index: 4; top: 14px; left: 14px; display: inline-flex; overflow: hidden; border: 1px solid rgba(185, 206, 255, .38); border-radius: 10px; background: rgba(5, 13, 43, .76); box-shadow: 0 8px 22px rgba(0, 0, 0, .24); backdrop-filter: blur(10px); }
.schedule-map-zoom button { width: 34px; height: 34px; border: 0; border-right: 1px solid rgba(185, 206, 255, .22); color: #fff; background: transparent; font: inherit; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; transition: color .18s ease, background .18s ease, transform .18s ease; }
.schedule-map-zoom button:last-child { border-right: 0; }
.schedule-map-zoom button:hover { color: #78e9ff; background: rgba(119, 101, 255, .32); }
.schedule-map-zoom button:active { transform: scale(.92); }
.schedule-map-zoom button[data-map-zoom="reset"] { font-size: 18px; }
.schedule-map-density { position: absolute; z-index: 4; top: 14px; right: 14px; display: inline-flex; padding: 3px; border: 1px solid rgba(185, 206, 255, .32); border-radius: 10px; background: rgba(5, 13, 43, .76); box-shadow: 0 8px 22px rgba(0, 0, 0, .24); backdrop-filter: blur(10px); }
.schedule-map-density button { min-height: 28px; padding: 4px 8px; border: 0; border-radius: 7px; color: rgba(255, 255, 255, .74); background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; transition: color .18s ease, background .18s ease; }
.schedule-map-density button:hover { color: #fff; }
.schedule-map-density button.is-active { color: #11163d; background: #fff; }
.schedule-map-svg { position: relative; z-index: 2; display: block; width: 100%; min-width: 0; height: 100%; transform: translate(var(--map-pan-x), var(--map-pan-y)) scale(var(--map-zoom, 1)); transform-origin: var(--map-focus-x) var(--map-focus-y); will-change: transform; }
.schedule-map-canvas.is-focusing .schedule-map-svg { animation: schedule-map-focus .7s cubic-bezier(.2, .78, .2, 1); }
.schedule-map-svg image { opacity: .75; }
.schedule-map-svg__country { display: none; }
.schedule-map-svg__line-glow {
  fill: none;
  stroke: rgba(116, 192, 255, .30);
  stroke-width: 15;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: blur(7px);
}
.schedule-map-svg__line {
  fill: none;
  stroke: url(#schedule-route-line);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(85, 209, 255, .72)) drop-shadow(0 4px 8px rgba(0, 0, 0, .32));
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: schedule-route-draw 1.25s cubic-bezier(.22, .8, .25, 1) forwards;
}
.schedule-map-svg__train { pointer-events: none; }
.schedule-map-svg__train circle { fill: #eff6ff; stroke: #2563eb; stroke-width: 2; filter: drop-shadow(0 1px 4px rgba(37, 99, 235, .42)); animation: none; }
.schedule-map-svg__train path { fill: none; stroke: #fff8d7; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schedule-map-svg__station {
  cursor: pointer;
  outline: none;
  opacity: 0;
  animation: schedule-station-in .42s cubic-bezier(.2, .8, .2, 1) var(--station-delay, 0ms) forwards;
}
.schedule-map-svg__station-dot {
  fill: #f4f8ff;
  stroke: #7257e8;
  stroke-width: 3.5;
  filter: drop-shadow(0 2px 4px rgba(2, 7, 34, .58));
  transition: transform .18s ease, fill .18s ease, stroke .18s ease;
  transform: scale(var(--map-ui-scale, 1));
  transform-box: fill-box;
  transform-origin: center;
}
.schedule-map-svg__station-ring {
  fill: rgba(124, 99, 255, .13);
  stroke: rgba(194, 177, 255, .72);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 10px rgba(132, 102, 255, .68));
  opacity: 0;
  transform: scale(var(--map-ui-scale, 1));
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .22s ease, stroke .22s ease, fill .22s ease;
}
.schedule-map-svg__station text {
  fill: #fff;
  font-size: var(--map-label-size, 15px);
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(7, 17, 59, .92);
  stroke-width: var(--map-label-stroke, 5px);
  stroke-linejoin: round;
}
.schedule-map-svg__station:hover .schedule-map-svg__station-dot,
.schedule-map-svg__station:focus .schedule-map-svg__station-dot,
.schedule-map-svg__station.is-selected .schedule-map-svg__station-dot { fill: #8c7bff; stroke: #fff; transform: scale(var(--map-selected-ui-scale, 1.28)); }
.schedule-map-svg__station.is-selected .schedule-map-svg__station-ring { opacity: 1; animation: schedule-station-pulse 1.8s ease-in-out .45s infinite; }
.schedule-map-svg__station.is-endpoint .schedule-map-svg__station-dot { fill: #73e6ff; stroke: #fff; filter: drop-shadow(0 0 9px rgba(84, 224, 255, .84)); }
.schedule-map-svg__station.is-endpoint .schedule-map-svg__station-ring { opacity: 1; stroke: rgba(105, 233, 255, .84); fill: rgba(72, 206, 255, .14); }
.schedule-map-svg__station.is-estimated .schedule-map-svg__station-dot {
  fill: rgba(17, 31, 84, .94);
  stroke: rgba(224, 231, 255, .9);
  stroke-dasharray: 2 2;
}
.schedule-map-svg__station.is-estimated text { opacity: .78; font-size: 15px; }
.schedule-map-stop-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(185, 121, 255, .72);
  border-radius: 14px;
  background: rgba(10, 18, 54, .94);
  box-shadow: 0 16px 34px rgba(1, 5, 26, .42);
  color: rgba(255, 255, 255, .78);
}
.schedule-map-stop-detail.is-hidden { display: none; }
.schedule-map-stop-detail--mobile { display: none; }
.schedule-map-stop-detail.is-updating { animation: schedule-map-detail-in .34s cubic-bezier(.2, .8, .2, 1); }
.schedule-map-stop-detail__head { display: grid; gap: 3px; }
.schedule-map-stop-detail__head span { color: #aebde8; font-size: 12px; font-weight: 700; }
.schedule-map-stop-detail__head strong { color: #fff; font-size: 20px; line-height: 1.15; }
.schedule-map-stop-detail__head small { color: rgba(207, 220, 255, .76); font-size: 12px; font-weight: 700; }
.schedule-map-stop-detail__times { display: grid; gap: 7px; margin: 0; }
.schedule-map-stop-detail__times > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.schedule-map-stop-detail__times dt { color: rgba(255,255,255,.68); font-size: 13px; }
.schedule-map-stop-detail__times dd { margin: 0; color: #fff; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.schedule-map-stop-detail__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.schedule-map-action { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 10px; border: 1px solid rgba(138, 102, 255, .82); border-radius: 9px; color: #fff; background: rgba(104, 68, 219, .62); font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.schedule-map-action:hover { transform: translateY(-1px); background: rgba(126, 80, 243, .8); }
.schedule-map-action:active { transform: scale(.98); }
.schedule-map-action--secondary { border-color: rgba(181, 141, 255, .72); background: rgba(255,255,255,.05); }
.schedule-map-action--secondary:hover { background: rgba(255,255,255,.12); }
.schedule-map-hint { position: absolute; left: 20px; bottom: 16px; color: rgba(255,255,255,.7); font-size: 13px; }
.schedule-map-journey { display: grid; align-content: center; gap: 18px; padding: 24px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(7,17,53,.72); }
.schedule-map-journey__part { display: grid; gap: 6px; }
.schedule-map-journey__part > span { color: rgba(255,255,255,.62); font-size: 13px; }
.schedule-map-journey__part strong { color: #70ddff; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.schedule-map-journey__part b { color: #fff; font-size: 15px; }
.schedule-map-journey__rail { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: center; color: rgba(255,255,255,.7); font-size: 13px; }
.schedule-map-journey__rail i { height: 72px; border-left: 2px dashed #55ccff; justify-self: center; }
.schedule-map-journey__rail em { font-style: normal; }
.schedule-map-empty {
  padding: 32px 20px;
  border: 1px dashed rgba(255, 255, 255, .26);
  border-radius: 12px;
  color: rgba(255, 255, 255, .74);
  text-align: center;
}
@keyframes schedule-route-draw { to { stroke-dashoffset: 0; } }
@keyframes schedule-station-in {
  from { opacity: 0; transform: translateY(12px) scale(.72); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes schedule-station-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(122, 132, 255, 0)); }
  50% { filter: drop-shadow(0 0 12px rgba(122, 132, 255, .95)); }
}
@keyframes schedule-map-focus {
  0% { transform: translate(var(--map-pan-x), var(--map-pan-y)) scale(var(--map-zoom, 1)); }
  48% { transform: translate(var(--map-pan-x), var(--map-pan-y)) scale(calc(var(--map-zoom, 1) + .045)); }
  100% { transform: translate(var(--map-pan-x), var(--map-pan-y)) scale(var(--map-zoom, 1)); }
}
@keyframes schedule-map-detail-in {
  from { opacity: .42; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes schedule-train-pulse {
  0%, 100% { opacity: .86; filter: drop-shadow(0 0 5px rgba(255, 214, 112, .64)); }
  50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 214, 112, 1)); }
}
@media (prefers-reduced-motion: reduce) {
  .schedule-map-svg__line,
  .schedule-map-svg__station,
  .schedule-map-svg__station.is-selected .schedule-map-svg__station-ring,
  .schedule-map-canvas.is-focusing .schedule-map-svg,
  .schedule-map-stop-detail.is-updating,
  .schedule-map-svg__train circle { animation: none; opacity: 1; stroke-dashoffset: 0; }
}
@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-view-toggle { margin: 16px 16px 12px; }
  .schedule-map-panel { padding: 0 16px 16px; }
  .schedule-map-layout { grid-template-columns: 1fr; }
  .schedule-map-side { grid-template-columns: 1fr; }
  .schedule-map-density { top: 10px; right: 10px; }
  .schedule-map-density button { min-height: 26px; padding: 3px 7px; font-size: 10px; }
  .schedule-map-side > .schedule-map-stop-detail { display: none; }
  .schedule-map-main.has-selected-station .schedule-map-hint { display: none; }
  .schedule-map-stop-detail--mobile:not(.is-hidden) {
    position: static;
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(8, 16, 49, .94);
    box-shadow: 0 12px 26px rgba(1, 5, 28, .46);
    backdrop-filter: blur(12px);
  }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__head { grid-template-columns: 1fr; gap: 1px; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__head span { display: none; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__head strong { font-size: 17px; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__head small { font-size: 11px; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__times { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__times > div { display: grid; gap: 1px; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__times dt { font-size: 10px; line-height: 1.1; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__times dd { font-size: 13px; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__actions { display: none; }
  .schedule-map-hint { position: static; margin: 10px 4px 0; font-size: 11px; }
  .schedule-map-journey { grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px; }
  .schedule-map-journey__rail { grid-template-columns: 1fr; text-align: center; }
  .schedule-map-journey__rail i { width: 70px; height: 0; border-top: 2px dashed #55ccff; border-left: 0; }
  .schedule-map-journey__part:last-child { text-align: right; }
  .schedule-map-svg__country { font-size: 27px; }
  .schedule-map-svg__station text { font-size: 12px; }
  .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;
}

/* Passenger library: favorites, continue watching and enhanced video tools */
.passenger-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(4,21,63,.68);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
  cursor: pointer;
}
.passenger-favorite svg { width: 20px; height: 20px; fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.passenger-favorite.is-active { color: #fff; border-color: rgba(255,70,188,.8); background: linear-gradient(135deg,#ff2eae,#8d28ff); }
.passenger-favorite.is-active svg { fill: currentColor; }
.passenger-my-link { display:flex; align-items:center; line-height:1; }
.passenger-card-shell { position:relative; width:184px; min-width:0; }
.passenger-card-shell--movie {
  width: 100%;
  container-type: inline-size;
}
.hidden-series-page .hidden-series-hero{min-height:0}.hidden-series-page .hidden-series-hero .page-hero__inner{min-height:0}.hidden-series-page__head{display:flex;flex-direction:column;gap:8px}.hidden-series-page__eyebrow{margin:0;color:rgba(255,255,255,.72);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.hidden-series-page__body{align-items:start}.hidden-series-page__watch{min-width:0;width:100%}.hidden-series-page__dropdown{z-index:5}.hidden-series-page__dropdown .ep-list__item.is-active{background:rgba(161,0,255,.25);box-shadow:inset 3px 0 0 #fe0bbc}.hidden-series-page__player-shell{min-width:0;padding:18px;border-radius:18px;background:rgba(4,21,63,.46);box-shadow:inset 1px 1px 2px rgba(250,0,255,.3),inset -1px -1px 2px rgba(173,32,255,.38);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.hidden-series-page__player-head{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin:0 2px 14px;color:rgba(255,255,255,.62);font-size:12px;letter-spacing:.06em;text-transform:uppercase}.hidden-series-page__player-head strong{overflow:hidden;color:#fff;font-size:15px;letter-spacing:0;text-align:right;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.hidden-series-page__video{display:block;aspect-ratio:16/9;max-height:58vh;object-fit:contain}.hidden-series-page__notice{display:grid;min-height:clamp(220px,32vw,430px);place-items:center;margin:0;padding:24px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(3,10,29,.72);color:rgba(255,255,255,.72);text-align:center}.hidden-series-page__access-note{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:13px 16px;border-radius:12px;background:rgba(4,21,63,.48);box-shadow:inset 1px 1px 1px rgba(250,0,255,.32),inset -1px -1px 1px rgba(173,32,255,.36);color:#fff;font-size:13px;font-weight:600;backdrop-filter:blur(14px)}.hidden-series-page__access-note span{color:rgba(255,255,255,.66);font-size:12px;font-weight:500}.hidden-series-page__info{grid-template-columns:minmax(0,2fr) minmax(260px,1fr)}
.hidden-series-page__info--compact{grid-template-columns:minmax(0,520px)}
/* The decorative ribbon is sized from viewport width. On ultra-wide screens it
   must not extend the hidden-series document and push the footer down. Keep
   the global ribbon unchanged for every regular portal page. */
body:has(.hidden-series-page) .bg-wave{position:fixed;left:0}
@media(max-width:900px){.hidden-series-page__info{grid-template-columns:1fr}.hidden-series-page__player-shell{padding:14px}}
@media(max-width:700px){.hidden-series-page__head{margin-bottom:20px}.hidden-series-page__head .page-hero__title{font-size:34px}.hidden-series-page__body{gap:22px}.hidden-series-page__poster-column{width:min(68vw,260px)}.hidden-series-page__watch{gap:14px}.hidden-series-page__player-shell{padding:10px;border-radius:14px}.hidden-series-page__player-head{align-items:flex-start;flex-direction:column;gap:4px;margin:2px 4px 10px}.hidden-series-page__player-head strong{max-width:100%;text-align:left}.hidden-series-page__video{border-radius:10px}.hidden-series-page__notice{min-height:210px}.hidden-series-page__info{margin-top:28px}}
.passenger-card-shell--movie > .passenger-favorite {
  top: 8px;
  right: 8px;
}
.media-card__age { left:8px; right:auto; top:8px; min-width:38px; height:24px; padding:0 8px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.25); border-radius:6px; font-size:12px; font-weight:700; background:rgba(4,21,63,.72); }
.passenger-card-shell .movie-card__age { left:8px; right:auto; min-width:38px; height:24px; padding:0 8px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.25); border-radius:6px; font-weight:700; background:rgba(4,21,63,.72); }
.passenger-card-shell .movie-card__series-badge {
  top: calc(150cqw - 32px);
  right: 8px;
  left: auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.movie-card__status-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  max-width: calc(100% - 58px);
  pointer-events: none;
}
.movie-card__status-badge {
  min-height: 24px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  color: #fff;
  font: 700 11px/1.1 "Inter", sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(4,21,63,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.movie-card__status-badge--new {
  background: linear-gradient(135deg, rgba(30,144,255,.94), rgba(90,73,255,.94));
}
.movie-card__status-badge--episodes {
  background: linear-gradient(135deg, rgba(161,0,255,.94), rgba(254,11,188,.94));
}
.passenger-primary-actions { display:flex; align-items:stretch; gap:12px; flex-wrap:wrap; margin-top:18px; }
.passenger-primary-actions .page-hero__play { margin:0; flex:1 1 330px; min-height:60px; }
.passenger-favorite-action { min-height:60px; padding:0 24px; display:inline-flex; align-items:center; justify-content:center; gap:10px; border:1px solid rgba(181,60,251,.78); border-radius:999px; color:#fff; background:rgba(4,21,63,.48); font:700 15px/1 "Inter",sans-serif; cursor:pointer; backdrop-filter:blur(14px); }
.passenger-favorite-action svg { width:22px; height:22px; fill:transparent; stroke:currentColor; stroke-width:1.8; }
.passenger-favorite-action.is-active { border-color:#fe0bbc; background:linear-gradient(135deg,rgba(161,0,255,.9),rgba(254,11,188,.9)); }
.passenger-favorite-action.is-active svg { fill:currentColor; }
.passenger-primary-actions--book { margin-top:14px; flex-direction:column; }
.passenger-primary-actions--book .book-hero__cta,.passenger-primary-actions--book .passenger-favorite-action { width:100%; min-height:52px; margin:0; }
.passenger-home-continue { padding: 62px 0; background: transparent; }
.passenger-home-continue .passenger-items {
  display:flex;
  align-items:flex-start;
  gap:22px;
  overflow-x:auto;
  padding:2px 2px 18px;
  scrollbar-width:thin;
  scrollbar-color:rgba(238,42,190,.9) transparent;
}
.passenger-home-continue .passenger-items::-webkit-scrollbar { height:8px; }
.passenger-home-continue .passenger-items::-webkit-scrollbar-track {
  border-radius:999px;
  background:linear-gradient(
    to bottom,
    transparent 3px,
    rgba(255,255,255,.18) 3px,
    rgba(255,255,255,.18) 5px,
    transparent 5px
  );
}
.passenger-home-continue .passenger-items::-webkit-scrollbar-thumb {
  min-width:72px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:linear-gradient(90deg,#a100ff 0%,#fe0bbc 100%);
  box-shadow:0 0 12px rgba(254,11,188,.28);
}
.passenger-home-continue .passenger-items::-webkit-scrollbar-thumb:hover {
  background:linear-gradient(90deg,#b52cff 0%,#ff35c8 100%);
}
.passenger-home-continue .passenger-items::-webkit-scrollbar-button { display:none; }
.passenger-home-continue .passenger-item { flex:0 0 184px; }
.passenger-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.passenger-section-head h2 { margin:0; color:#fff; font:700 clamp(28px,3vw,40px)/1.15 "Inter",sans-serif; }
.passenger-section-head a,.passenger-section-head>span { color:#d8c8ff; font-weight:600; }
.passenger-items { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:22px; }
.passenger-item { position:relative; min-width:0; color:#fff; }
.passenger-item__link { display:block; color:inherit; }
.passenger-item__cover { position:relative; aspect-ratio:2/3; overflow:hidden; border-radius:16px; background:rgba(255,255,255,.08); box-shadow:0 16px 40px rgba(0,0,0,.28); }
.passenger-item__cover img { width:100%; height:100%; object-fit:cover; }
.passenger-item h3 { margin:12px 0 3px; color:#fff; font-size:16px; line-height:1.35; }
.passenger-item p { margin:0; color:#aeb4ce; font-size:13px; }
.passenger-item__resume { position:absolute; left:10px; bottom:14px; z-index:2; padding:8px 10px; border-radius:999px; color:#fff; background:rgba(8,7,36,.78); font-size:12px; font-weight:700; backdrop-filter:blur(10px); }
.passenger-item__bar { position:absolute; left:0; right:0; bottom:0; height:5px; background:rgba(255,255,255,.22); }
.passenger-item__bar i { display:block; height:100%; border-radius:0 5px 5px 0; background:linear-gradient(90deg,#ff1aaa,#8e43ff); }
.passenger-my { min-height:50vh; padding:0 0 80px; }
.passenger-my-hero .hero-glass { margin-bottom:24px; }
.hero-glass--my .hero-glass__image { display:block; overflow:visible; background:transparent; filter:drop-shadow(0 12px 32px rgba(192,132,252,.5)); }
.passenger-my__hero-art img { width:100%; height:100%; display:block; object-fit:contain; object-position:center; transform:scale(1.82); filter:saturate(.72) brightness(.9) contrast(1.04); mix-blend-mode:screen; clip-path:none; -webkit-mask-image:radial-gradient(ellipse 66% 58% at 50% 44%,#000 50%,rgba(0,0,0,.96) 68%,rgba(0,0,0,.24) 84%,transparent 100%); mask-image:radial-gradient(ellipse 66% 58% at 50% 44%,#000 50%,rgba(0,0,0,.96) 68%,rgba(0,0,0,.24) 84%,transparent 100%); }
.passenger-my__section { margin-top:42px; }
.passenger-empty { padding:58px 24px; border:1px solid rgba(255,255,255,.12); border-radius:24px; text-align:center; background:rgba(255,255,255,.05); }
.passenger-empty>span { font-size:52px; color:#e9d9ff; }
.passenger-empty h3 { margin:12px 0 8px; color:#fff; font-size:24px; }
.passenger-empty p { margin:0 auto 22px; max-width:520px; color:#b7b7cc; }
.passenger-player-tools { display:none; }
.passenger-player-tools button { min-width:56px; height:42px; padding:0 14px; border:1px solid rgba(255,255,255,.16); border-radius:11px; background:rgba(255,255,255,.08); color:#fff; font-weight:700; cursor:pointer; }

@media (max-width:768px) {
  .passenger-items { display:flex; overflow-x:auto; gap:14px; margin-right:-19px; padding-right:19px; scroll-snap-type:x mandatory; scrollbar-width:none; }
  .passenger-item { flex:0 0 145px; scroll-snap-align:start; }
  .passenger-home-continue { padding:36px 0; }
  .passenger-home-continue .passenger-items { margin-right:-19px; padding-right:19px; }
  .passenger-home-continue .passenger-items::-webkit-scrollbar { display:none; }
  .passenger-my { padding:0 0 60px; }
  .passenger-my-hero .hero-glass { margin-bottom:8px; }
  .hero-glass--my .hero-glass__image { width:200px; margin-top:-110px; }
  .passenger-my__hero-art img { transform:scale(1.72); }
  .passenger-primary-actions { gap:10px; }
  .passenger-primary-actions .page-hero__play,.passenger-favorite-action { width:100%; min-height:54px; }
  .tab-bar__item { min-width:0; }
  .tab-bar__label { max-width:68px; overflow:hidden; text-overflow:ellipsis; }
}

/* 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: 16px;
}
.notif-modal {
  position: relative;
  width: auto;
  max-width: min(820px, calc(100vw - 32px));
}
.notif-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  border-radius: 16px;
  object-fit: contain;
}
.notif-video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 32px);
  border-radius: 16px;
  background: #000;
}
.notif-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 10, 27, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.notif-title,
.notif-body {
  margin: 12px 0 0;
  padding: 0 4px;
  color: #fff;
  text-align: center;
}
.notif-title { font-size: 20px; }
.notif-body { color: rgba(255, 255, 255, 0.82); }
.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__store {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
}

.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: minmax(0, 7fr) minmax(0, 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: minmax(0, 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, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 120px;
}
.audio-track-row {
  display: flex;
  min-width: 0;
  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, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .audio-guide-grid {
    grid-template-columns: minmax(0, 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__store,
.install-promo__store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(112, 224, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(22, 122, 210, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.install-page__store {
  margin: 16px auto 0;
  width: fit-content;
}

.install-page__store .google-play-icon,
.install-promo__store .google-play-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.install-page__store:hover,
.install-promo__store:hover {
  transform: translateY(-1px);
  border-color: rgba(144, 240, 255, 0.9);
  background: rgba(18, 159, 223, 0.34);
}

.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;
}

/* The ribbon is sized from viewport width, so on ultra-wide displays its box
   can extend below otherwise short pages and leave scrollable space after the
   footer. Limit only that overflow and blend the lower edge into the global
   ornament instead of ending the artwork on a hard horizontal cut. */
@media (min-width: 769px) {
  .bg-wave {
    max-height: calc(100vh - 0.4861vw);
    background-size: 100% auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, .9) 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, .9) 76%, transparent 100%);
  }
}

/* =================================================================
   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;
    flex-wrap: wrap;
  }
  .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-column {
  width: 100%;
  min-width: 0;
}
.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__favorite {
  margin-top: 14px;
}
.series-detail__favorite .passenger-favorite-action {
  width: 100%;
  min-height: 52px;
  padding-inline: 18px;
}
.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 {
    width: 100%;
  }
  .series-detail__poster-column {
    width: min(100%, 280px);
    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-section {
  margin: 38px 0 48px;
}
.addinfo-section__title {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 750;
  color: #fff;
}
.addinfo-section .addinfo-carousel {
  margin-top: 24px;
}
.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-image-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.addinfo-image-trigger img {
  transition: transform 220ms ease, filter 220ms ease;
}
.addinfo-image-trigger:hover img,
.addinfo-image-trigger:focus-visible img {
  transform: scale(1.015);
  filter: brightness(1.08);
}
.addinfo-image-trigger__hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(13, 8, 55, .72);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  opacity: .92;
  pointer-events: none;
}
.addinfo-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.addinfo-image-viewer.is-visible {
  opacity: 1;
  visibility: visible;
}
.addinfo-image-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 24, .86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.addinfo-image-viewer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(94vw, 1320px);
  max-height: 94vh;
  padding: 18px;
  border: 1px solid rgba(196, 181, 253, .28);
  border-radius: 20px;
  background: rgba(13, 12, 44, .94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  transform: scale(.96) translateY(8px);
  transition: transform 220ms ease;
}
.addinfo-image-viewer.is-visible .addinfo-image-viewer__panel {
  transform: scale(1) translateY(0);
}
.addinfo-image-viewer__stage {
  max-width: 100%;
  max-height: calc(94vh - 92px);
  overflow: auto;
  border-radius: 12px;
}
.addinfo-image-viewer__image {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 92px);
  object-fit: contain;
  cursor: zoom-in;
  transform: scale(1);
  transform-origin: center;
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}
.addinfo-image-viewer__image.is-enlarged {
  max-width: none;
  max-height: none;
  transform: scale(1.55);
  cursor: zoom-out;
}
.addinfo-image-viewer__close,
.addinfo-image-viewer__zoom {
  min-height: 42px;
  border: 1px solid rgba(196, 181, 253, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.addinfo-image-viewer__close:hover,
.addinfo-image-viewer__zoom:hover {
  background: rgba(168, 85, 247, .32);
  transform: translateY(-1px);
}
.addinfo-image-viewer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
}
.addinfo-image-viewer__zoom {
  padding: 0 18px;
}
@media (max-width: 768px) {
  .addinfo-image-viewer {
    padding: 12px;
  }
  .addinfo-image-viewer__panel {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
  }
  .addinfo-image-viewer__stage,
  .addinfo-image-viewer__image {
    max-height: calc(100dvh - 100px);
  }
}
.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);
}
.addinfo-carousel--vertical .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%;
}
.addinfo-carousel--image .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);
}
.addinfo-carousel--wide .restaurant__slide.addinfo-slide {
  flex: 0 0 calc((100% - 40px) / 3);
}

/* A lone widescreen video should use the available stage instead of
   retaining the three-column carousel width. */
.addinfo-carousel--wide.addinfo-carousel--single .restaurant__slide.addinfo-slide {
  flex-basis: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .addinfo-carousel--top .restaurant__slide.addinfo-slide,
  .addinfo-carousel--bottom .restaurant__slide.addinfo-slide,
  .addinfo-carousel--vertical .restaurant__slide.addinfo-slide,
  .addinfo-carousel--wide .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,
  .addinfo-carousel--vertical .restaurant__slide.addinfo-slide,
  .addinfo-carousel--wide .restaurant__slide.addinfo-slide {
    flex: 0 0 80%;
  }
  .addinfo-slide__video,
  .addinfo-slide--image img {
    border-radius: 12px;
  }
}

/* Schedule map: restrained transport interface. Presentation only; route data and interaction remain in app.js. */
.schedule-route-card {
  border-color: rgba(148, 163, 184, .18);
  border-radius: 16px;
  background: rgba(7, 17, 31, .86);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.schedule-route-card__head { gap: 16px; padding: 20px 22px 12px; }
.schedule-route-card__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 6px;
  color: #93c5fd;
  background: rgba(96, 165, 250, .08);
  font-size: 11px;
  letter-spacing: .08em;
}
.schedule-route-card__title { color: #f8fafc; font-size: 22px; font-weight: 750; }
.schedule-route-card__controls { gap: 8px; }
.schedule-route-card__arrow {
  width: 42px;
  height: 42px;
  border-color: rgba(148, 163, 184, .26);
  border-radius: 10px;
  background: rgba(15, 23, 42, .76);
  color: #e2e8f0;
  font-size: 25px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.schedule-route-card__arrow:hover:not(:disabled),
.schedule-route-card__arrow:focus-visible {
  border-color: rgba(96, 165, 250, .7);
  background: rgba(30, 58, 95, .72);
  color: #fff;
}
.schedule-route-card__arrow:active:not(:disabled) { transform: scale(.96); }
.schedule-route-card__counter { color: #94a3b8; font-size: 13px; }
.schedule-route-card__summary {
  gap: 9px;
  margin: 0 22px 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 650;
}
.schedule-route-card__summary strong { color: #60a5fa; }
.schedule-view-toggle {
  margin: 18px 22px 14px;
  padding: 3px;
  border-color: rgba(148, 163, 184, .22);
  border-radius: 10px;
  background: rgba(15, 23, 42, .74);
}
.schedule-view-toggle button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 7px;
  color: #94a3b8;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.schedule-view-toggle button:hover, .schedule-view-toggle button:focus-visible { color: #e2e8f0; }
.schedule-view-toggle button.is-active {
  color: #f8fafc;
  background: #1e3a5f;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .25);
}
.schedule-map-panel { padding: 0 22px 22px; }
.schedule-map-layout { grid-template-columns: minmax(0, 1fr) 248px; gap: 12px; }
.schedule-map-side { gap: 12px; }
.schedule-map-canvas {
  border-color: rgba(148, 163, 184, .22);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 74% 16%, rgba(30, 64, 175, .16), transparent 39%),
    radial-gradient(ellipse at 15% 94%, rgba(14, 116, 144, .12), transparent 42%),
    #07111f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 12px 28px rgba(0, 0, 0, .2);
}
.schedule-map-canvas::after {
  background-image: linear-gradient(rgba(148, 163, 184, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mix-blend-mode: normal;
}
.schedule-map-zoom {
  top: 12px;
  left: 12px;
  overflow: visible;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.schedule-map-zoom button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 10px;
  color: #e2e8f0;
  background: rgba(11, 22, 40, .9);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  font-size: 21px;
}
.schedule-map-zoom button:last-child { border-right: 1px solid rgba(148, 163, 184, .3); }
.schedule-map-zoom button:hover, .schedule-map-zoom button:focus-visible { color: #fff; background: #1e3a5f; border-color: rgba(96, 165, 250, .72); }
.schedule-map-zoom button[data-map-zoom="reset"] { font-size: 17px; }
.schedule-map-density {
  top: 12px;
  right: 12px;
  padding: 3px;
  border-color: rgba(148, 163, 184, .28);
  border-radius: 10px;
  background: rgba(11, 22, 40, .9);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  backdrop-filter: none;
}
.schedule-map-density button { min-height: 32px; padding: 5px 9px; border-radius: 7px; color: #94a3b8; font-size: 11px; }
.schedule-map-density button:hover, .schedule-map-density button:focus-visible { color: #e2e8f0; }
.schedule-map-density button.is-active { color: #f8fafc; background: #1e3a5f; }
.schedule-map-svg image { opacity: .16; }
.schedule-map-svg__country { display: none; }
.schedule-map-svg__line-glow { stroke: rgba(56, 189, 248, .18); stroke-width: 8; filter: blur(3px); }
.schedule-map-svg__line { stroke-width: 3.5; filter: drop-shadow(0 1px 3px rgba(14, 165, 233, .22)); }
.schedule-map-svg__train circle {
  fill: #eff6ff;
  stroke: #2563eb;
  stroke-width: 2;
  filter: drop-shadow(0 1px 4px rgba(37, 99, 235, .42));
  animation: none;
}
.schedule-map-svg__train path { stroke: #1e3a5f; stroke-width: 1.8; }
.schedule-map-svg__station-dot { fill: #f8fafc; stroke: #60a5fa; stroke-width: 2.5; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .38)); }
.schedule-map-svg__station-ring { fill: rgba(96, 165, 250, .08); stroke: rgba(147, 197, 253, .48); stroke-width: 1.5; filter: none; }
.schedule-map-svg__station text { fill: #f8fafc; font-size: var(--map-label-size, 13px); font-weight: 700; stroke: rgba(7, 17, 31, .96); stroke-width: var(--map-label-stroke, 4px); }
.schedule-map-svg__station .is-secondary-label { display: none; }
.schedule-map-canvas.is-zoomed .schedule-map-svg__station .is-secondary-label { display: inline; }
.schedule-map-svg__station:hover .schedule-map-svg__station-dot,
.schedule-map-svg__station:focus .schedule-map-svg__station-dot,
.schedule-map-svg__station.is-selected .schedule-map-svg__station-dot { fill: #dbeafe; stroke: #2563eb; }
.schedule-map-svg__station.is-selected .schedule-map-svg__station-ring { opacity: 1; stroke: #60a5fa; fill: rgba(96, 165, 250, .12); animation: none; }
.schedule-map-svg__station.is-endpoint .schedule-map-svg__station-dot { fill: #fff; stroke: #38bdf8; filter: drop-shadow(0 1px 4px rgba(56, 189, 248, .34)); }
.schedule-map-svg__station.is-endpoint .schedule-map-svg__station-ring { stroke: rgba(125, 211, 252, .68); fill: rgba(56, 189, 248, .1); }
.schedule-map-svg__station.is-estimated .schedule-map-svg__station-dot { fill: #0b1628; stroke: #cbd5e1; }
.schedule-map-stop-detail {
  gap: 13px;
  padding: 16px;
  border-color: rgba(148, 163, 184, .24);
  border-radius: 14px;
  background: #0b1628;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
  color: #cbd5e1;
}
.schedule-map-stop-detail__head span { color: #93c5fd; }
.schedule-map-stop-detail__head strong { color: #f8fafc; }
.schedule-map-stop-detail__head small, .schedule-map-stop-detail__times dt { color: #94a3b8; }
.schedule-map-stop-detail__times dd { color: #f8fafc; }
.schedule-map-action { min-height: 40px; border-color: rgba(96, 165, 250, .55); border-radius: 9px; background: #1d4ed8; }
.schedule-map-action:hover { background: #2563eb; }
.schedule-map-action--secondary { border-color: rgba(148, 163, 184, .35); background: rgba(148, 163, 184, .08); }
.schedule-map-action--secondary:hover { background: rgba(148, 163, 184, .16); }
.schedule-map-hint { left: 16px; bottom: 14px; color: #94a3b8; font-size: 12px; }
.schedule-map-journey {
  gap: 16px;
  padding: 18px 16px;
  border-color: rgba(148, 163, 184, .22);
  border-radius: 14px;
  background: #0b1628;
}
.schedule-map-journey__part { gap: 4px; }
.schedule-map-journey__part > span { color: #94a3b8; font-size: 12px; }
.schedule-map-journey__part strong { color: #e0f2fe; font-size: 28px; }
.schedule-map-journey__part b { color: #e2e8f0; font-size: 14px; }
.schedule-map-journey__rail { color: #94a3b8; font-size: 12px; }
.schedule-map-journey__rail i { border-left-color: #475569; }

@media (max-width: 900px) {
  .schedule-map-layout { grid-template-columns: minmax(0, 1fr) 220px; }
}
@media (max-width: 768px) {
  .schedule-route-card__head { gap: 12px; padding: 16px 16px 10px; }
  .schedule-route-card__title { font-size: 20px; }
  .schedule-route-card__summary { margin: 0 16px 14px; }
  .schedule-route-card__controls { width: auto; align-self: flex-end; }
  .schedule-view-toggle { margin: 14px 16px 12px; }
  .schedule-map-panel { padding: 0 16px 18px; }
  .schedule-map-canvas { min-height: 320px; height: min(60svh, 460px); aspect-ratio: auto; }
  .schedule-map-zoom { top: 10px; left: 10px; }
  .schedule-map-zoom button { width: 44px; height: 44px; }
  .schedule-map-density { top: 10px; right: 10px; }
  .schedule-map-density button { min-height: 34px; padding: 5px 8px; }
  .schedule-map-stop-detail--mobile:not(.is-hidden) { border-color: rgba(148, 163, 184, .24); background: #0b1628; box-shadow: 0 8px 18px rgba(0, 0, 0, .16); backdrop-filter: none; }
  .schedule-map-hint { color: #94a3b8; }
  .schedule-map-journey { border-radius: 14px; background: #0b1628; }
  .schedule-map-journey__rail i { border-top-color: #475569; }
}

/* Schedule map: timetable progress and transport information hierarchy. */
.schedule-map-progress {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 13px 14px 11px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  background: rgba(11, 22, 40, .72);
}
.schedule-map-progress__labels,
.schedule-map-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.schedule-map-progress__labels { color: #cbd5e1; font-size: 12px; font-weight: 700; }
.schedule-map-progress__labels span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-map-progress__labels span:last-child { text-align: right; }
.schedule-map-progress__track { position: relative; height: 5px; border-radius: 999px; background: #475569; overflow: visible; }
.schedule-map-progress__track > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1d4ed8, #38bdf8); transition: width .8s ease; }
.schedule-map-progress__train { position: absolute; top: 50%; display: grid; width: 19px; height: 19px; place-items: center; border: 2px solid #0b1628; border-radius: 50%; color: #0f4c81; background: #f8fafc; line-height: 1; transform: translateY(-50%); transition: left .8s ease; }
.schedule-map-progress__train svg,
.schedule-map-zoom button[data-map-follow] svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.schedule-map-progress__meta { color: #94a3b8; font-size: 11px; }
.schedule-map-progress__meta strong { color: #e0f2fe; font-size: 13px; }
.schedule-map-progress__meta span + span { margin-left: auto; }
.schedule-map-canvas { background: #081321; }
.schedule-map-canvas::after { opacity: .58; }
.schedule-map-svg__line-glow { display: none; }
.schedule-map-svg__line {
  stroke: #64748b;
  stroke-width: 3;
  filter: none;
  opacity: .78;
  animation-duration: .85s;
}
.schedule-map-svg__line-completed {
  fill: none;
  stroke: url(#schedule-route-completed);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  transition: stroke-dasharray .8s ease;
}
.schedule-map-svg__train { transition: transform .8s ease; }
.schedule-map-svg__train .schedule-map-svg__train-body { fill: #f8fafc; stroke: #1e3a5f; stroke-width: 1.6; }
.schedule-map-svg__train .schedule-map-svg__train-rail { fill: none; stroke: #1e3a5f; stroke-width: 1.7; stroke-linecap: round; }
.schedule-map-zoom button[data-map-follow] { display: inline-grid; place-items: center; }
.schedule-map-zoom button[data-map-follow].is-active { color: #eff6ff; border-color: #60a5fa; background: #1e3a5f; }
.schedule-map-zoom button:disabled { cursor: default; opacity: .42; }
.schedule-map-svg__station-ring { stroke: rgba(148, 163, 184, .5); }
.schedule-map-svg__station-dot { stroke: #93c5fd; }
.schedule-map-svg__station.is-endpoint .schedule-map-svg__station-dot { stroke: #38bdf8; }
.schedule-map-svg__station text { font-size: var(--map-label-size, 13px); font-weight: 650; }
.schedule-map-stop-detail__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid rgba(148, 163, 184, .16);
}
.schedule-map-stop-detail__facts div { min-width: 0; }
.schedule-map-stop-detail__facts dt { color: #94a3b8; font-size: 10px; line-height: 1.2; }
.schedule-map-stop-detail__facts dd { margin: 3px 0 0; overflow: hidden; color: #e2e8f0; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.schedule-map-journey { display: grid; gap: 14px; padding: 16px; }
.schedule-map-journey__header,
.schedule-map-journey__current,
.schedule-map-journey__next,
.schedule-map-journey footer { display: grid; gap: 3px; }
.schedule-map-journey__header { grid-template-columns: 1fr auto; align-items: center; padding-bottom: 11px; border-bottom: 1px solid rgba(148, 163, 184, .16); }
.schedule-map-journey__header span,
.schedule-map-journey__current span,
.schedule-map-journey__next span { color: #94a3b8; font-size: 11px; font-weight: 700; }
.schedule-map-journey__header strong { color: #e0f2fe; font-size: 14px; }
.schedule-map-journey__current b,
.schedule-map-journey__next b { overflow: hidden; color: #f8fafc; font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.schedule-map-journey__next { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 10px 0; border-top: 1px solid rgba(148, 163, 184, .14); border-bottom: 1px solid rgba(148, 163, 184, .14); }
.schedule-map-journey__next b { grid-column: 1; }
.schedule-map-journey__next small { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #bae6fd; font-size: 12px; font-weight: 700; white-space: nowrap; }
.schedule-map-journey__timeline { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 8px; align-items: center; }
.schedule-map-journey__timeline div { display: grid; gap: 3px; min-width: 0; }
.schedule-map-journey__timeline div:last-child { text-align: right; }
.schedule-map-journey__timeline time { color: #e0f2fe; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.schedule-map-journey__timeline span { overflow: hidden; color: #cbd5e1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-map-journey__timeline i { height: 2px; border: 0; background: #475569; }
.schedule-map-journey footer { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, .16); color: #94a3b8; font-size: 11px; }
.schedule-map-journey footer span:nth-child(2) { text-align: center; }
.schedule-map-journey footer span:last-child { text-align: right; }

@media (max-width: 768px) {
  .schedule-map-progress { margin-bottom: 10px; padding: 12px; }
  .schedule-map-progress__labels { font-size: 11px; }
  .schedule-map-progress__meta { font-size: 10px; }
  .schedule-map-canvas { height: min(64svh, 520px); min-height: 350px; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__facts { display: grid; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__actions { display: none; }
  .schedule-map-journey { grid-template-columns: 1fr; padding: 15px; }
  .schedule-map-journey__timeline { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); }
  .schedule-map-journey__timeline time { font-size: 17px; }
}

/* Final schedule map polish: compact transit surfaces and deliberate micro-interactions. */
.schedule-map-layout { gap: 0; overflow: hidden; border: 1px solid rgba(148, 163, 184, .18); border-radius: 16px; background: #081321; }
.schedule-map-main { padding: 12px; }
.schedule-map-side { gap: 0; padding: 12px; border-left: 1px solid rgba(148, 163, 184, .16); background: rgba(11, 22, 40, .74); }
.schedule-map-side > .schedule-map-stop-detail:not(.is-hidden) { margin-bottom: 12px; }
.schedule-map-progress { margin: 0 0 10px; border: 0; border-radius: 10px; background: transparent; }
.schedule-map-progress > header { display: flex; align-items: center; gap: 10px; min-width: 0; }
.schedule-map-progress > header > span { flex: 0 0 auto; color: #7dd3fc; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.schedule-map-progress > header > b { overflow: hidden; color: #f8fafc; font-size: 15px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.schedule-map-progress > header i { padding: 0 3px; color: #60a5fa; font-style: normal; }
.schedule-map-progress__labels { display: none; }
.schedule-map-progress__track { height: 6px; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .24); }
.schedule-map-progress__track > i { background: linear-gradient(90deg, #1769e0 0%, #2296e9 100%); }
.schedule-map-progress__meta { padding-top: 1px; }
.schedule-map-progress__meta strong { color: #f8fafc; }
.schedule-map-canvas { border: 0; border-radius: 12px; background: radial-gradient(ellipse at 56% 42%, rgba(30, 58, 95, .14), transparent 56%), #081321; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .12); }
.schedule-map-canvas::after { background-size: 58px 58px; opacity: .34; }
.schedule-map-svg { transition: transform .24s cubic-bezier(.2, .75, .25, 1); }
.schedule-map-canvas.is-dragging .schedule-map-svg { transition: none; }
.schedule-map-svg image { opacity: .1; }
.schedule-map-svg__line { stroke: #64748b; stroke-width: 3.4; opacity: .82; }
.schedule-map-svg__line-completed { stroke-width: 4.1; }
.schedule-map-svg__train { transition: transform .8s cubic-bezier(.22, .8, .25, 1); }
.schedule-map-svg__station-dot { transition: transform .16s ease, fill .16s ease, stroke .16s ease; }
.schedule-map-svg__station:hover .schedule-map-svg__station-dot,
.schedule-map-svg__station:focus .schedule-map-svg__station-dot { transform: scale(calc(var(--map-ui-scale, 1) * 1.22)); }
.schedule-map-svg__tooltip { opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .16s ease; }
.schedule-map-svg__tooltip-leader { fill: none; stroke: rgba(125, 211, 252, .72); stroke-width: 1.2px; vector-effect: non-scaling-stroke; opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.schedule-map-svg__tooltip rect { fill: rgba(8, 19, 33, .96); stroke: rgba(148, 163, 184, .35); stroke-width: 1; }
.schedule-map-svg__tooltip text { fill: #f8fafc; font-size: 14px; font-weight: 750; stroke: none; }
.schedule-map-svg__tooltip text.schedule-map-svg__tooltip-meta { fill: #c7d5e7; font-size: 13px; font-weight: 650; }
.schedule-map-svg__station:hover .schedule-map-svg__tooltip,
.schedule-map-svg__station:focus .schedule-map-svg__tooltip,
.schedule-map-svg__station:hover .schedule-map-svg__tooltip-leader,
.schedule-map-svg__station:focus .schedule-map-svg__tooltip-leader { opacity: 1; }
.schedule-map-zoom { gap: 7px; }
.schedule-map-zoom button { width: 40px; height: 40px; border-radius: 50%; background: rgba(8, 19, 33, .94); box-shadow: 0 4px 12px rgba(0, 0, 0, .16); }
.schedule-map-zoom button:last-child { border-right: 1px solid rgba(148, 163, 184, .3); }
.schedule-map-density { padding: 2px; border-radius: 999px; background: rgba(8, 19, 33, .94); }
.schedule-map-density button { min-height: 30px; padding: 4px 9px; border-radius: 999px; }
.schedule-map-stop-detail,
.schedule-map-journey { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.schedule-map-stop-detail { padding: 4px 2px 14px; }
.schedule-map-stop-detail__head strong { font-size: 18px; }
.schedule-map-stop-detail__times { padding: 11px 0; border-top: 1px solid rgba(148, 163, 184, .14); border-bottom: 1px solid rgba(148, 163, 184, .14); }
.schedule-map-stop-detail__times dt,
.schedule-map-stop-detail__facts dt { display: inline-flex; align-items: center; gap: 5px; }
.schedule-map-icon { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: #7dd3fc; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.schedule-map-stop-detail__facts { padding-top: 12px; }
.schedule-map-stop-detail__actions { margin-top: 1px; }
.schedule-map-journey { padding: 4px 2px 2px; }
.schedule-map-journey__header { padding-top: 2px; }
.schedule-map-journey__timeline i { position: relative; background: #475569; }
.schedule-map-journey__timeline i::after { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border: 2px solid #081321; border-radius: 50%; background: #38bdf8; content: ""; transform: translate(-50%, -50%); }
.schedule-map-journey footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schedule-map-hint { left: 16px; bottom: 12px; color: rgba(203, 213, 225, .76); }

@media (max-width: 900px) {
  .schedule-map-layout { grid-template-columns: minmax(0, 1fr) 230px; }
}
@media (max-width: 768px) {
  .schedule-map-layout { display: block; overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .schedule-map-main { padding: 0; }
  .schedule-map-canvas { height: min(65svh, 550px); min-height: 365px; border-radius: 14px; }
  .schedule-map-zoom { top: 12px; left: 12px; }
  .schedule-map-zoom button { width: 42px; height: 42px; }
  .schedule-map-side { display: grid; gap: 0; margin-top: 10px; padding: 14px 16px 16px; border: 1px solid rgba(148, 163, 184, .18); border-radius: 16px; background: #0b1628; box-shadow: 0 12px 26px rgba(0, 0, 0, .15); }
  .schedule-map-side > .schedule-map-stop-detail:not(.is-hidden) { margin: 12px -4px 0; padding: 14px; border: 1px solid rgba(96, 165, 250, .28); border-radius: 12px; background: #101e33; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__actions { display: grid; }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schedule-map-stop-detail--mobile .schedule-map-stop-detail__times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schedule-map-progress { padding: 0 2px 10px; }
  .schedule-map-progress > header > b { font-size: 14px; }
  .schedule-map-hint { position: static; margin: 8px 2px 0; }
  .schedule-map-svg__tooltip { display: none; }
}

/* Mobile schedule map: one-handed controls, expandable station sheet and fullscreen mode. */
.schedule-map-sheet__handle { display: none; }
.schedule-map-zoom button[data-map-fullscreen] { display: none; }

@media (max-width: 768px) {
  html.schedule-map-fullscreen-open,
  html.schedule-map-fullscreen-open body { overflow: hidden; }

  .schedule-map-panel { min-width: 0; }
  .schedule-map-canvas { height: min(65svh, 550px); min-height: 365px; touch-action: none; }
  .schedule-map-zoom { display: grid; grid-template-columns: repeat(2, 42px); }
  .schedule-map-zoom button[data-map-fullscreen] { display: inline-grid; place-items: center; }
  .schedule-map-zoom button[data-map-fullscreen] svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .schedule-map-side { position: relative; min-width: 0; padding-top: 8px; }
  .schedule-map-sheet__handle { display: grid; width: 100%; min-height: 32px; place-items: center; border: 0; background: transparent; cursor: grab; touch-action: none; }
  .schedule-map-sheet__handle span { width: 38px; height: 4px; border-radius: 999px; background: rgba(203, 213, 225, .48); }
  .schedule-map-side[data-sheet-state="collapsed"] > .schedule-map-stop-detail,
  .schedule-map-side[data-sheet-state="collapsed"] > .schedule-map-journey__unused { display: none; }
  .schedule-map-side[data-sheet-state="collapsed"] .schedule-map-journey__next,
  .schedule-map-side[data-sheet-state="collapsed"] .schedule-map-journey__timeline,
  .schedule-map-side[data-sheet-state="collapsed"] .schedule-map-journey footer { display: none; }
  .schedule-map-side[data-sheet-state="expanded"] .schedule-map-stop-detail--mobile { max-height: none; }
  .schedule-map-stop-detail__actions[hidden],
  .schedule-map-stop-detail__actions a[hidden] { display: none; }

  .schedule-map-panel.is-fullscreen {
    position: fixed;
    z-index: 1200;
    inset: max(8px, env(safe-area-inset-top)) 0 max(8px, env(safe-area-inset-bottom));
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #081321;
  }
  .schedule-map-panel.is-fullscreen .schedule-map-layout { display: block; height: 100%; border: 0; border-radius: 0; background: #081321; }
  .schedule-map-panel.is-fullscreen .schedule-map-main { height: 100%; padding: 0; }
  .schedule-map-panel.is-fullscreen .schedule-map-progress { position: absolute; z-index: 2; top: 8px; right: 10px; left: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(8, 19, 33, .92); backdrop-filter: blur(8px); }
  .schedule-map-panel.is-fullscreen .schedule-map-canvas { height: 100%; min-height: 0; border-radius: 0; }
  .schedule-map-panel.is-fullscreen .schedule-map-segment-context { max-width: calc(100% - 24px); }
  .schedule-map-panel.is-fullscreen .schedule-map-hint { display: none; }
  .schedule-map-panel.is-fullscreen .schedule-map-side {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    margin: 0;
    max-height: calc(100% - 88px);
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, .24);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    background: rgba(11, 22, 40, .98);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, .24);
    transition: height .22s ease;
  }
  .schedule-map-panel.is-fullscreen .schedule-map-side[data-sheet-state="collapsed"] { height: 92px; }
  .schedule-map-panel.is-fullscreen .schedule-map-side[data-sheet-state="half"] { height: min(42svh, 350px); }
  .schedule-map-panel.is-fullscreen .schedule-map-side[data-sheet-state="expanded"] { height: min(74svh, 650px); }
  .schedule-map-panel.is-fullscreen .schedule-map-side > .schedule-map-stop-detail:not(.is-hidden) { margin: 6px 12px 0; }
  .schedule-map-panel.is-fullscreen .schedule-map-stop-detail--mobile { display: block; }
  .schedule-map-panel.is-fullscreen .schedule-map-journey { padding: 4px 14px 16px; }
}

/* First-load schedule state: keeps route layout stable while data is requested. */
.schedule-skeleton {
  display: grid;
  gap: 16px;
  min-height: 430px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  background: #081321;
}
.schedule-skeleton i {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(148, 163, 184, .08), rgba(148, 163, 184, .16), rgba(148, 163, 184, .08));
  background-size: 220% 100%;
  animation: schedule-skeleton-shimmer 1.35s ease-in-out infinite;
}
.schedule-skeleton__title { width: min(58%, 460px); height: 28px; }
.schedule-skeleton__summary { width: 180px; height: 16px; }
.schedule-skeleton__tabs { display: flex; gap: 8px; padding-top: 6px; }
.schedule-skeleton__tabs i { width: 108px; height: 38px; }
.schedule-skeleton__content { display: grid; gap: 1px; min-height: 250px; overflow: hidden; border-radius: 12px; background: rgba(148, 163, 184, .1); }
.schedule-skeleton__content i { height: 50px; border-radius: 0; }
@keyframes schedule-skeleton-shimmer { to { background-position: -220% 0; } }

.schedule-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 260px;
  place-content: center;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  background: #081321;
  color: #cbd5e1;
  text-align: center;
}
.schedule-empty h2 { margin: 0; color: #f8fafc; font-size: 20px; }
.schedule-empty p, .schedule-empty small { margin: 0; }
.schedule-empty small { color: #94a3b8; }

@media (max-width: 768px) {
  .schedule-skeleton { min-height: 390px; padding: 16px; border-radius: 14px; }
  .schedule-skeleton__title { width: 76%; }
  .schedule-skeleton__content { min-height: 220px; }
  .schedule-empty { min-height: 230px; padding: 22px; }
}

/* Cartographic readability: geometry may zoom, while controls stay legible in screen space. */
.schedule-map-svg__line,
.schedule-map-svg__line-completed,
.schedule-map-svg__line-current { vector-effect: non-scaling-stroke; }
.schedule-map-svg__line { stroke: #8293aa; stroke-width: 3.7px; opacity: .9; filter: none; }
.schedule-map-svg__line-completed { stroke-width: 4.1px; filter: none; }
.schedule-map-svg__line-current {
  fill: none;
  stroke: #42a5ee;
  stroke-width: 5.1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  pointer-events: none;
}
.schedule-map-svg__geography { pointer-events: none; }
.schedule-map-svg__geography-label {
  fill: rgba(148, 163, 184, .58);
  font-weight: 500;
  letter-spacing: .01em;
  paint-order: stroke fill;
  pointer-events: none;
  stroke: rgba(7, 17, 31, .88);
  stroke-linejoin: round;
}
.schedule-map-svg__station-hit { fill: transparent; stroke: transparent; pointer-events: all; }
.schedule-map-svg__label-leader { pointer-events: none; stroke: rgba(173, 195, 218, .58); stroke-width: .8px; vector-effect: non-scaling-stroke; }
.schedule-map-svg__station [data-map-label] { transition: opacity .14s ease; }
.schedule-map-svg__station.is-label-hidden [data-map-label],
.schedule-map-svg__station.is-label-hidden [data-map-label-leader] { opacity: 0; }
.schedule-map-svg__station.is-label-hidden:hover [data-map-label],
.schedule-map-svg__station.is-label-hidden:focus [data-map-label],
.schedule-map-svg__station.is-label-hidden:hover [data-map-label-leader],
.schedule-map-svg__station.is-label-hidden:focus [data-map-label-leader] { opacity: 1; visibility: visible; }
.schedule-map-svg__train { pointer-events: none; }
.schedule-map-svg__train-visual { transform: scale(var(--map-train-scale, 1)); transform-box: fill-box; transform-origin: center; }
.schedule-map-svg__station-dot,
.schedule-map-svg__station-ring { transform: none; }
.schedule-map-svg__station:hover .schedule-map-svg__station-dot,
.schedule-map-svg__station:focus .schedule-map-svg__station-dot,
.schedule-map-svg__station.is-selected .schedule-map-svg__station-dot { transform: none; }
.schedule-map-svg__station [data-map-label] {
  paint-order: stroke fill;
  stroke: rgba(7, 17, 31, .96);
  stroke-linejoin: round;
}
.schedule-map-svg__station-dot { stroke-width: 2.7px; }
.schedule-map-svg__train .schedule-map-svg__train-body { fill: #f4f8fc; stroke: #174a72; stroke-width: 1.45px; filter: none; }
.schedule-map-svg__train .schedule-map-svg__train-window { fill: #2f83c5; stroke: #174a72; stroke-width: .8px; }
.schedule-map-svg__train .schedule-map-svg__train-detail { fill: none; stroke: #7ba6c8; stroke-width: .8px; stroke-linecap: round; }
.schedule-map-svg__train .schedule-map-svg__train-coupler { fill: none; stroke: #174a72; stroke-width: 1.15px; stroke-linecap: round; }
.schedule-map-segment-context {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  max-width: min(286px, calc(100% - 24px));
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 9px;
  background: rgba(8, 19, 33, .92);
  color: #e2e8f0;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(2, 8, 23, .16);
}
.schedule-map-segment-context strong,
.schedule-map-segment-context small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-map-segment-context strong { display: grid; justify-items: start; font-size: 13px; line-height: 1.12; }
.schedule-map-segment-context strong span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-map-segment-context strong i { height: 10px; color: #7ba6c8; font-size: 10px; font-style: normal; line-height: 10px; }
.schedule-map-segment-context small { color: #94a3b8; font-size: 10.5px; line-height: 1.2; }
.schedule-map-stop-detail { padding-bottom: 18px; }
.schedule-map-stop-detail__head { gap: 5px; }
.schedule-map-stop-detail__head strong { font-size: 19px; line-height: 1.16; }
.schedule-map-stop-detail__head small { font-size: 12px; line-height: 1.35; }
.schedule-map-stop-detail__times { gap: 11px; padding: 13px 0; }
.schedule-map-stop-detail__times dt { font-size: 12px; }
.schedule-map-stop-detail__times dd { font-size: 15px; }
.schedule-map-stop-detail__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding-top: 14px; }
.schedule-map-stop-detail__facts dt { font-size: 11px; }
.schedule-map-stop-detail__facts dd { overflow: visible; font-size: 12px; line-height: 1.35; text-overflow: clip; white-space: normal; }
.schedule-map-stop-detail__actions { gap: 10px; margin-top: 4px; }
.schedule-map-action { min-height: 44px; }

@media (max-width: 768px) {
  .schedule-map-svg__line { stroke-width: 3.9px; }
  .schedule-map-svg__line-completed { stroke-width: 4.2px; }
  .schedule-map-svg__line-current { stroke-width: 5.2px; }
  .schedule-map-svg__station-hit { pointer-events: all; }
  .schedule-map-stop-detail__head strong { font-size: 18px; }
  .schedule-map-svg__geography-label { fill: rgba(148, 163, 184, .62); }
  .schedule-map-segment-context { max-width: min(280px, calc(100% - 24px)); padding: 7px 9px; }
  .schedule-map-segment-context strong { font-size: 13px; }
}

/* Schedule map visual refresh: clearer geography and stronger route hierarchy. */
.schedule-route-card {
  border-color: rgba(133, 184, 255, .24);
  background: rgba(6, 18, 38, .78);
  box-shadow: 0 18px 42px rgba(1, 7, 24, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.schedule-route-card__head { padding: 22px 24px 14px; }
.schedule-route-card__eyebrow { border-color: rgba(83, 211, 255, .3); color: #8ce7ff; background: rgba(46, 173, 224, .1); }
.schedule-route-card__title { font-size: 24px; letter-spacing: 0; }
.schedule-route-card__summary { color: rgba(226, 239, 255, .82); }
.schedule-route-card__summary strong { color: #7ddcff; }
.schedule-view-toggle { border-color: rgba(133, 184, 255, .28); background: rgba(8, 24, 48, .7); }
.schedule-view-toggle button.is-active { color: #071a31; background: #b9ecff; box-shadow: 0 4px 14px rgba(74, 202, 255, .2); }
.schedule-map-panel { padding: 0 24px 24px; }
.schedule-map-layout { grid-template-columns: minmax(0, 1fr) 264px; border-color: rgba(133, 184, 255, .24); background: rgba(5, 17, 36, .72); }
.schedule-map-main { padding: 16px; }
.schedule-map-side { padding: 16px; border-left-color: rgba(133, 184, 255, .2); background: rgba(10, 27, 52, .58); }
.schedule-map-progress { padding: 0 2px 14px; }
.schedule-map-progress > header > span { color: #8ce7ff; }
.schedule-map-progress__track { height: 7px; background: rgba(148, 163, 184, .42); }
.schedule-map-progress__track > i { background: linear-gradient(90deg, #2388ff, #5bd9ff); }
.schedule-map-progress__train { border-color: #0b2748; background: #f4fcff; color: #14629b; }
.schedule-map-canvas {
  aspect-ratio: 1000 / 560;
  border: 1px solid rgba(133, 184, 255, .2);
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 45%, rgba(31, 91, 150, .2), transparent 58%), linear-gradient(145deg, rgba(10, 35, 67, .94), rgba(5, 18, 38, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 14px 30px rgba(1, 8, 28, .24);
}
.schedule-map-canvas::after { background-image: linear-gradient(rgba(151, 204, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(151, 204, 255, .045) 1px, transparent 1px); background-size: 52px 52px; opacity: .7; }
.schedule-map-svg image { opacity: .27; }
.schedule-map-svg__line { stroke: rgba(201, 224, 247, .52); stroke-width: 4; opacity: 1; }
.schedule-map-svg__line-completed { stroke: url(#schedule-route-completed); stroke-width: 5; filter: drop-shadow(0 0 5px rgba(55, 177, 255, .34)); }
.schedule-map-svg__line-current { stroke: #f8d36d; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(248, 211, 109, .55)); }
.schedule-map-svg__station-dot { fill: #eaf7ff; stroke: #63caff; stroke-width: 3; }
.schedule-map-svg__station-ring { stroke: rgba(113, 216, 255, .68); fill: rgba(74, 195, 255, .12); }
.schedule-map-svg__station text { fill: #f5fbff; font-size: var(--map-label-size, 14px); stroke: rgba(3, 16, 35, .95); }
.schedule-map-svg__station.is-endpoint .schedule-map-svg__station-dot { fill: #fff; stroke: #6fe3ff; filter: drop-shadow(0 0 10px rgba(80, 213, 255, .7)); }
.schedule-map-svg__geography-label { fill: rgba(176, 208, 235, .48); font-size: 12px; font-weight: 600; }
.schedule-map-zoom button, .schedule-map-density { background: rgba(8, 25, 48, .9); border-color: rgba(133, 184, 255, .35); }
.schedule-map-zoom button:hover, .schedule-map-zoom button:focus-visible, .schedule-map-density button.is-active { background: #1c527c; border-color: rgba(105, 221, 255, .8); }
.schedule-map-side > .schedule-map-stop-detail:not(.is-hidden) { padding-top: 0; }
.schedule-map-journey { padding-top: 10px; }
@media (max-width: 900px) { .schedule-map-layout { grid-template-columns: minmax(0, 1fr) 240px; } }
@media (max-width: 768px) {
  .schedule-map-panel { padding: 0 16px 18px; }
  .schedule-map-main { padding: 0; }
  .schedule-map-layout { display: block; border: 0; background: transparent; }
  .schedule-map-canvas { aspect-ratio: auto; height: min(66svh, 560px); min-height: 370px; }
  .schedule-map-side { padding: 14px 16px 16px; background: rgba(8, 25, 48, .86); }
  .schedule-map-svg image { opacity: .22; }
  .schedule-map-svg__geography-label { font-size: 10px; }
}

/* Top-view train marker and compact mobile map controls. */
.schedule-map-svg image.schedule-map-svg__train-image {
  opacity: 1;
  filter: drop-shadow(0 0 2px rgba(92, 210, 255, .95)) drop-shadow(0 2px 3px rgba(0, 0, 0, .7));
}
.schedule-map-svg__train.is-stopped .schedule-map-svg__train-image {
  filter: drop-shadow(0 0 4px rgba(248, 211, 109, .9)) drop-shadow(0 2px 3px rgba(0, 0, 0, .7));
}
.schedule-map-canvas { overscroll-behavior: contain; -webkit-user-select: none; user-select: none; touch-action: auto; }
.schedule-map-svg { touch-action: none; }
.schedule-map-zoom button,
.schedule-map-density button { -webkit-tap-highlight-color: transparent; }

@media (max-width: 480px) {
  .schedule-map-canvas { min-height: 390px; }
  .schedule-map-zoom { top: 10px; left: 10px; grid-template-columns: repeat(2, 40px); gap: 6px; }
  .schedule-map-zoom button { width: 40px; height: 40px; }
  .schedule-map-density { top: 102px; right: 10px; }
  .schedule-map-density button { min-height: 38px; padding-inline: 10px; }
  .schedule-map-segment-context { max-width: min(240px, calc(100% - 116px)); }
}

/* Keep the route and train marker crisp while the SVG map is zoomed. */
.schedule-map-svg__line,
.schedule-map-svg__line-completed,
.schedule-map-svg__line-current {
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
  filter: none;
}
.schedule-map-svg__line { stroke: #8094ad; stroke-width: 3.5px; opacity: .92; }
.schedule-map-svg__line-completed { stroke-width: 4.25px; filter: none; }
.schedule-map-svg__line-current { stroke: #ffd45c; stroke-width: 4.5px; filter: none; }
.schedule-map-svg image.schedule-map-svg__train-image {
  opacity: 1;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #001326) drop-shadow(0 2px 2px rgba(0, 0, 0, .9));
}
.schedule-map-svg__train.is-stopped .schedule-map-svg__train-image {
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 4px #ffcf52) drop-shadow(0 2px 2px rgba(0, 0, 0, .9));
}

.schedule-map-zoom button {
  display: inline-grid;
  padding: 0;
  place-items: center;
  line-height: 1;
}
.schedule-map-zoom button > svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  shape-rendering: geometricPrecision;
}
.schedule-map-zoom button[data-map-follow] svg { width: 18px; height: 18px; }
.schedule-map-zoom button[data-map-zoom="reset"] svg circle { fill: currentColor; stroke: none; }
.schedule-map-svg.is-vector-zoom { transform: none; transition: none; will-change: auto; }

@media (min-width: 769px) {
  .schedule-map-zoom {
    display: inline-flex;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(133, 184, 255, .42);
    border-radius: 999px;
    background: rgba(8, 25, 48, .94);
  }
  .schedule-map-zoom button[data-map-zoom="reset"],
  .schedule-map-zoom button[data-map-follow],
  .schedule-map-zoom button[data-map-fullscreen] { display: none; }
  .schedule-map-zoom button {
    width: 42px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .schedule-map-zoom button[data-map-zoom="out"] { border-right: 1px solid rgba(133, 184, 255, .28); }
}

@media (max-width: 768px), (max-height: 500px) and (orientation: landscape) {
  .schedule-map-zoom { top: 10px; left: 10px; display: flex; gap: 6px; }
  .schedule-map-zoom button[data-map-zoom="reset"],
  .schedule-map-zoom button[data-map-follow] { display: none; }
  .schedule-map-zoom button[data-map-fullscreen] { display: inline-grid; }
  .schedule-map-zoom button { display: inline-grid; width: 40px; height: 40px; padding: 0; place-items: center; line-height: 1; }
  .schedule-map-zoom button > svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
  .schedule-map-density { top: 10px; right: 10px; }
  .schedule-map-density button { min-height: 36px; padding-inline: 9px; }
}

.schedule-map-mobile-summary { display: none; }

@media (max-width: 768px), (max-height: 500px) and (orientation: landscape) {
  .schedule-map-canvas { height: min(72svh, 620px); min-height: 470px; }
  .schedule-map-side { display: none; }
  .schedule-map-hint { display: none; }
  .schedule-map-segment-context { display: none; }
  body:has(#sched-body.schedule-map-preview) .vp-assistant { display: none; }
  .schedule-map-mobile-summary {
    position: absolute;
    z-index: 5;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, .48);
    border-radius: 16px;
    background: rgba(6, 19, 38, .94);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  .schedule-map-mobile-summary__toggle {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    width: 100%;
    min-height: 94px;
    padding: 20px 16px 12px;
    border: 0;
    color: #f8fafc;
    background: transparent;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .schedule-map-mobile-summary__handle { position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; border-radius: 999px; background: rgba(186, 230, 253, .58); transform: translateX(-50%); }
  .schedule-map-mobile-summary__copy { display: grid; gap: 3px; min-width: 0; }
  .schedule-map-mobile-summary__copy small { color: #93c5fd; font-size: 11px; font-weight: 700; }
  .schedule-map-mobile-summary__copy strong { color: #fff; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
  .schedule-map-mobile-summary__copy em { color: #cbd5e1; font-size: 11px; font-style: normal; line-height: 1.4; overflow-wrap: anywhere; }
  .schedule-map-mobile-summary__copy em span { color: #94a3b8; }
  .schedule-map-mobile-summary__copy em b,
  .schedule-map-mobile-summary__copy em i { font-style: normal; font-weight: 650; }
  .schedule-map-mobile-summary__chevron { align-self: center; justify-self: center; width: 15px; height: 15px; border-top: 3px solid #e0f2fe; border-left: 3px solid #e0f2fe; transform: rotate(45deg) translate(3px, 3px); transition: transform .2s ease; }
  .schedule-map-mobile-summary[data-expanded="true"] .schedule-map-mobile-summary__chevron { transform: rotate(225deg) translate(2px, 2px); }
  .schedule-map-mobile-summary__details { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); gap: 8px; max-height: 0; padding: 0 16px; overflow: hidden; border-top: 1px solid transparent; opacity: 0; transition: max-height .22s ease, padding .22s ease, opacity .16s ease, border-color .22s ease; }
  .schedule-map-mobile-summary[data-expanded="true"] .schedule-map-mobile-summary__details { max-height: 116px; padding: 12px 16px 14px; border-top-color: rgba(148, 163, 184, .18); opacity: 1; }
  .schedule-map-mobile-summary__details > div { display: grid; gap: 3px; }
  .schedule-map-mobile-summary__details > div:last-of-type { text-align: right; }
  .schedule-map-mobile-summary__details span { color: #94a3b8; font-size: 10px; }
  .schedule-map-mobile-summary__details strong { color: #f8fafc; font-size: 16px; font-variant-numeric: tabular-nums; }
  .schedule-map-mobile-summary__details > i { align-self: center; height: 2px; background: #38bdf8; }
  .schedule-map-mobile-summary__details footer { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid rgba(148, 163, 184, .14); }
  .schedule-map-mobile-summary[data-expanded="true"] .schedule-map-mobile-summary__details:has(.schedule-map-mobile-summary__actions:not([hidden])) { max-height: 178px; }
  .schedule-map-mobile-summary__actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .schedule-map-mobile-summary__actions[hidden] { display: none; }
  .schedule-map-mobile-summary__actions .schedule-map-action { min-height: 38px; padding: 7px 9px; font-size: 12px; }

  .schedule-map-panel.is-fullscreen {
    display: block !important;
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100%;
    width: 100vw;
    height: 100%;
    height: 100dvh;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #07111f;
  }
  .schedule-map-panel.is-fullscreen:fullscreen,
  .schedule-map-panel.is-fullscreen:-webkit-full-screen { width: 100%; height: 100%; background: #07111f; }
  .schedule-map-panel.is-fullscreen .schedule-map-layout,
  .schedule-map-panel.is-fullscreen .schedule-map-main,
  .schedule-map-panel.is-fullscreen .schedule-map-canvas { width: 100%; height: 100%; max-width: none; min-height: 0; border-radius: 0; }
  .schedule-map-panel.is-fullscreen .schedule-map-layout { display: block; border: 0; }
  .schedule-map-panel.is-fullscreen .schedule-map-progress {
    position: absolute;
    z-index: 10;
    top: max(8px, env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    min-height: 92px;
    padding: 12px 14px;
    border: 1px solid rgba(125, 211, 252, .16);
    border-radius: 14px;
    background: #051121;
  }
  .schedule-map-panel.is-fullscreen .schedule-map-zoom { top: max(112px, calc(env(safe-area-inset-top) + 104px)); left: 14px; }
  .schedule-map-panel.is-fullscreen .schedule-map-density { top: max(112px, calc(env(safe-area-inset-top) + 104px)); right: 14px; }
  .schedule-map-panel.is-fullscreen .schedule-map-side { display: none !important; }
  .schedule-map-panel.is-fullscreen .schedule-map-mobile-summary { bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .schedule-map-panel:not(.is-fullscreen) .schedule-map-density { top: 58px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .schedule-map-panel.is-fullscreen .schedule-map-main { padding: 0; }
  .schedule-map-panel.is-fullscreen .schedule-map-mobile-summary { left: auto; width: min(320px, 44%); }
  .schedule-map-panel.is-fullscreen .schedule-map-mobile-summary__details { overflow-y: auto; }
  .schedule-map-panel.is-fullscreen .schedule-map-mobile-summary[data-expanded="true"] .schedule-map-mobile-summary__details { max-height: 110px; }
  .schedule-map-panel.is-fullscreen .schedule-map-mobile-summary__actions { order: -1; }
  .schedule-map-panel.is-fullscreen .schedule-map-zoom { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .schedule-map-panel.is-fullscreen .schedule-map-zoom button { border: 1px solid rgba(133, 184, 255, .42); border-radius: 50%; background: rgba(8, 25, 48, .94); }
}
