/* Пробный дизайн «меню сверху». Подключается ТОЛЬКО когда в браузере включён флаг
   (radoxo.com/?design=new → localStorage rx_design=new; выключить: ?design=old).
   Все правила — под html.rx-top и только для десктопа: на экранах ≤1100px сайдбар
   и так уже верхняя полоса с бургером, там ничего не меняем. */
@media (min-width: 1101px) {
  /* Без сайдбара контент не должен становиться шире, чем был: раньше это 1560 − 240 = 1320px. */
  html.rx-top { --sidebar-w: 0px; --rx-top-h: 64px; --page-max-w: 1320px; }

  /* Одна колонка: шапка, контент, футер. */
  html.rx-top .wrapper { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  html.rx-top .main-content { grid-column: 1; }

  /* Бывший сайдбар — липкая шапка во всю ширину контейнера. */
  html.rx-top .sidebar {
    grid-column: 1; width: 100%; box-sizing: border-box;
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 36px;
    height: var(--rx-top-h); padding: 0 var(--content-pad-x);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  html.rx-top .logo { margin: 0; padding: 0; border: none; flex: none; display: flex; align-items: center; }
  html.rx-top .mobile-block { flex: 1; min-width: 0; }
  html.rx-top .nav-menu { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

  /* Два списка меню: разделы слева, избранное и вход справа. */
  html.rx-top .sidebar-menu {
    display: flex; align-items: center; gap: 26px;
    margin: 0; padding: 0; border: none; list-style: none;
  }
  html.rx-top .sidebar-menu__item { margin: 0; }
  html.rx-top .sidebar-menu__link {
    font-size: 15px; line-height: 22px; white-space: nowrap;
    display: flex; align-items: center; height: var(--rx-top-h);
    box-sizing: border-box; border-bottom: 2px solid transparent; border-top: 2px solid transparent;
  }
  html.rx-top .sidebar-menu__link::before { top: 50%; }
  html.rx-top .sidebar-menu__link:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.55); }
  html.rx-top button.sidebar-menu__link { width: auto; }

  /* Левый список (разделы) при нехватке места прокручивается, а не ломает шапку. */
  html.rx-top .sidebar-menu:first-of-type { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  html.rx-top .sidebar-menu:first-of-type::-webkit-scrollbar { display: none; }

  /* Правый список (избранное, Shazam, кабинет, выход) — только иконки: у вошедшего пользователя
     там четыре пункта, с подписями они не помещаются. Текст остаётся в разметке для читалок. */
  html.rx-top .sidebar-menu:last-of-type { gap: 4px; flex: none; }
  html.rx-top .sidebar-menu:last-of-type .sidebar-menu__link {
    width: 44px; padding: 0; font-size: 0; justify-content: center; overflow: hidden;
  }
  html.rx-top .sidebar-menu:last-of-type .sidebar-menu__link::before {
    display: block; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px;
  }
  /* «Войти» остаётся кнопкой с текстом. */
  html.rx-top .sidebar-menu:last-of-type .sidebar-menu__link--login {
    width: auto; font-size: 14px; padding: 0 16px; height: 38px; margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 10px;
  }
  html.rx-top .sidebar-menu:last-of-type .sidebar-menu__link--login::before { display: none; }
  html.rx-top .sidebar-menu:last-of-type .sidebar-menu__link--login:hover { border-color: #fff; }

  /* Якоря и «липкие» блоки контента не должны уезжать под шапку. */
  html.rx-top { scroll-padding-top: calc(var(--rx-top-h) + 12px); }
}

/* Между 1101 и 1360px пунктам тесно: убираем иконки и сжимаем отступы. */
@media (min-width: 1101px) and (max-width: 1360px) {
  html.rx-top .sidebar { gap: 24px; }
  html.rx-top .sidebar-menu { gap: 18px; }
  html.rx-top .sidebar-menu__link { font-size: 14px; padding-left: 0; }
  html.rx-top .sidebar-menu__link::before { display: none; }
  html.rx-top .sidebar-menu__link--ukraine { gap: 8px; }
}

/* ── Шаг 2 пробного дизайна: шрифт Onest, крупнее текст и плитки, тёмный верх главной ── */
/* Onest — вариативный шрифт: один файл на набор символов, а три «семейства» ниже фиксируют
   толщину (400/500/700), потому что сайт выбирает жирность именем семейства (--font-bold и т.п.). */
@font-face { font-family: "RX Onest 400"; src: url("../fonts/onest/onest-cyrillic-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "RX Onest 400"; src: url("../fonts/onest/onest-cyrillic.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "RX Onest 400"; src: url("../fonts/onest/onest-vietnamese.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "RX Onest 400"; src: url("../fonts/onest/onest-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "RX Onest 400"; src: url("../fonts/onest/onest-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "RX Onest 500"; src: url("../fonts/onest/onest-cyrillic-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "RX Onest 500"; src: url("../fonts/onest/onest-cyrillic.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "RX Onest 500"; src: url("../fonts/onest/onest-vietnamese.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "RX Onest 500"; src: url("../fonts/onest/onest-latin-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "RX Onest 500"; src: url("../fonts/onest/onest-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "RX Onest 700"; src: url("../fonts/onest/onest-cyrillic-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "RX Onest 700"; src: url("../fonts/onest/onest-cyrillic.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "RX Onest 700"; src: url("../fonts/onest/onest-vietnamese.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "RX Onest 700"; src: url("../fonts/onest/onest-latin-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "RX Onest 700"; src: url("../fonts/onest/onest-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html.rx-top {
  --font: "RX Onest 500", "Museo Sans Cyrl 500", sans-serif;
  --font-bold: "RX Onest 700", "Museo Sans Cyrl 700", sans-serif;
  --font-light: "RX Onest 400", "Museo Sans Cyrl 300", sans-serif;
}
html.rx-top .inner-title { font-size: 42px; line-height: 1.12; letter-spacing: -0.02em; }
html.rx-top .list-intro { font-size: 17px; line-height: 1.6; }
html.rx-top .stations-block-title { font-size: 28px; letter-spacing: -0.01em; }
html.rx-top .see-all { font-size: 15px; }
html.rx-top .stations--tiles .station__name { font-size: 17px; }
html.rx-top .stations--tiles .station__country { font-size: 14px; }
html.rx-top .breadcrumbs__link, html.rx-top .breadcrumbs__link::after, html.rx-top .breadcrumbs__current { font-size: 14px; }

/* Тёмный верх главной: заголовок, вводный текст и поиск продолжают шапку. */
html.rx-top .main-content:has(.home-hero) { padding-top: 0; }
/* Верхний рекламный блок стоит между шапкой и тёмным верхом — красим его фон в тот же цвет,
   чтобы не было белой полосы. */
html.rx-top .main-content:has(.home-hero) .ad-top-banner { background: #110f18; margin-bottom: 0; }
html.rx-top .home-hero {
  background: #110f18;
  margin: 0 calc(-1 * var(--content-pad-x)) 34px;
  padding: 48px var(--content-pad-x) 44px;
}
html.rx-top .home-hero .inner-title { color: #fff; margin-bottom: 14px; }
html.rx-top .home-hero .list-intro { color: #b9c2cb; margin: 0 0 26px; max-width: 860px; }
html.rx-top .home-hero .list-intro a { color: #9db8ff; }
html.rx-top .home-hero .search { margin-bottom: 0; max-width: 860px; }
html.rx-top .home-hero .search-field input { height: 60px; font-size: 17px; border-color: transparent; }
@media (max-width: 1024px) {
  html.rx-top .home-hero { margin-left: -20px; margin-right: -20px; padding: 32px 20px 30px; }
  html.rx-top .inner-title { font-size: 32px; }
  html.rx-top .stations-block-title { font-size: 24px; }
}

@media (min-width: 1101px) {
  html.rx-top .sidebar-menu__link { font-size: 16px; }
  /* Плитки крупнее: 6 в ряд вместо 7 (в секциях с ограничением — по-прежнему два ряда). */
  html.rx-top .stations--tiles.stations { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 20px; }
  html.rx-top .stations--limit.stations--tiles.stations .station:nth-child(n+13) { display: none; }
}
@media (min-width: 1101px) and (max-width: 1150px) {
  html.rx-top .stations--tiles.stations { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  html.rx-top .stations--limit.stations--tiles.stations .station:nth-child(n+11) { display: none; }
}
@media (min-width: 1101px) and (max-width: 1360px) {
  html.rx-top .sidebar-menu__link { font-size: 14px; }
}

/* ── Шаг 3 пробного дизайна (только десктоп): поиск в шапке, «Сейчас в эфире» первым экраном,
   две колонки — слева плитки, справа списки «слушают сейчас» и топ песен. ── */
@media (min-width: 1101px) {
  /* Поиск в шапке. Languages из верхнего меню убран (остаётся в подвале). */
  html.rx-top .sidebar { gap: 28px; }
  /* Поиск сжимается первым (до 170px), меню — только после него. */
  html.rx-top .rx-top-search { display: block; flex: 0 1000 300px; min-width: 170px; margin: 0; }
  html.rx-top .mobile-block { flex: 1 1 auto; }
  html.rx-top .rx-top-search input {
    width: 100%; height: 40px; box-sizing: border-box; padding: 0 14px 0 40px;
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; outline: none;
    color: #fff; font: 15px var(--font);
    background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b9c2cb' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;
  }
  html.rx-top .rx-top-search input::placeholder { color: #9aa3af; }
  html.rx-top .rx-top-search input:focus { border-color: rgba(255, 255, 255, 0.45); background-color: rgba(255, 255, 255, 0.14); }
  html.rx-top .rx-top-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
  html.rx-top .sidebar-menu__item:has(> .sidebar-menu__link--languages) { display: none; }
  /* С поиском в шапке разделам тесно: иконки у пунктов слева убираем (флаг страны остаётся). */
  html.rx-top .sidebar-menu:first-of-type .sidebar-menu__link { padding-left: 0; }
  html.rx-top .sidebar-menu:first-of-type .sidebar-menu__link::before { display: none; }
  html.rx-top .sidebar-menu:first-of-type { gap: 24px; }

  /* Верх главной: заголовок, короткая строка, поиск на всю ширину, под ним быстрые ссылки.
     Поиск из шапки на главной не показываем — он был бы вторым. */
  html.rx-top .home-hero { padding: 40px var(--content-pad-x) 34px; margin-bottom: 0; }
  html.rx-top .home-hero .inner-title { font-size: 40px; margin: 0 0 10px; }
  html.rx-top .home-hero .search-field input {
    height: 66px; padding-left: 60px; border-radius: 16px; font-size: 18px;
    background-color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  html.rx-top .home-hero .search-field input:focus { box-shadow: 0 0 0 3px rgba(157, 184, 255, 0.55), 0 10px 30px rgba(0, 0, 0, 0.35); }
  html.rx-top:has(.home-hero) .rx-top-search { display: none; }

  /* Сетка главной. Первый ряд: слева «популярное в стране» (4 ряда по 4 плитки), справа — «сейчас
     в эфире» списком песен на всю высоту левого блока. Ниже во всю ширину: «слушают сейчас» и топ песен. */
  html.rx-top #stations-default-list {
    display: grid; grid-template-columns: calc(50% - 22px) minmax(0, 1fr) 340px; column-gap: 44px;
    grid-auto-flow: row dense; align-items: start; padding-top: 12px;
  }
  html.rx-top #stations-default-list[hidden] { display: none; }
  html.rx-top #stations-default-list > * { grid-column: 1 / -1; min-width: 0; }
  html.rx-top #stations-default-list > .home-sec--geo { grid-column: 1 / 3; order: -6; margin-top: 0; }
  html.rx-top #stations-default-list > .np-block { grid-column: 3; order: -6; align-self: stretch; display: flex; flex-direction: column; margin-top: 0; }
  html.rx-top #stations-default-list > .np-block[hidden]:not([data-np-loading]) { display: none; }
  html.rx-top #stations-default-list > .home-side { order: -5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 44px; align-items: start; margin-top: 28px; }

  /* Сетка из трёх дорожек: первая — ровно половина ширины (для пары «избранное | недавние»), первая+вторая —
     левая колонка под станции, третья — правая колонка 340px. */

  /* Личные блоки — первыми, сразу под поиском, рядом друг с другом: слева «избранное», справа «недавно
     слушали». Один ряд из пяти небольших плиток (логотип и название). Есть только один из блоков —
     он занимает всю ширину, десять плиток. У гостя секция избранного есть в разметке, но скрыта
     (style="display:none"), её показывает скрипт — поэтому смотрим на style. */
  html.rx-top #stations-default-list > #favorites-stations-section { grid-column: 1; order: -9; margin-top: 0; }
  html.rx-top #stations-default-list > #last-listening-block { grid-column: 2 / 4; order: -9; margin-top: 0; }
  html.rx-top #stations-default-list:not(:has(> #last-listening-block[style*="block"])) > #favorites-stations-section,
  html.rx-top #stations-default-list:not(:has(> #favorites-stations-section:not([style*="none"]))) > #last-listening-block { grid-column: 1 / -1; }
  html.rx-top #favorites-stations-section .section-head, html.rx-top #last-listening-block .section-head { margin: 20px 0 14px; }
  html.rx-top #favorites-stations-section .stations-block-title, html.rx-top #last-listening-block .stations-block-title { font-size: 20px; }
  html.rx-top #favorites-stations-section .stations--tiles.stations,
  html.rx-top #last-listening-block .stations--tiles.stations { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  html.rx-top #favorites-stations-section .stations--limit.stations--tiles.stations .station:nth-child(n+6),
  html.rx-top #last-listening-block .stations--limit.stations--tiles.stations .station:nth-child(n+6) { display: none; }
  html.rx-top #stations-default-list:not(:has(> #last-listening-block[style*="block"])) > #favorites-stations-section .stations--tiles.stations,
  html.rx-top #stations-default-list:not(:has(> #favorites-stations-section:not([style*="none"]))) > #last-listening-block .stations--tiles.stations { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  html.rx-top #stations-default-list:not(:has(> #last-listening-block[style*="block"])) > #favorites-stations-section .stations--limit.stations--tiles.stations .station:nth-child(n+6),
  html.rx-top #stations-default-list:not(:has(> #favorites-stations-section:not([style*="none"]))) > #last-listening-block .stations--limit.stations--tiles.stations .station:nth-child(n+6) { display: block; }
  html.rx-top #stations-default-list:not(:has(> #last-listening-block[style*="block"])) > #favorites-stations-section .stations--limit.stations--tiles.stations .station:nth-child(n+11),
  html.rx-top #stations-default-list:not(:has(> #favorites-stations-section:not([style*="none"]))) > #last-listening-block .stations--limit.stations--tiles.stations .station:nth-child(n+11) { display: none; }
  html.rx-top #favorites-stations-section .stations--tiles .station__name, html.rx-top #last-listening-block .stations--tiles .station__name { font-size: 14px; }
  html.rx-top #favorites-stations-section .station__meta, html.rx-top #last-listening-block .station__meta { display: none; }
  /* Под личными блоками «популярное» начинается с отступом. */
  html.rx-top #stations-default-list:has(> #favorites-stations-section:not([style*="none"]), > #last-listening-block[style*="block"]) > .home-sec--geo,
  html.rx-top #stations-default-list:has(> #favorites-stations-section:not([style*="none"]), > #last-listening-block[style*="block"]) > .np-block { margin-top: 28px; }

  /* Слева 4 плитки в ряд, четыре ряда. */
  html.rx-top .home-sec--geo .stations--tiles.stations { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.rx-top .home-sec--geo .stations--rows-3.stations--tiles.stations .station:nth-child(n+13) { display: block; }
  html.rx-top .home-sec--geo .stations--rows-3.stations--tiles.stations .station:nth-child(n+17) { display: none; }
  /* Блоки во всю ширину (подкасты, «рекомендуем»): 6 в ряд, два полных ряда. */
  html.rx-top .home-sec--wide .stations--tiles.stations .station:nth-child(n+13) { display: none; }

  /* «Сейчас в эфире» справа: строки (обложка песни, песня, исполнитель, станция). Строк 14, они
     растягиваются поровну и вместе занимают ровно высоту левого блока. Свежие песни скрипт ставит первыми. */
  html.rx-top .np-block .section-head { margin: 0 0 10px; min-height: 40px; align-items: center; }
  html.rx-top .np-block .stations-block-title { font-size: 20px; }
  html.rx-top .np-block .stations-row, html.rx-top .np-block .stations-column { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  html.rx-top .np-block .stations--tiles.stations { flex: 1; display: flex; flex-direction: column; gap: 0; }
  html.rx-top .np-block .stations--limit.stations--tiles.stations .station:nth-child(n+1) { display: flex; }
  html.rx-top .np-block .stations--limit.stations--tiles.stations .station:nth-child(n+15) { display: none; }
  html.rx-top .np-block .stations--tiles.stations .station { flex: 1 1 0; min-height: 58px; max-height: 96px; align-items: center; border-top: 1px solid #eef0f3; }
  html.rx-top .np-block .stations--tiles.stations .station__card {
    width: 100%; display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 0;
  }
  html.rx-top .np-block .stations--tiles.stations .station__image { grid-row: 1; grid-column: 1; width: 50px; height: 50px; border-radius: 8px; box-shadow: none; border: none; overflow: hidden; }
  html.rx-top .np-block .stations--tiles.stations .np-cover img.np-cover__station { display: none; }
  html.rx-top .np-block .stations--tiles.stations .station__link { grid-row: 1; grid-column: 2; margin-top: 0; min-width: 0; }
  html.rx-top .np-block .stations--tiles .station__name { font-size: 15px; margin-bottom: 2px; }
  html.rx-top .np-block .np-item .np-artist { margin: 0; font-size: 13px; }
  html.rx-top .np-block .np-item .np-station { margin: 1px 0 0; font-size: 12px; color: #9aa3af; }

  /* Ряд под колонками: слева «слушают сейчас», справа топ песен; строки (логотип, название, слушатели).
     Пока «сейчас в эфире» показан, блок страны здесь скрыт — в стране уже есть два блока выше. */
  html.rx-top .home-side .section-head { margin: 24px 0 10px; }
  html.rx-top .home-side .stations-block-title { font-size: 20px; }
  html.rx-top #stations-default-list:has(> .np-block:is(:not([hidden]), [data-np-loading])) .live-top-block--country { display: none; }
  html.rx-top .home-side .live-top-block .stations--tiles.stations { grid-template-columns: minmax(0, 1fr); gap: 0; }
  html.rx-top .home-side .live-top-block .stations--limit.stations--tiles.stations .station:nth-child(n+7) { display: block; }
  html.rx-top .home-side .live-top-block .stations--limit.stations--tiles.stations .station:nth-child(n+10) { display: none; }
  html.rx-top .home-side .live-top-block .stations--tiles.stations .station__card {
    grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 14px; align-items: center;
    padding: 9px 0; border-top: 1px solid #eef0f3;
  }
  html.rx-top .home-side .live-top-block .stations--tiles.stations .station__image { grid-row: 1; grid-column: 1; border-radius: 10px; box-shadow: none; }
  html.rx-top .home-side .live-top-block .stations--tiles.stations .station__link { grid-row: 1; grid-column: 2; margin-top: 0; }
  html.rx-top .home-side .live-top-block .stations--tiles .station__name { font-size: 15px; margin-bottom: 2px; }
  html.rx-top .home-side .live-top-block .stations--tiles .station__country { font-size: 13px; }
  html.rx-top .home-side .live-top-badge { position: static; grid-row: 1; grid-column: 3; box-shadow: none; background: #ecfdf3; padding: 5px 9px; }

  /* Соседние страны: до четырёх колонок, в каждой страна (флаг, название) и пять её первых станций
     с числом слушателей. Блок заменяет «слушают сейчас в мире»; топ песен уходит ниже в две колонки.
     Нет соседей — как раньше: слева «слушают сейчас», справа топ песен. */
  html.rx-top .home-nb[hidden] { display: block; grid-column: 1 / -1; grid-row: 1; }
  html.rx-top .home-nb .section-head { margin: 24px 0 14px; }
  html.rx-top .home-nb__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
  html.rx-top .home-nb--3 .home-nb__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.rx-top .home-nb--2 .home-nb__grid, html.rx-top .home-nb--1 .home-nb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.rx-top .home-nb__country { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; color: #000; font: 17px var(--font-bold); }
  html.rx-top .home-nb__country img { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
  html.rx-top .home-nb__country::after { content: "\2192"; color: #9aa3af; font: 15px var(--font); }
  html.rx-top .home-nb__list { list-style: none; margin: 0; padding: 0; }
  html.rx-top .home-nb__item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #eef0f3; }
  html.rx-top .home-nb__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; }
  html.rx-top .home-nb__logo { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #f1f2f4; border: 1px solid #eef0f3; box-sizing: border-box; }
  html.rx-top .home-nb__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.rx-top .home-nb__name, html.rx-top .home-nb__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.rx-top .home-nb__name { color: #000; font: 15px var(--font); }
  html.rx-top .home-nb__sub { color: #6c757d; font: 13px var(--font); }
  html.rx-top .home-nb .live-top-badge { position: static; flex: none; box-shadow: none; background: #ecfdf3; padding: 5px 9px; }
  html.rx-top .home-side:has(> .home-nb) .live-top-block--global { display: none; }
  html.rx-top .home-side > #live-top-blocks { grid-column: 1; }
  html.rx-top .home-side > .home-songs { grid-column: 2; }
  html.rx-top .home-side:has(> .home-nb) > #live-top-blocks { grid-column: 1 / -1; grid-row: 2; }
  html.rx-top .home-side:has(> .home-nb) > .home-songs { grid-column: 1 / -1; grid-row: 3; margin-top: 20px; }

  /* Если «сейчас в эфире» пуст (нет свежих песен) — «популярное» занимает всю ширину, 6 плиток в ряд. */
  html.rx-top #stations-default-list:not(:has(> .np-block:is(:not([hidden]), [data-np-loading]))) > .home-sec--geo { grid-column: 1 / -1; }
  html.rx-top #stations-default-list:not(:has(> .np-block:is(:not([hidden]), [data-np-loading]))) > .home-sec--geo .stations--tiles.stations { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  html.rx-top #stations-default-list:not(:has(> .np-block:is(:not([hidden]), [data-np-loading]))) > .home-sec--geo .stations--rows-3.stations--tiles.stations .station:nth-child(n+13) { display: none; }

  /* Топ песен (в обычном дизайне блок скрыт атрибутом hidden). */
  html.rx-top .home-songs { display: block; }
  html.rx-top .home-songs__list { list-style: none; margin: 0; padding: 0; }
  html.rx-top .home-songs__item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #eef0f3; }
  html.rx-top .home-songs__num { flex: none; width: 22px; text-align: center; color: #9aa3af; font: 15px var(--font-bold); }
  html.rx-top .home-songs__item:nth-child(-n+3) .home-songs__num { color: #2563eb; }
  html.rx-top .home-songs__cover { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #f1f2f4; }
  html.rx-top .home-songs__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.rx-top .home-songs__title, html.rx-top .home-songs__artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.rx-top .home-songs__title { color: #000; font: 15px var(--font); }
  html.rx-top .home-songs__artist { color: #6c757d; font: 13px var(--font); }

  /* Топ песен во всю ширину (когда выше стоят соседние страны): плитки с обложками, пять в ряд, два ряда;
     место в чарте — кружок на обложке. */
  html.rx-top .home-side:has(> .home-nb) .home-songs__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 20px; }
  html.rx-top .home-side:has(> .home-nb) .home-songs__item { position: relative; display: block; padding: 0; border: none; }
  html.rx-top .home-side:has(> .home-nb) .home-songs__cover { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
  html.rx-top .home-side:has(> .home-nb) .home-songs__num,
  html.rx-top .home-side:has(> .home-nb) .home-songs__item:nth-child(-n+3) .home-songs__num {
    position: absolute; left: 10px; top: 10px; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: rgba(17, 15, 24, 0.86); color: #fff; font: 15px var(--font-bold);
  }
  html.rx-top .home-side:has(> .home-nb) .home-songs__item:nth-child(-n+3) .home-songs__num { background: #2563eb; }
  html.rx-top .home-side:has(> .home-nb) .home-songs__text { margin-top: 12px; gap: 3px; }
  html.rx-top .home-side:has(> .home-nb) .home-songs__title { font-size: 16px; }
  html.rx-top .home-side:has(> .home-nb) .home-songs__artist { font-size: 14px; }
}

html.rx-top .home-hero .search-field::before { left: 22px; width: 20px; height: 20px; }

/* Верх главной: длинный вводный текст заменяет короткая строка; поиск во всю ширину; быстрые ссылки. */
html.rx-top .home-hero .list-intro { display: none; }
html.rx-top .home-hero__lead[hidden] { display: block; margin: 0 0 22px; color: #b9c2cb; font: 17px/1.5 var(--font); }
html.rx-top .home-hero .search { max-width: none; width: 100%; margin: 0; }
html.rx-top .home-hero__quick[hidden] { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
html.rx-top .home-hero__quick a {
  padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #e6e9ee; font: 15px var(--font); white-space: nowrap;
}
html.rx-top .home-hero__quick a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
@media (max-width: 1100px) {
  html.rx-top .home-hero__quick[hidden] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  html.rx-top .home-hero__quick[hidden]::-webkit-scrollbar { display: none; }
  html.rx-top .home-hero__lead[hidden] { font-size: 15px; margin-bottom: 18px; }
}

/* Полоса приложений перед текстом «О Radoxo». */
html.rx-top .home-apps[hidden] {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin: 48px 0 0; padding: 28px 32px; border-radius: 20px; background: #110f18; color: #fff;
}
html.rx-top .home-apps__title { margin: 0 0 6px; color: #fff; font: 24px/1.2 var(--font-bold); letter-spacing: -0.01em; }
html.rx-top .home-apps__desc { margin: 0; color: #b9c2cb; font: 15px/1.5 var(--font); max-width: 620px; }
html.rx-top .home-apps__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
html.rx-top .home-apps__links img { display: block; height: 48px; width: auto; }
html.rx-top .home-apps__more { margin-left: 8px; color: #9db8ff; font: 15px var(--font); white-space: nowrap; }
@media (max-width: 700px) {
  html.rx-top .home-apps[hidden] { padding: 22px 20px; margin-top: 36px; }
  html.rx-top .home-apps__title { font-size: 20px; }
  html.rx-top .home-apps__links img { height: 42px; }
}

html.rx-top .home-hero__quick a { display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; }
/* Ряд быстрых ссылок всегда в одну строку; что не влезло — листается. */
html.rx-top .home-hero__quick[hidden] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
html.rx-top .home-hero__quick[hidden]::-webkit-scrollbar { display: none; }
html.rx-top .home-hero__quick a { flex: none; }

/* Жанровые ряды (Pop Radio, Talk Radio…) в пробном дизайне убраны: путь к жанрам — ссылки под поиском и меню. */
html.rx-top #stations-default-list > .home-sec--genre { display: none !important; }

/* «Recommended Stations» внизу главной в пробном дизайне не показываем — его роль закрывают блоки выше.
   Остаётся только там, где нет «популярного в стране» (страна не определена): иначе на странице не было бы станций. */
html.rx-top #stations-default-list:has(> .home-sec--geo) > .home-sec--wide:not(:has(.podcasts-grid)) { display: none !important; }

/* Подкасты: слева выбранный подкаст (обложка, описание, последние выпуски), справа список подкастов.
   Переключение без скрипта — скрытые radio, по одному на подкаст; label в списке выбирает свой.
   Старый ряд обложек при этом скрыт. */
html.rx-top .home-pod[hidden] { display: block; }
html.rx-top #stations-default-list:has(> .home-pod) > .home-sec--wide:has(.podcasts-grid) { display: none !important; }
html.rx-top .home-pod__box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; border: 1px solid #e7eaee; border-radius: 20px; overflow: hidden; background: #fff; }
html.rx-top .home-pod__radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
html.rx-top .home-pod__panels { min-width: 0; padding: 28px 32px; }
html.rx-top .home-pod__panel { display: none; }
html.rx-top .home-pod__radio:nth-of-type(1):checked ~ .home-pod__panels .home-pod__panel:nth-child(1) { display: block; }
html.rx-top .home-pod__radio:nth-of-type(2):checked ~ .home-pod__panels .home-pod__panel:nth-child(2) { display: block; }
html.rx-top .home-pod__radio:nth-of-type(3):checked ~ .home-pod__panels .home-pod__panel:nth-child(3) { display: block; }
html.rx-top .home-pod__radio:nth-of-type(4):checked ~ .home-pod__panels .home-pod__panel:nth-child(4) { display: block; }
html.rx-top .home-pod__radio:nth-of-type(5):checked ~ .home-pod__panels .home-pod__panel:nth-child(5) { display: block; }
html.rx-top .home-pod__radio:nth-of-type(6):checked ~ .home-pod__panels .home-pod__panel:nth-child(6) { display: block; }
html.rx-top .home-pod__head { display: flex; gap: 24px; align-items: flex-start; }
html.rx-top .home-pod__cover { flex: none; width: 168px; height: 168px; border-radius: 16px; overflow: hidden; background: #f1f2f4; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
html.rx-top .home-pod__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.rx-top .home-pod__info { min-width: 0; }
html.rx-top .home-pod__name { display: block; color: #000; font: 26px/1.2 var(--font-bold); letter-spacing: -0.01em; }
html.rx-top .home-pod__author { margin-top: 6px; color: #6c757d; font: 15px var(--font); }
html.rx-top .home-pod__desc {
  margin: 12px 0 0; color: #3b4350; font: 15px/1.55 var(--font);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
html.rx-top .home-pod__eps { list-style: none; margin: 22px 0 0; padding: 0; }
html.rx-top .home-pod__ep { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid #eef0f3; color: inherit; }
html.rx-top .home-pod__play {
  flex: none; width: 40px; height: 40px; padding: 0; border: none; border-radius: 50%; cursor: pointer; background: #110f18
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13l11-6.500z'/%3E%3C/svg%3E") no-repeat 54% center / 28px;
  transition: background-color .15s ease;
}
html.rx-top .home-pod__play:hover { background-color: #2563eb; }
/* Выпуск играет — пауза на синем; грузится — пульсация. */
html.rx-top .home-pod__play.playing {
  background: #2563eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 5h4v14H7zM13 5h4v14h-4z'/%3E%3C/svg%3E") no-repeat center / 28px;
}
@keyframes rx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
html.rx-top .home-pod__ep-title { flex: 1; min-width: 0; color: #000; font: 15px var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.rx-top .home-pod__ep-meta { flex: none; display: flex; gap: 10px; color: #8b93a1; font: 13px var(--font); white-space: nowrap; }
html.rx-top .home-pod__ep-meta span + span::before { content: "\00B7"; margin-right: 10px; }
html.rx-top .home-pod__list { display: flex; flex-direction: column; background: #f6f7f9; border-left: 1px solid #e7eaee; padding: 10px; }
html.rx-top .home-pod__tab { flex: 1; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; cursor: pointer; min-width: 0; }
html.rx-top .home-pod__tab:hover { background: #eceef2; }
html.rx-top .home-pod__tab img { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #e9ebef; }
html.rx-top .home-pod__tab-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html.rx-top .home-pod__tab-name, html.rx-top .home-pod__tab-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.rx-top .home-pod__tab-name { color: #000; font: 15px var(--font-bold); }
html.rx-top .home-pod__tab-author { color: #6c757d; font: 13px var(--font); }
html.rx-top .home-pod__radio:nth-of-type(1):checked ~ .home-pod__list .home-pod__tab:nth-child(1),
html.rx-top .home-pod__radio:nth-of-type(2):checked ~ .home-pod__list .home-pod__tab:nth-child(2),
html.rx-top .home-pod__radio:nth-of-type(3):checked ~ .home-pod__list .home-pod__tab:nth-child(3),
html.rx-top .home-pod__radio:nth-of-type(4):checked ~ .home-pod__list .home-pod__tab:nth-child(4),
html.rx-top .home-pod__radio:nth-of-type(5):checked ~ .home-pod__list .home-pod__tab:nth-child(5),
html.rx-top .home-pod__radio:nth-of-type(6):checked ~ .home-pod__list .home-pod__tab:nth-child(6) { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10); }
html.rx-top .home-pod__radio:nth-of-type(1):focus-visible ~ .home-pod__list .home-pod__tab:nth-child(1),
html.rx-top .home-pod__radio:nth-of-type(2):focus-visible ~ .home-pod__list .home-pod__tab:nth-child(2),
html.rx-top .home-pod__radio:nth-of-type(3):focus-visible ~ .home-pod__list .home-pod__tab:nth-child(3),
html.rx-top .home-pod__radio:nth-of-type(4):focus-visible ~ .home-pod__list .home-pod__tab:nth-child(4),
html.rx-top .home-pod__radio:nth-of-type(5):focus-visible ~ .home-pod__list .home-pod__tab:nth-child(5),
html.rx-top .home-pod__radio:nth-of-type(6):focus-visible ~ .home-pod__list .home-pod__tab:nth-child(6) { outline: 2px solid #9db8ff; outline-offset: 1px; }
@media (max-width: 1100px) {
  html.rx-top .home-pod__box { grid-template-columns: minmax(0, 1fr); }
  html.rx-top .home-pod__list { order: -1; flex-direction: row; overflow-x: auto; border-left: none; border-bottom: 1px solid #e7eaee; scrollbar-width: none; }
  html.rx-top .home-pod__list::-webkit-scrollbar { display: none; }
  html.rx-top .home-pod__tab { flex: none; padding: 6px; }
  html.rx-top .home-pod__tab-text { display: none; }
  html.rx-top .home-pod__panels { padding: 20px; }
  html.rx-top .home-pod__head { gap: 16px; }
  html.rx-top .home-pod__cover { width: 96px; height: 96px; border-radius: 12px; }
  html.rx-top .home-pod__name { font-size: 20px; }
  html.rx-top .home-pod__ep-meta span:first-child { display: none; }
  html.rx-top .home-pod__ep-meta span + span::before { content: none; }
}

/* Запуск станции прямо с плитки на главной: круглая кнопка в правом нижнем углу логотипа. На компьютере
   появляется при наведении, на сенсорном экране видна всегда; у играющей станции — пауза и видна всегда.
   (В обычном дизайне кнопка в списках скрыта; здесь возвращаем её только для главной.) */
html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__play-btn {
  display: block !important; position: relative; left: auto; top: auto; z-index: 3;
  grid-row: 1; grid-column: 1; align-self: end; justify-self: end; margin: 0 10px 10px 0;
  width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: #110f18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13l11-6.500z'/%3E%3C/svg%3E") no-repeat 54% center / 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.30); opacity: 0; transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, background-color .15s ease;
}
html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__play-btn::before { content: none; }
html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__card:hover .station__play-btn,
html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__play-btn:focus-visible,
html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__image.playing ~ .station__play-btn,
html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__image.loading ~ .station__play-btn { opacity: 1; transform: none; }
html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__play-btn:hover { background-color: #2563eb; }
html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__image.playing ~ .station__play-btn {
  background: #2563eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 5h4v14H7zM13 5h4v14h-4z'/%3E%3C/svg%3E") no-repeat center / 32px;
}
@media (hover: none) {
  html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__play-btn { opacity: 1; transform: none; width: 40px; height: 40px; margin: 0 6px 6px 0; background-size: 28px; }
}
/* В маленьких плитках (избранное, недавние) кнопка меньше. */
html.rx-top #favorites-stations-section .stations--tiles.stations .station__play-btn,
html.rx-top #last-listening-block .stations--tiles.stations .station__play-btn { width: 36px; height: 36px; margin: 0 6px 6px 0; background-size: 26px; }
@media (min-width: 1101px) {
  /* В списках-строках кнопка не ложится на логотип: у «сейчас в эфире» она стоит справа в строке и видна
     всегда (запускает станцию, на которой играет песня); в строках «слушают сейчас» её нет. */
  html.rx-top .main-content:has(.home-hero) .home-side .live-top-block .stations--tiles.stations .station__play-btn { display: none !important; }
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__card { grid-template-columns: 50px minmax(0, 1fr) 38px; }
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__play-btn {
    grid-row: 1; grid-column: 3; align-self: center; justify-self: end; margin: 0;
    width: 36px; height: 36px; background-size: 26px; box-shadow: none; opacity: 1; transform: none;
  }
}

/* Один основной цвет — синий (--accent сайта, #2563eb): кнопки запуска, играющий выпуск, места в чарте.
   Зелёный остаётся только у числа слушателей, красная точка — только знак «в эфире».
   Логотип в шапке и подвале — с синим значком (на тёмном фоне синий светлее: #3b82f6);
   сердечко «избранное» в шапке — белое. */
html.rx-top .logo img, html.rx-top .footer-logo img { content: url(../img/logo-header-blue.svg); }
html.rx-top .sidebar .sidebar-menu__link--fav::before { filter: brightness(0) invert(1); }
html.rx-top .np-live { background: #ef4444; }
html.rx-top .np-live::after { border-color: #ef4444; }
html.rx-top .live-top-block .np-live { background: #16a34a; }
html.rx-top .live-top-block .np-live::after { border-color: #16a34a; }

/* Значки внутри кнопок запуска крупные: у играющей кнопки размер значка тот же, что у обычной. */
html.rx-top #favorites-stations-section .stations--tiles.stations .station__image.playing ~ .station__play-btn,
html.rx-top #last-listening-block .stations--tiles.stations .station__image.playing ~ .station__play-btn { background-size: 26px; }
@media (min-width: 1101px) {
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__image.playing ~ .station__play-btn { background-size: 26px; }
}
@media (hover: none) {
  html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__image.playing ~ .station__play-btn { background-size: 28px; }
}

/* Буферизация: пока станция или выпуск грузятся, вместо треугольника в кнопке крутится кольцо. */
@keyframes rx-spin { to { transform: rotate(360deg); } }
html.rx-top .home-pod__play { position: relative; }
html.rx-top .home-pod__play.loading,
html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__image.loading ~ .station__play-btn {
  background-image: none; background-color: #2563eb;
}
html.rx-top .home-pod__play.loading::before,
html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__image.loading ~ .station__play-btn::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 56%; height: 56%; margin: -28% 0 0 -28%; box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%;
  background: none; transform: none; animation: rx-spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  html.rx-top .home-pod__play.loading::before,
  html.rx-top .main-content:has(.home-hero) .stations--tiles.stations .station__image.loading ~ .station__play-btn::before { animation-duration: 2.4s; }
}

/* Кнопки запуска в списках — спокойнее, чтобы ряд чёрных кружков не спорил с содержимым.
   Выпуски подкастов: светло-серый кружок с тёмным треугольником; синим он становится при наведении,
   загрузке и когда выпуск играет. Название играющего выпуска цветом не выделяем — только полужирным. */
html.rx-top .home-pod__play {
  background-color: #eef0f3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23110f18'%3E%3Cpath d='M8 5.5v13l11-6.500z'/%3E%3C/svg%3E");
}
html.rx-top .home-pod__play:hover {
  background-color: #2563eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13l11-6.500z'/%3E%3C/svg%3E");
}
html.rx-top .home-pod__play.playing, html.rx-top .home-pod__play.playing:hover {
  background-color: #2563eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 5h4v14H7zM13 5h4v14h-4z'/%3E%3C/svg%3E");
  background-position: center;
}
html.rx-top .home-pod__play.loading, html.rx-top .home-pod__play.loading:hover { background-image: none; background-color: #2563eb; }
html.rx-top .home-pod__ep:has(.home-pod__play.playing) .home-pod__ep-title { font-family: var(--font-bold); }

@media (min-width: 1101px) {
  /* «Сейчас в эфире»: кнопка запуска стоит справа в строке и в спокойном состоянии скрыта — появляется
     при наведении на строку. У играющей или загружающейся станции видна всегда (синяя). */
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__card { grid-template-columns: 50px minmax(0, 1fr) 38px; }
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__play-btn,
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__image.playing ~ .station__play-btn {
    grid-row: 1; grid-column: 3; align-self: center; justify-self: end; margin: 0;
    width: 36px; height: 36px; border-radius: 50%; box-shadow: none; transform: none; background-size: 26px;
  }
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__play-btn { opacity: 0; }
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station:hover .station__play-btn,
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__play-btn:focus-visible,
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__image.playing ~ .station__play-btn,
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__image.loading ~ .station__play-btn { opacity: 1; }
}
@media (min-width: 1101px) and (hover: none) {
  html.rx-top .main-content:has(.home-hero) .np-block .stations--tiles.stations .station__play-btn { opacity: 1; }
}

/* ── Шапка (десктоп), вторая версия. Слева логотип и разделы, справа: поиск (кроме главной), страна
   посетителя «пилюлей», «Избранное» с подписью, вход. У вошедшего вместо трёх непонятных значков — одна
   кнопка аккаунта (буква и имя), под ней выпадают Shazam, кабинет вещателя и выход с подписями.
   Все элементы одной высоты (40px) и стоят по центру шапки — на одной линии с логотипом. ── */
@media (min-width: 1101px) {
  html.rx-top .sidebar { gap: 0; align-items: center; }
  html.rx-top .sidebar .mobile-block, html.rx-top .sidebar .nav-menu, html.rx-top .sidebar .sidebar-menu { display: contents; }
  html.rx-top .sidebar .logo { order: 0; margin: 0 30px 0 0; height: 40px; }
  html.rx-top .sidebar .logo__link { display: flex; align-items: center; height: 40px; }
  html.rx-top .sidebar .logo img { display: block; height: 25px; width: auto; }

  html.rx-top .sidebar .sidebar-menu__item { order: 2; margin: 0; flex: none; }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link {
    display: flex; align-items: center; width: auto; height: 40px; padding: 0 12px; box-sizing: border-box;
    border: none; border-radius: 10px; overflow: visible; justify-content: flex-start;
    color: #e6e9ee; font: 15px/1 var(--font); white-space: nowrap; transition: background-color .15s ease, color .15s ease;
  }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link:hover { color: #fff; background: rgba(255, 255, 255, 0.09); border: none; }
  /* Последний раздел отодвигает всё остальное вправо. */
  html.rx-top .sidebar .sidebar-menu__item:has(> .sidebar-menu__link--genre) { margin-right: auto; }

  html.rx-top .sidebar .rx-top-search { order: 5; flex: 0 1 300px; min-width: 170px; margin: 0 12px 0 20px; }

  /* Страна посетителя — справа, «пилюлей» с флагом. */
  html.rx-top .sidebar .sidebar-menu__item:has(> .sidebar-menu__link--ukraine) { order: 6; margin-right: 6px; }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link--ukraine { gap: 8px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link--ukraine:hover { border: 1px solid rgba(255, 255, 255, 0.4); background: none; }
  html.rx-top .sidebar .sidebar-menu__link--ukraine .sidebar-menu__icon { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

  /* «Избранное»: сердечко и подпись. */
  html.rx-top .sidebar .sidebar-menu__item:has(> .sidebar-menu__link--fav) { order: 7; }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link--fav { position: relative; padding-left: 38px; font-family: var(--font); }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link--fav::before {
    display: block; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
    background-size: contain; filter: brightness(0) invert(1);
  }

  /* «Войти» — синяя кнопка. */
  html.rx-top .sidebar .sidebar-menu__item:has(> .sidebar-menu__link--login) { order: 9; margin-left: 8px; }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link--login {
    padding: 0 18px; margin: 0; border: none; background: #2563eb; color: #fff; font-family: var(--font-bold); cursor: pointer;
  }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link--login:hover { background: #1d4ed8; border: none; }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link--login::before { display: none; }

  /* Кнопка аккаунта и выпадающий список под ней. */
  html.rx-top .sidebar .rx-acc[hidden] { display: block; order: 9; margin-left: 8px; }
  html.rx-top .rx-acc__btn {
    display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border: none; border-radius: 999px;
    background: rgba(255, 255, 255, 0.09); color: #fff; font: 15px/1 var(--font); cursor: pointer;
  }
  html.rx-top .rx-acc__btn:hover, html.rx-top .rx-acc__btn:focus-visible { background: rgba(255, 255, 255, 0.16); outline: none; }
  html.rx-top .rx-acc__ava { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font: 14px/1 var(--font-bold); }
  html.rx-top .rx-acc__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.rx-top .rx-acc__btn::after { content: ""; width: 7px; height: 7px; margin: -3px 2px 0 2px; border-right: 2px solid #b9c2cb; border-bottom: 2px solid #b9c2cb; transform: rotate(45deg); }

  html.rx-top .sidebar .rx-acc ~ .sidebar-menu__item {
    position: absolute; right: var(--content-pad-x); z-index: 30; width: 230px; order: 10;
    background: #1b1924; border-left: 1px solid rgba(255, 255, 255, 0.10); border-right: 1px solid rgba(255, 255, 255, 0.10);
    opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s ease;
  }
  html.rx-top .sidebar .rx-acc + .sidebar-menu__item { top: calc(var(--rx-top-h) - 8px); padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.10); border-radius: 14px 14px 0 0; }
  html.rx-top .sidebar .rx-acc + .sidebar-menu__item + .sidebar-menu__item { top: calc(var(--rx-top-h) - 8px + 51px); }
  html.rx-top .sidebar .rx-acc + .sidebar-menu__item + .sidebar-menu__item + .sidebar-menu__item {
    top: calc(var(--rx-top-h) - 8px + 95px); padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0 0 14px 14px; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  }
  html.rx-top .sidebar .rx-acc:hover ~ .sidebar-menu__item,
  html.rx-top .sidebar .rx-acc:focus-within ~ .sidebar-menu__item,
  html.rx-top .sidebar .sidebar-menu:has(.rx-acc ~ .sidebar-menu__item:hover) .rx-acc ~ .sidebar-menu__item,
  html.rx-top .sidebar .sidebar-menu:has(.rx-acc ~ .sidebar-menu__item:focus-within) .rx-acc ~ .sidebar-menu__item { opacity: 1; visibility: visible; }
  html.rx-top .sidebar .rx-acc ~ .sidebar-menu__item .sidebar-menu__link {
    position: relative; width: auto; height: 44px; margin: 0 6px; padding: 0 12px 0 42px; border-radius: 8px; font-size: 15px; font-family: var(--font);
  }
  html.rx-top .sidebar .rx-acc ~ .sidebar-menu__item .sidebar-menu__link::before {
    display: block; position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background-size: contain;
  }
}
/* Узкий десктоп: подписи «Избранное» и имени нет, отступы меньше. */
@media (min-width: 1101px) and (max-width: 1360px) {
  html.rx-top .sidebar .logo { margin-right: 18px; }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link { padding: 0 9px; font-size: 14px; }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link--fav { width: 40px; padding: 0; font-size: 0; }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link--fav::before { left: 11px; }
  html.rx-top .rx-acc__name { display: none; }
  html.rx-top .sidebar .rx-acc ~ .sidebar-menu__item .sidebar-menu__link { padding: 0 12px 0 42px; font-size: 15px; }
}

/* Выбор страны под «пилюлей»: список стран в две колонки (самые крупные) и ссылка на все. Клик по стране
   делает её страной посетителя и открывает страницу её станций. Раз страны теперь здесь, пункт «Countries»
   из верхнего ряда убран — но только там, где есть наведение мышью: на сенсорном экране выпадающий
   список не открыть, пункт остаётся. */
@media (min-width: 1101px) {
  html.rx-top .sidebar .sidebar-menu__item:has(> .sidebar-menu__link--ukraine) { position: relative; }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link--ukraine::after {
    content: ""; display: block; position: static; width: 7px; height: 7px; margin: -3px 0 0 4px; background: none;
    border-right: 2px solid #b9c2cb; border-bottom: 2px solid #b9c2cb; transform: rotate(45deg);
  }
  html.rx-top .rx-cty[hidden] {
    display: block; position: absolute; right: 0; top: 100%; z-index: 30; width: 340px; margin-top: 4px; padding: 10px 8px 8px;
    background: #1b1924; border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 14px; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s ease;
  }
  /* Невидимая перемычка между «пилюлей» и списком, чтобы он не закрывался по пути мыши. */
  html.rx-top .rx-cty[hidden]::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  html.rx-top .sidebar .sidebar-menu__item:has(> .sidebar-menu__link--ukraine):hover .rx-cty,
  html.rx-top .sidebar .sidebar-menu__item:has(> .sidebar-menu__link--ukraine):focus-within .rx-cty { opacity: 1; visibility: visible; }
  html.rx-top .rx-cty__title { margin: 0 0 6px; padding: 4px 12px 0; color: #8b93a1; font: 12px var(--font); letter-spacing: .06em; text-transform: uppercase; }
  html.rx-top .rx-cty__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  html.rx-top .rx-cty__btn {
    display: flex; align-items: center; gap: 10px; min-width: 0; height: 38px; padding: 0 10px; border-radius: 8px;
    color: #e6e9ee; font: 14px var(--font); white-space: nowrap;
  }
  html.rx-top .rx-cty__btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html.rx-top .rx-cty__btn:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
  html.rx-top .rx-cty__btn.is-current { background: rgba(37, 99, 235, 0.22); color: #fff; }
  html.rx-top .rx-cty__btn img { flex: none; width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
  html.rx-top .rx-cty__all { display: block; margin-top: 6px; padding: 10px 12px 6px; border-top: 1px solid rgba(255, 255, 255, 0.10); color: #9db8ff; font: 14px var(--font); }
}
@media (min-width: 1101px) and (hover: hover) {
  html.rx-top .sidebar .sidebar-menu__item:has(> .sidebar-menu__link--regions) { display: none; }
}

/* «Своя» страна — первой строкой списка стран, во всю ширину, с домиком справа: быстрый возврат. */
@media (min-width: 1101px) {
  html.rx-top .rx-cty__home { margin: 0 0 6px; padding-right: 12px; background: rgba(255, 255, 255, 0.06); }
  html.rx-top .rx-cty__home span { flex: 1; font-family: var(--font-bold); }
  html.rx-top .rx-cty__home::after {
    content: ""; flex: none; width: 16px; height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E") no-repeat center / contain;
  }

  /* Оптическое выравнивание шапки: буквы логотипа крупнее текста ссылок, и при совпадающих рамках ссылки
     выглядели выше. Логотип поднят на 3px, текст ссылок опущен на 1px — середины букв совпадают. */
  html.rx-top .sidebar .logo img { transform: translateY(-3px); }
  html.rx-top .sidebar .sidebar-menu .sidebar-menu__link, html.rx-top .rx-acc__btn { padding-top: 2px; }
  html.rx-top .sidebar .rx-acc ~ .sidebar-menu__item .sidebar-menu__link { padding-top: 0; }
}

/* ── Страна и меню на сенсорных экранах и телефоне ──
   Планшет (широкий экран без мыши): список стран открывается нажатием на «пилюлю» (класс is-open ставит
   скрипт в шапке); первой в нём идёт ссылка на страницу текущей страны. */
html.rx-top .rx-cty__cur { display: none; }
@media (min-width: 1101px) {
  html.rx-top .sidebar .sidebar-menu__item.is-open .rx-cty { opacity: 1; visibility: visible; }
}
@media (min-width: 1101px) and (hover: none) {
  html.rx-top .rx-cty__cur {
    display: flex; align-items: center; gap: 10px; height: 40px; margin: 0 0 6px; padding: 0 10px; border-radius: 8px;
    color: #fff; font: 15px var(--font-bold);
  }
  html.rx-top .rx-cty__cur img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
  html.rx-top .rx-cty__cur::after { content: "\2192"; margin-left: auto; color: #9db8ff; font: 15px var(--font); }
}

/* Телефон и планшет в вертикали: меню «бургера» в новом виде. Сверху строка страны — по нажатию под ней
   раскрывается список стран (текущая страна ссылкой, «своя» с домиком, крупные страны, «все страны»).
   Ниже разделы без значков, затем избранное и вход/аккаунт. «Countries» и «Languages» из ряда убраны:
   страны — в списке, языки — в подвале. */
@media (max-width: 1100px) {
  html.rx-top .mobile-block { width: min(340px, 88vw); padding: 16px 14px 28px; box-sizing: border-box; }
  html.rx-top .sidebar-menu { display: flex; flex-direction: column; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
  html.rx-top .sidebar-menu:last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
  html.rx-top .sidebar-menu__item { margin: 0; }
  html.rx-top .sidebar-menu .sidebar-menu__link {
    display: flex; align-items: center; width: 100%; height: 46px; padding: 0 12px; box-sizing: border-box; border-radius: 10px;
    color: #e6e9ee; font: 16px/1 var(--font);
  }
  html.rx-top .sidebar-menu .sidebar-menu__link:active { background: rgba(255, 255, 255, 0.09); }
  html.rx-top .sidebar-menu:first-of-type .sidebar-menu__link::before { display: none; }
  html.rx-top .sidebar-menu__item:has(> .sidebar-menu__link--regions),
  html.rx-top .sidebar-menu__item:has(> .sidebar-menu__link--languages) { display: none; }

  /* Строка страны. */
  html.rx-top .sidebar-menu__item:has(> .sidebar-menu__link--ukraine) { order: -1; margin-bottom: 6px; }
  html.rx-top .sidebar-menu .sidebar-menu__link--ukraine {
    gap: 10px; height: 50px; background: rgba(255, 255, 255, 0.07); color: #fff; font-family: var(--font-bold);
  }
  html.rx-top .sidebar-menu__link--ukraine .sidebar-menu__icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
  html.rx-top .sidebar-menu .sidebar-menu__link--ukraine::after {
    content: ""; display: block; position: static; width: 8px; height: 8px; margin: -4px 4px 0 auto; background: none;
    border-right: 2px solid #b9c2cb; border-bottom: 2px solid #b9c2cb; transform: rotate(45deg); transition: transform .15s ease;
  }
  html.rx-top .sidebar-menu__item.is-open > .sidebar-menu__link--ukraine::after { transform: rotate(225deg); margin-top: 4px; }

  /* Раскрытый список стран. */
  html.rx-top .sidebar-menu__item.is-open > .rx-cty[hidden] { display: block; padding: 8px 0 4px; }
  html.rx-top .rx-cty__title { display: none; }
  html.rx-top .rx-cty__cur, html.rx-top .rx-cty__btn {
    display: flex; align-items: center; gap: 10px; min-width: 0; height: 42px; padding: 0 12px; border-radius: 8px;
    color: #e6e9ee; font: 15px var(--font); white-space: nowrap;
  }
  html.rx-top .rx-cty__cur { color: #fff; font-family: var(--font-bold); }
  html.rx-top .rx-cty__cur::after { content: "\2192"; margin-left: auto; color: #9db8ff; font: 15px var(--font); }
  html.rx-top .rx-cty__cur img, html.rx-top .rx-cty__btn img { flex: none; width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
  html.rx-top .rx-cty__btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html.rx-top .rx-cty__btn.is-current { display: none; }
  html.rx-top .rx-cty__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; }
  html.rx-top .rx-cty__home { background: rgba(255, 255, 255, 0.06); }
  html.rx-top .rx-cty__home span { flex: 1; font-family: var(--font-bold); }
  html.rx-top .rx-cty__home::after {
    content: ""; flex: none; width: 16px; height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E") no-repeat center / contain;
  }
  html.rx-top .rx-cty__all { display: block; padding: 10px 12px 4px; color: #9db8ff; font: 14px var(--font); }

  /* Избранное, Shazam, кабинет, выход — со значком слева; «Войти» — синяя кнопка. */
  html.rx-top .sidebar-menu:last-of-type .sidebar-menu__link { position: relative; padding-left: 44px; font-family: var(--font); }
  html.rx-top .sidebar-menu:last-of-type .sidebar-menu__link::before {
    display: block; position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background-size: contain;
  }
  html.rx-top .sidebar-menu .sidebar-menu__link--login {
    justify-content: center; margin-top: 10px; padding: 0 16px; background: #2563eb; color: #fff; font-family: var(--font-bold);
  }
  html.rx-top .sidebar-menu:last-of-type .sidebar-menu__link--login { padding: 0 16px; }
  html.rx-top .sidebar-menu:last-of-type .sidebar-menu__link--login::before { display: none; }
}

/* ===== «Now Playing»: заготовка вместо пустого места =====
   Пока песни в пути (data-np-loading на блоке, снимает now-playing-block.js), блок уже стоит на своём месте
   серыми строками — страница не перестраивается, когда песни приходят. Строки заполняются по мере загрузки. */
@media (min-width: 1101px) {
  html.rx-top #stations-default-list > .np-block[data-np-loading] .stations--tiles.stations .np-item[hidden] { display: flex !important; pointer-events: none; }
  html.rx-top #stations-default-list > .np-block[data-np-loading] .stations--limit.stations--tiles.stations .np-item:nth-child(n+15) { display: none !important; }
  html.rx-top .np-block[data-np-loading] .np-item[hidden] .np-cover { background: #eef0f3; }
  html.rx-top .np-block[data-np-loading] .np-item[hidden] .np-cover img { visibility: hidden; }
  html.rx-top .np-block[data-np-loading] .np-item[hidden] .station__play-btn { visibility: hidden; }
  html.rx-top .np-block[data-np-loading] .np-item[hidden] .np-song,
  html.rx-top .np-block[data-np-loading] .np-item[hidden] .np-artist,
  html.rx-top .np-block[data-np-loading] .np-item[hidden] .np-station {
    height: 10px; margin: 0 0 7px; border-radius: 5px; background: #eef0f3; color: transparent; overflow: hidden;
    animation: rx-np-pulse 1.3s ease-in-out infinite;
  }
  html.rx-top .np-block[data-np-loading] .np-item[hidden] .np-song { width: 72%; height: 12px; }
  html.rx-top .np-block[data-np-loading] .np-item[hidden] .np-artist { width: 48%; }
  html.rx-top .np-block[data-np-loading] .np-item[hidden] .np-station { width: 32%; margin-bottom: 0; }
}
@keyframes rx-np-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { html.rx-top .np-block[data-np-loading] .np-item[hidden] * { animation: none; } }

/* ===== Реклама над заголовком главной: одинаковый отступ сверху (от меню) и снизу (до заголовка) ===== */
html.rx-top .main-content:has(.home-hero) .ad-top-banner { padding-top: 20px; box-sizing: content-box; }
html.rx-top .main-content:has(.home-hero) .ad-top-banner ~ .inner-wrapper .home-hero,
html.rx-top .main-content:has(.home-hero) .ad-top-banner ~ * .home-hero { padding-top: 20px; }

/* ===== Меню: раздел, в котором посетитель сейчас (класс ставит скрипт в шапке) ===== */
html.rx-top .sidebar .sidebar-menu .sidebar-menu__link.is-here { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* Список стран: черта между соседями и крупнейшими странами. */
html.rx-top .rx-cty__sep { grid-column: 1 / -1; height: 1px; margin: 6px 12px; background: rgba(255, 255, 255, 0.10); }

/* ===== Поиск в шапке внутренних страниц: круглая кнопка с лупой, по нажатию раскрывается в строку =====
   Постоянная строка между меню и страной сидела тесно. Теперь в ряду только кнопка 40px; строка выезжает
   влево поверх свободного места (и поверх разделов, если экран узкий) и сворачивается, когда поле теряет фокус. */
@media (min-width: 1101px) {
  html.rx-top .sidebar .rx-top-search { position: relative; order: 5; flex: none; width: 40px; min-width: 0; height: 40px; margin: 0 8px 0 12px; }
  html.rx-top .sidebar .rx-top-search input {
    position: absolute; right: 0; top: 0; z-index: 25; width: 40px; height: 40px; padding: 0 0 0 40px; box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background-color: transparent; background-position: 11px 50%;
    color: transparent; cursor: pointer; transition: width .18s ease, background-color .18s ease;
  }
  html.rx-top .sidebar .rx-top-search input::placeholder { color: transparent; }
  html.rx-top .sidebar .rx-top-search input:hover { border-color: rgba(255, 255, 255, 0.4); }
  html.rx-top .sidebar .rx-top-search input:focus,
  html.rx-top .sidebar .rx-top-search input:not(:placeholder-shown) {
    width: 360px; padding: 0 16px 0 42px; border-color: rgba(255, 255, 255, 0.45);
    background-color: #24222e; color: #fff; cursor: text; outline: none;
  }
  html.rx-top .sidebar .rx-top-search input:focus::placeholder { color: #9aa3af; }
}

/* ===== Подвал =====
   Логотип с синим значком, как в шапке; вместо слогана — строка с числом стран; кнопки приложений с подписью;
   в колонке стран — страна посетителя и соседи; «Избранное» из колонки убрано (есть в шапке); строки колонок
   на одной линии (флаги больше не сдвигают колонку стран). */
html.rx-top .footer-logo img { filter: none; height: 25px; }
html.rx-top .footer-brand:has(.footer-brand__lead) .footer-brand__text:not(.footer-brand__lead) { display: none; }
html.rx-top .footer-brand__lead[hidden] { display: block; margin: 6px 0 24px; color: rgba(255, 255, 255, 0.72); font: 15px/1.5 var(--font); }
html.rx-top .footer-apps__title[hidden] { display: block; margin: 0 0 10px; color: #8b93a1; font: 12px var(--font); letter-spacing: .06em; text-transform: uppercase; }
html.rx-top .footer-links__fav { display: none; }
html.rx-top .footer-col:has(.footer-links--near) > .footer-col__title:not(.footer-col__title--near),
html.rx-top .footer-col:has(.footer-links--near) > .footer-links:not(.footer-links--near) { display: none; }
html.rx-top .footer-col__title--near[hidden] { display: block; }
html.rx-top .footer-links--near[hidden] { display: flex; }
html.rx-top .footer-col__title { margin: 2px 0 14px; line-height: 20px; }
html.rx-top .footer-links a { display: flex; min-height: 19px; line-height: 19px; }
html.rx-top .footer-links__country img { width: 18px; height: 18px; border-radius: 50%; }

/* Подвал: значки соцсетей в нижней строке, перед выбором языка. */
html.rx-top .footer-social[hidden] { display: flex; align-items: center; gap: 8px; margin-left: auto; }
html.rx-top .footer-social a {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.72); transition: color .15s ease, border-color .15s ease;
}
html.rx-top .footer-social a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
@media (max-width: 767px) { html.rx-top .footer-social[hidden] { margin-left: 0; } }

/* ===== Внутренние страницы-списки: тёмный верх, как на главной =====
   Страницы, где контент начинается с заголовка и вводного текста (все станции, страна, город, жанр…):
   реклама, «хлебные крошки», заголовок, текст, поиск и фильтры стоят на тёмном фоне, плитки — на белом.
   Разметка не меняется: тёмный фон каждому элементу верха даёт border-image, вынесенный на ширину полей. */
html.rx-top .main-content:not(:has(.home-hero)):has(.inner-wrapper .inner-title:first-child + .list-intro) .ad-top-banner {
  background: #110f18; margin-bottom: 0; padding-top: 20px; padding-bottom: 20px; box-sizing: content-box;
}
html.rx-top .main-content:not(:has(.home-hero)):has(.inner-wrapper .inner-title:first-child + .list-intro) .breadcrumbs-wrap {
  background: #110f18; margin: 0; padding-top: 4px; padding-bottom: 14px;
}
html.rx-top .main-content:not(:has(.home-hero)):has(.inner-wrapper .inner-title:first-child + .list-intro) .breadcrumbs__link { color: #9aa3af; }
html.rx-top .main-content:not(:has(.home-hero)):has(.inner-wrapper .inner-title:first-child + .list-intro) .breadcrumbs__link:hover { color: #fff; }
html.rx-top .main-content:not(:has(.home-hero)):has(.inner-wrapper .inner-title:first-child + .list-intro) .breadcrumbs__current { color: #e6e9ee; }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > :is(.inner-title, .list-intro, .city-tabs, .search--page, .filters-line) {
  margin: 0; padding-bottom: 22px; border-image: linear-gradient(#110f18, #110f18) 0 fill / 0 / 0 var(--rx-bleed, var(--content-pad-x));
}
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .inner-title { color: #fff; padding-bottom: 14px; }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .list-intro { color: #b9c2cb; padding-right: max(0px, calc(100% - 900px)); }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .list-intro a { color: #9db8ff; }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .search--page .search-field input { border-color: transparent; }
/* Последний элемент верха закрывает тёмную полосу и отделяет её от контента. */
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > :is(.inner-title, .list-intro, .city-tabs, .search--page, .filters-line):not(:has(~ :is(.list-intro, .city-tabs, .search--page, .filters-line))) {
  padding-bottom: 34px; margin-bottom: 30px;
}
@media (max-width: 1024px) {
  html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) { --rx-bleed: 20px; }
}
html.rx-top .main-content:not(:has(.home-hero)):has(.inner-wrapper .inner-title:first-child + .list-intro) { padding-top: 0; }
/* Вводный текст на телефоне обрезан до трёх строк — нижний отступ ему даёт прозрачная рамка, а не padding. */
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .list-intro { padding-bottom: 0; border-bottom: 22px solid transparent; }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .list-intro:not(:has(~ :is(.city-tabs, .search--page, .filters-line))) { padding-bottom: 0; border-bottom-width: 34px; }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .filters-line::after { background: linear-gradient(to right, rgba(17, 15, 24, 0), #110f18); }
/* Тот же верх на страницах, где заголовок лежит в .container (подкасты), и вкладки города. */
html.rx-top .inner-wrapper > .container:has(> .inner-title:first-child + .list-intro) { padding-top: 0; }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .city-tabs { border-bottom-color: rgba(255, 255, 255, 0.14); }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .city-tabs .city-tabs__link { color: #b9c2cb; }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .city-tabs .city-tabs__link.is-active { color: #fff; }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .city-tabs { padding-bottom: 0; }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .city-tabs + :is(.search--page, .filters-line) { padding-top: 22px; }
html.rx-top :is(.inner-wrapper, .inner-wrapper > .container):has(> .inner-title:first-child + .list-intro) > .city-tabs .city-tabs__link:hover { color: #fff; }

/* Блок не вылезает из своей полосы на заголовок, если Google отдал содержимое выше формата. */
html.rx-top .ad-top-banner .adsbygoogle { overflow: hidden; }
