﻿:root {
    --bg: #180f23;
    --bg-soft: #20182c;
    --bg-card: #241c30;
    --bg-card-2: #2f263b;
    --text: #ecddf9;
    --muted: #c3abc8;
    --line: #5c3f45;
    --primary: #ffb1c3;
    --secondary: #00eefc;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top right, #28173a 0%, var(--bg) 45%, #120a1d 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.page-content p a,
.page-content li a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(255, 177, 195, 0.45);
    text-underline-offset: 3px;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.page-content p a:hover,
.page-content li a:hover {
    color: #ffd1dc;
    text-decoration-color: rgba(255, 209, 220, 0.85);
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    background: linear-gradient(180deg, #1b1130 0%, #160c24 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 120;
    overflow: visible;
}

.brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-lockup--singleline {
    gap: 15px;
}

.brand-orbit {
    width: 44px;
    flex: 0 0 auto;
    display: inline-flex;
}

.brand-orbit--footer {
    width: 36px;
}

.brand-wordmark,
.footer-brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ff2d8e;
    box-shadow: 0 0 14px rgba(255, 45, 142, 0.7);
    flex: 0 0 auto;
}

.brand-dot--footer {
    width: 12px;
    height: 12px;
}

.brand-orbit-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.brand-orbit-mag {
    filter: drop-shadow(0 0 2px #ff2d8e) drop-shadow(0 0 8px rgba(255, 45, 142, 0.75));
}

.brand-orbit-cyan {
    filter: drop-shadow(0 0 2px #33f0ff) drop-shadow(0 0 8px rgba(51, 240, 255, 0.7));
}

.brand-orbit-spin {
    transform-box: view-box;
    transform-origin: 52px 46px;
    animation: brand-orbit-spin 5.5s linear infinite;
}

.brand-orbit-flag {
    transform-box: view-box;
    transform-origin: 75px 100px;
    animation: brand-orbit-flag 1700ms ease-in-out infinite;
}

@keyframes brand-orbit-spin {
    to { transform: rotate(360deg); }
}

@keyframes brand-orbit-flag {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    35% { transform: rotate(9deg) translateX(.4px); }
    70% { transform: rotate(-4deg); }
}

.brand-main {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f3ecff;
    text-shadow: 0 0 18px rgba(255, 45, 142, 0.18);
}

.side-auth {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.side-auth-link,
.side-auth-btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f1dff7;
    font: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.side-auth-link:hover,
.side-auth-btn:hover {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    box-shadow: none;
    animation: cardNeonBorder 2.4s linear infinite;
}

.side-auth-logout-form {
    margin: 0;
}

.side-auth-btn {
    cursor: pointer;
}

.side-nav {
    display: grid;
    gap: 6px;
}

.side-nav-secondary {
    display: grid;
    gap: 6px;
}

.side-nav-link {
    padding: 12px 14px;
    border-radius: 10px;
    color: #f2d9e3;
    border: 1px solid transparent;
}

.side-nav-link:hover {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    padding: 22px 30px 12px;
    position: relative;
}

.topbar-title,
.page-content > h1 {
    margin: 0 0 14px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
}

.breadcrumbs {
    margin: 0 0 16px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.2;
}

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

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

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

.breadcrumbs-sep {
    color: rgba(255, 255, 255, 0.42);
    line-height: 1;
    transform: translateY(1px);
}

.topbar-search #globalSearchInput {
    width: min(760px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 1rem;
    outline: none;
}

.topbar-search input:focus {
    border-color: rgba(255, 177, 195, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 177, 195, 0.15);
}

.page-content {
    flex: 1;
    padding: 0 30px 120px;
}

.section-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    margin: 10px 0 18px;
}

.section-title--home {
    font-size: 1.3rem;
}

.section-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 177, 195, 0.45);
    text-underline-offset: 4px;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.section-link:hover {
    color: #ffd1dc;
    text-decoration-color: rgba(255, 209, 220, 0.85);
}

.section-link--show-all {
    font-size: 0.95rem;
    line-height: 1.2;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.music-grid-trending {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.music-card {
    min-width: 0;
}

.music-art-wrap {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 1 / 1;
}

.music-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station-logo-art {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: rgba(26, 16, 39, 0.92);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.music-art-fallback {
    background:
        radial-gradient(circle at 18% 22%, rgba(0, 238, 252, 0.25), transparent 35%),
        linear-gradient(145deg, #0f0b22 0%, #001321 50%, #131025 100%);
}

.music-card-title {
    margin: 9px 0 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.02rem;
}

.music-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

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

.genre-card {
    min-height: 160px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 65% 10%, rgba(255,255,255,0.25), transparent 30%),
        linear-gradient(135deg, #2b1a44 0%, #4f1934 45%, #203a5e 100%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
}

/* Shared styles for inner pages */
.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
}

.grid {
    display: grid;
    gap: 18px;
}

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

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filters input,
.filters select,
.filters button,
.btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover,
    .filters button:hover {
        border-color: transparent;
        background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
        color: #fff;
        box-shadow: none;
        animation: cardNeonBorder 2.4s linear infinite;
    }
}

@media (hover: none), (pointer: coarse) {
    .btn:active,
    .filters button:active {
        border-color: transparent;
        background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
        color: #fff;
        box-shadow: none;
        animation: cardNeonBorder 2.4s linear infinite;
    }
}

/* Кнопка «Остановить» видна только когда станция играет — это активное
   состояние карточки. Подсвечиваем её неоном постоянно (а не только по :active),
   чтобы было видно, какая станция сейчас в эфире. */
.js-stop-station:not(.hidden) {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    box-shadow: none;
    animation: cardNeonBorder 2.4s linear infinite;
}

/* Пока поток грузится — не показываем неон, только спиннер: кнопка читается
   как "загрузка", а неон включается, когда станция реально в эфире. */
.js-stop-station.is-loading {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: none;
    animation: none;
}

.btn:active,
.filters button:active {
    transform: translateY(1px);
}

.btn:focus-visible,
.filters button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 177, 195, 0.22);
}

.btn-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    pointer-events: none;
}

.btn-icon-wrap svg,
.btn-icon-wrap path,
.btn-icon-wrap rect,
.btn-icon-wrap circle {
    pointer-events: none;
}

/* Состояние прогрузки потока: от нажатия "воспроизвести" до первых байтов.
   Прячем play/stop-иконку и крутим спиннер в стиле сайта. */
@keyframes playerSpin { to { transform: rotate(360deg); } }

.btn.is-loading .btn-icon-wrap > svg {
    display: none;
}

.btn.is-loading .btn-icon-wrap::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 159, 203, 0.3);
    border-top-color: #FF9FCB;
    animation: playerSpin 0.7s linear infinite;
}

.js-play-station,
.js-stop-station,
.mini-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger {
    border-color: rgba(255, 177, 195, 0.7);
    color: var(--primary);
}

.pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.track-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 0;
}

.hidden { display: none !important; }

.station-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}

.station-logo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
}

.station-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.station-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.mini-player {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.mini-time { min-width: 42px; font-weight: 700; }
.mini-volume { width: 140px; }

.station-meta-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.station-hero {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    align-items: start;
}

.station-hero-left {
    display: grid;
    gap: 14px;
}

.station-hero-topline {
    display: block;
    width: fit-content;
}

.station-now-playing-compact {
    min-width: 0;
    width: min(560px, 100%);
    max-width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 12px;
}

.station-now-playing-title {
    margin: 0 0 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.16rem;
    line-height: 1.25;
}

.station-now-playing-text {
    margin: 0;
    color: #e8d7fb;
    line-height: 1.45;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.station-playback-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.4fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 18px;
}

.station-playback-card {
    padding: 10px 12px;
    height: 100%;
}

.station-playback-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.station-playback-header .station-playback-title {
    margin: 0;
}

.station-playback-header .station-playback-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.station-playback-header .station-playback-title a:hover {
    color: #ffd1dc;
    text-decoration: underline;
    text-decoration-color: rgba(255, 209, 220, 0.85);
}

.station-playback-header .station-playback-title a:focus-visible {
    outline: none;
    color: #ffd1dc;
    text-decoration: underline;
    text-decoration-color: rgba(255, 209, 220, 0.85);
}

.station-playback-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.station-playback-links a {
    color: #f2deff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.station-playback-links a:hover {
    color: #ffd1dc;
    text-decoration: underline;
    text-decoration-color: rgba(255, 209, 220, 0.85);
}

.station-playback-links a:focus-visible {
    outline: none;
    color: #ffd1dc;
    text-decoration: underline;
    text-decoration-color: rgba(255, 209, 220, 0.85);
}

.station-playback-title {
    margin: 0 0 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    line-height: 1.2;
}

.station-track-card {
    display: grid;
    gap: 8px;
    align-content: start;
}

.station-track-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.station-track-meta {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding-top: 2px;
}

.station-track-cover-wrap {
    width: 200px;
    height: 200px;
    flex: 0 0 200px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 32px rgba(7, 4, 18, 0.55), 0 0 40px rgba(216, 171, 255, 0.18);
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 177, 195, 0.28), transparent 42%),
        radial-gradient(circle at 72% 12%, rgba(0, 238, 252, 0.24), transparent 42%),
        linear-gradient(150deg, #1b1428 0%, #231638 60%, #2c1f45 100%);
    animation: trackCoverFadeIn 0.45s ease both;
}

