/* =====================================================================
   Q-Radio — редизайн 2026-11 (слой поверх style.css)
   Только оформление: разметка-хуки JS (id, js-*, data-*) не меняются.
   Блок «Шазамнуть» (.tray-recognition-*) намеренно не трогается.
   Все правила под .rd (класс на <body>) — чтобы перебивать style.css.
   ===================================================================== */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    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;
}

/* Неоновую обводку выключаем глобально: новые keyframes с тем же именем
   переопределяют старые (последнее объявление выигрывает). */
@keyframes cardNeonBorder {
    0%, 100% { box-shadow: none; }
}

:root {
    --rd-bg: #180f23;
    --rd-sidebar: #1d1230;
    --rd-surface: #241b2e;
    --rd-surface-2: #2c2238;
    --rd-surface-3: #352a43;
    --rd-text: #f4eef8;
    --rd-muted: #b9aec6;
    --rd-faint: #9d92ab;
    --rd-accent: #fdb0c1;
    --rd-accent-hover: #ffc4d1;
    --rd-accent-ink: #2a0f1d;
    --rd-accent-soft: rgba(253, 176, 193, 0.12);
    --rd-accent-line: rgba(253, 176, 193, 0.45);
    --rd-dot: #ff2d8e;
    --rd-line: rgba(255, 255, 255, 0.08);
    --rd-line-2: rgba(255, 255, 255, 0.12);
    --rd-radius: 16px;
    --rd-radius-sm: 12px;
    --rd-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* Ширина контентной колонки: растёт ступенями на больших мониторах */
    --rd-content: 1160px;
}

@media (min-width: 1760px) {
    :root { --rd-content: 1440px; }
}

@media (min-width: 2200px) {
    :root { --rd-content: 1760px; }
}

@media (min-width: 2800px) {
    :root { --rd-content: 2080px; }
}

/* ---------- База ---------- */
body.rd {
    font-family: var(--rd-font);
    background: var(--rd-bg);
    color: var(--rd-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rd button,
.rd input,
.rd select,
.rd textarea {
    font-family: inherit;
}

.rd h1, .rd h2, .rd h3, .rd h4,
.rd .music-card-title,
.rd .tray-meta-text strong,
.rd .footer-brand,
.rd .brand-main {
    font-family: var(--rd-font);
}

.rd h1,
.rd h2,
.rd h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

.rd ::selection {
    background: rgba(253, 176, 193, 0.35);
}

.rd .page-content p a,
.rd .page-content li a {
    color: var(--rd-accent);
    text-decoration-color: rgba(253, 176, 193, 0.4);
}

.rd .page-content p a:hover,
.rd .page-content li a:hover {
    color: var(--rd-accent-hover);
}

/* ---------- Оболочка ---------- */
.rd .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
}

.rd .app-sidebar {
    background: var(--rd-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 20px;
}

.rd .app-main {
    padding: 0 32px;
}

.rd .topbar,
.rd .page-content,
.rd .site-footer {
    width: 100%;
    max-width: var(--rd-content);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.rd .topbar {
    padding-top: 24px;
    padding-bottom: 0;
}

.rd .page-content {
    padding-top: 8px;
    padding-bottom: 48px;
}

/* Трей паркуется над футером и перекрывает низ контента — резервируем место */
body.rd:has(#global-player-tray:not(.hidden)) .page-content {
    padding-bottom: 104px;
}

/* ---------- Логотип ----------
   Фирменный знак Q-Radio (орбита + флажок) сохранён как был, вместе с анимацией.
   Меняем только шрифт надписи и отступ под новой сеткой сайдбара. */
.rd .brand {
    margin: 0 0 28px;
    padding: 0 4px;
}

.rd .brand-main,
.rd .footer-brand {
    letter-spacing: 0.02em;
}

/* ---------- Боковое меню ---------- */
.rd .side-nav,
.rd .side-nav-secondary {
    gap: 2px;
}

.rd .side-nav-secondary {
    /* «Рейтинги» визуально остаётся в основном списке,
       служебные ссылки отделены линией */
    display: contents;
}

.rd .side-nav-secondary > .side-nav-link {
    color: var(--rd-muted);
    font-size: 14px;
    padding: 10px 12px;
}

.rd .side-nav-secondary > .side-nav-link:first-of-type {
    margin-top: 14px;
    position: relative;
}

.rd .side-nav-secondary > .side-nav-link:first-of-type::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 1px;
    background: var(--rd-line);
}

.rd .side-nav-link {
    padding: 11px 12px;
    border-radius: 10px;
    border: 0;
    color: var(--rd-text);
    font-size: 15px;
    line-height: 1.25;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.rd .side-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--rd-text);
    animation: none;
}

.rd .side-nav-link.is-active,
.rd .side-nav-link[aria-current="page"] {
    background: rgba(253, 176, 193, 0.12);
    font-weight: 600;
}

.rd .side-nav-summary::after {
    content: "›";
    color: var(--rd-faint);
    font-size: 18px;
    line-height: 1;
}

.rd .side-nav-submenu {
    left: calc(100% + 8px);
    top: -6px;
    min-width: 240px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 8px;
    gap: 2px;
    border-radius: 14px;
    border: 1px solid var(--rd-line-2);
    background: #251a35;
    box-shadow: 0 18px 40px rgba(8, 4, 16, 0.5);
    backdrop-filter: none;
}

.rd .side-nav-dropdown::after {
    width: 16px;
}

.rd .side-nav-subitem,
.rd .side-nav-show-all {
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--rd-text);
}

.rd .side-nav-subitem:hover,
.rd .side-nav-show-all:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--rd-text);
    animation: none;
}

.rd .side-nav-show-all {
    margin-top: 4px;
    border-top: 1px solid var(--rd-line);
    border-radius: 0 0 8px 8px;
    color: var(--rd-accent);
    font-weight: 600;
}

.rd .side-nav-show-all:hover {
    color: var(--rd-accent-hover);
}

/* ---------- Верхняя панель ---------- */
.rd .topbar-search-row {
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.rd .topbar-search {
    flex: 1 1 320px;
    max-width: 560px;
    width: auto;
}

.rd .search-icon {
    left: 16px;
    color: var(--rd-muted);
    font-size: 0;
    display: inline-flex;
    line-height: 0;
}

.rd .topbar-search #globalSearchInput {
    min-height: 48px;
    height: 48px;
    padding: 0 16px 0 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--rd-surface);
    color: var(--rd-text);
    font-size: 15px;
    box-shadow: none;
    outline: none;
    transition: border-color 0.15s ease;
}

.rd .topbar-search #globalSearchInput:focus {
    border-color: var(--rd-accent-line);
    box-shadow: none;
}

.rd #globalSearchInput::placeholder {
    color: var(--rd-faint);
}

.rd .search-suggest {
    border-radius: 14px;
    border: 1px solid var(--rd-line-2);
    background: #251a35;
    box-shadow: 0 18px 40px rgba(8, 4, 16, 0.5);
}

.rd .search-suggest-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.rd .search-suggest-type {
    color: var(--rd-faint);
}

.rd .topbar-auth {
    gap: 8px;
}

.rd .topbar-auth-link,
.rd .topbar-auth-btn,
.rd .sleep-timer-btn {
    height: 44px;
    padding: 0 16px;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    color: var(--rd-text);
    font-size: 14px;
    font-weight: 500;
    animation: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rd .topbar-auth-link:hover,
.rd .topbar-auth-btn:hover,
.rd .sleep-timer-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--rd-text);
    animation: none;
}

.rd .topbar-auth .rd-icon,
.rd .sleep-timer-btn .rd-icon {
    color: var(--rd-accent);
    flex-shrink: 0;
}

.rd .topbar-auth-link--login .rd-icon,
.rd .topbar-auth-link--primary .rd-icon,
.rd .topbar-auth-btn .rd-icon {
    display: none;
}

.rd .topbar-auth-btn {
    color: var(--rd-muted);
}

.rd .topbar-auth-link--primary {
    background: var(--rd-accent);
    border-color: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
}

.rd .topbar-auth-link--primary:hover {
    background: var(--rd-accent-hover);
    border-color: var(--rd-accent-hover);
    color: var(--rd-accent-ink);
}

.rd .sleep-timer-btn.is-active {
    border-color: var(--rd-accent-line);
    background: var(--rd-accent-soft);
}

.rd .sleep-timer-countdown {
    font-family: var(--rd-font);
    font-variant-numeric: tabular-nums;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--rd-accent);
    font-weight: 600;
}

/* Выпадашка таймера сна */
.rd .sleep-timer-dropdown {
    border-radius: 16px;
    border: 1px solid var(--rd-line-2);
    background: #251a35;
    box-shadow: 0 18px 40px rgba(8, 4, 16, 0.55);
}

.rd .sleep-timer-preset,
.rd .sleep-timer-input,
.rd .sleep-timer-number-btn {
    border-radius: 10px;
    border: 1px solid var(--rd-line-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--rd-text);
    animation: none;
}

.rd .sleep-timer-preset:hover,
.rd .sleep-timer-number-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    animation: none;
}

.rd .sleep-timer-preset.is-active {
    background: var(--rd-accent);
    border-color: var(--rd-accent);
    color: var(--rd-accent-ink);
}

.rd .sleep-timer-start {
    border-radius: 12px;
    border: 0;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
    animation: none;
    box-shadow: none;
}

.rd .sleep-timer-start:hover {
    background: var(--rd-accent-hover);
}

.rd .sleep-timer-cancel {
    border-radius: 12px;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    color: var(--rd-muted);
    animation: none;
}

.rd .sleep-popup-inner {
    border-radius: 20px;
    border: 1px solid var(--rd-line-2);
    background: #251a35;
}

.rd .sleep-popup-close {
    border-radius: 12px;
    border: 0;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
}

/* Хлебные крошки и заголовок страницы */
.rd .breadcrumbs {
    margin: -8px 0 14px;
    font-size: 13px;
    color: var(--rd-muted);
    gap: 6px;
}

.rd .breadcrumbs-link {
    color: var(--rd-muted);
}

.rd .breadcrumbs-link:hover {
    color: var(--rd-text);
}

.rd .breadcrumbs-current {
    color: var(--rd-text);
}

.rd .breadcrumbs-sep {
    color: var(--rd-faint);
}

.rd .topbar-title,
.rd .page-content > h1 {
    margin: 0 0 32px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--rd-text);
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
}

