/* ═══════════════════════════════════════════
   EVHub — player.css (финальный, с исправленной модалкой)
   ═══════════════════════════════════════════ */

/* ── Обёртка — на всю страницу ── */
.player-wrapper {
    display: grid;
    grid-template-columns: 64px 300px 1fr;
    height: calc(100vh - 70px);
    width: 100%;
    margin: 70px 0 0;
    background: #080808;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* ══════════════════════════════════
   САЙДБАР
══════════════════════════════════ */
.sidebar {
    background: #0a0a0a;
    border-right: 1px solid #1e1e1e;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #444;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.sidebar-icon:hover  { background: #1a1a1a; color: #ccc; }
.sidebar-icon.active { color: #ffdb4d; }
.sidebar-icon svg    { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sidebar-divider {
    width: 28px;
    height: 1px;
    background: #1e1e1e;
    margin: 6px 0;
    flex-shrink: 0;
}

.playlist-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .15s, box-shadow .15s;
}
.playlist-dot:hover {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px rgba(255,255,255,.15);
}

/* ══════════════════════════════════
   СПИСОК ТРЕКОВ / АЛЬБОМОВ
══════════════════════════════════ */
.rec-list {
    background: #0e0e0e;
    border-right: 1px solid #1e1e1e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rec-list-header {
    padding: 16px 16px 10px;
    flex-shrink: 0;
    border-bottom: 1px solid #1a1a1a;
}
.rec-list-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}
.search-input {
    width: 100%;
    padding: 7px 12px;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    background: #141414;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
.search-input:focus { border-color: #ffdb4d; }
.search-input::placeholder { color: #444; }

#recContainer {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
#recContainer::-webkit-scrollbar { width: 4px; }
#recContainer::-webkit-scrollbar-track { background: transparent; }
#recContainer::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }

.rec-section-label {
    padding: 12px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rec-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background .12s;
    position: relative;
}
.rec-item:hover  { background: #161616; }
.rec-item.active { background: #1c1a00; }

.mix-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mix-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }

.artist-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #1e1e1e;
}

.rec-info        { flex: 1; min-width: 0; }
.rec-label       { font-size: 10px; color: #555; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.rec-title       { font-size: 13px; font-weight: 600; color: #e0e0e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-subtitle    { font-size: 11px; color: #555; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rec-item-play {
    opacity: 0;
    transition: opacity .15s;
    color: #ffdb4d;
}
.rec-item:hover .rec-item-play { opacity: 1; }
.rec-item-play svg { width: 16px; height: 16px; }

/* Треклист альбома */
.tracklist-panel {
    background: #0a0a0a;
    border-top: 1px solid #181818;
    padding: 4px 0 8px;
}
.tracklist-play-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #ffdb4d;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid #181818;
    margin-bottom: 4px;
    transition: background .12s;
}
.tracklist-play-all:hover { background: #141414; }
.tracklist-play-all svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.tracklist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background .12s;
    border-radius: 4px;
    margin: 0 4px;
}
.tracklist-row:hover  { background: #141414; }
.tracklist-row.playing { background: #1c1a00; }
.tracklist-row.playing .tracklist-title,
.tracklist-row.playing .tracklist-num { color: #ffdb4d; }

.tracklist-num   { width: 18px; text-align: right; font-size: 11px; color: #444; flex-shrink: 0; }
.tracklist-info  { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tracklist-title { font-size: 13px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracklist-dur   { font-size: 11px; color: #444; flex-shrink: 0; }

.tracklist-like {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background .12s, color .12s;
    color: #444;
}
.tracklist-like:hover { background: rgba(255,219,77,.12); color: #ffdb4d; }
.tracklist-like svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ══════════════════════════════════
   ПАНЕЛЬ ПЛЕЕРА (правая)
══════════════════════════════════ */
.player-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #080808;
}

.player-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 65% 42%, #f5c400 0%, #e87c00 28%, #c4005a 58%, #3a006e 80%, #000 100%);
    z-index: 0;
    opacity: .65;
    transition: background .15s linear, opacity .3s linear;
}
.player-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 30% 55%, rgba(80,0,120,.5) 0%, transparent 60%);
}

#bgParticles {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.fullscreen-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .15s, background .15s, transform .15s, border-color .15s;
}
.fullscreen-btn:hover {
    color: #ffdb4d;
    background: rgba(0,0,0,.6);
    border-color: rgba(255,219,77,.3);
    transform: scale(1.06);
}
.fullscreen-btn svg { width: 17px; height: 17px; }

/* ── Полноэкранный режим: то же самое, но масштабнее и драматичнее ── */
#playerPanel:fullscreen,
#playerPanel:-webkit-full-screen {
    background: #050505;
    padding: 40px 0;
}
#playerPanel:fullscreen .now-playing-cover,
#playerPanel:-webkit-full-screen .now-playing-cover {
    width: clamp(240px, 28vw, 440px);
    height: clamp(240px, 28vw, 440px);
    margin-bottom: 32px;
}
#playerPanel:fullscreen .station-name,
#playerPanel:-webkit-full-screen .station-name {
    font-size: clamp(48px, 7.5vw, 120px);
    margin-bottom: 56px;
}
#playerPanel:fullscreen .controls-wrap,
#playerPanel:-webkit-full-screen .controls-wrap {
    max-width: 720px;
    gap: 22px;
}
#playerPanel:fullscreen .track-pill,
#playerPanel:-webkit-full-screen .track-pill {
    padding: 12px 20px;
}
#playerPanel:fullscreen .play-btn,
#playerPanel:-webkit-full-screen .play-btn {
    width: 72px;
    height: 72px;
}
#playerPanel:fullscreen .play-btn svg,
#playerPanel:-webkit-full-screen .play-btn svg {
    width: 32px;
    height: 32px;
}
#playerPanel:fullscreen .transport-btn svg,
#playerPanel:-webkit-full-screen .transport-btn svg {
    width: 26px;
    height: 26px;
}
#playerPanel:fullscreen #visualizer,
#playerPanel:-webkit-full-screen #visualizer {
    height: 160px;
    opacity: .8;
}
#playerPanel:fullscreen .fullscreen-btn,
#playerPanel:-webkit-full-screen .fullscreen-btn {
    top: 28px;
    right: 32px;
}