.station-track-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.station-track-artist {
    margin: 0;
    color: #f4e7ff;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.station-track-title {
    margin: 0;
    color: #dbc7f2;
    font-size: 1.02rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.uvb76-logs-card {
    margin-bottom: 18px;
    padding: 12px 14px;
}

.uvb76-logs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.uvb76-log-calendar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.uvb76-log-day,
.uvb76-log-more {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #f2deff;
    font: inherit;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    text-decoration: none;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.uvb76-log-more {
    color: var(--primary);
}

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

.uvb76-log-day:focus-visible,
.uvb76-log-day.is-active {
    outline: none;
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.uvb76-log-more:focus-visible {
    outline: none;
    border-color: rgba(255, 177, 195, 0.5);
    background: rgba(255, 177, 195, 0.12);
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .uvb76-log-day:hover,
    .uvb76-log-more:hover {
        border-color: transparent;
        background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
        color: #fff;
        animation: cardNeonBorder 2.4s linear infinite;
    }
}

@media (hover: none), (pointer: coarse) {
    .uvb76-log-day:active,
    .uvb76-log-more:active {
        border-color: transparent;
        background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
        color: #fff;
        animation: cardNeonBorder 2.4s linear infinite;
    }
}

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

.uvb76-log-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 0 2px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    line-height: 1.35;
}

.uvb76-log-row:last-child {
    border-bottom: 0;
}

.uvb76-log-row time {
    color: #f4e7ff;
    font-weight: 800;
    white-space: nowrap;
}

.uvb76-log-separator {
    color: #f4e7ff;
    font-weight: 800;
}

.uvb76-log-text {
    color: #dbc7f2;
    overflow-wrap: anywhere;
}

.uvb76-log-empty {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 640px) {
    .uvb76-logs-header {
        align-items: stretch;
    }

    .uvb76-log-calendar {
        gap: 6px;
    }

    .uvb76-log-day,
    .uvb76-log-more {
        min-height: 32px;
        padding: 7px 9px;
        font-size: 0.9rem;
    }

    .uvb76-log-row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 2px 0;
    }

    .uvb76-log-row time,
    .uvb76-log-separator {
        grid-row: 1;
    }

    .uvb76-log-text {
        grid-column: 1 / -1;
    }
}

@keyframes trackCoverFadeIn {
    from { opacity: 0.2; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

.track-list-wrap {
    overflow: hidden;
    transition: max-height 0.24s ease;
}

.track-list-wrap.is-collapsed {
    position: relative;
}

.track-list-wrap.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 54px;
    background: linear-gradient(to bottom, rgba(36, 28, 48, 0), rgba(36, 28, 48, 0.96));
    pointer-events: none;
}

.station-today-preview {
    max-height: 252px;
}

.station-today-preview .track-list li:last-child {
    opacity: 0.46;
}

.station-hero-right {
    display: grid;
    gap: 20px;
    width: 100%;
    max-width: 760px;
}

.station-about-title {
    margin: 0 0 12px;
    font-size: 1.28rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #f2deff;
}

.station-section-title {
    margin: 0 0 12px;
    font-size: 1.28rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #f2deff;
}

.station-about-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px;
    max-width: 760px;
}

.station-about-text {
    color: #d7c4eb;
    line-height: 1.62;
    font-size: 1rem;
    overflow: hidden;
    transition: max-height 0.24s ease;
}

.station-about-text p {
    margin: 0 0 14px;
}

.station-about-text p:last-child {
    margin-bottom: 0;
}

.station-about-text.is-collapsed {
    position: relative;
}

.station-about-text.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(36, 28, 48, 0), rgba(36, 28, 48, 0.96));
    pointer-events: none;
}

.station-about-toggle {
    margin-top: 14px;
    border: 0;
    background: transparent;
    padding: 0;
    color: #cfb2ff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.station-about-toggle:hover {
    color: #e1cbff;
}

.station-freq-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 14px;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
}

.station-freq-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.station-freq-list-wrap {
    overflow: hidden;
    transition: max-height 0.24s ease;
}

.station-freq-list-wrap.is-collapsed {
    position: relative;
}

.station-freq-list-wrap.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(36, 28, 48, 0), rgba(36, 28, 48, 0.96));
    pointer-events: none;
}

.station-freq-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    width: auto;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.station-freq-city {
    font-weight: 600;
    font-size: 1rem;
    color: #ede2ff;
}

.station-freq-value {
    font-weight: 600;
    font-size: 1rem;
    color: #cab1f6;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .station-freq-list {
        gap: 6px;
    }

    .station-freq-row {
        width: auto;
    }
}

@media (max-width: 420px) {
    .tray-meta-text span {
        display: none;
    }
}

.site-footer {
    border-top: 1px solid rgba(255,255,255,0.12);
    background: rgba(18, 10, 29, 0.95);
    padding: 14px 30px;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-brand-block {
    flex-shrink: 0;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
}

.footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-brand {
    font-family: "Montserrat", sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 0;
    color: #f3ecff;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav-link {
    color: rgba(243, 236, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: color 0.15s;
}

.footer-nav-link:hover {
    color: #fff;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-left: auto;
}

.footer-legal-link {
    color: rgba(243, 236, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: color 0.15s;
}

.footer-legal-link:hover {
    color: rgba(243, 236, 255, 0.75);
}

.site-messages {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.site-message--error {
    background: rgba(255, 45, 100, 0.15);
    border-color: rgba(255, 45, 100, 0.35);
    color: #ffb3c6;
}

.site-message--success {
    background: rgba(0, 229, 150, 0.12);
    border-color: rgba(0, 229, 150, 0.3);
    color: #a0ffd6;
}

.site-message--warning {
    background: rgba(255, 190, 0, 0.12);
    border-color: rgba(255, 190, 0, 0.3);
    color: #ffe599;
}

.footer-copy {
    color: var(--muted);
    margin: 0;
}

.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    box-shadow: none;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn svg {
    display: block;
    animation: upNeonShimmer 2.8s linear infinite;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}

.scroll-top-btn:hover svg {
    filter: drop-shadow(0 0 12px rgba(255, 45, 170, 0.8)) drop-shadow(0 0 4px rgba(0, 229, 255, 0.6));
}

@keyframes upNeonShimmer {
    0%   { filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.6)) hue-rotate(0deg); }
    33%  { filter: drop-shadow(0 0 8px rgba(255, 45, 170, 0.7)) hue-rotate(40deg); }
    66%  { filter: drop-shadow(0 0 6px rgba(255, 122, 217, 0.6)) hue-rotate(20deg); }
    100% { filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.6)) hue-rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-orbit-spin,
    .brand-orbit-flag {
        animation: none !important;
    }
}

.player-tray {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(33, 23, 46, 0.95);
    backdrop-filter: blur(20px);
}

.player-tray-inner {
    margin-left: 260px;
    padding: 10px 30px;
    display: grid;
    grid-template-columns: 1fr minmax(0, 2fr) auto;
    align-items: center;
    gap: 12px;
}

.player-label { margin: 0; color: var(--muted); font-size: 0.9rem; }
#global-player { width: 100%; }
.player-actions { display: flex; gap: 8px; }

@media (max-width: 1180px) {
    .music-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .music-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .player-tray-inner {
        margin-left: 0;
        grid-template-columns: 1fr;
        padding: 10px 16px;
    }
    .station-hero { grid-template-columns: 1fr; }
    .station-playback-grid {
        grid-template-columns: 1fr;
    }
    .station-track-cover-wrap {
        width: 120px;
        height: 120px;
        flex-basis: 120px;
    }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar-title { font-size: 1.45rem; }
}

@media (max-width: 640px) {
    .topbar,
    .page-content,
    .site-footer { padding-left: 16px; padding-right: 16px; }
    .music-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-legal { margin-left: 0; }
    .station-hero-left {
        grid-template-columns: auto 1fr;
        column-gap: 16px;
        row-gap: 12px;
        align-items: start;
    }
    .station-hero-topline {
        grid-column: 1;
        grid-row: 1;
        width: auto;
    }
    .mini-player.station-detail-mini-player {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: center;
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-areas:
            "play heart time"
            "mute vol   vol";
        justify-content: start;
        align-items: center;
        column-gap: 8px;
        row-gap: 10px;
        margin-top: 0;
        min-width: 0;
    }
    .mini-player.station-detail-mini-player .mini-play-btn {
        grid-area: play;
    }
    .mini-player.station-detail-mini-player .station-detail-favorite-form {
        grid-area: heart;
    }
    .mini-player.station-detail-mini-player .mini-time {
        grid-area: time; min-width: 0;
    }
    .mini-player.station-detail-mini-player .mini-mute-btn {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        align-self: center;
        z-index: 1;
    }
    .mini-player.station-detail-mini-player .mini-volume {
        grid-column: 1 / -1;
        grid-row: 2;
        width: auto;
        min-width: 0;
        margin-left: 28px;
    }
    .station-report-btn {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .station-meta-list {
        grid-column: 1 / -1;
        grid-row: 3;
    }
    .station-logo-wrap {
        width: 120px;
        height: 120px;
        flex: 0 0 120px;
    }
    .station-now-playing-compact {
        min-width: 0;
        max-width: 100%;
    }
}

.music-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    justify-content: start;
}

.music-grid--stations {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    justify-content: start;
}

.show-more-wrap {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 28px;
}

.section-row--home {
    width: fit-content;
    max-width: 100%;
    align-items: baseline;
}

.page-content > section + section {
    margin-top: 42px;
}

.section-row--home .section-link--show-all {
    margin-left: auto;
}

@media (max-width: 1180px) {
    .music-grid-home,
    .music-grid--stations { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 980px) {
    .music-grid-home,
    .music-grid--stations { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 640px) {
    .music-grid-home,
    .music-grid--stations { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
}

.station-unified-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    height: 100%;
}

.station-unified-art-wrap {
    position: relative;
}

.station-unified-art-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
}

.station-logo-frame {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
}

.station-unified-card .music-card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    min-height: 2.4em;
}

.station-unified-card .music-card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.station-unified-card .music-meta p {
    margin-top: 4px;
    line-height: 1.25;
}

.station-unified-genres {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-height: 2.5em;
}

.station-unified-genres-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

.station-unified-genres-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: #c99bd8;
}