/* Шапка страницы в контенте: H1 + действие справа */
.rd .page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    margin: 0 0 32px;
}

.rd .page-head h1,
.rd .page-head .page-head-title {
    margin: 0;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--rd-text);
}

/* ---------- Секции ---------- */
.rd .page-content > section + section {
    margin-top: 48px;
}

.rd .section-row,
.rd .section-row--home {
    width: auto;
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 16px;
}

.rd .section-title,
.rd .section-title--home {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--rd-text);
}

.rd .section-link,
.rd .section-link--show-all,
.rd .section-row--home .section-link--show-all {
    margin-left: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--rd-accent);
    font-size: 14px;
    font-weight: 600;
    animation: none;
}

.rd .section-link::after {
    content: " →";
}

.rd .section-link:hover {
    color: var(--rd-accent-hover);
    background: none;
}

/* ---------- Кнопки ---------- */
.rd .btn {
    border-radius: 12px;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    color: var(--rd-text);
    font-weight: 600;
    box-shadow: none;
    animation: none;
}

@media (hover: hover) and (pointer: fine) {
    .rd .btn:hover,
    .rd .filters button:hover {
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.05);
        color: var(--rd-text);
        animation: none;
    }
}

@media (hover: none), (pointer: coarse) {
    .rd .btn:active,
    .rd .filters button:active {
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.05);
        color: var(--rd-text);
        animation: none;
    }
}

.rd .btn:focus-visible,
.rd a:focus-visible,
.rd button:focus-visible {
    outline: 2px solid var(--rd-accent);
    outline-offset: 2px;
    box-shadow: none;
}

.rd .btn-primary,
.rd .show-more-wrap .btn {
    border-color: var(--rd-accent-line);
    color: var(--rd-accent);
}

.rd .show-more-wrap {
    margin: 24px 0 0;
}

.rd .show-more-wrap .btn {
    height: 46px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
    .rd .show-more-wrap .btn:hover {
        background: var(--rd-accent-soft);
        border-color: var(--rd-accent);
        color: var(--rd-accent);
    }
}

.rd .listing-random-btn {
    height: 52px;
    padding: 0 22px 0 18px;
    gap: 10px;
    border-radius: 999px;
    border: 0;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-size: 15px;
    font-weight: 700;
    box-shadow: none;
    animation: none;
}

@media (hover: hover) and (pointer: fine) {
    .rd .listing-random-btn:hover {
        background: var(--rd-accent-hover);
        color: var(--rd-accent-ink);
        border: 0;
        animation: none;
        box-shadow: none;
    }
}

@media (hover: none), (pointer: coarse) {
    .rd .listing-random-btn:active {
        background: var(--rd-accent-hover);
        color: var(--rd-accent-ink);
        animation: none;
        box-shadow: none;
    }
}

.rd .listing-random-btn-icon {
    width: 20px;
    height: 20px;
    color: var(--rd-accent-ink);
    background: none;
    border: 0;
    box-shadow: none;
}

.rd .listing-random-btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ---------- Карточка станции ---------- */
.rd .music-grid-home,
.rd .music-grid--stations,
.rd .music-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 24px 16px;
    margin-bottom: 0;
}

.rd .station-unified-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    animation: none;
}

.rd .station-unified-card:hover {
    background: none;
    box-shadow: none;
    animation: none;
    transform: none;
}

.rd .station-unified-art-wrap,
.rd .station-unified-card .music-art-wrap {
    grid-row: 1;
    grid-column: 1;
    border-radius: 22px;
    border: 0;
    background: var(--rd-surface);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: none;
}

.rd .station-logo-frame {
    position: absolute;
    inset: 0;
    display: block;
    border: 0;
    border-radius: inherit;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* У многих логотипов (особенно из каталога radio-browser) прямо в картинке
   «запечена» тонкая чёрная/белая рамка по краю. Чуть увеличиваем изображение,
   чтобы она ушла за скругление и карточка читалась сплошной плиткой. */
.rd .station-unified-card .station-logo-art {
    background: var(--rd-surface);
    object-fit: cover;
    transform: scale(1.07);
    transition: transform 0.35s ease, filter 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .rd .station-unified-card:hover .station-logo-art {
        transform: scale(1.12);
    }
}

.rd .station-unified-card .music-meta {
    grid-row: 2;
    grid-column: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rd .station-unified-card .music-card-title {
    min-height: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rd .station-unified-card .music-card-title a {
    color: var(--rd-text);
}

.rd .station-unified-card .music-card-title a:hover {
    color: var(--rd-accent);
}

/* Мета карточки: «Жанры · Город · Страна» одной строкой без иконок */
.rd .station-unified-card .music-meta p {
    margin: 0;
    color: var(--rd-muted);
    font-size: 13px;
    line-height: 1.35;
}

.rd .station-unified-genres-icon,
.rd .station-unified-city-icon,
.rd .station-unified-country-icon {
    display: none;
}

.rd .station-unified-card .music-meta {
    display: block;
}

.rd .station-unified-card .music-card-title {
    margin-bottom: 4px;
}

.rd .station-unified-genres,
.rd .station-unified-city,
.rd .station-unified-country {
    display: inline;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 0;
}

.rd .station-unified-city::before,
.rd .station-unified-country::before {
    content: " · ";
    color: var(--rd-faint);
}

.rd .station-unified-genres-text,
.rd .station-unified-meta-text {
    display: inline;
    white-space: normal;
    overflow: visible;
    -webkit-line-clamp: unset;
}

/* Play / Stop поверх обложки, справа снизу */
.rd .station-unified-actions {
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    justify-self: end;
    margin: 0 10px 10px 0;
    display: block;
    z-index: 2;
}

.rd .station-unified-actions .btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(10, 4, 18, 0.35);
    animation: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.rd .station-unified-actions .btn.hidden {
    display: none;
}

.rd .station-unified-actions .btn > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rd .station-unified-actions .btn {
    position: relative;
}

/* Иконка рисуется в нулевой точке, поставленной ровно в центр кнопки */
.rd .station-unified-actions .btn-icon-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
    display: block;
}

.rd .station-unified-actions .btn-icon-wrap > svg {
    display: none;
}

/* Треугольник «play»: 11×13, центр тяжести (1/3 ширины) совмещён с центром кнопки */
.rd .station-unified-actions .js-play-station .btn-icon-wrap::before {
    content: "";
    position: absolute;
    left: -4px;
    top: -6.5px;
    border-style: solid;
    border-width: 6.5px 0 6.5px 11px;
    border-color: transparent transparent transparent currentColor;
}

/* Пауза у играющей станции */
.rd .station-unified-actions .js-stop-station .btn-icon-wrap::before,
.rd .station-unified-actions .js-stop-station .btn-icon-wrap::after {
    content: "";
    position: absolute;
    top: -6px;
    width: 4px;
    height: 12px;
    border-radius: 1px;
    background: currentColor;
}

.rd .station-unified-actions .js-stop-station .btn-icon-wrap::before {
    left: -5px;
}

.rd .station-unified-actions .js-stop-station .btn-icon-wrap::after {
    left: 1px;
}

.rd .station-unified-actions .js-stop-station.is-loading .btn-icon-wrap::before {
    left: -9px;
    top: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: none;
    border: 2.5px solid rgba(42, 15, 29, 0.25);
    border-top-color: var(--rd-accent-ink);
    box-sizing: border-box;
    animation: playerSpin 0.7s linear infinite;
}

.rd .station-unified-actions .js-stop-station.is-loading .btn-icon-wrap::after {
    display: none;
}

.rd .btn.is-loading .btn-icon-wrap::after {
    animation: none;
}

.rd .station-unified-actions .js-stop-station:not(.hidden) {
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    animation: none;
    box-shadow: 0 0 0 4px rgba(253, 176, 193, 0.25), 0 6px 16px rgba(10, 4, 18, 0.35);
}

@media (hover: hover) and (pointer: fine) {
    .rd .station-unified-actions .btn:hover {
        background: var(--rd-accent-hover);
        color: var(--rd-accent-ink);
        transform: scale(1.06);
        border: 0;
    }
}

/* Избранное — круглая кнопка в правом верхнем углу */
.rd .station-favorite-form {
    top: 10px;
    right: 10px;
    z-index: 3;
}

.rd .station-favorite-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(24, 15, 35, 0.72);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    animation: none;
}

.rd .station-favorite-btn .favorite-icon {
    width: 17px;
    height: 17px;
}

@media (hover: hover) and (pointer: fine) {
    .rd .station-favorite-btn:hover {
        background: rgba(24, 15, 35, 0.9);
        border: 0;
    }
}

/* ---------- Футер ---------- */
.rd .site-footer {
    border-top: 1px solid var(--rd-line);
    background: none;
    padding-top: 28px;
    padding-bottom: 32px;
}

.rd .footer-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px 28px;
}

.rd .footer-legal {
    grid-column: 1 / -1;
    margin-left: 0;
    gap: 8px 20px;
}

.rd .footer-nav {
    gap: 8px 28px;
}

.rd .footer-nav-link {
    color: var(--rd-text);
    font-size: 15px;
}

.rd .footer-nav-link:hover {
    color: var(--rd-accent);
}

.rd .footer-legal-link {
    color: var(--rd-faint);
    font-size: 13px;
}

.rd .footer-legal-link:hover {
    color: var(--rd-text);
}

/* ---------- Плеер (трей) ---------- */
/* Позицию (top) трею выставляет player.js — он «паркуется» над футером.
   Отступ от низа экрана и от футера даёт padding-bottom контейнера. */
.rd .player-tray {
    left: 248px;
    right: 0;
    bottom: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    pointer-events: none;
    padding: 0 32px 16px;
}

.rd .player-tray-inner {
    pointer-events: auto;
    /* Компактная «пилюля»: не тянется на всю колонку на широких экранах */
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 10px 8px 8px;
    border-radius: 18px;
    border: 1px solid var(--rd-line-2);
    background: rgba(41, 30, 54, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(8, 4, 16, 0.55);
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
}

.rd .tray-equalizer {
    display: none;
}

.rd .tray-station-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    min-width: 0;
}

.rd .tray-art {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--rd-surface-3);
}

.rd .tray-meta-text {
    min-width: 0;
}

.rd .tray-meta-text strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--rd-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rd .tray-meta-text span {
    font-size: 12px;
    color: var(--rd-muted);
    gap: 6px;
}

.rd .tray-meta-text .live-dot circle {
    fill: var(--rd-dot);
}