.station-tag {
    position: relative;
    z-index: 2;
    margin: 0 0 14px;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 5px 12px 5px 14px;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffdb4d;
    user-select: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
}
.station-tag.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.station-tag svg { flex-shrink: 0; }

/* ── Обложка трека в плеере: вращается пока играет, светится в тон сцены ── */
.now-playing-cover {
    position: relative;
    z-index: 2;
    width: clamp(160px, 19vw, 220px);
    height: clamp(160px, 19vw, 220px);
    border-radius: 50%;
    margin-bottom: 18px;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .45s ease, transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, margin .35s ease;
    pointer-events: none;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}
.now-playing-cover.visible {
    opacity: 1;
    transform: scale(1);
    box-shadow:
        0 18px 60px rgba(0,0,0,.6),
        0 0 80px var(--cover-glow, rgba(255,219,77,.35));
}
.now-playing-cover-spin {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(#111,#111) padding-box,
        conic-gradient(from 0deg,
            var(--cover-glow, #ffdb4d),
            transparent 30%, transparent 55%,
            var(--cover-glow, #ffdb4d) 85%,
            var(--cover-glow, #ffdb4d)
        ) border-box;
    border: 4px solid transparent;
    animation: coverSpin 16s linear infinite;
    animation-play-state: paused;
}
.now-playing-cover-spin.spinning { animation-play-state: running; }
.now-playing-cover-spin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Бороздки винила — тонкие концентрические кольца поверх обложки, крутятся вместе с диском */
.now-playing-cover-spin::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0,
        transparent 5px,
        rgba(0,0,0,.16) 5px,
        rgba(0,0,0,.16) 6px
    );
    mix-blend-mode: multiply;
    z-index: 1;
}
/* Диагональный блик, медленно скользящий по диску — придаёт "стеклянности" */
.now-playing-cover-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.24) 48%, transparent 62%);
    background-size: 260% 260%;
    animation: coverShine 6s ease-in-out infinite;
    z-index: 2;
}
/* Вырез по центру — как у настоящей пластинки. Не вращается (симметричный круг). */
.now-playing-cover-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15%;
    height: 15%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #3a3a3a 0%, #0a0a0a 65%, #000 100%);
    box-shadow:
        inset 0 2px 3px rgba(0,0,0,.9),
        inset 0 -1px 1px rgba(255,255,255,.08),
        0 0 0 2px rgba(255,255,255,.05);
    z-index: 3;
}
.now-playing-cover-hole::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: #000;
    box-shadow: inset 0 1px 2px rgba(0,0,0,1);
}
@keyframes coverSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes coverShine {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}
.station-tag-x {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: background .12s;
}
.station-tag-x:hover { background: rgba(255,255,255,.22); }