.station-unified-city,
.station-unified-country {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    min-height: 1.25em;
    max-width: 100%;
    width: 100%;
}

.station-unified-meta-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.station-unified-meta-label {
    color: var(--text);
}

.station-unified-city-icon,
.station-unified-country-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.station-unified-city-icon {
    color: #e5b9ff;
}

.station-unified-country-icon {
    color: #c99bd8;
}

.music-grid > .js-home-station-card {
    display: flex;
}

.music-grid > .js-home-station-card > .station-unified-card {
    width: 100%;
}

.station-unified-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: auto;
}

.station-unified-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.station-unified-actions .btn > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Station rating */
.page-content--rating {
    padding-top: 0;
    margin-top: -18px;
}

.station-rating {
    width: min(100%, 1040px);
    margin: 0;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.station-rating-heading {
    padding: 0 0 20px;
}

.station-rating-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.station-rating-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.station-rating-item {
    position: relative;
    display: grid;
    grid-template-columns: 64px 72px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 18px;
    min-height: 104px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: linear-gradient(110deg, rgba(38, 23, 59, 0.94), rgba(31, 18, 49, 0.96));
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.station-rating-item:hover {
    border-color: rgba(255, 177, 195, 0.2);
}

.station-rating-position {
    color: #ff3f99;
    font-family: "Montserrat", sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 22px rgba(255, 45, 142, 0.2);
}

.station-rating-logo-link,
.station-rating-logo-frame {
    display: block;
    width: 72px;
    height: 72px;
}

.page-content .station-rating-logo-link,
.page-content .station-rating-meta h3 a {
    color: inherit;
    text-decoration: none;
}

.station-rating-logo-frame {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: #130b20;
}

.station-rating-logo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.station-rating-meta {
    min-width: 0;
}

.station-rating-meta h3 {
    margin: 0 0 9px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.08rem;
    line-height: 1.25;
}

.station-rating-meta h3 a:hover {
    color: var(--primary);
    text-decoration: none;
}

.station-rating-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

.station-rating-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.station-rating-detail svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #c99bd8;
}

.station-rating-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 177, 195, 0.24);
    border-radius: 50%;
    color: var(--primary);
    background: rgba(255, 177, 195, 0.08);
    box-shadow: 0 8px 24px rgba(255, 45, 142, 0.08);
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.station-rating-actions {
    display: grid;
    place-items: center;
    width: 54px;
}

.station-rating-actions .station-rating-play {
    grid-area: 1 / 1;
}

.station-rating-play:hover {
    border-color: rgba(255, 177, 195, 0.52);
}

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

.station-rating-play.is-loading svg {
    display: none;
}

.station-rating-play.is-loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 159, 203, 0.25);
    border-top-color: #ff9fcb;
    border-radius: 50%;
    animation: playerSpin 0.7s linear infinite;
}

.station-rating-stop {
    color: #ff7cae;
}

@media (hover: hover) and (pointer: fine) {
    .station-rating-item:hover {
        transform: translateY(-4px);
        border-color: transparent;
        background: rgba(255, 255, 255, 0.085);
        animation: cardNeonBorder 2.4s linear infinite;
    }

    .station-rating-item:hover .station-rating-logo-frame {
        transform: scale(1.02);
        border-color: rgba(255, 177, 195, 0.36);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
    }

    .station-rating-item:hover .station-rating-meta h3 a {
        color: #ffe7f0;
    }

    .station-rating-play:hover {
        transform: scale(1.06);
        border-color: transparent;
        color: #fff;
        background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
        animation: cardNeonBorder 2.4s linear infinite;
    }
}

@media (hover: none), (pointer: coarse) {
    .station-rating-item:active,
    .station-rating-play:active {
        border-color: transparent;
        background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
        animation: cardNeonBorder 2.4s linear infinite;
    }
}

.station-rating-empty {
    padding: 36px 20px;
    border-radius: 18px;
    color: var(--muted);
    background: var(--bg-card);
    text-align: center;
}

@media (max-width: 640px) {
    .page-content--rating {
        padding-top: 0;
        margin-top: -10px;
    }

    .station-rating {
        padding: 7px 0;
    }

    .station-rating-heading {
        padding: 0 0 16px;
    }

    .station-rating-heading p {
        display: none;
    }

    .station-rating-item {
        grid-template-columns: 38px 54px minmax(0, 1fr) 42px;
        gap: 10px;
        min-height: 80px;
        padding: 11px 10px;
        border-radius: 14px;
    }

    .station-rating-position {
        font-size: 1.65rem;
    }

    .station-rating-logo-link,
    .station-rating-logo-frame {
        width: 54px;
        height: 54px;
    }

    .station-rating-logo-frame {
        border-radius: 12px;
    }

    .station-rating-meta h3 {
        margin-bottom: 6px;
        font-size: 0.94rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .station-rating-details {
        display: grid;
        gap: 3px;
        font-size: 0.76rem;
    }

    .station-rating-detail span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .station-rating-detail svg {
        width: 13px;
        height: 13px;
    }

    .station-rating-play {
        width: 40px;
        height: 40px;
    }

    .station-rating-actions {
        width: 42px;
    }

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

@media (max-width: 390px) {
    .station-rating-item {
        grid-template-columns: 32px 48px minmax(0, 1fr) 38px;
        gap: 8px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .station-rating-logo-link,
    .station-rating-logo-frame {
        width: 48px;
        height: 48px;
    }

    .station-rating-play {
        width: 36px;
        height: 36px;
    }

    .station-rating-actions {
        width: 38px;
    }
}

.player-tray {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(36, 28, 48, 0.88);
    backdrop-filter: blur(24px);
}

.player-tray-inner {
    margin-left: 260px;
    padding: 10px 22px;
    display: grid;
    grid-template-columns: 260px auto 1fr auto;
    align-items: center;
    gap: 18px;
    position: relative;
}

.tray-station-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 8px;
}

.tray-art {
    width: 56px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255, 177, 195, 0.6) 0%, rgba(255, 177, 195, 0.05) 45%, rgba(0,0,0,0.2) 100%);
}

.tray-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tray-meta-text strong {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

.tray-meta-text span {
    color: var(--muted);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-dot {
    flex-shrink: 0;
    animation: live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.tray-center-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.tray-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 9999px;
    border: 0;
    background: var(--primary);
    color: #3f0019;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.tray-play-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    filter: brightness(1.06);
}

.tray-play-btn.is-loading {
    cursor: progress;
}

.tray-play-btn.is-loading::after {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid rgba(63, 0, 25, 0.25);
    border-top-color: #3f0019;
    animation: playerSpin 0.7s linear infinite;
}

.tray-icon-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem;
    transition: color 0.16s ease, transform 0.16s ease;
}

.tray-icon-btn:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.tray-right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.player-volume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.tray-vol-icon {
    color: var(--muted);
}

#tray-volume {
    width: 120px;
    accent-color: var(--primary);
}

#global-player { display: none; }

@media (max-width: 980px) {
    .player-tray-inner {
        margin-left: 0;
        grid-template-columns: 1fr;
        padding: 10px 16px;
    }

    .tray-right-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Tray layout adjustments v3 */
.player-tray {
    left: 260px;
    right: 0;
    background: rgba(36, 28, 48, 0.66);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.player-tray-inner {
    margin-left: 0;
    width: min(100%, 100%);
    padding: 10px 30px;
    grid-template-columns: 260px auto 1fr auto;
}

.tray-right-controls {
    gap: 8px;
}

.tray-go-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.tray-go-icon:hover {
    border-color: rgba(255, 177, 195, 0.6);
    color: var(--primary);
}

.tray-close-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    padding: 0;
}

.tray-close-btn:hover {
    border-color: rgba(255, 177, 195, 0.6);
    color: var(--primary);
}

.tray-close-btn img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

@media (max-width: 980px) {
    .player-tray {
        left: 0;
    }

    .player-tray-inner {
        padding: 10px 16px;
    }
}

.search-wrap {
    position: relative;
    width: 100%;
}

.topbar-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.topbar-search {
    position: relative;
    width: min(820px, 100%);
}

.search-fake-field {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.9rem;
    pointer-events: none;
}

.topbar-search #globalSearchInput {
    width: 100%;
    padding-left: 72px;
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255, 177, 195, 0.2);
    background: rgba(56, 43, 77, 0.75);
    color: var(--text);
}

#globalSearchInput::placeholder {
    color: rgba(214, 184, 203, 0.85);
}

.search-suggest {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    border: 1px solid rgba(255, 177, 195, 0.35);
    background: linear-gradient(180deg, rgba(61, 45, 82, 0.96) 0%, rgba(36, 25, 55, 0.96) 100%);
    backdrop-filter: blur(18px);
    border-radius: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: min(52vh, 360px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 177, 195, 0.08) inset;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 177, 195, 0.55) rgba(36, 25, 55, 0.35);
}

.search-suggest::-webkit-scrollbar {
    width: 10px;
}

.search-suggest::-webkit-scrollbar-track {
    background: rgba(36, 25, 55, 0.35);
}

.search-suggest::-webkit-scrollbar-thumb {
    background: rgba(255, 177, 195, 0.55);
    border-radius: 999px;
    border: 2px solid rgba(36, 25, 55, 0.35);
}

.search-suggest-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-suggest-item:last-child {
    border-bottom: 0;
}

.search-suggest-item:hover {
    background: rgba(255, 177, 195, 0.16);
}

.search-suggest-label {
    color: var(--text);
}

.search-suggest-type {
    color: var(--muted);
    font-size: 0.85rem;
}

.trending-slider {
    position: relative;
    margin-bottom: 24px;
}