/* Все кнопки трея одной высоты: play, «Шазамнуть», перейти, закрыть */
.rd .player-tray {
    --rd-tray-btn: 44px;
}

.rd .player-tray .tray-recognition-btn {
    min-height: var(--rd-tray-btn);
    height: var(--rd-tray-btn);
    box-sizing: border-box;
}

.rd .tray-play-btn {
    width: var(--rd-tray-btn);
    height: var(--rd-tray-btn);
    min-width: var(--rd-tray-btn);
    flex: none;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-size: 16px;
    box-shadow: none;
}

.rd .tray-play-btn:hover {
    background: var(--rd-accent-hover);
    transform: scale(1.04);
    box-shadow: none;
    filter: none;
}

.rd .tray-right-controls {
    justify-content: flex-end;
    gap: 10px;
}

.rd .player-volume {
    order: -1;
    margin-right: 6px;
}

.rd .tray-vol-icon {
    border: 0;
    background: none;
    padding: 4px;
    opacity: 0.85;
    cursor: pointer;
}

.rd #tray-volume {
    width: 96px;
    height: 4px;
    accent-color: var(--rd-accent);
}

.rd .tray-go-icon,
.rd .tray-close-btn {
    width: var(--rd-tray-btn);
    height: var(--rd-tray-btn);
    min-width: var(--rd-tray-btn);
    border-radius: 50%;
    flex: none;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    color: var(--rd-text);
}

.rd .tray-go-icon:hover,
.rd .tray-close-btn:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.05);
    color: var(--rd-text);
}

.rd .tray-close-btn img {
    width: 18px;
    height: 18px;
}

.rd .player-tray-error {
    border-radius: 12px;
}

/* ---------- Кнопка «наверх» ---------- */
.rd .scroll-top-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--rd-line-2);
    background: var(--rd-surface-2);
    color: var(--rd-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(8, 4, 16, 0.45);
    animation: none;
}

.rd .scroll-top-btn:hover {
    background: var(--rd-surface-3);
    color: var(--rd-accent);
}

/* ---------- Cookie-баннер и сообщения ---------- */
.rd .cookie-banner {
    border-radius: 18px;
    border: 1px solid var(--rd-line-2);
    background: #251a35;
    box-shadow: 0 18px 50px rgba(8, 4, 16, 0.55);
}

.rd .cookie-banner-btn--accept {
    border-radius: 12px;
    border: 0;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
    box-shadow: none;
    animation: none;
}

.rd .cookie-banner-link {
    color: var(--rd-accent);
}

.rd .site-message {
    border-radius: 12px;
    border: 1px solid var(--rd-line-2);
    background: var(--rd-surface);
}

/* ---------- Общие поверхности внутренних страниц ---------- */
.rd .card:not(.station-unified-card) {
    border-radius: var(--rd-radius);
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
}

/* ---------- Панель фильтров (главная, каталог, жанр/страна/город) ---------- */
.rd .home-filters,
.rd .home-filters.mobile-filters-ready {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 24px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
}

.rd .mobile-filters-toggle {
    display: none;
}

.rd .mobile-filters-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
}

.rd .home-filters .listing-random-btn {
    order: 10;
    height: 40px;
    padding: 0 16px 0 14px;
    font-size: 14px;
}

.rd .home-filters .listing-random-btn-icon,
.rd .home-filters .listing-random-btn-icon svg {
    width: 18px;
    height: 18px;
}

/* Сортировка — сегментированный переключатель, первым в строке */
.rd .home-filter-sort {
    order: -1;
    gap: 2px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    flex-wrap: nowrap;
    margin-right: 6px;
    position: relative;
}

.rd .home-filter-sort::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--rd-line-2);
}

.rd .home-filter-sort .sidebar-sort-item span,
.rd .sidebar-sort-item span {
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--rd-text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    animation: none;
}

.rd .sidebar-sort-item:hover span {
    background: rgba(255, 255, 255, 0.06);
    color: var(--rd-text);
    animation: none;
}

.rd .sidebar-sort-item input:checked + span {
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
    animation: none;
}

.rd .sidebar-sort-item input:focus-visible + span {
    outline: 2px solid var(--rd-accent);
    outline-offset: 2px;
}

/* Выпадающие фильтры */
.rd .home-filter-dropdown {
    min-width: 0;
    max-width: none;
    position: relative;
}

.rd .sidebar-dropdown {
    border-radius: 12px;
    border: 1px solid var(--rd-line-2);
    background: transparent;
}

.rd .home-filter-dropdown .sidebar-dropdown-summary {
    height: 40px;
    padding: 0 12px 0 14px;
    gap: 8px;
    border-radius: 12px;
    font-size: 14px;
}

.rd .home-filter-dropdown .sidebar-filters-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--rd-text);
}

.rd .sidebar-dropdown-summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -3px 2px 0 2px;
    border-right: 1.8px solid var(--rd-muted);
    border-bottom: 1.8px solid var(--rd-muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease, margin 0.15s ease;
}

.rd .sidebar-dropdown[open] .sidebar-dropdown-summary::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.rd .sidebar-dropdown-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border: 0;
    background: var(--rd-accent-soft);
    color: var(--rd-accent);
    font-size: 11px;
}

/* Количество 0 не показываем — как в макете */
.rd .sidebar-dropdown-count.is-zero {
    display: none;
}

.rd .home-filter-dropdown[open] {
    z-index: 40;
}

.rd .home-filter-dropdown[open] .sidebar-filters-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    max-height: 300px;
    padding: 8px;
    gap: 2px;
    border-radius: 14px;
    border: 1px solid var(--rd-line-2);
    background: #251a35;
    box-shadow: 0 18px 40px rgba(8, 4, 16, 0.55);
}

.rd .sidebar-check {
    padding: 8px 8px;
    border-radius: 8px;
    gap: 10px;
    color: var(--rd-text);
    font-size: 14px;
}

.rd .sidebar-check:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rd .sidebar-check input {
    border-radius: 5px;
    border-color: rgba(255, 255, 255, 0.3);
    background: transparent;
}

.rd .sidebar-check input:checked {
    background: var(--rd-accent);
    border-color: var(--rd-accent);
}

.rd .sidebar-check input:checked::after {
    border-color: var(--rd-accent-ink);
}

.rd .home-filter-actions {
    margin-left: auto;
    gap: 8px;
}

.rd .home-filter-actions .btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
}

.rd .home-filter-actions .btn[type="submit"] {
    border-color: transparent;
    background: var(--rd-surface-3);
    color: var(--rd-text);
}

@media (hover: hover) and (pointer: fine) {
    .rd .home-filter-actions .btn[type="submit"]:hover {
        background: #43355a;
        border-color: transparent;
    }
}

.rd .home-filter-actions .sidebar-reset-btn {
    color: var(--rd-muted);
}

/* ---------- Сейчас в тренде (компактные плитки) ---------- */
.rd .trending-slider {
    position: relative;
    margin: 0;
}

.rd .trending-strip {
    gap: 12px;
    padding: 0;
    scroll-padding: 0;
    scroll-snap-type: x mandatory;
}

.rd .trending-slider--compact .trending-strip .station-unified-card {
    flex: 0 0 calc((100% - 36px) / 4);
    min-width: 248px;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
    height: auto;
}

.rd .trending-slider--compact .trending-strip .station-unified-card:hover {
    background: var(--rd-surface-2);
}

.rd .trending-slider--compact .station-unified-card .station-unified-art-wrap {
    grid-row: 1;
    grid-column: 1;
    width: 72px;
    border-radius: 12px;
}

.rd .trending-slider--compact .station-unified-card .music-meta {
    grid-row: 1;
    grid-column: 2;
}

.rd .trending-slider--compact .station-unified-card .music-card-title {
    -webkit-line-clamp: 1;
    margin-bottom: 2px;
}

.rd .trending-slider--compact .station-unified-card .music-meta p {
    display: inline;
    font-size: 12px;
}

.rd .trending-slider--compact .station-unified-card .station-unified-city {
    display: none;
}

.rd .trending-slider--compact .station-favorite-form {
    display: none;
}

.rd .trending-slider--compact .station-unified-actions {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    justify-self: center;
    margin: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.rd .trending-slider--compact .station-unified-card:hover .station-unified-actions,
.rd .trending-slider--compact .station-unified-actions:has(.js-stop-station:not(.hidden)),
.rd .trending-slider--compact .station-unified-actions:focus-within {
    opacity: 1;
}

.rd .trending-slider--compact .station-unified-actions .btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
}

.rd .trending-arrow {
    position: absolute;
    top: -56px;
    bottom: auto;
    transform: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    color: var(--rd-text);
    font-size: 20px;
    line-height: 1;
    box-shadow: none;
    animation: none;
}

.rd .trending-arrow:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--rd-text);
    animation: none;
}

.rd .trending-arrow-left {
    left: auto;
    right: 52px;
}

.rd .trending-arrow-right {
    right: 0;
}

.rd .trending-arrow.disabled {
    opacity: 0.35;
}

/* ---------- Жанры плитками ---------- */
.rd .rd-genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.rd .rd-genre-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
    color: var(--rd-text);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rd .rd-genre-tile:hover {
    background: var(--rd-surface-2);
    border-color: rgba(255, 255, 255, 0.14);
}

.rd .rd-genre-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background-color: var(--rd-surface-3);
    background-size: cover;
    background-position: center;
}

.rd .rd-genre-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rd .rd-genre-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd .rd-genre-count {
    font-size: 13px;
    color: var(--rd-muted);
}

/* ---------- Страны / города списком ---------- */
.rd .rd-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.rd .rd-split > section + section {
    margin-top: 0;
}

.rd .rd-list-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    padding: 8px 18px;
    border-radius: 18px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
}

.rd .rd-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 48px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rd-line);
    color: var(--rd-text);
    font-size: 15px;
}

.rd .rd-list-row:hover .rd-list-name {
    color: var(--rd-accent);
}

.rd .rd-list-thumb {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background-color: var(--rd-surface-3);
    background-size: cover;
    background-position: center;
}

.rd .rd-list-name {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.rd .rd-list-name small {
    font-size: 12px;
    color: var(--rd-faint);
}

.rd .rd-list-count {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--rd-faint);
    font-variant-numeric: tabular-nums;
}

/* ---------- Пагинация ---------- */
.rd .pagination {
    display: grid;
    grid-template-areas:
        "prev pages next"
        "status status status";
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    align-items: center;
    gap: 12px 6px;
    margin: 28px 0 0;
}