.station-name {
    position: relative;
    z-index: 1;
    font-size: clamp(36px, 5.5vw, 76px);
    font-weight: 800;
    letter-spacing: -.025em;
    text-align: center;
    line-height: 1.05;
    padding: 0 20px;
    margin-bottom: 40px;
    max-height: 200px;

    background: linear-gradient(100deg,
        #fff 0%, #fff 30%,
        var(--text-glow, #ffdb4d) 50%,
        #fff 70%, #fff 100%
    );
    background-size: 250% auto;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 30px rgba(0,0,0,.45));

    animation: textShimmer 7s ease-in-out infinite;
    transition: transform .12s ease-out,
                opacity .35s ease,
                max-height .35s ease,
                margin-bottom .35s ease;
    will-change: transform;
    overflow: hidden;
}
.station-name.entering {
    animation: stationNameEnter .55s cubic-bezier(.22,1,.36,1), textShimmer 7s ease-in-out infinite;
}
.station-name.cover-active {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
}
@keyframes textShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes stationNameEnter {
    from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(6px) drop-shadow(0 2px 30px rgba(0,0,0,.45)); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 2px 30px rgba(0,0,0,.45)); }
}

.controls-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: margin-top .35s ease;
}
.player-panel.has-cover .controls-wrap {
    margin-top: -6px;
}

.track-pill {
    width: 100%;
    background: rgba(15,15,15,.8);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 40px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pill-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}
.pill-btn:hover { color: #fff; background: rgba(255,255,255,.07); }
.pill-btn svg   { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pill-btn.liked svg { fill: #ffdb4d; stroke: #ffdb4d; }
.pill-btn.disliked svg { fill: #ff5c6c; stroke: #ff5c6c; }
.pill-btn.active { color: #ffdb4d; background: rgba(255,219,77,.12); }
#dislikeBtn:hover { color: #ff5c6c; }
#likeBtn:hover { color: #ffdb4d; }

.track-name {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    color: #fff;
    border-radius: 20px;
    padding: 6px 10px;
    position: relative;
}
.track-name-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}
.track-name.marquee .track-name-inner {
    animation: trackMarquee var(--marquee-duration, 7s) ease-in-out infinite;
}
@keyframes trackMarquee {
    0%, 12%  { transform: translateX(0); }
    50%, 62% { transform: translateX(var(--marquee-x, 0px)); }
    100%     { transform: translateX(0); }
}
.track-name .sep { color: #444; margin: 0 2px; }
.track-explicit-badge {
    display: none;
    flex-shrink: 0;
    margin-left: 6px;
    font-size: 9px;
    font-weight: 800;
    color: #0a0a0a;
    background: #ffdb4d;
    border-radius: 4px;
    padding: 1px 5px;
    letter-spacing: .01em;
}
.track-explicit-badge.visible { display: inline-block; }

.progress-bar-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}
.time { font-size: 11px; color: #555; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,.12);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: #ffdb4d;
    border-radius: 2px;
    position: relative;
    transition: width .1s linear;
}
.progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffdb4d;
    opacity: 0;
    transition: opacity .15s;
    box-shadow: 0 0 0 2px rgba(0,0,0,.6);
}
.progress-bar:hover .progress-fill::after { opacity: 1; }

.transport {
    display: flex;
    align-items: center;
    gap: 16px;
}
.transport-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.45);
    cursor: pointer;
    transition: color .15s, background .15s;
}
.transport-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.transport-btn svg   { width: 22px; height: 22px; fill: currentColor; }
.transport-btn.active { color: #ffdb4d; }

.play-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: #ffdb4d;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s, background .15s, box-shadow .15s;
    box-shadow: 0 4px 24px rgba(255,219,77,.3);
}
.play-btn:hover { background: #ffd000; transform: scale(1.07); box-shadow: 0 6px 32px rgba(255,219,77,.45); }
.play-btn:active { transform: scale(.97); }
.play-btn svg { width: 26px; height: 26px; fill: currentColor; }

/* ── Визуализация ── */
#visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
    border-radius: 0;
    background: transparent;
}

/* ── Всплывающая громкость по наведению на иконку ── */
.vol-anchor { position: relative; }
.vol-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    /* Невидимый "мост" внутри самого попапа (не снаружи!) — курсор остаётся
       внутри .vol-popup, пока едет от иконки к ползунку, поэтому :hover не рвётся */
    padding-bottom: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 6;
}
.vol-anchor:hover .vol-popup,
.vol-popup.open {
    opacity: 1;
    pointer-events: auto;
}
.vol-popup-card {
    background: rgba(18,18,22,.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 12px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
    transform: translateY(6px) scale(.9);
    transform-origin: bottom center;
    transition: transform .15s ease;
}
.vol-anchor:hover .vol-popup-card,
.vol-popup.open .vol-popup-card {
    transform: translateY(0) scale(1);
}
.vol-popup input[type="range"] {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 4px;
    height: 84px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,.16);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.vol-popup input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffdb4d;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(255,219,77,.2);
}
.vol-popup-value {
    font-size: 11px;
    color: #999;
    font-variant-numeric: tabular-nums;
}
.pill-btn#volBtn.muted { color: #ff5c6c; }

/* ── Меню "Ещё" (эквалайзер, действия с треком) ── */
.pill-menu-anchor { position: relative; }