.trending-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 44px;
    margin-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trending-strip .station-unified-card {
    flex: 0 0 170px;
    width: 170px;
    height: auto;
    align-self: stretch;
}

.trending-strip .station-unified-card:hover {
    transform: none;
}

.trending-strip::-webkit-scrollbar {
    display: none;
}

.trending-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 177, 195, 0.45);
    background: rgba(40, 24, 57, 0.82);
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.trending-arrow:hover {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.trending-arrow-left {
    left: 4px;
}

.trending-arrow-right {
    right: 4px;
}

.trending-arrow.disabled {
    opacity: 0.32;
    pointer-events: none;
}

@media (max-width: 1180px) {
    .trending-strip .station-unified-card {
        flex-basis: 160px;
        width: 160px;
    }
}

@media (max-width: 980px) {
    .trending-strip .station-unified-card {
        flex-basis: 150px;
        width: 150px;
    }
}

@media (max-width: 640px) {
    .trending-strip .station-unified-card {
        flex-basis: 156px;
        width: 156px;
    }
}
.sidebar-extra {
    margin-top: 18px;
}

.sidebar-filters {
    background: rgba(58, 49, 70, 0.42);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(172, 135, 143, 0.14);
    border-radius: 22px;
    padding: 16px 14px;
}

.sidebar-filters-head {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-filters-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.sidebar-filters-group {
    margin-bottom: 16px;
}

.sidebar-filters-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.sidebar-dropdown {
    border: 1px solid rgba(172, 135, 143, 0.2);
    border-radius: 12px;
    background: rgba(24, 15, 35, 0.28);
}

.sidebar-dropdown-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    cursor: pointer;
}

.sidebar-dropdown-summary::-webkit-details-marker {
    display: none;
}

.sidebar-dropdown-summary::after {
    content: "▾";
    color: var(--muted);
    font-size: 0.85rem;
    transition: transform 0.15s ease;
}

.sidebar-dropdown[open] .sidebar-dropdown-summary::after {
    transform: rotate(180deg);
}

.sidebar-dropdown-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 177, 195, 0.35);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-filters-list {
    display: grid;
    gap: 8px;
    max-height: 184px;
    overflow-y: auto;
    padding: 2px 10px 10px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 177, 195, 0.5) rgba(24, 15, 35, 0.35);
}

.sidebar-filters-list--locations {
    max-height: 184px;
}

.sidebar-filters-list::-webkit-scrollbar {
    width: 8px;
}

.sidebar-filters-list::-webkit-scrollbar-track {
    background: rgba(24, 15, 35, 0.35);
    border-radius: 9999px;
}

.sidebar-filters-list::-webkit-scrollbar-thumb {
    background: rgba(255, 177, 195, 0.5);
    border-radius: 9999px;
}

.sidebar-check {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    cursor: pointer;
    min-height: 24px;
    font-size: 0.82rem;
    line-height: 1.35;
}

.sidebar-check input {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1px solid rgba(172, 135, 143, 0.55);
    background: rgba(24, 15, 35, 0.45);
    position: relative;
    margin: 0;
}

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

.sidebar-check input:checked::after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -56%);
    color: #3f0019;
    font-size: 0.72rem;
    font-weight: 700;
}

.sidebar-select {
    width: 100%;
    background: rgba(24, 15, 35, 0.55);
    border: 1px solid rgba(172, 135, 143, 0.3);
    color: var(--text);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.sidebar-sort-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-sort-item {
    display: inline-flex;
    cursor: pointer;
    min-width: 72px;
}

.sidebar-sort-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sidebar-sort-item span {
    width: 100%;
    text-align: center;
    padding: 7px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(172, 135, 143, 0.28);
    color: var(--muted);
    font-size: 0.8rem;
    transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.sidebar-sort-item:hover span {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.sidebar-sort-item input:checked + span {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    animation: cardNeonBorder 2.4s linear infinite;
}

.sidebar-apply-btn {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.sidebar-filter-actions {
    display: grid;
    gap: 6px;
}

.sidebar-reset-btn {
    width: 100%;
    text-align: center;
    border-color: rgba(255, 177, 195, 0.5);
    color: var(--primary);
    padding: 8px 10px;
    font-size: 0.9rem;
}

.home-filters {
    display: block;
    margin: 2px 0 14px;
}

.home-filters.mobile-filters-ready {
    display: inline-grid;
    grid-template-columns: minmax(0, 280px) max-content;
    gap: 14px;
    align-items: start;
}

.mobile-filters-toggle {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 177, 195, 0.32);
    border-radius: 14px;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.08), rgba(255, 45, 170, 0.12));
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.listing-random-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    min-height: 46px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 177, 195, 0.32);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.listing-random-btn-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.listing-random-btn-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.listing-random-btn.is-loading {
    pointer-events: none;
    opacity: 0.78;
}

.listing-random-btn.is-loading .listing-random-btn-icon {
    animation: spin 0.8s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
    .listing-random-btn:hover {
        border-color: transparent;
        background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
        color: #fff;
        box-shadow: none;
        animation: cardNeonBorder 2.4s linear infinite;
    }
}

@media (hover: none), (pointer: coarse) {
    .listing-random-btn:active {
        border-color: transparent;
        background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
        color: #fff;
        box-shadow: none;
        animation: cardNeonBorder 2.4s linear infinite;
    }
}

.listing-random-btn:active {
    transform: translateY(1px);
}

.listing-random-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 177, 195, 0.22);
}

.mobile-filters-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.mobile-filters-toggle-icon {
    width: 21px;
    height: 21px;
    color: var(--primary);
}

.mobile-filters-count {
    min-width: 23px;
    height: 23px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #3f0019;
    font-size: 0.75rem;
}

.mobile-filters-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.mobile-filters-open .mobile-filters-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.mobile-filters-panel {
    grid-column: 1 / -1;
    max-height: 0;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.28s ease, opacity 0.18s ease, visibility 0.28s;
}

.mobile-filters-open .mobile-filters-panel {
    max-height: 900px;
    overflow: visible;
    opacity: 1;
    visibility: visible;
}

.mobile-filters-panel > * {
    min-height: 0;
}

.home-filter-dropdown {
    min-width: 220px;
    max-width: 280px;
    flex: 0 0 auto;
}

.home-filter-dropdown .sidebar-dropdown {
    height: auto;
}

.home-filter-dropdown .sidebar-dropdown-summary {
    padding: 8px 14px;
    border-radius: 12px;
    gap: 10px;
    font-size: 0.88rem;
}

.home-filter-dropdown .sidebar-filters-list {
    max-height: 184px;
}

.home-filter-dropdown .sidebar-filters-title {
    margin-bottom: 0;
    font-size: 0.83rem;
    letter-spacing: 0.11em;
}

.home-filter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.home-filter-sort .sidebar-sort-item {
    min-width: 0;
}

.home-filter-sort .sidebar-sort-item span {
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    border-radius: 999px;
}

.home-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-filter-actions .btn {
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.88rem;
}

.home-filter-actions .sidebar-reset-btn {
    width: auto;
}