.rd .pagination-prev { grid-area: prev; }
.rd .pagination-next { grid-area: next; }

.rd .pagination-pages {
    grid-area: pages;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rd .pagination-direction,
.rd .pagination-number {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--rd-line-2);
    color: var(--rd-text);
    font-size: 14px;
    text-decoration: none;
}

.rd .pagination-direction {
    gap: 4px;
    padding: 0 16px;
    border-color: var(--rd-accent-line);
    color: var(--rd-accent);
    font-weight: 600;
    white-space: nowrap;
}

.rd .pagination-number {
    min-width: 44px;
    padding: 0 8px;
}

.rd .pagination [aria-current="page"] {
    background: var(--rd-accent);
    border-color: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
}

.rd .pagination [aria-disabled="true"] {
    border-color: var(--rd-line);
    color: #6f6680;
    font-weight: 400;
}

.rd .pagination a:hover {
    background: var(--rd-accent-soft);
    border-color: var(--rd-accent);
    color: var(--rd-accent);
}

.rd .pagination-ellipsis {
    width: 32px;
    color: var(--rd-faint);
    text-align: center;
}

.rd .pagination-status {
    grid-area: status;
    color: var(--rd-faint);
    font-size: 13px;
    text-align: center;
}

.rd .pagination-status strong {
    font-weight: inherit;
}

@media (max-width: 700px) {
    .rd .pagination {
        grid-template-areas: "prev status next";
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        margin-top: 16px;
    }

    .rd .pagination-pages,
    .rd .pagination-prev-label {
        display: none;
    }

    .rd .pagination-direction {
        height: 48px;
        border-radius: 14px;
    }

    .rd .pagination-prev {
        width: 48px;
        padding: 0;
        font-size: 18px;
    }

    .rd .pagination-status {
        color: var(--rd-muted);
        font-size: 14px;
    }

    .rd .pagination-status strong {
        color: var(--rd-text);
        font-weight: 700;
    }

    .rd a.pagination-next {
        padding: 0 17px;
        background: var(--rd-accent);
        color: var(--rd-accent-ink);
        font-size: 15px;
        font-weight: 700;
    }

    .rd .pagination a.pagination-next:hover {
        background: var(--rd-accent-hover);
        color: var(--rd-accent-ink);
    }
}

/* ---------- Страница станции ---------- */
.rd .rd-station-hero,
.rd .station-hero.rd-station-hero {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    margin: 0 0 24px;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
}

.rd .rd-station-hero.has-now-playing {
    grid-template-columns: 176px minmax(0, 1fr) minmax(240px, 340px);
}

.rd .rd-station-logo,
.rd .rd-station-hero .station-logo-wrap {
    width: 176px;
    height: 176px;
    flex: none;
    border-radius: 20px;
    overflow: hidden;
    background: var(--rd-surface-3);
}

.rd .rd-station-hero .station-logo,
.rd .station-rating-logo-frame img,
.rd .rd-playlist-logo img,
.rd .tray-art-img {
    transform: scale(1.07);
}

.rd .rd-station-hero .station-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.rd .rd-station-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.rd .rd-station-title {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.rd .rd-station-sub {
    margin: 0;
    font-size: 15px;
    color: var(--rd-muted);
}

.rd .page-content .rd-station-sub a {
    color: var(--rd-muted);
    text-decoration: none;
}

.rd .page-content .rd-station-sub a:hover {
    color: var(--rd-text);
}

.rd .rd-sep {
    margin: 0 6px;
    color: var(--rd-faint);
}

.rd .rd-station-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.rd .rd-chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--rd-accent-soft);
    color: var(--rd-accent);
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.rd .rd-chip:hover {
    background: rgba(253, 176, 193, 0.2);
    color: var(--rd-accent-hover);
}

/* Мини-плеер в шапке станции */
.rd .station-detail-mini-player,
.rd .mini-player {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0 0;
}

.rd .station-detail-mini-player .mini-play-btn {
    width: auto;
    min-width: 0;
    height: 56px;
    padding: 0 28px 0 22px;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-size: 17px;
    font-weight: 700;
    box-shadow: none;
    animation: none;
}

.rd .station-detail-mini-player .mini-play-btn::after {
    content: "Слушать";
}

.rd .station-detail-mini-player .mini-play-btn.is-active::after {
    content: "Пауза";
}

.rd .station-detail-mini-player .mini-play-btn.is-loading::after {
    content: "Загрузка";
}

.rd .station-detail-mini-player .mini-play-btn .btn-icon-wrap {
    width: 16px;
    height: 16px;
    position: relative;
    display: block;
    animation: none;
}

.rd .station-detail-mini-player .mini-play-btn .btn-icon-wrap > svg {
    display: none;
}

.rd .station-detail-mini-player .mini-play-btn .btn-icon-wrap::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent currentColor;
}

.rd .station-detail-mini-player .mini-play-btn.is-active .btn-icon-wrap::before,
.rd .station-detail-mini-player .mini-play-btn.is-active .btn-icon-wrap::after {
    content: "";
    position: absolute;
    top: 1px;
    width: 4px;
    height: 14px;
    border: 0;
    border-radius: 1px;
    background: currentColor;
}

.rd .station-detail-mini-player .mini-play-btn.is-active .btn-icon-wrap::before {
    left: 3px;
}

.rd .station-detail-mini-player .mini-play-btn.is-active .btn-icon-wrap::after {
    left: 10px;
}

.rd .station-detail-mini-player .mini-play-btn.is-loading .btn-icon-wrap::before {
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(42, 15, 29, 0.25);
    border-top-color: var(--rd-accent-ink);
    border-radius: 50%;
    background: none;
    box-sizing: border-box;
    animation: playerSpin 0.7s linear infinite;
}

.rd .station-detail-mini-player .mini-play-btn.is-loading .btn-icon-wrap::after {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .rd .station-detail-mini-player .mini-play-btn:hover {
        background: var(--rd-accent-hover);
        color: var(--rd-accent-ink);
        border: 0;
        animation: none;
    }
}

.rd .station-detail-mini-player .mini-play-btn.is-active {
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    animation: none;
}

.rd .station-detail-favorite-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    backdrop-filter: none;
}

.rd .station-detail-favorite-btn.is-active {
    border-color: var(--rd-accent-line);
    background: var(--rd-accent-soft);
    animation: none;
}

.rd .station-detail-favorite-btn .favorite-icon {
    width: 22px;
    height: 22px;
}

.rd .mini-time {
    min-width: 40px;
    font-size: 15px;
    font-weight: 600;
    color: var(--rd-muted);
    font-variant-numeric: tabular-nums;
}

.rd .mini-mute-icon,
.rd .tray-vol-icon img {
    filter: brightness(0) invert(0.85);
}

.rd .mini-volume {
    width: 120px;
    accent-color: var(--rd-accent);
}

.rd .station-report-btn {
    align-self: auto;
    justify-self: auto;
    white-space: normal;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--rd-muted);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    animation: none;
}

.rd .station-report-btn:hover,
.rd .station-report-btn.is-active {
    background: none;
    color: var(--rd-accent);
    animation: none;
}

/* «Сейчас в эфире» */
.rd .rd-now-playing,
.rd .station-track-card.rd-now-playing {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding: 20px;
    border-radius: 18px;
    border: 0;
    background: var(--rd-surface-2);
    min-width: 0;
}

.rd .rd-now-playing-label,
.rd .rd-now-playing .station-playback-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-muted);
}

.rd .rd-now-playing-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rd-dot);
}

.rd .rd-now-playing .station-track-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.rd .rd-now-playing .station-track-cover-wrap {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--rd-surface-3);
    border: 0;
    box-shadow: none;
}

.rd .rd-now-playing .station-track-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.rd .rd-now-playing .station-track-title {
    margin: 0 0 3px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--rd-text);
    -webkit-line-clamp: 2;
}

.rd .rd-now-playing .station-track-artist {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--rd-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Двухколоночная раскладка под шапкой */
.rd .rd-station-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 396px;
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}

.rd .rd-station-layout:not(:has(.rd-station-col--side)) {
    grid-template-columns: minmax(0, 1fr);
}

.rd .rd-station-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.rd .rd-panel,
.rd .rd-panel.card {
    margin: 0;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
}

.rd .rd-panel-title,
.rd .station-about-title.rd-panel-title,
.rd .station-section-title.rd-panel-title,
.rd .station-playback-title.rd-panel-title {
    margin: 0 0 16px;
    padding: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--rd-text);
    border: 0;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.rd .rd-panel-title a {
    color: inherit;
}

.rd .station-about-card,
.rd .station-freq-card {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.rd .station-about-text {
    color: #e3d9ec;
    font-size: 16px;
    line-height: 1.65;
}

.rd .station-about-text.is-collapsed::after,
.rd .station-freq-list-wrap.is-collapsed::after,
.rd .track-list-wrap.is-collapsed::after {
    background: linear-gradient(to bottom, rgba(36, 27, 46, 0), var(--rd-surface));
}

.rd .station-about-toggle,
.rd .rd-outline-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    margin-top: 16px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--rd-accent-line);
    background: transparent;
    color: var(--rd-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.rd .station-about-toggle[hidden] {
    display: none;
}

.rd .station-about-toggle:hover,
.rd .rd-outline-btn:hover {
    background: var(--rd-accent-soft);
    border-color: var(--rd-accent);
    color: var(--rd-accent);
}

/* Частоты — список с разделителями */
.rd .station-freq-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    border-top: 1px solid var(--rd-line);
}

.rd .station-freq-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    width: 100%;
    padding: 10px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--rd-line);
    background: none;
}

.rd .station-freq-city {
    font-size: 15px;
    font-weight: 400;
    color: var(--rd-text);
}

.rd .station-freq-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--rd-accent);
}

/* Контакты */
.rd .rd-contacts p {
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rd .rd-contacts p:last-child {
    margin-bottom: 0;
}

.rd .rd-contacts small {
    font-size: 13px;
    font-weight: 400;
    color: var(--rd-faint);
}

.rd .rd-contacts .rd-contact-site {
    padding-top: 14px;
    border-top: 1px solid var(--rd-line);
}

.rd .rd-contacts .rd-contact-phone + .rd-contact-site {
    margin-top: 4px;
}

.rd .page-content .rd-contacts a {
    color: var(--rd-accent);
    font-weight: 500;
    font-size: 15px;
}

.rd .rd-contacts p:only-child.rd-contact-site {
    border-top: 0;
    padding-top: 0;
}

/* Плейлист-превью с табами */
.rd .rd-playlist-head,
.rd .station-playback-header.rd-playlist-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 12px;
}