.pill-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: -8px;
    width: 280px;
    background: rgba(18,18,22,.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    z-index: 5;
    opacity: 0;
    transform: translateY(8px) scale(.96);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s cubic-bezier(.22,1,.36,1);
}
.pill-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.pill-menu-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #666;
}
.pill-menu-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 10px;
}
.pill-menu-label-row select {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    color: #ddd;
    font-size: 11px;
    padding: 4px 6px;
    outline: none;
    cursor: pointer;
}
.pill-menu-label-row select option { background: #1a1a1e; }

/* Полосы эквалайзера */
.eq-bands {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 6px;
    padding: 4px 6px 2px;
}
.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.eq-band-value {
    font-size: 10px;
    color: #999;
    font-variant-numeric: tabular-nums;
    min-height: 12px;
}
.eq-band-slider-wrap {
    width: 100%;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eq-band-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 4px;
    height: 84px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to top, rgba(255,219,77,.5) 50%, rgba(255,255,255,.14) 50%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.eq-band-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffdb4d;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(255,219,77,.2);
}
.eq-band-freq {
    font-size: 9px;
    color: #666;
}

.pill-menu-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 8px 2px;
}

.pill-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: none;
    background: transparent;
    color: #ccc;
    font-size: 13px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-align: left;
}
.pill-menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.pill-menu-item svg {
    width: 16px; height: 16px; flex-shrink: 0;
    stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round;
}
.pill-menu-item:hover svg { stroke: #ffdb4d; }

@media (max-width: 480px) {
    .pill-menu { right: -60px; width: 220px; }
}

/* ══════════════════════════════════
   МОДАЛЬНОЕ ОКНО (ИСПРАВЛЕННОЕ)
══════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.modal-overlay.open {
    opacity: 1 !important;
    pointer-events: all !important;
}
.modal {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(0);
    transition: transform .25s;
    display: block;
}
.modal-overlay.open .modal {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #1e1e1e;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    transition: background .15s;
}
.modal-close:hover { background: #2a2a2a; color: #fff; }

.modal-tabs {
    display: flex;
    gap: 4px;
    background: #0a0a0a;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}
.modal-tab {
    flex: 1;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-align: center;
}
.modal-tab.active {
    background: #1e1e1e;
    color: #ffdb4d;
}
.modal-tab:hover:not(.active) { color: #ccc; }

.modal-panel { display: none; }
.modal-panel.active { display: block; }

.modal-field {
    margin-bottom: 14px;
}
.modal-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}
.modal-field input, .modal-field select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #1e1e1e;
    background: #0a0a0a;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
.modal-field input:focus, .modal-field select:focus {
    border-color: #ffdb4d;
}
.modal-submit {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #ffdb4d;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.modal-submit:hover { background: #ffd000; }
.modal-status {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    min-height: 20px;
    color: #888;
}
.modal-status.ok { color: #3ecf60; }
.modal-status.err { color: #ff5555; }

/* ── Чекбокс "18+" ── */
.modal-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 2px;
    font-size: 13px;
    color: #ccc;
    text-transform: none;
    letter-spacing: normal;
}
.modal-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffdb4d;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Предпросмотр трека в модалке ── */
.track-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0a0a0a;
    border: 1px solid #1e1e1e;
}
.track-preview-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#4a7be8,#3a006e);
    overflow: hidden;
}
.track-preview-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-preview-cover svg { width: 18px; height: 18px; }
.track-preview-info { flex: 1; min-width: 0; }
.track-preview-title {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}
.track-preview-artist {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.track-preview-explicit {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    color: #0a0a0a;
    background: #ffdb4d;
    border-radius: 3px;
    padding: 1px 4px;
    letter-spacing: .02em;
}

/* ── Адаптив модалки ── */
@media (max-width: 600px) {
    .modal { padding: 16px; }
    .modal-tabs { flex-wrap: wrap; }
    .modal-tab { flex: 1 1 50%; }
}

/* ══════════════════════════════════
   АДАПТИВ
══════════════════════════════════ */
@media (max-width: 960px) {
    .player-wrapper {
        grid-template-columns: 54px 240px 1fr;
    }
}
@media (max-width: 700px) {
    .player-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 48px auto 1fr;
        height: calc(100vh - 70px);
    }
    .sidebar {
        flex-direction: row;
        height: 48px;
        border-right: none;
        border-bottom: 1px solid #1e1e1e;
        padding: 0 8px;
        gap: 0;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .sidebar-icon { width: 38px; height: 38px; }
    .rec-list { max-height: 40vh; }
    .player-panel { min-height: 55vh; }
    .station-name { font-size: 28px; margin-bottom: 24px; }
    .controls-wrap { padding: 0 14px; gap: 12px; }
}