@media (max-width: 980px) {
    .home-filter-dropdown {
        min-width: 200px;
    }

    .home-filter-actions {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .home-filters.mobile-filters-ready {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .listing-random-btn {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        white-space: normal;
    }

    .mobile-filters-panel {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .home-filter-dropdown,
    .home-filter-sort,
    .home-filter-actions {
        width: 100%;
    }

    .home-filter-sort .sidebar-sort-item {
        flex: 1 1 calc(33.333% - 6px);
    }

    .home-filter-sort .sidebar-sort-item span {
        width: 100%;
        padding: 8px 10px;
        font-size: 0.84rem;
    }

    .home-filter-actions .btn {
        flex: 1 1 auto;
        padding: 8px 14px;
    }
}

@media (max-width: 1360px), (max-height: 860px) {
    .app-sidebar {
        padding: 18px 12px;
    }

    .side-nav-link {
        padding: 10px 12px;
    }

    .sidebar-extra {
        margin-top: 12px;
    }

    .sidebar-filters {
        border-radius: 18px;
        padding: 12px 10px;
    }

    .sidebar-filters-head {
        margin-bottom: 12px;
        font-size: 0.94rem;
    }

    .sidebar-filters-group {
        margin-bottom: 12px;
    }

    .sidebar-filters-title {
        margin-bottom: 0;
        font-size: 0.74rem;
    }

    .sidebar-check {
        min-height: 22px;
        font-size: 0.78rem;
        gap: 8px;
    }

    .sidebar-check input {
        width: 14px;
        height: 14px;
    }

    .sidebar-filters-list {
        gap: 6px;
        max-height: 170px;
        padding: 2px 8px 8px;
    }

    .sidebar-filters-list--locations {
        max-height: 170px;
    }

    .sidebar-sort-item span {
        padding: 6px 8px;
        font-size: 0.76rem;
    }

    .sidebar-apply-btn,
    .sidebar-reset-btn {
        padding: 7px 8px;
        font-size: 0.82rem;
    }
}

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

.taxonomy-tile {
    position: relative;
    min-height: 136px;
    border-radius: 14px;
    border: 1px solid rgba(190, 150, 245, 0.22);
    background:
        radial-gradient(circle at 64% 14%, rgba(255, 223, 240, 0.28) 0%, rgba(255, 223, 240, 0) 30%),
        linear-gradient(110deg, #2d1749 0%, #5b173d 52%, #1f3f67 100%);
    box-shadow: 0 12px 28px rgba(8, 5, 17, 0.28);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 14px;
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
    .taxonomy-tile:hover {
        transform: translateY(-2px);
        border-color: transparent;
        animation: cardNeonBorder 2.4s linear infinite;
    }
}

.taxonomy-tile-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: #f7ebff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.taxonomy-tile-sub {
    margin-top: 6px;
    font-size: 0.95rem;
    color: rgba(236, 221, 249, 0.92);
}

.taxonomy-tile-meta {
    margin-top: 8px;
    font-size: 0.92rem;
    color: rgba(235, 220, 248, 0.9);
}

@media (max-width: 1180px) {
    .taxonomy-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .taxonomy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .taxonomy-tile-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 560px) {
    .taxonomy-grid {
        grid-template-columns: 1fr;
    }
}
.player-tray-error {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 4px;
    color: #ffd4dc;
    font-size: 0.86rem;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 129, 156, 0.4);
    background: rgba(120, 20, 44, 0.22);
}
.taxonomy-tile--with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.station-unified-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.station-unified-card .music-art-wrap {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
    .station-unified-card:hover {
        transform: translateY(-4px);
        border-color: transparent;
        background: rgba(255, 255, 255, 0.085);
        animation: cardNeonBorder 2.4s linear infinite;
    }

    .station-unified-card:hover .music-art-wrap {
        transform: scale(1.02);
        border-color: rgba(255, 177, 195, 0.36);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
    }

    .station-unified-card:hover .music-card-title a {
        color: #ffe7f0;
    }
}

@keyframes cardNeonBorder {
    0%   { box-shadow: 0 0 0 1.5px #00E5FF, 0 0 18px rgba(0, 229, 255, 0.3),  0 14px 28px rgba(8, 5, 17, 0.42); }
    25%  { box-shadow: 0 0 0 1.5px #cc44ff, 0 0 18px rgba(204, 68, 255, 0.3), 0 14px 28px rgba(8, 5, 17, 0.42); }
    50%  { box-shadow: 0 0 0 1.5px #FF2DAA, 0 0 18px rgba(255, 45, 170, 0.3), 0 14px 28px rgba(8, 5, 17, 0.42); }
    75%  { box-shadow: 0 0 0 1.5px #FF7AD9, 0 0 18px rgba(255, 122, 217, 0.3),0 14px 28px rgba(8, 5, 17, 0.42); }
    100% { box-shadow: 0 0 0 1.5px #00E5FF, 0 0 18px rgba(0, 229, 255, 0.3),  0 14px 28px rgba(8, 5, 17, 0.42); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.mini-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-mute-btn {
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.mini-volume {
    width: 180px;
    accent-color: #f2a9bc;
}
.tray-vol-icon {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tray-vol-icon img,
.mini-mute-icon {
    display: block;
    width: 20px;
    height: 20px;
    /* Tint monochrome SVG to match the volume slider pink tone */
    filter: brightness(0) saturate(100%) invert(83%) sepia(12%) saturate(1773%) hue-rotate(289deg) brightness(99%) contrast(94%);
}

.mini-mute-btn {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.side-nav-dropdown {
    position: relative;
}

.side-nav-dropdown::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 12px;
    height: 100%;
}

.side-nav-summary {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-nav-summary::after {
    content: "▸";
    color: var(--muted);
    font-size: 0.84rem;
    transition: transform 0.15s ease;
}

.side-nav-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 260px;
    display: none;
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(39, 30, 61, 0.95);
    backdrop-filter: blur(8px);
    z-index: 300;
}

@media (hover: hover) {
    .side-nav-dropdown:hover .side-nav-submenu {
        display: grid;
    }

    .side-nav-dropdown:hover .side-nav-summary::after {
        transform: rotate(90deg);
    }
}

.side-nav-subitem,
.side-nav-show-all {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.88rem;
    color: var(--text);
}

.side-nav-subitem:hover,
.side-nav-show-all:hover {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.side-nav-show-all {
    margin-top: 2px;
    border-top: 1px dashed rgba(255, 255, 255, 0.16);
    padding-top: 10px;
    color: var(--primary);
    font-weight: 600;
}

.side-nav-empty {
    padding: 8px 10px;
    color: var(--muted);
    font-size: 0.86rem;
}
.side-nav--suppress-flyout .side-nav-submenu {
    display: none !important;
}

.tray-equalizer {
    width: 72px;
    height: 24px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(1px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    justify-self: start;
}

.tray-eq-bar {
    width: 3px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffb3d9 0%, #f59ac2 58%, #d18cff 100%);
    box-shadow: 0 0 8px rgba(245, 154, 194, 0.22);
    transform-origin: center bottom;
    transform: scaleY(1);
    animation-name: trayEqPulse;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(0.42, 0, 0.28, 1);
    animation-play-state: paused;
}

.player-tray.tray-eq-visible .tray-equalizer {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}

.player-tray.tray-eq-active .tray-eq-bar {
    animation-play-state: running;
}

.player-tray:not(.tray-eq-active) .tray-eq-bar {
    transform: scaleY(0.9);
}

.tray-eq-bar:nth-child(1) { animation-duration: 1.15s; animation-delay: -0.24s; }
.tray-eq-bar:nth-child(2) { animation-duration: 0.92s; animation-delay: -0.41s; }
.tray-eq-bar:nth-child(3) { animation-duration: 1.28s; animation-delay: -0.15s; }
.tray-eq-bar:nth-child(4) { animation-duration: 0.84s; animation-delay: -0.36s; }
.tray-eq-bar:nth-child(5) { animation-duration: 1.06s; animation-delay: -0.47s; }
.tray-eq-bar:nth-child(6) { animation-duration: 0.96s; animation-delay: -0.12s; }
.tray-eq-bar:nth-child(7) { animation-duration: 1.2s; animation-delay: -0.52s; }
.tray-eq-bar:nth-child(8) { animation-duration: 0.88s; animation-delay: -0.22s; }
.tray-eq-bar:nth-child(9) { animation-duration: 1.32s; animation-delay: -0.44s; }
.tray-eq-bar:nth-child(10) { animation-duration: 0.9s; animation-delay: -0.11s; }
.tray-eq-bar:nth-child(11) { animation-duration: 1.18s; animation-delay: -0.34s; }
.tray-eq-bar:nth-child(12) { animation-duration: 1.04s; animation-delay: -0.27s; }
.tray-eq-bar:nth-child(13) { animation-duration: 0.86s; animation-delay: -0.49s; }
.tray-eq-bar:nth-child(14) { animation-duration: 1.24s; animation-delay: -0.19s; }
.tray-eq-bar:nth-child(15) { animation-duration: 0.98s; animation-delay: -0.39s; }
.tray-eq-bar:nth-child(16) { animation-duration: 1.12s; animation-delay: -0.09s; }

@keyframes trayEqPulse {
    0% { transform: scaleY(0.5); opacity: 0.76; }
    22% { transform: scaleY(1.95); opacity: 1; }
    46% { transform: scaleY(0.72); opacity: 0.82; }
    70% { transform: scaleY(2.55); opacity: 1; }
    100% { transform: scaleY(1.1); opacity: 0.9; }
}

@media (max-width: 980px) {
    .tray-equalizer {
        width: 48px;
        height: 16px;
        gap: 2px;
    }

    .player-tray-error {
        left: 16px;
        right: 16px;
    }

    .tray-eq-bar:nth-child(n+9) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tray-eq-bar {
        animation: none;
    }

    .player-tray.tray-eq-active .tray-eq-bar {
        transform: scaleY(1.2);
    }
}

.mobile-nav-bar {
    display: none;
}

.mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 19, 0.62);
    z-index: 190;
}

.station-track-artist,
.station-track-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.station-track-artist {
    -webkit-line-clamp: 2;
}

.station-track-title {
    -webkit-line-clamp: 3;
}

.station-playback-grid > * {
    min-width: 0;
}

.station-track-row,
.station-track-meta {
    min-width: 0;
}

.station-playback-card .track-list li {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
}

@media (max-width: 980px) {
    .brand {
        display: none;
    }

    .side-auth {
        margin-bottom: 14px;
    }

    #sleepTimerDropdown {
        position: fixed;
        top: 64px;
        right: 12px;
        left: auto;
        z-index: 200;
    }

    .mobile-nav-auth {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .mobile-nav-auth > .sleep-timer-btn,
    .mobile-auth-icon-link {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        justify-content: center;
        flex: 0 0 44px;
    }

    .mobile-sleep-timer-btn {
        position: relative;
    }

    .mobile-sleep-timer-btn.is-active svg {
        transform: translateY(-5px);
    }

    .mobile-sleep-timer-countdown {
        position: absolute;
        left: 50%;
        bottom: 4px;
        transform: translateX(-50%);
        font-family: "IBM Plex Mono", monospace;
        font-size: 0.56rem;
        line-height: 1;
        color: #f6d8ff;
        white-space: nowrap;
    }

    .mobile-auth-icon-link img {
        width: 24px;
        height: 24px;
        display: block;
    }

    .mobile-nav-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        position: sticky;
        top: 0;
        z-index: 150;
        padding: 6px 0;
        background: rgba(36, 24, 52, 0.86);
        backdrop-filter: blur(10px);
    }

    .mobile-nav-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
        border: 1px solid rgba(255, 177, 195, 0.45);
        background: rgba(43, 30, 61, 0.9);
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: var(--text);
    }

    .mobile-nav-toggle-line {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .mobile-nav-brand {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        line-height: 1;
    }

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

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

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

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

    .mobile-nav-brand .brand-main {
        font-size: 1.65rem;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(84vw, 320px);
        max-width: 320px;
        height: 100dvh;
        transform: translateX(-102%);
        transition: transform 0.22s ease;
        z-index: 200;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .topbar-title {
        font-size: 1.45rem;
    }

    .trending-slider {
        margin-left: -4px;
        margin-right: -4px;
    }

    .trending-strip {
        padding-left: 18px;
        padding-right: 18px;
        gap: 10px;
        scroll-padding-left: 18px;
        scroll-padding-right: 18px;
    }

    .trending-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        top: auto;
        bottom: -4px;
        transform: none;
        background: rgba(40, 24, 57, 0.92);
    }

    .trending-arrow-left {
        left: 8px;
    }

    .trending-arrow-right {
        right: 8px;
    }

    .side-nav-link,
    .side-nav-subitem,
    .side-nav-show-all,
    .btn,
    .sidebar-dropdown-summary,
    .sidebar-sort-item span,
    .sidebar-check {
        min-height: 44px;
    }

    .breadcrumbs-link,
    .breadcrumbs-current,
    .breadcrumbs-sep {
        min-height: 0;
        display: inline;
    }

    .side-nav-link,
    .side-nav-subitem,
    .side-nav-show-all,
    .sidebar-dropdown-summary {
        display: flex;
        align-items: center;
    }

    .side-nav-dropdown::after {
        display: none;
    }

    .side-nav-dropdown .side-nav-submenu {
        position: static;
        left: auto;
        top: auto;
        min-width: 0;
        display: none;
        margin-top: 6px;
        padding: 8px;
        border-radius: 10px;
        background: rgba(39, 30, 61, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: none;
    }

    .side-nav-dropdown.is-open .side-nav-submenu {
        display: grid;
    }

    .side-nav-dropdown.is-open .side-nav-summary::after {
        transform: rotate(90deg);
    }

    .sidebar-check input {
        width: 18px;
        height: 18px;
    }

    .station-unified-card .music-card-title {
        min-height: 2.8em;
    }

    .station-unified-card .music-card-title a {
        -webkit-line-clamp: 2;
    }

    .station-unified-genres {
        min-height: 2.8em;
    }

    .station-unified-genres-text {
        -webkit-line-clamp: 2;
    }
}

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

    .topbar-search #globalSearchInput {
        min-height: 50px;
        padding-left: 56px;
    }

    .search-icon {
        left: 14px;
        font-size: 1.6rem;
    }

    .station-playback-grid {
        gap: 12px;
    }

    .station-track-row {
        gap: 10px;
    }

    .station-track-cover-wrap {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    .station-unified-actions .btn {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.96rem;
        gap: 6px;
    }
}

/* Final tray mobile layout overrides */
.player-tray-inner,
.tray-station-card,
.tray-center-controls,
.tray-right-controls {
    min-width: 0;
}

.tray-meta-text strong,
.tray-meta-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 981px) {
    .player-tray-inner {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 14px;
        position: relative;
    }

    .tray-station-card {
        flex: 0 1 auto;
        min-width: 0;
        width: max-content;
        max-width: min(62vw, 980px);
    }

    .tray-equalizer {
        flex: 0 0 auto;
    }

    .tray-center-controls,
    .tray-right-controls {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .tray-center-controls {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .tray-right-controls {
        margin-left: auto;
    }
}

@media (max-width: 980px) {
    .player-tray {
        left: 0;
        right: 0;
    }

    body:has(#global-player-tray:not(.hidden)) .scroll-top-btn {
        bottom: 84px;
    }

    .player-tray-inner {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
    }

    .tray-station-card {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        max-width: none;
        padding: 6px;
        border-radius: 12px;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 8px;
    }

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

    .tray-meta-text strong {
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .tray-meta-text span {
        font-size: 0.8rem;
        line-height: 1.15;
    }

    .tray-equalizer {
        display: none;
    }

    .tray-center-controls {
        flex: 0 0 auto;
        gap: 8px;
        white-space: nowrap;
    }

    .tray-play-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .tray-icon-btn {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .tray-right-controls {
        flex: 0 0 auto;
        width: auto;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        justify-content: flex-end;
    }

    .player-volume {
        gap: 8px;
    }

    .tray-go-icon,
    .tray-vol-icon,
    .tray-close-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #tray-volume {
        width: clamp(80px, 16vw, 130px);
        min-width: 80px;
    }

    .player-tray-error {
        left: 10px;
        right: 10px;
        bottom: 2px;
    }
}

@media (max-width: 640px) {
    .player-tray-inner {
        padding: 7px 8px;
        gap: 6px;
    }

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

    .tray-art {
        width: 40px;
        height: 40px;
    }

    .tray-meta-text strong {
        font-size: 0.86rem;
    }

    .tray-meta-text span {
        font-size: 0.75rem;
    }

    .tray-center-controls {
        gap: 5px;
    }

    .tray-icon-btn {
        display: inline-flex;
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
        align-items: center;
        justify-content: center;
    }

    .tray-play-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

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

    .player-volume {
        gap: 6px;
    }

    .tray-go-icon,
    .tray-vol-icon,
    .tray-close-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 9px;
    }

    #tray-volume {
        width: clamp(64px, 14vw, 96px);
        min-width: 64px;
    }
}

@media (max-width: 576px) {
    .player-volume {
        display: none;
    }
}

.topbar-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}


.topbar-auth-link,
.topbar-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.topbar-auth-link:hover,
.topbar-auth-btn:hover {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.topbar-auth-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.topbar-auth-logout-form { margin: 0; }
.topbar-auth-btn { cursor: pointer; }

@media (max-width: 980px) {
    .topbar-auth {
        display: contents;
    }

    .topbar-auth > .topbar-auth-link,
    .topbar-auth > .topbar-auth-logout-form,
    #sleepTimerBtn {
        display: none;
    }
}

.flash-messages { margin-bottom: 14px; display: grid; gap: 8px; }
.flash-message { border-radius: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.flash-message.error { border-color: rgba(255,117,155,0.45); }
.flash-message.success { border-color: rgba(120,255,199,0.45); }

.auth-card { max-width: 480px; }
.auth-form { display: grid; gap: 8px; }
.auth-form input { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; color: var(--text); padding: 10px 12px; }
.auth-form ul.errorlist { margin: 0; padding-left: 16px; color: #ffc2d7; }

/* Контакты / обратная связь */
/* Узкий режим: сообщения и карточка ОС имеют одну ширину и идут от левого края. */
.page-content--narrow {
    width: 100%;
    max-width: 740px;
    margin-left: 0;
    margin-right: auto;
    padding-bottom: 60px;
}
.contact-card { max-width: none; }
.contact-intro {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
}
.contact-form { display: grid; gap: 14px; }
.contact-field { display: grid; gap: 6px; }
.contact-field > label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: var(--text);
    padding: 11px 13px;
    font: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.contact-form textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.5;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23ffb1c3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}
.contact-form select option {
    background: var(--bg-card);
    color: var(--text);
}
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: rgba(255, 177, 195, 0.45);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(255, 177, 195, 0.22);
}
.contact-form ul.errorlist {
    margin: 2px 0 0;
    padding-left: 16px;
    color: #ffc2d7;
    font-size: 0.82rem;
}
.contact-submit {
    justify-self: start;
    margin-top: 2px;
    padding: 10px 26px;
    font-weight: 600;
}
.contact-direct {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    line-height: 1.5;
}
.contact-email {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.16s ease, color 0.16s ease;
}
.contact-email:hover {
    color: #fff;
    border-bottom-color: var(--primary);
}
.field-optional {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.82rem;
}
.stream-fields #streamFieldsList {
    display: grid;
    gap: 10px;
}
.stream-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stream-field-row .stream-input { flex: 1 1 auto; min-width: 0; }
.stream-remove-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.stream-remove-btn:hover {
    color: #fff;
    border-color: #ff4d6d;
    background: rgba(255, 77, 109, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.18);
}
.stream-remove-btn[hidden] { display: none; }
.stream-add-btn {
    justify-self: start;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 177, 195, 0.4);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.stream-add-btn:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(255, 177, 195, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 177, 195, 0.22), 0 0 18px rgba(255, 45, 142, 0.35);
}
.stream-add-plus {
    font-size: 1.25rem;
    line-height: 1;
    margin-top: -2px;
}
.auth-form-link-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.favorite-form { margin: 0; }
.favorite-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.favorite-btn.is-active {
    border-color: rgba(255, 92, 168, 0.55);
    background: rgba(255, 92, 168, 0.12);
}
.favorite-icon { width: 18px; height: 18px; object-fit: contain; }
.favorite-error {
    margin: 6px 2px 0;
    color: #ffc2d7;
    font-size: 0.78rem;
    line-height: 1.25;
}

.station-favorite-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.station-favorite-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: 999px;
    background: rgba(48, 38, 62, 0.92);
    border-color: rgba(216, 167, 232, 0.35);
}

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

.station-favorite-btn.is-active {
    border-color: rgba(255, 92, 168, 0.58);
    background: rgba(72, 45, 76, 0.95);
}

.station-detail-favorite-form {
    margin: 0;
    display: inline-flex;
}

.station-detail-mini-player .mini-play-btn,
.station-detail-favorite-btn {
    width: 56px;
    height: 44px;
    min-width: 56px;
    border-radius: 12px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

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

.station-detail-favorite-btn:not(.is-active) .favorite-icon {
    filter: brightness(0) saturate(100%) invert(80%) sepia(18%) saturate(1083%) hue-rotate(288deg) brightness(101%) contrast(95%);
}

.station-detail-favorite-btn.is-active {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    box-shadow: none;
    animation: cardNeonBorder 2.4s linear infinite;
}

.station-detail-mini-player .mini-play-btn.is-active {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    box-shadow: none;
    animation: cardNeonBorder 2.4s linear infinite;
}

.station-detail-mini-player .mini-volume {
    width: 152px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 420px) {
    .station-meta-list,
    .station-meta-list li {
        min-width: 0;
    }

    .station-meta-list a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .trending-slider {
        margin-left: -2px;
        margin-right: -2px;
        margin-bottom: 34px;
    }

    .trending-strip {
        padding-left: 14px;
        padding-right: 14px;
        gap: 8px;
        scroll-padding-left: 14px;
        scroll-padding-right: 14px;
    }

    .trending-strip .station-unified-card {
        flex-basis: 124px;
        width: 124px;
    }

    .trending-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        bottom: -2px;
    }

    .station-unified-card {
        padding: 10px;
    }

    .station-unified-card .music-card-title {
        font-size: 0.94rem;
        min-height: 2.65em;
    }

    .station-unified-actions .btn {
        font-size: 0.88rem;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ── Info / Policy pages ──────────────────────────────────────────── */

.info-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.info-page-body {
    color: var(--text);
    line-height: 1.55;
    font-size: 0.97rem;
}

.info-page-body h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 2rem 0 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 177, 195, 0.18);
}

.info-page-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 1.4rem 0 0.4rem;
}

.info-page-body p {
    margin: 0 0 0.9rem;
    color: var(--muted);
}

.info-page-body ul,
.info-page-body ol {
    margin: 0 0 0.9rem 1.4rem;
    color: var(--muted);
}

.info-page-body li {
    margin-bottom: 0.3rem;
}

.info-page-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(255, 177, 195, 0.4);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.info-page-body a:hover {
    color: #ffd1dc;
    text-decoration-color: rgba(255, 209, 220, 0.85);
}

.info-page-body strong {
    color: var(--text);
    font-weight: 600;
}

.info-page-body blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary);
    background: rgba(255, 177, 195, 0.06);
    border-radius: 0 6px 6px 0;
    color: var(--muted);
}

.info-page-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.info-page-body th,
.info-page-body td {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.info-page-body th {
    background: rgba(255, 177, 195, 0.08);
    color: var(--text);
    font-weight: 600;
}

.info-page-body td {
    color: var(--muted);
}

/* ── Sleep timer ── */
.sleep-timer {
    position: relative;
    flex-shrink: 0;
}

.sleep-timer-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #efe9ff;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.sleep-timer-btn:hover {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.sleep-timer-btn.is-active {
    border-color: rgba(192, 76, 255, 0.6);
    background: rgba(192, 76, 255, 0.12);
}

.sleep-timer-countdown {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    background: linear-gradient(110deg, #ff2aa3, #c04cff, #36d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sleep-timer-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 400;
    width: 280px;
    background: rgba(22, 12, 36, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sleep-timer-dropdown-title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.sleep-timer-dropdown-head {
    min-height: 44px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
}

.sleep-timer-dropdown-title {
    grid-column: 2;
}

.sleep-timer-dropdown-close {
    grid-column: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.sleep-timer-dropdown-close:hover,
.sleep-timer-dropdown-close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.sleep-timer-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sleep-timer-preset {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sleep-timer-preset:hover,
.sleep-timer-preset.is-active {
    background: rgba(192, 76, 255, 0.18);
    border-color: rgba(192, 76, 255, 0.5);
    color: #fff;
}

.sleep-timer-inputs {
    display: flex;
    gap: 12px;
}

.sleep-timer-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sleep-timer-input-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.sleep-timer-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
    appearance: textfield;
    -moz-appearance: textfield;
}

.sleep-timer-input::-webkit-inner-spin-button,
.sleep-timer-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.sleep-timer-number-control {
    position: relative;
}

.sleep-timer-number-control .sleep-timer-input {
    padding-right: 42px;
}

.sleep-timer-number-buttons {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    width: 32px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.sleep-timer-number-btn {
    min-width: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: #d9b9ff;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sleep-timer-number-btn:hover,
.sleep-timer-number-btn:focus-visible {
    border-color: rgba(192, 76, 255, 0.55);
    background: linear-gradient(110deg, rgba(255, 42, 163, 0.2), rgba(192, 76, 255, 0.22));
    color: #fff;
    outline: none;
}

.sleep-timer-number-arrow {
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.sleep-timer-number-arrow-up {
    border-bottom: 5px solid currentColor;
}

.sleep-timer-number-arrow-down {
    border-top: 5px solid currentColor;
}

.sleep-timer-input:focus {
    border-color: rgba(192, 76, 255, 0.6);
}

.sleep-timer-start {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(110deg, #ff2aa3, #c04cff);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}

.sleep-timer-start:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.sleep-timer-cancel {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.sleep-timer-cancel:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
    .topbar-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

}

/* Sleep timer fired popup */
.sleep-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(8, 5, 26, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sleep-popup.hidden { display: none; }

.sleep-popup-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    animation: sleepPopupIn 0.4s ease;
}

@keyframes sleepPopupIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.sleep-popup-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(192, 76, 255, 0.35);
}

.sleep-popup-title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(110deg, #ff2aa3 0%, #c04cff 50%, #36d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sleep-popup-sub {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.sleep-popup-close {
    margin-top: 4px;
    padding: 10px 28px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}

.sleep-popup-close:hover {
    background: rgba(255, 255, 255, 0.13);
}

/* ── Auth terms checkbox ── */
.auth-terms {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 8px;
}

.auth-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.auth-terms-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06) !important;
    cursor: pointer;
    margin-top: 2px;
    position: relative;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

.auth-terms-checkbox:checked {
    background: #ff2d8e !important;
    border-color: #ff2d8e !important;
    box-shadow: 0 0 10px rgba(255, 45, 142, 0.45);
}

.auth-terms-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.auth-terms-checkbox:hover {
    border-color: rgba(255, 45, 142, 0.6) !important;
}

.auth-terms-text {
    flex: 1;
}

.auth-terms-link {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-terms-link:hover {
    color: #fff;
}

.auth-terms-error {
    margin: 0;
    font-size: 0.82rem;
    color: #ff7a9b;
    padding-left: 28px;
}

/* ── Cookie banner ── */
.cookie-banner {
    display: none;
}

.cookie-banner.is-visible {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 520px;
    width: calc(100% - 32px);
    background: rgba(27, 17, 48, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 45, 142, 0.12);
    backdrop-filter: blur(18px);
    animation: cookieSlideUp 0.35s ease;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-banner-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cookie-banner-title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

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

.cookie-banner-link:hover {
    color: #fff;
}

.cookie-banner-actions {
    display: flex;
    margin-top: 4px;
    width: 100%;
    justify-content: flex-start;
}

.cookie-banner-btn {
    width: min(100%, 230px);
    min-height: 44px;
    padding: 9px 24px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cookie-banner-btn--accept {
    background: linear-gradient(110deg, #ff2d8e, #c41d6a);
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 45, 142, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cookie-banner-btn--accept:hover {
    background: linear-gradient(110deg, #ff5aaa, #e0247a);
    box-shadow: 0 0 22px rgba(255, 45, 142, 0.6);
    transform: translateY(-1px);
}

.cookie-banner-btn--accept:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .cookie-banner.is-visible {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 12px;
        gap: 10px;
        border-radius: 16px;
    }
    .cookie-banner-img { width: 38px; height: 38px; }
    .cookie-banner-body { gap: 5px; }
    .cookie-banner-title { font-size: 0.9rem; }
    .cookie-banner-text { font-size: 0.76rem; line-height: 1.35; }
    .cookie-banner-actions { margin-top: 2px; }
    .cookie-banner-btn { width: 100%; min-height: 44px; }
}

/* ── Station "не работает радио" report ── */
.station-report-btn {
    margin-top: 6px;
    justify-self: start;
    align-self: flex-start;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.station-report-btn:hover,
.station-report-btn.is-active {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    box-shadow: none;
    animation: cardNeonBorder 2.4s linear infinite;
}

@media (hover: none), (pointer: coarse) {
    .station-detail-mini-player .mini-play-btn:active,
    .station-detail-favorite-btn:active,
    .station-report-btn:active {
        border-color: transparent;
        background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
        color: #fff;
        box-shadow: none;
        animation: cardNeonBorder 2.4s linear infinite;
    }
}

.station-report-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.station-report-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 5, 17, 0.7);
    backdrop-filter: blur(4px);
}
.station-report-card {
    position: relative;
    width: min(460px, 100%);
    background: #1b1330;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 26px 24px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.station-report-x {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}
.station-report-x:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.station-report-text {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}
.station-report-subtext {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
}
.station-report-options {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
.station-report-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.station-report-option:hover { border-color: rgba(192, 76, 255, 0.45); }
.station-report-option:has(input:checked) {
    border-color: rgba(192, 76, 255, 0.7);
    background: rgba(192, 76, 255, 0.12);
}
.station-report-option input { accent-color: #c04cff; width: 18px; height: 18px; flex-shrink: 0; }
.station-report-option span { color: var(--text); font-size: 0.92rem; }
.station-report-station-field {
    display: grid;
    gap: 7px;
    margin: 0 0 16px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}
.station-report-station-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
    outline: none;
}
.station-report-station-field input:focus {
    border-color: rgba(192, 76, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(192, 76, 255, 0.14);
}
.station-report-station-field input::placeholder { color: rgba(220, 201, 235, 0.55); }
.recaptcha-wrap {
    min-height: 78px;
    margin: 0 0 16px;
    overflow: hidden;
}
.station-report-msg {
    margin: 0 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
}
.station-report-msg--ok { color: #36d8a6; }
.station-report-msg--warn { color: #ff7a9c; }
.station-report-submit {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(110deg, #ff2aa3, #c04cff, #36d8ff);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}
.station-report-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.station-report-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ===================== «Радио на сайт» — конструктор ===================== */
.embed-intro {
    color: var(--muted);
    max-width: 760px;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* Поиск */
.embed-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 14px 0 18px;
}
.embed-search-icon {
    position: absolute;
    left: 14px;
    font-size: 1.2rem;
    color: var(--muted);
    pointer-events: none;
}
.embed-search-input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text);
    font: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.embed-search-input:focus {
    outline: none;
    border-color: rgba(0, 238, 252, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 238, 252, 0.12);
}
.embed-search-clear {
    position: absolute;
    right: 10px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.embed-search-clear:hover { background: rgba(255, 45, 170, 0.22); }

.embed-empty {
    color: var(--muted);
    padding: 24px 0;
    text-align: center;
}

/* Карточка с переключателем выбора */
.embed-pick-card { position: relative; }
.embed-pick-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.embed-pick-track {
    display: inline-flex;
    align-items: center;
    width: 46px;
    height: 26px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(20, 12, 30, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(2px);
    transition: background 0.18s ease, border-color 0.18s ease;
}
.embed-pick-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d9c8e6;
    transition: transform 0.18s ease, background 0.18s ease;
}
.embed-pick-toggle.is-on .embed-pick-track {
    background: linear-gradient(110deg, #00b9e6 0%, #2f8bff 100%);
    border-color: transparent;
}
.embed-pick-toggle.is-on .embed-pick-thumb {
    transform: translateX(20px);
    background: #fff;
}
.embed-pick-toggle:focus-visible .embed-pick-track {
    box-shadow: 0 0 0 3px rgba(0, 238, 252, 0.4);
}
.embed-pick-card.is-picked {
    border-color: transparent;
    animation: cardNeonBorder 2.4s linear infinite;
}

/* Нижняя плашка действий */
.embed-actionbar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 20px;
    padding: 12px 0;
    background: linear-gradient(to top, var(--bg) 70%, rgba(24, 15, 35, 0));
}
.embed-actionbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(36, 28, 48, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 28px rgba(8, 5, 17, 0.4);
}
.embed-selected-count {
    font-weight: 600;
    color: var(--text);
}
.embed-actionbar-buttons {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}
.embed-get-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.embed-get-code-btn:not(:disabled) {
    border-color: transparent;
    background: linear-gradient(110deg, #00b9e6 0%, #c04cff 55%, #ff2d8e 100%);
    color: #fff;
    font-weight: 600;
}

/* Панель с кодом, настройками и предпросмотром */
.embed-result {
    position: relative;
    margin-bottom: 22px;
}
.embed-result-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.embed-result-close:hover { background: rgba(255, 45, 170, 0.22); }
.embed-result-title {
    margin: 0 0 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
}
.embed-result-hint {
    margin: 0 0 14px;
    color: var(--muted);
}
.embed-code-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.embed-code {
    width: 100%;
    resize: vertical;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 8, 20, 0.6);
    color: var(--text);
    font-family: "Consolas", "Menlo", monospace;
    font-size: 0.86rem;
    line-height: 1.5;
}
.embed-copy-btn { align-self: flex-start; font-weight: 600; }

.embed-settings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}
.embed-setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.embed-setting-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.02rem;
    margin-bottom: 2px;
}
.embed-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.embed-radio input { accent-color: #ff2d8e; }
.embed-setting-note {
    margin: -2px 0 4px 26px;
    font-size: 0.78rem;
    color: var(--muted);
}
.embed-width-control,
.embed-range-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 26px;
}
.embed-width-control input[type="range"],
.embed-range-control input[type="range"] {
    flex: 0 0 140px;
    width: 140px;
    accent-color: #00b9e6;
}
.embed-width-control input[type="range"]:disabled,
.embed-range-control input[type="range"]:disabled { opacity: 0.45; }
.embed-width-value,
.embed-range-value { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

/* Палитра кастомного стиля */
.embed-colors {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 26px;
    margin-top: 4px;
}
.embed-colors.is-disabled { opacity: 0.4; }
.embed-color-row { display: flex; align-items: center; gap: 8px; }
.embed-color-label { width: 58px; font-size: 0.85rem; color: var(--muted); }
.embed-color-swatch {
    width: 30px;
    height: 28px;
    flex: 0 0 auto;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    background: rgba(12, 8, 20, 0.5);
    cursor: pointer;
}
.embed-color-swatch:disabled { cursor: default; }
.embed-color-text {
    width: 116px;
    padding: 6px 9px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 8, 20, 0.5);
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
}
.embed-color-text:focus {
    outline: none;
    border-color: rgba(0, 238, 252, 0.45);
}
.embed-color-text.is-invalid { border-color: #ff6b8a; }

.embed-preview-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.embed-preview-stage {
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}
.embed-preview-frame {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    background: transparent;
}
@media (max-width: 720px) {
    .embed-settings { grid-template-columns: 1fr; }
    .embed-actionbar-inner { flex-direction: column; align-items: stretch; }
    .embed-actionbar-buttons { justify-content: stretch; }
    .embed-actionbar-buttons .btn { flex: 1 1 auto; }
}

/* UVB-76 logs page only */
.uvb76-log-page {
    position: relative;
}

.uvb76-range-form {
    position: relative;
    margin: 0 0 18px;
}

.uvb76-range-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 12px;
}

.uvb76-range-trigger {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    color: #f2deff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.uvb76-range-trigger:hover,
.uvb76-range-trigger[aria-expanded="true"] {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.uvb76-range-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 177, 195, 0.22);
}

.uvb76-range-trigger-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: block;
}

.uvb76-range-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    z-index: 60;
    width: min(920px, calc(100vw - 80px));
    padding: 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(39, 29, 53, 0.98), rgba(25, 15, 36, 0.98));
    color: var(--text);
    box-shadow: 0 24px 70px rgba(4, 2, 14, 0.55), 0 0 32px rgba(255, 45, 170, 0.12);
    backdrop-filter: blur(14px);
}

.uvb76-range-months-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.uvb76-range-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: -2px 0 20px;
}

.uvb76-range-preset {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    color: #f2deff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.uvb76-range-preset:hover,
.uvb76-range-preset:focus-visible,
.uvb76-range-preset.is-active {
    outline: none;
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.18) 55%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.uvb76-range-nav {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #f2deff;
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.uvb76-range-nav:hover,
.uvb76-range-nav:focus-visible {
    outline: none;
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.18) 55%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.uvb76-range-months {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.uvb76-range-month-title {
    margin: 0 0 22px;
    text-align: center;
    font: inherit;
    font-weight: 700;
    color: #f2deff;
}

.uvb76-range-grid {
    display: grid;
    grid-template-columns: repeat(7, 36px);
    grid-auto-rows: 36px;
    justify-content: center;
    align-items: center;
}

.uvb76-range-weekday {
    color: var(--muted);
    text-align: center;
    font-size: 0.92rem;
}

.uvb76-range-weekday.is-weekend {
    color: #ffb1c3;
}

.uvb76-range-day {
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    background: transparent;
    color: #f6eaff;
    font: inherit;
    border-radius: 9px;
    cursor: pointer;
}

.uvb76-range-day.is-weekend {
    color: #ffb1c3;
}

.uvb76-range-day:hover,
.uvb76-range-day:focus-visible {
    outline: none;
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.13) 0%, rgba(255, 45, 170, 0.2) 55%, rgba(255, 122, 217, 0.14) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.uvb76-range-day.is-in-range {
    background: rgba(255, 177, 195, 0.12);
    color: #fff;
}

.uvb76-range-day.is-edge {
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.22) 0%, rgba(255, 45, 170, 0.34) 55%, rgba(255, 122, 217, 0.24) 100%);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 45, 170, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: cardNeonBorder 2.4s linear infinite;
}

.uvb76-range-day.is-out-of-range,
.uvb76-range-day:disabled {
    color: rgba(246, 234, 255, 0.25);
    cursor: default;
}

.uvb76-range-day.is-out-of-range:hover,
.uvb76-range-day:disabled:hover {
    border-color: transparent;
    background: transparent;
    color: rgba(246, 234, 255, 0.25);
    animation: none;
}

.uvb76-range-nav:disabled {
    color: rgba(242, 222, 255, 0.3);
    cursor: default;
}

.uvb76-range-nav:disabled:hover {
    border-color: transparent;
    background: transparent;
    color: rgba(242, 222, 255, 0.3);
    animation: none;
}

.uvb76-range-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.uvb76-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.uvb76-range-inputs input {
    width: 132px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #f6eaff;
    font: inherit;
    color-scheme: dark;
}

.uvb76-range-dash,
.uvb76-range-length {
    color: var(--muted);
}

.uvb76-range-apply {
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.16) 0%, rgba(255, 45, 170, 0.28) 55%, rgba(255, 122, 217, 0.18) 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.uvb76-range-apply:hover,
.uvb76-range-apply:focus-visible {
    outline: none;
    animation: cardNeonBorder 2.4s linear infinite;
    box-shadow: 0 0 24px rgba(255, 45, 170, 0.25);
}

.uvb76-sort-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #f2deff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.uvb76-sort-toggle:hover,
.uvb76-sort-toggle:focus-visible {
    outline: none;
    border-color: transparent;
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.12) 0%, rgba(255, 45, 170, 0.16) 50%, rgba(255, 122, 217, 0.12) 100%);
    color: #fff;
    animation: cardNeonBorder 2.4s linear infinite;
}

.uvb76-sort-icon {
    color: var(--primary);
    font-weight: 700;
}

.uvb76-log-page-list,
.uvb76-log-page-empty {
    margin-top: 12px;
}

@media (max-width: 980px) {
    .uvb76-range-popover {
        right: auto;
        left: 0;
        width: min(680px, calc(100vw - 36px));
        overflow-x: auto;
    }

    .uvb76-range-months {
        grid-template-columns: repeat(3, 250px);
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .uvb76-range-toolbar {
        justify-content: stretch;
    }

    .uvb76-range-trigger {
        width: 100%;
        justify-content: center;
    }

    .uvb76-sort-toggle {
        width: 100%;
        justify-content: center;
    }

    .uvb76-range-popover {
        width: min(360px, calc(100vw - 24px));
        padding: 18px;
        overflow-x: visible;
    }

    .uvb76-range-months {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .uvb76-range-preset {
        flex: 1 1 auto;
    }

    .uvb76-range-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .uvb76-range-apply {
        width: 100%;
    }
}