.rd .rd-playlist-head .rd-panel-title {
    margin: 0;
}

.rd .rd-tabs,
.rd .station-playback-links.rd-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.rd .rd-tab,
.rd .station-playback-links .rd-tab {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--rd-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    animation: none;
}

.rd .rd-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--rd-text);
}

.rd .rd-tab.is-active {
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
}

.rd .rd-track-list-wrap {
    max-height: none;
}

.rd .rd-track-list li,
.rd .station-playback-card .rd-track-list li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rd-line);
    -webkit-line-clamp: unset;
    overflow: visible;
}

.rd .rd-track-list li:first-child {
    border-top: 1px solid var(--rd-line);
}

.rd .rd-track-list strong {
    min-width: 46px;
    color: var(--rd-muted);
    font-weight: 500;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.rd .rd-track-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--rd-text);
}

.rd .rd-track-artist {
    font-size: 14px;
    color: var(--rd-muted);
}

/* Похожие станции */
.rd .rd-similar .section-title {
    margin: 0 0 18px;
}

.rd .rd-similar .trending-strip .station-unified-card {
    flex: 0 0 calc((100% - 80px) / 6);
    min-width: 160px;
    scroll-snap-align: start;
}

.rd .rd-similar .trending-arrow {
    top: -60px;
}

/* Модалка «Не работает радио?» */
.rd .station-report-backdrop {
    background: rgba(10, 5, 19, 0.7);
}

.rd .station-report-card {
    border-radius: 20px;
    border: 1px solid var(--rd-line-2);
    background: #251a35;
    box-shadow: 0 24px 60px rgba(8, 4, 16, 0.6);
}

.rd .station-report-option {
    border-radius: 12px;
    border-color: var(--rd-line-2);
}

.rd .station-report-submit {
    border-radius: 12px;
    border: 0;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
    animation: none;
    box-shadow: none;
}

/* ---------- Плейлист станции по часам ---------- */
.rd .rd-playlist-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 28px;
}

.rd .rd-playlist-logo {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--rd-surface-3);
}

.rd .rd-playlist-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rd .rd-playlist-hero-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rd .rd-playlist-hero h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.rd .rd-back-link {
    color: var(--rd-accent);
    font-size: 14px;
    font-weight: 600;
}

.rd .rd-back-link:hover {
    color: var(--rd-accent-hover);
}

.rd .rd-playlist-date {
    margin: 0;
    color: var(--rd-muted);
    font-size: 15px;
}

.rd .rd-hour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    align-items: start;
}

.rd .rd-hour-card {
    padding: 18px 20px 8px;
    border-radius: 20px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
}

.rd .rd-hour-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rd-line);
}

.rd .rd-hour-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rd .rd-hour-count {
    font-size: 13px;
    color: var(--rd-faint);
}

.rd .rd-hour-list li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--rd-line);
}

.rd .rd-hour-list li:last-child {
    border-bottom: 0;
}

.rd .rd-hour-list strong {
    color: var(--rd-muted);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    padding-top: 1px;
}

.rd .rd-track-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.rd .rd-hour-list .rd-track-name {
    font-size: 15px;
    line-height: 1.3;
}

.rd .rd-hour-list .rd-track-artist {
    font-size: 13px;
}

.rd .scroll-top-btn svg {
    animation: none;
    filter: none;
}

.rd .rd-similar .trending-strip {
    gap: 16px;
}

/* ---------- Списки стран / городов / жанров ---------- */
.rd .rd-subtitle {
    font-size: 20px;
    color: var(--rd-muted);
    margin: 0 0 14px;
}

.rd .rd-top-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.rd .rd-top-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 18px 18px;
    border-radius: 18px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
    color: var(--rd-text);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rd .rd-top-card:hover {
    background: var(--rd-surface-2);
    border-color: rgba(255, 255, 255, 0.14);
}

.rd .rd-top-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.rd .rd-top-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
}

.rd .rd-top-name small {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 500;
    color: var(--rd-faint);
}

.rd .rd-top-count {
    font-size: 22px;
    font-weight: 800;
    color: var(--rd-accent);
    font-variant-numeric: tabular-nums;
}

.rd .rd-top-bar {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.rd .rd-top-bar > span {
    display: block;
    height: 100%;
    min-width: 4%;
    border-radius: inherit;
    background: var(--rd-accent);
}

.rd .rd-list-card--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 8px 20px;
}

.rd .rd-genre-grid--page {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ---------- Рейтинги: список ---------- */
.rd .rating-list-section + .rating-list-section {
    margin-top: 40px;
}

.rd .rating-list-section .section-title {
    margin-bottom: 16px;
}

.rd .rd-rating-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--rd-accent-line);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(253, 176, 193, 0.14), transparent 55%),
        var(--rd-surface-2);
    color: var(--rd-text);
    transition: border-color 0.15s ease;
}

.rd .rd-rating-hero:hover {
    border-color: var(--rd-accent);
}

.rd .rd-rating-hero-title {
    margin: 4px 0 0;
    font-size: 30px;
    font-weight: 800;
}

.rd .rd-rating-hero-text {
    color: var(--rd-muted);
    font-size: 15px;
}

.rd .rd-rating-hero-link {
    margin-top: 6px;
    color: var(--rd-accent);
    font-weight: 700;
    font-size: 15px;
}

.rd .rd-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.rd .rd-badge--muted {
    background: var(--rd-accent-soft);
    color: var(--rd-accent);
}

.rd .rd-rank-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.rd .rd-rank-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
    color: var(--rd-text);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rd .rd-rank-tile:hover {
    background: var(--rd-surface-2);
    border-color: rgba(255, 255, 255, 0.14);
}

.rd .rd-rank-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.rd .rd-rank-name small {
    font-size: 12px;
    font-weight: 400;
    color: var(--rd-faint);
}

/* ---------- Рейтинг: страница топа ---------- */
.rd .page-content--rating .station-rating-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: -20px 0 28px;
    padding: 0;
    border: 0;
    background: none;
}

.rd .page-content--rating .station-rating-heading p {
    margin: 0;
    color: var(--rd-muted);
    font-size: 16px;
}

.rd .station-rating-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rd .station-rating-item {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 44px 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: -16px 0 0;
    padding: 12px 20px;
    border: 1px solid var(--rd-line);
    border-top-color: transparent;
    border-radius: 0;
    background: var(--rd-surface);
    box-shadow: none;
    animation: none;
    transform: none;
}

.rd .station-rating-item::before,
.rd .station-rating-item::after {
    display: none;
}

.rd .station-rating-item + .station-rating-item {
    border-top: 1px solid var(--rd-line);
}

.rd .station-rating-item:nth-child(4) {
    margin-top: 24px;
    border-top: 1px solid var(--rd-line);
    border-radius: 20px 20px 0 0;
}

.rd .station-rating-item:last-child {
    border-radius: 0 0 20px 20px;
}

.rd .station-rating-item:nth-child(4):last-child {
    border-radius: 20px;
}

.rd .station-rating-item:hover {
    background: var(--rd-surface-2);
    box-shadow: none;
    animation: none;
    transform: none;
}

.rd .station-rating-position {
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--rd-accent);
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
    -webkit-text-fill-color: currentColor;
}

.rd .station-rating-logo-link,
.rd .page-content .station-rating-logo-link {
    display: block;
    width: auto;
    height: auto;
}

.rd .station-rating-logo-frame {
    display: block;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--rd-surface-3);
    box-shadow: none;
}

.rd .station-rating-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.rd .station-rating-meta {
    text-align: left;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 4px 20px;
    min-width: 0;
}

.rd .station-rating-meta h3,
.rd .station-rating-meta h3 a,
.rd .station-rating-detail,
.rd .station-rating-detail span {
    white-space: normal;
    overflow-wrap: break-word;
    min-width: 0;
}

.rd .station-rating-meta h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.rd .page-content .station-rating-meta h3 a {
    color: var(--rd-text);
    text-decoration: none;
}

.rd .page-content .station-rating-meta h3 a:hover {
    color: var(--rd-accent);
}

.rd .station-rating-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin: 0;
    color: var(--rd-muted);
    font-size: 14px;
}

.rd .station-rating-detail {
    display: inline;
    gap: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--rd-muted);
    font-size: 14px;
}

.rd .station-rating-detail svg {
    display: none;
}

.rd .station-rating-detail + .station-rating-detail:last-child::before {
    content: "";
}

.rd .station-rating-actions {
    margin: 0;
}

.rd .station-rating-play {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    color: var(--rd-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    animation: none;
}

.rd .station-rating-play svg {
    width: 20px;
    height: 20px;
}

.rd .station-rating-play svg path,
.rd .station-rating-play svg rect {
    fill: currentColor;
}

.rd .station-rating-play:hover,
.rd .station-rating-stop:not(.hidden) {
    background: var(--rd-accent);
    border-color: var(--rd-accent);
    color: var(--rd-accent-ink);
    animation: none;
    box-shadow: none;
}

/* Топ-3 — карточки */
.rd .station-rating-item:nth-child(-n+3) {
    grid-column: auto;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas:
        "pos pos act"
        "logo meta meta";
    align-items: center;
    row-gap: 14px;
    margin: 0;
    padding: 20px 22px 22px;
    border: 1px solid var(--rd-line);
    border-radius: 20px;
    background: var(--rd-surface);
}

.rd .station-rating-item:first-child {
    border-color: var(--rd-accent-line);
    background: var(--rd-surface-2);
}

.rd .station-rating-item:nth-child(-n+3) .station-rating-position {
    grid-area: pos;
    font-size: 44px;
    line-height: 1;
}

.rd .station-rating-item:nth-child(-n+3) .station-rating-logo-link {
    grid-area: logo;
}

.rd .station-rating-item:nth-child(-n+3) .station-rating-logo-frame {
    width: 72px;
    height: 72px;
    border-radius: 16px;
}

.rd .station-rating-item:nth-child(-n+3) .station-rating-meta {
    grid-area: meta;
    grid-template-columns: minmax(0, 1fr);
}

.rd .station-rating-item:nth-child(-n+3) .station-rating-meta h3 {
    font-size: 19px;
}

.rd .station-rating-item:nth-child(-n+3) .station-rating-details {
    align-items: flex-start;
    text-align: left;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.rd .station-rating-item:nth-child(-n+3) .station-rating-actions {
    grid-area: act;
}

.rd .station-rating-item:nth-child(-n+3) .station-rating-play {
    width: 52px;
    height: 52px;
    border: 0;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
}

.rd .station-rating-empty {
    grid-column: 1 / -1;
    color: var(--rd-muted);
}

/* ---------- УВБ-76: логи ---------- */
.rd .uvb76-range-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
}

.rd .uvb76-range-trigger,
.rd .uvb76-sort-toggle {
    height: 44px;
    padding: 0 16px;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    color: var(--rd-text);
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    animation: none;
}

.rd .uvb76-range-trigger {
    border-color: var(--rd-accent-line);
    background: var(--rd-accent-soft);
}

.rd .uvb76-range-trigger:hover,
.rd .uvb76-range-trigger[aria-expanded="true"],
.rd .uvb76-sort-toggle:hover,
.rd .uvb76-sort-toggle:focus-visible {
    border-color: var(--rd-accent);
    background: var(--rd-accent-soft);
    color: var(--rd-text);
    animation: none;
    box-shadow: none;
}

.rd .uvb76-range-trigger-icon {
    width: 18px;
    height: 18px;
    order: -1;
}

/* Календарь открыт поверх нижнего плеера (у трея z-index 999),
   иначе плеер перекрывает кнопку «Применить» */
.rd .uvb76-range-popover {
    z-index: 1002;
    border-radius: 20px;
    border: 1px solid var(--rd-line-2);
    background: #251a35;
    box-shadow: 0 24px 60px rgba(8, 4, 16, 0.6);
    backdrop-filter: none;
}

.rd .uvb76-range-preset,
.rd .uvb76-range-nav {
    border-radius: 10px;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    color: var(--rd-text);
    animation: none;
    box-shadow: none;
}

.rd .uvb76-range-preset:hover,
.rd .uvb76-range-preset:focus-visible,
.rd .uvb76-range-nav:hover,
.rd .uvb76-range-nav:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--rd-text);
    animation: none;
}

.rd .uvb76-range-preset.is-active {
    background: var(--rd-accent);
    border-color: var(--rd-accent);
    color: var(--rd-accent-ink);
}

.rd .uvb76-range-log-dot,
.rd .uvb76-range-day.has-logs::after {
    background: #5fd4e8;
    box-shadow: none;
}

.rd .uvb76-range-month-title {
    font-family: var(--rd-font);
    font-weight: 700;
    color: var(--rd-text);
}

.rd .uvb76-range-weekday,
.rd .uvb76-range-weekday.is-weekend {
    color: var(--rd-faint);
}

.rd .uvb76-range-day {
    border-radius: 10px;
    color: var(--rd-text);
}

.rd .uvb76-range-day.is-weekend {
    color: var(--rd-text);
}

.rd .uvb76-range-day:hover,
.rd .uvb76-range-day:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    animation: none;
}

.rd .uvb76-range-day.is-in-range {
    background: var(--rd-surface-3);
    color: var(--rd-text);
}

.rd .uvb76-range-day.is-edge {
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
    box-shadow: none;
    animation: none;
}

.rd .uvb76-range-day.is-edge.has-logs::after {
    background: var(--rd-accent-ink);
}

.rd .uvb76-range-footer {
    border-top-color: var(--rd-line);
}

.rd .uvb76-range-inputs input {
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--rd-line-2);
    background: var(--rd-bg);
    color: var(--rd-text);
}

.rd .uvb76-range-apply {
    height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 0;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
    box-shadow: none;
    animation: none;
}

.rd .uvb76-range-apply:hover,
.rd .uvb76-range-apply:focus-visible {
    background: var(--rd-accent-hover);
    color: var(--rd-accent-ink);
    animation: none;
}

.rd .uvb76-log-page-list {
    margin-top: 20px;
    padding: 8px 24px;
    border-radius: 20px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
}

.rd .uvb76-log-page-list li {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rd-line);
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--rd-text);
    overflow-wrap: anywhere;
}

.rd .uvb76-log-page-list li:last-child {
    border-bottom: 0;
}

.rd .uvb76-log-page-list strong {
    font-family: var(--rd-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--rd-muted);
    letter-spacing: 0;
    padding-top: 2px;
}

.rd .uvb76-log-page-empty {
    color: var(--rd-muted);
}

/* Блок логов на странице станции УВБ-76 */
.rd .uvb76-logs-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rd .uvb76-logs-header .rd-panel-title {
    margin: 0;
}

.rd .uvb76-log-calendar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rd .uvb76-log-day,
.rd .uvb76-log-more {
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    color: var(--rd-text);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    animation: none;
}

.rd .uvb76-log-day[hidden],
.rd .uvb76-log-more[hidden] {
    display: none;
}

.rd .uvb76-log-day.is-active {
    background: var(--rd-accent);
    border-color: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
}

.rd .uvb76-log-more {
    border-color: var(--rd-accent-line);
    color: var(--rd-accent);
    font-weight: 600;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .rd .uvb76-log-day:not(.is-active):hover,
    .rd .uvb76-log-more:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--rd-text);
        animation: none;
    }
}

.rd .uvb76-log-row {
    padding: 11px 0;
    border-bottom-color: var(--rd-line);
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
    font-size: 15px;
}

.rd .uvb76-log-row time,
.rd .uvb76-log-separator {
    font-family: var(--rd-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--rd-muted);
}

.rd .uvb76-log-separator {
    margin-right: 10px;
}

.rd .uvb76-log-text {
    color: var(--rd-text);
}

/* ---------- Формы: вход, регистрация, контакты, добавление станции ---------- */
.rd .auth-card,
.rd .contact-card,
.rd .card.auth-card,
.rd .card.contact-card {
    max-width: 560px;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
}

.rd .auth-card h2,
.rd .contact-card h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 800;
}

.rd .auth-form,
.rd .contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rd .auth-form label,
.rd .contact-field,
.rd .contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--rd-muted);
    font-size: 14px;
    font-weight: 500;
}

.rd .page-content input[type="text"],
.rd .page-content input[type="email"],
.rd .page-content input[type="password"],
.rd .page-content input[type="url"],
.rd .page-content input[type="tel"],
.rd .page-content input[type="search"],
.rd .page-content input[type="number"],
.rd .page-content select,
.rd .page-content textarea {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--rd-line-2);
    background: var(--rd-bg);
    color: var(--rd-text);
    font-size: 15px;
    box-shadow: none;
    outline: none;
    transition: border-color 0.15s ease;
}

.rd .page-content textarea {
    min-height: 120px;
    resize: vertical;
}

.rd .page-content input:focus,
.rd .page-content select:focus,
.rd .page-content textarea:focus {
    border-color: var(--rd-accent-line);
    box-shadow: none;
}

.rd .page-content input::placeholder,
.rd .page-content textarea::placeholder {
    color: var(--rd-faint);
}

.rd .auth-form .btn[type="submit"],
.rd .contact-submit,
.rd .contact-form .btn[type="submit"],
.rd form .btn.btn-submit {
    height: 50px;
    margin-top: 6px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-size: 15px;
    font-weight: 700;
    box-shadow: none;
    animation: none;
}

@media (hover: hover) and (pointer: fine) {
    .rd .auth-form .btn[type="submit"]:hover,
    .rd .contact-submit:hover,
    .rd .contact-form .btn[type="submit"]:hover {
        background: var(--rd-accent-hover);
        color: var(--rd-accent-ink);
        border: 0;
    }
}

.rd .auth-terms-text,
.rd .contact-intro,
.rd .contact-direct {
    color: var(--rd-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rd .auth-form .auth-terms-label {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.rd .auth-terms-checkbox {
    accent-color: var(--rd-accent);
    margin-top: 3px;
}

.rd .auth-terms-link,
.rd .contact-email {
    color: var(--rd-accent);
}

.rd .errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #ff8fa7;
    font-size: 13px;
}

.rd .field-optional {
    color: var(--rd-faint);
    font-weight: 400;
}

.rd .stream-add-btn,
.rd .stream-remove-btn {
    border-radius: 12px;
    border: 1px solid var(--rd-line-2);
    background: transparent;
    color: var(--rd-accent);
    animation: none;
}

/* ---------- Информационные страницы ---------- */
.rd .info-page {
    max-width: 820px;
}

.rd .info-page-body {
    color: #e3d9ec;
    font-size: 16px;
    line-height: 1.7;
}

.rd .info-page-body h1 {
    margin: 0 0 24px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--rd-text);
}

.rd .info-page-body h2 {
    margin: 36px 0 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--rd-text);
}

.rd .info-page-body h3 {
    margin: 28px 0 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--rd-text);
}

.rd .info-page-body ul,
.rd .info-page-body ol {
    padding-left: 22px;
}

.rd .info-page-body li + li {
    margin-top: 6px;
}

.rd .info-page-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.rd .info-page-body th,
.rd .info-page-body td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--rd-line);
    text-align: left;
}

/* ---------- 404 ---------- */
.rd .error404-code,
.rd .error404-zero-line {
    color: var(--rd-accent);
    text-shadow: none;
    -webkit-text-fill-color: currentColor;
    animation: none;
}

.rd .error404-title {
    font-weight: 800;
    color: var(--rd-text);
}

.rd .error404-text {
    color: var(--rd-muted);
}

.rd .error404-home,
.rd .error404-actions .btn {
    border-radius: 999px;
    border: 0;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
    animation: none;
    box-shadow: none;
}

/* ---------- «Радио на сайт» ---------- */
.rd .embed-intro {
    color: var(--rd-muted);
    font-size: 16px;
    line-height: 1.6;
}

.rd .embed-settings,
.rd .embed-preview-wrap,
.rd .embed-code-wrap,
.rd .embed-result.card {
    border-radius: 20px;
    border: 1px solid var(--rd-line);
    background: var(--rd-surface);
    box-shadow: none;
}

.rd .embed-setting-title,
.rd .embed-result-title {
    font-weight: 700;
    color: var(--rd-text);
}

.rd .embed-setting-note,
.rd .embed-result-hint,
.rd .embed-preview-label {
    color: var(--rd-muted);
}

.rd .embed-search-input {
    border-radius: 14px;
    border: 1px solid var(--rd-line-2);
    background: var(--rd-surface);
}

.rd .embed-search-icon {
    left: 14px;
    display: inline-flex;
    line-height: 0;
    font-size: 0;
    color: var(--rd-muted);
}

/* Общий стиль полей не должен съедать отступ под иконку и крестик */
.rd .page-content input.embed-search-input {
    height: 46px;
    min-height: 46px;
    padding: 0 44px 0 42px;
    border-radius: 14px;
    background: var(--rd-surface);
}

.rd .embed-search-clear {
    background: rgba(255, 255, 255, 0.08);
}

.rd .embed-search-clear:hover {
    background: rgba(255, 255, 255, 0.14);
}

.rd .embed-radio input:checked + span,
.rd .embed-radio.is-active {
    background: var(--rd-accent);
    border-color: var(--rd-accent);
    color: var(--rd-accent-ink);
    animation: none;
}

.rd .embed-selected-count {
    color: var(--rd-accent);
}

.rd .embed-color-swatch {
    border-radius: 10px;
    border-color: var(--rd-line-2);
}

.rd .embed-range-control input[type="range"],
.rd .embed-width-control input[type="range"] {
    accent-color: var(--rd-accent);
}

/* ---------- УВБ-76: шапка станции ---------- */
.rd .rd-station-hero--uvb .rd-station-logo {
    border-radius: 50%;
}

.rd .station-hero.rd-station-hero--uvb.has-now-playing {
    grid-template-columns: 176px minmax(0, 1fr) minmax(320px, 400px);
}

.rd .rd-uvb-last {
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(253, 176, 193, 0.25);
    background: #1d1430;
}

.rd .rd-uvb-last-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-muted);
}

.rd .rd-uvb-last-label::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rd-dot);
}

.rd .rd-uvb-last-line {
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
    font-size: 18px;
    letter-spacing: 0.5px;
    line-height: 1.45;
    word-spacing: 4px;
    color: var(--rd-text);
    overflow-wrap: anywhere;
}

/* Токены строки лога: позывной, кодовое слово, цифры */
.rd .rd-uvb-prefix {
    color: var(--rd-faint);
}

.rd .rd-uvb-word {
    color: var(--rd-accent);
    font-weight: 700;
}

.rd .rd-uvb-plain {
    color: #ded6e6;
}

/* ---------- УВБ-76: «О станции» | «Логи» ---------- */
.rd .rd-station-layout--uvb .rd-station-col--main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 24px;
}

.rd .rd-panel-link {
    color: var(--rd-accent);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.rd .rd-panel-link:hover {
    color: var(--rd-accent-hover);
}

.rd .uvb76-logs-card .uvb76-log-calendar {
    order: 3;
    flex: 1 1 100%;
}

.rd .uvb76-logs-card .uvb76-log-day {
    border-radius: 999px;
    font-weight: 600;
}

.rd .uvb76-log-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 0;
    border-top: 1px solid var(--rd-line);
}

.rd .uvb76-log-row time {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rd .uvb76-log-text {
    font-size: 16px;
    letter-spacing: 0.5px;
    word-spacing: 4px;
}

.rd .uvb76-log-page-text {
    word-spacing: 4px;
}

/* ---------- Поиск по списку (жанры, страны, города) ---------- */
.rd .rd-list-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 28px;
}

.rd .rd-list-search-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 420px;
    min-width: 0;
    color: var(--rd-muted);
}

.rd .rd-list-search-field > svg {
    position: absolute;
    left: 14px;
    pointer-events: none;
}

.rd .page-content .rd-list-search-field input {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 40px 0 42px;
    border-radius: 14px;
    border: 1px solid var(--rd-line-2);
    background: var(--rd-surface);
    color: var(--rd-text);
    font-size: 15px;
    -webkit-appearance: none;
    appearance: none;
}

.rd .rd-list-search-field input::-webkit-search-cancel-button {
    display: none;
}

.rd .rd-list-search-clear {
    position: absolute;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--rd-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.rd .rd-list-search-clear[hidden] {
    display: none;
}

.rd .rd-list-search-clear:hover {
    background: rgba(255, 255, 255, 0.14);
}

.rd .rd-list-search-count {
    font-size: 13px;
    color: var(--rd-faint);
}

.rd .rd-list-search-empty {
    flex: 1 1 100%;
    margin: 4px 0 0;
    color: var(--rd-muted);
    font-size: 15px;
}

.rd [data-filter-item][hidden],
.rd [data-filter-group][hidden],
.rd .rd-list-search-empty[hidden] {
    display: none !important;
}

/* ---------- Логи УВБ-76: макет страницы ---------- */
.rd .uvb76-range-form {
    margin: 0 0 24px;
}

.rd .uvb76-sort-icon {
    margin-left: 4px;
}

/* Календарь: на всю ширину панели, пресеты колонкой слева */
.rd .uvb76-range-popover:not([hidden]) {
    display: grid;
}

.rd .uvb76-range-popover {
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: auto;
    padding: 0;
    overflow: hidden;
    grid-template-columns: 184px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "presets head"
        "presets legend"
        "presets months"
        "presets footer";
}

.rd .uvb76-range-presets {
    grid-area: presets;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    padding: 20px 12px;
    background: rgba(0, 0, 0, 0.16);
    border-right: 1px solid var(--rd-line);
}

.rd .uvb76-range-preset {
    justify-content: flex-start;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.rd .uvb76-range-preset.is-active {
    font-weight: 700;
}

.rd .uvb76-range-months-head {
    grid-area: head;
    margin: 0;
    padding: 20px 24px 0;
}

.rd .uvb76-range-nav {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rd .uvb76-range-log-legend {
    grid-area: head;
    align-self: center;
    justify-self: center;
    margin: 20px 0 0;
    font-size: 13px;
    color: var(--rd-muted);
}

.rd .uvb76-range-months {
    grid-area: months;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    overflow: visible;
    gap: 24px 28px;
    padding: 4px 24px 0;
}

.rd .uvb76-range-month-title {
    margin: 0 0 12px;
    font-size: 15px;
}

.rd .uvb76-range-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 40px;
    gap: 3px;
    justify-content: stretch;
}

.rd .uvb76-range-weekday {
    font-size: 12px;
}

.rd .uvb76-range-day {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.rd .uvb76-range-day.is-out-of-range,
.rd .uvb76-range-day:disabled {
    color: rgba(244, 238, 248, 0.25);
    background: none;
}

.rd .uvb76-range-footer {
    grid-area: footer;
    margin: 20px 24px 0;
    padding: 18px 0 22px;
}

.rd .uvb76-range-dash {
    color: var(--rd-faint);
}

.rd .uvb76-range-length {
    font-size: 13px;
    color: var(--rd-muted);
}

/* Список: карточка на каждый день */
.rd .uvb76-log-page-list {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rd .uvb76-log-page-list > li.uvb76-log-day-group {
    display: block;
    padding: 18px 24px 6px;
    border: 1px solid var(--rd-line);
    border-radius: 20px;
    background: var(--rd-surface);
    font-family: var(--rd-font);
    letter-spacing: 0;
}

.rd .uvb76-log-day-title {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rd-line);
    font-size: 18px;
    font-weight: 800;
    color: var(--rd-text);
}

.rd .uvb76-log-group-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rd .uvb76-log-group-items > li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--rd-line);
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
    font-size: 16px;
    letter-spacing: 0.5px;
    overflow-wrap: anywhere;
}

.rd .uvb76-log-group-items > li:last-child {
    border-bottom: 0;
}

.rd .uvb76-log-group-items strong {
    font-family: var(--rd-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--rd-muted);
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

/* =====================================================================
   Адаптив
   ===================================================================== */
@media (min-width: 2200px) {
    .rd .rd-top-grid,
    .rd .rd-rank-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .rd .rd-list-card--wide {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .rd .rd-station-layout {
        grid-template-columns: minmax(0, 1fr) 440px;
    }

    .rd .rd-similar .trending-strip .station-unified-card {
        flex-basis: calc((100% - 112px) / 8);
    }

    .rd .trending-slider--compact .trending-strip .station-unified-card {
        flex-basis: calc((100% - 48px) / 5);
    }
}

@media (max-width: 1320px) {
    /* Шапка станции: «Сейчас в эфире» уходит под основной блок */
    .rd .station-hero.rd-station-hero.has-now-playing {
        grid-template-columns: 176px minmax(0, 1fr);
    }

    .rd .rd-station-hero .rd-now-playing,
    .rd .rd-station-hero .rd-uvb-last {
        grid-column: 1 / -1;
    }

    .rd .rd-now-playing .station-track-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .rd .rd-now-playing .station-track-cover-wrap {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .rd .rd-station-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .rd .rd-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 1180px) {
    .rd .rd-station-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd .rd-station-layout--uvb .rd-station-col--main {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd .music-grid-home,
    .rd .music-grid--stations,
    .rd .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .rd .rd-top-grid,
    .rd .rd-rank-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rd .rd-list-card--wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rd .station-rating-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd .station-rating-item:nth-child(-n+3) {
        grid-template-columns: 44px 64px minmax(0, 1fr) auto;
        grid-template-areas: "pos logo meta act";
        column-gap: 16px;
        padding: 16px 20px;
    }

    .rd .station-rating-item:nth-child(-n+3) .station-rating-position {
        font-size: 32px;
    }

    .rd .station-rating-item:nth-child(-n+3) .station-rating-logo-frame {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 1180px) {
    .rd .app-main {
        padding: 0 24px;
    }

    .rd .player-tray {
        padding: 0 24px;
    }
}

@media (max-width: 980px) {
    .rd .app-shell {
        grid-template-columns: 1fr;
    }

    .rd .app-main {
        padding: 0 16px;
    }

    .rd .app-sidebar {
        background: var(--rd-sidebar);
        padding: 24px 16px;
    }

    .rd .topbar {
        padding-top: 0;
    }

    .rd .mobile-nav-bar {
        margin: 0 -16px 12px;
        padding: 12px 16px;
        background: rgba(24, 15, 35, 0.92);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .rd .mobile-nav-toggle,
    .rd .mobile-nav-auth > .sleep-timer-btn,
    .rd .mobile-auth-icon-link {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        border-radius: 12px;
        border: 1px solid var(--rd-line-2);
        background: transparent;
        color: var(--rd-text);
        justify-content: center;
    }

    .rd .mobile-auth-icon-link .rd-icon,
    .rd .mobile-nav-auth .rd-icon {
        display: block;
        color: var(--rd-text);
    }

    .rd .mobile-nav-brand {
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .rd .mobile-nav-brand .brand-lockup--singleline {
        gap: 10px;
    }

    .rd .mobile-nav-brand .brand-orbit {
        width: 32px;
    }

    .rd .mobile-nav-brand .brand-wordmark {
        gap: 8px;
    }

    .rd .mobile-nav-brand .brand-dot {
        width: 10px;
        height: 10px;
    }

    .rd .mobile-nav-brand .brand-main {
        font-size: 22px;
    }

    /* Кнопка «наверх» справа: слева она наезжала на текст и ссылки футера */
    .rd .scroll-top-btn {
        left: auto;
        right: 14px;
    }


    .rd .mobile-nav-auth {
        margin-left: 0;
    }

    .rd .topbar-search-row {
        margin-bottom: 20px;
    }

    .rd .topbar-search {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }

    .rd .topbar-title,
    .rd .page-content > h1 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .rd .page-head {
        margin-bottom: 24px;
    }

    .rd .page-head h1,
    .rd .page-head .page-head-title {
        font-size: 30px;
    }

    .rd .page-head .listing-random-btn {
        width: 100%;
        justify-content: center;
    }

    .rd .side-nav-submenu {
        left: auto;
        top: auto;
        max-height: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
    }

    .rd .player-tray {
        left: 0;
        bottom: 0;
        padding: 0 10px 10px;
    }

    .rd .tray-go-icon,
    .rd .tray-close-btn {
        display: none;
    }

    .rd .player-tray-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 10px;
        border-radius: 18px;
        gap: 10px;
    }

    .rd .page-content {
        padding-bottom: 40px;
    }

    body.rd:has(#global-player-tray:not(.hidden)) .page-content {
        padding-bottom: 110px;
    }

    /* Фильтры на мобильных: кнопка-переключатель + раскрывающаяся панель */
    .rd .home-filters,
    .rd .home-filters.mobile-filters-ready {
        padding: 0;
        border: 0;
        background: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .rd .mobile-filters-toggle {
        display: flex;
        height: 46px;
        min-height: 46px;
        padding: 0 14px;
        border-radius: 14px;
        border: 1px solid var(--rd-line-2);
        background: var(--rd-surface);
        color: var(--rd-text);
        font-weight: 600;
        font-size: 14px;
    }

    .rd .mobile-filters-toggle-icon {
        color: var(--rd-accent);
    }

    .rd .mobile-filters-count {
        background: var(--rd-accent);
        color: var(--rd-accent-ink);
    }

    .rd .mobile-filters-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
    }

    .rd .mobile-filters-open .mobile-filters-panel {
        max-height: 1200px;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        padding: 12px;
        border-radius: 16px;
        border: 1px solid var(--rd-line);
        background: var(--rd-surface);
    }

    .rd .home-filter-sort {
        margin-right: 0;
    }

    .rd .home-filter-sort::after {
        display: none;
    }

    .rd .home-filter-sort .sidebar-sort-item {
        flex: 1 1 0;
    }

    .rd .home-filter-sort .sidebar-sort-item span {
        width: 100%;
        justify-content: center;
        padding: 0 6px;
        font-size: 13px;
    }

    .rd .home-filter-dropdown[open] .sidebar-filters-list {
        position: static;
        box-shadow: none;
        border: 0;
        background: none;
        min-width: 0;
        padding: 4px 4px 8px;
    }

    .rd .home-filter-actions {
        margin-left: 0;
    }

    .rd .home-filter-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .rd .home-filters .listing-random-btn {
        order: 0;
        width: 100%;
        justify-content: center;
    }

    .rd .rd-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .rd .rd-station-layout {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

    .rd .station-rating-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd .station-rating-item:nth-child(-n+3) {
        grid-template-columns: 36px 56px minmax(0, 1fr) auto;
        grid-template-areas: "pos logo meta act";
        column-gap: 12px;
        padding: 14px 16px;
    }

    .rd .station-rating-item:nth-child(-n+3) .station-rating-position {
        font-size: 28px;
    }

    .rd .station-rating-item:nth-child(-n+3) .station-rating-logo-frame {
        width: 56px;
        height: 56px;
    }

    .rd .station-rating-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd .station-hero.rd-station-hero,
    .rd .station-hero.rd-station-hero.has-now-playing {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .rd .rd-station-hero .rd-station-logo {
        width: 120px;
        height: 120px;
        align-self: start;
    }

    .rd .rd-station-hero .rd-now-playing {
        grid-column: 1 / -1;
    }

    .rd .rd-station-title {
        font-size: 30px;
    }

    .rd .trending-slider--compact .trending-strip {
        flex-direction: column;
        overflow: visible;
    }

    .rd .trending-slider--compact .trending-strip .station-unified-card {
        flex: 0 0 auto;
        min-width: 0;
        width: 100%;
    }

    .rd .trending-slider--compact .trending-arrow {
        display: none;
    }

    .rd .trending-slider--compact .trending-strip > .station-unified-card:nth-child(n+6) {
        display: none;
    }

    .rd .trending-slider--compact .station-unified-actions {
        opacity: 1;
    }

    .rd .site-footer {
        padding-bottom: 24px;
    }
}

@media (max-width: 640px) {
    .rd .topbar,
    .rd .page-content,
    .rd .site-footer {
        padding-left: 0;
        padding-right: 0;
    }

    .rd .music-grid-home,
    .rd .music-grid--stations,
    .rd .music-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .rd .section-title,
    .rd .section-title--home {
        font-size: 20px;
    }

    .rd .section-row--home {
        justify-content: space-between;
    }

    .rd .station-unified-actions .btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .rd .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd .footer-legal-link {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Трей на телефоне: одна строка, название не ломается по буквам */
    .rd .player-tray-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 8px;
        gap: 8px;
    }

    .rd .tray-station-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 0;
    }

    .rd .tray-art {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .rd .player-tray-inner .tray-meta-text strong,
    .rd .player-tray-inner:has(.tray-recognition-btn) .tray-meta-text strong {
        white-space: nowrap;
        font-size: 14px;
    }

    .rd .tray-center-controls {
        gap: 6px;
    }

    .rd .player-tray {
        --rd-tray-btn: 40px;
    }

    .rd .tray-right-controls {
        gap: 6px;
    }



    .rd .rd-genre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .rd .rd-genre-tile {
        padding: 12px;
        gap: 10px;
    }

    .rd .rd-genre-name {
        white-space: normal;
        font-size: 14px;
    }

    .rd .rd-list-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd .station-hero.rd-station-hero,
    .rd .station-hero.rd-station-hero.has-now-playing {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
        padding: 20px 16px;
    }

    .rd .rd-station-hero .rd-station-logo {
        width: 148px;
        height: 148px;
        align-self: center;
    }

    .rd .rd-station-main {
        align-items: center;
        width: 100%;
    }

    .rd .rd-station-chips,
    .rd .station-detail-mini-player {
        justify-content: center;
    }

    .rd .rd-station-hero .rd-now-playing,
    .rd .rd-station-hero .rd-uvb-last {
        width: 100%;
        text-align: left;
    }

    .rd .rd-uvb-last-line {
        font-size: 15px;
        letter-spacing: 0;
        word-spacing: 2px;
    }

    .rd .rd-uvb-last {
        padding: 14px 16px;
    }

    .rd .rd-station-title {
        font-size: 28px;
    }

    .rd .info-page-body h1 {
        font-size: 28px;
    }

    .rd .info-page-body h2 {
        font-size: 21px;
    }

    .rd .auth-card,
    .rd .contact-card,
    .rd .card.auth-card,
    .rd .card.contact-card {
        padding: 20px;
    }

    .rd .rd-playlist-hero {
        align-items: flex-start;
        gap: 14px;
    }

    .rd .rd-playlist-logo {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .rd .rd-playlist-hero h1 {
        font-size: 24px;
    }

    .rd .rd-hour-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd .rd-top-grid,
    .rd .rd-rank-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd .rd-list-search-field {
        flex-basis: 100%;
    }

    .rd .rd-list-card--wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd .station-rating-item {
        grid-template-columns: 30px 44px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 10px 14px;
    }

    .rd .station-rating-logo-frame {
        width: 44px;
        height: 44px;
    }

    .rd .uvb76-log-page-list {
        padding: 4px 16px;
    }

    .rd .uvb76-log-page-list > li.uvb76-log-day-group {
        padding: 14px 14px 4px;
    }

    .rd .uvb76-log-group-items > li {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 8px;
        font-size: 13px;
        letter-spacing: 0;
    }

    .rd .uvb76-log-group-items .uvb76-log-page-text {
        word-spacing: 1px;
    }

    .rd .uvb76-log-group-items strong {
        font-size: 13px;
    }

    .rd .uvb76-range-popover {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "presets"
            "head"
            "legend"
            "months"
            "footer";
    }

    .rd .uvb76-range-presets {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--rd-line);
    }

    .rd .uvb76-range-preset {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 36px;
        border: 1px solid var(--rd-line-2);
    }

    .rd .uvb76-range-months-head,
    .rd .uvb76-range-months {
        padding-left: 14px;
        padding-right: 14px;
    }

    .rd .uvb76-range-footer {
        margin: 16px 14px 0;
    }

    .rd .rd-panel {
        padding: 18px;
    }

    .rd .mini-volume {
        width: 96px;
    }

    .rd .rd-similar .trending-strip .station-unified-card {
        flex-basis: 44%;
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .rd .player-tray-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .rd .tray-right-controls {
        display: none;
    }
}

@media (max-width: 350px) {
    .rd .player-tray-inner:has(.tray-recognition-btn:not([hidden])) .tray-station-card {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 6px;
    }

    .rd .player-tray-inner:has(.tray-recognition-btn:not([hidden])) .tray-art {
        display: block;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 380px) {
    .rd .mobile-nav-bar {
        gap: 6px;
        padding-inline: 12px;
    }

    .rd .mobile-nav-auth {
        gap: 4px;
    }

    .rd .mobile-nav-brand .brand-lockup--singleline {
        gap: 5px;
    }

    .rd .mobile-nav-brand .brand-orbit {
        width: 24px;
    }

    .rd .mobile-nav-brand .brand-wordmark {
        gap: 4px;
    }

    .rd .mobile-nav-brand .brand-dot {
        width: 7px;
        height: 7px;
    }

    .rd .mobile-nav-brand .brand-main {
        font-size: 17px;
    }
}
