/* === Переменные для radio === */
:root {
    --radio-background: linear-gradient(to bottom right, #000000, #1c1c1c);
    --radio-text-color: #ffffff;
    --radio-header-bg: #0f0f0f;
    --radio-card-bg: #1a1a1a;
    --radio-card-hover: #2a2a2a;
    --radio-accent: #94a3b8;
    --radio-accent-dark: #475569;
    --radio-player-bg: #0d0d0d;
    --radio-progress-bg: #2d2d2d;
    --radio-progress-fill: #e2e8f0;
    --radio-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --radio-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.25);
    --radio-border: rgb(113 111 111 / 10%);
    --radio-tx-about: #e2e8f0;
    --radio-tx-about2: #f1f5f9;
    --radio-overlay: rgba(0, 0, 0, 0.75);
    --radio-accent-rgb: 148, 163, 184;
    --radio-neon-light: #e2e8f0;
    --radio-neon-glow-light: rgba(226, 232, 240, 0.45);
    --radio-neon-glow-dark: rgba(148, 163, 184, 0.3);
    --radio-tx-about-rgb: 226, 232, 240;
    --radio-scroll-track: #2d2d2d;
}
[data-theme="light"] {
    --radio-background: linear-gradient(to bottom right, #f9f7f4, #e8e6e1);
    --radio-text-color: #000000;
    --radio-header-bg: #ffffff;
    --radio-card-bg: #ffffff;
    --radio-card-hover: #f5f5f5;
    --radio-accent: #94a3b8;
    --radio-accent-dark: #475569;
    --radio-player-bg: #fafafa;
    --radio-progress-bg: #4d5868;
    --radio-progress-fill: #4d5868;
    --radio-shadow: 0 4px 12px rgba(148, 163, 184, 0.15);
    --radio-shadow-hover: 0 8px 24px rgba(148, 163, 184, 0.3);
    --radio-border: rgba(148, 163, 184, 0.1);
    --radio-tx-about: #4d5868;
    --radio-tx-about2: #f1f5f9;
    --radio-overlay: rgba(0, 0, 0, 0.5);
    --radio-accent-rgb: 148, 163, 184;
    --radio-neon-light: #4d5868;
    --radio-neon-glow-light: rgba(226, 232, 240, 0.45);
    --radio-neon-glow-dark: rgba(148, 163, 184, 0.3);
    --radio-tx-about-rgb: 226, 232, 240;
    --radio-scroll-track: #f0f0f0;
}
* {
    box-sizing: border-box;
}
html {
    scrollbar-width: thin;
    scrollbar-color: var(--radio-tx-about) var(--radio-scroll-track);
}
html:hover {
    scrollbar-color: var(--radio-accent) var(--radio-scroll-track);
}
[data-theme="light"] html {
    scrollbar-color: var(--radio-accent) var(--radio-progress-bg);
}
html::-webkit-scrollbar {
    width: 14px;
}
html::-webkit-scrollbar-track {
    background: var(--radio-scroll-track);
    border-radius: 4px;
}
html::-webkit-scrollbar-thumb {
    background: var(--radio-tx-about);
    border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover {
    background: var(--radio-accent);
}
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--radio-background);
    color: var(--radio-text-color);
    min-height: 100vh;
    transition: background 0.4s, color 0.4s;
}
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}
header {
    background: var(--radio-header-bg);
    padding: 1rem 0;
    box-shadow: var(--radio-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* === НОВЫЙ СТИЛЬ HEADER-BTN ДЛЯ RADIO (2026) === */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    font-size: 15px;
    color: var(--radio-text-color);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
   
    border: 2.5px solid transparent;
    background: linear-gradient(var(--radio-card-bg), var(--radio-card-bg)) padding-box,
                linear-gradient(135deg, var(--radio-neon-light), var(--radio-accent)) border-box;
   
    box-shadow: 0 0 15px rgba(var(--radio-accent-rgb), 0.35),
                inset 0 0 8px rgba(255,255,255,0.08);
}
.header-btn:hover {
    transform: scale(1.14) rotate(4deg);
    box-shadow: 0 0 32px rgba(var(--radio-neon-light), 0.85),
                0 10px 30px rgba(0,0,0,0.45);
    background: linear-gradient(var(--radio-card-bg), var(--radio-card-bg)) padding-box,
                linear-gradient(135deg, var(--radio-accent), var(--radio-neon-light)) border-box;
}
/* Светлая тема */
[data-theme="light"] .header-btn {
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(135deg, var(--radio-accent), var(--radio-neon-light)) border-box;
    box-shadow: 0 0 14px rgba(var(--radio-accent-rgb), 0.3);
}
[data-theme="light"] .header-btn:hover {
    box-shadow: 0 0 30px rgba(var(--radio-accent), 0.75),
                0 8px 25px rgba(47,81,97,0.25);
}
/* Переключатель темы */
.theme-toggle {
    font-size: 1.6rem;
}
/* === АДМИН-КНОПКА — ЗОЛОТОЙ НЕОН (без квадрата) === */
.admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--radio-text-color);
    margin-left: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.admin-btn {
    background: linear-gradient(var(--radio-card-bg), var(--radio-card-bg)) padding-box,
                linear-gradient(135deg, #ffd700, var(--radio-accent), #ffd700) border-box !important;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.55);
}
.admin-btn:hover {
    transform: scale(1.14) rotate(4deg);
    box-shadow: 0 0 38px rgba(255, 215, 0, 0.95),
                0 10px 30px rgba(0,0,0,0.45);
    background: linear-gradient(var(--radio-card-bg), var(--radio-card-bg)) padding-box,
                linear-gradient(135deg, #ffd700, #ffeb3b, var(--radio-accent)) border-box !important;
}
/* Мобильные */
@media (max-width: 767px) {
    .header-btn {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
    .header-right {
        gap: 0.75rem;
    }
}
.logo {
    font-size: 1.9rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(90deg, var(--radio-accent), var(--radio-neon-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.theme-toggle {
    background: none;
    border: none;
    font-size: 15px;
    color: var(--radio-text-color);
    cursor: pointer;
}
.modal {
    position: fixed;
    inset: 0;
    background: var(--radio-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}
.modal.show { display: flex; }
.modal-dialog {
    max-width: 800px;
    width: 90%;
    background: var(--radio-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--radio-shadow);
}
@media (max-width: 767px) {
    .modal-dialog {
        max-width: 95%;
    }
}
.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--radio-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-modal {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--radio-text-color);
    cursor: pointer;
}
.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.4;
    font-size: 1rem;
}
.modal-body::-webkit-scrollbar {
    width: 14px;
}
.modal-body::-webkit-scrollbar-track {
    background: var(--radio-scroll-track);
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--radio-tx-about);
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--radio-accent);
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--radio-border);
    text-align: right;
}
.btn-secondary {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--radio-accent);
    color: var(--radio-accent);
    border-radius: 8px;
    cursor: pointer;
}
.btn-secondary:hover { background: var(--radio-accent); color: white; }
/* Радио-блок */
.radio-page {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}
.radio-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(148,163,184,0.12) 0%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}
.radio-header {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 2;
}
.on-air {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(148,163,184,0.18);
    color: var(--radio-neon-light);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.1rem;
    animation: pulse-onair 2s infinite;
    border: 2px solid var(--radio-neon-light);
}
@keyframes pulse-onair {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.radio-main {
    display: grid;
    grid-template-columns: 420px 1fr 340px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 2;
}
.cover-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(var(--radio-accent-rgb), 0.6);
    background: #000;
    margin: 0 auto;
}
.cover-wrapper.playing::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--radio-neon-light);
    border-radius: 50%;
    animation: rotate-glow 15s linear infinite;
    opacity: 0.4;
}
@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
#radioCover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.cover-wrapper.playing #radioCover {
    transform: scale(1.06);
}
#visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
    pointer-events: none;
}
.track-info {
    text-align: center;
}
.track-info h1 {
    font-size: 2.4rem;
    background: linear-gradient(90deg, var(--radio-neon-light), var(--radio-tx-about2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px;
    line-height: 1.1;
}
.controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}
.btn-player {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(226,232,240,0.18);
    border: 3px solid var(--radio-neon-light);
    color: var(--radio-neon-light);
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(var(--radio-accent-rgb), 0.5);
}
.btn-player:hover {
    transform: scale(1.15);
    box-shadow: 0 0 50px rgba(var(--radio-accent-rgb), 0.9);
    background: var(--radio-accent);
}
.play-btn {
    width: 92px;
    height: 92px;
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--radio-accent), var(--radio-neon-light));
}
.radio-progress {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.radio-progress input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--radio-progress-bg);
    border-radius: 3px;
    -webkit-appearance: none;
}
.radio-progress input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--radio-progress-fill);
    border-radius: 50%;
    cursor: pointer;
}
.radio-extra {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.radio-extra .btn-download {
    color: var(--radio-text-color);
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--radio-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.radio-extra .btn-download:hover {
    background: var(--radio-accent);
    color: #000;
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--radio-accent);
}
.radio-extra .lyrics-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--radio-accent);
    color: var(--radio-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.radio-extra .lyrics-btn:hover {
    background: var(--radio-accent);
    color: #000;
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--radio-accent);
}
.radio-extra .volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.radio-extra .volume input {
    width: 80px;
    height: 5px;
    -webkit-appearance: none;
    background: var(--radio-progress-bg);
    border-radius: 3px;
}
.radio-extra .volume input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--radio-progress-fill);
    border-radius: 50%;
}
.genre {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--radio-tx-about);
    text-align: center;
    font-style: italic;
}
[data-theme="light"] .genre {
    color: var(--radio-accent-dark);
}
.queue-sidebar {
    background: var(--radio-card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(var(--radio-accent-rgb), 0.2);
    height: fit-content;
    box-shadow: var(--radio-shadow);
}
.queue-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: 0.3s;
    cursor: pointer;
}
.queue-item:hover {
    background: var(--radio-card-hover);
}
.queue-item img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
}
.press_play {
    width: 100%;
    font-size: 23px;
    cursor: pointer;
}
.nl_radio_txt {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--radio-neon-light), var(--radio-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    align-items: center;
    position: relative;
}
.nl_radio_txt_2 {
    color: var(--radio-text-color);
}
@media (max-width: 992px) {
    .radio-main {
        grid-template-columns: 1fr;
    }
    .queue-sidebar {
        order: 3;
    }
}
@media (max-width: 767px) {
    .radio-extra .volume {
        display: none;
    }
}
@media (max-width: 480px) {
    .cover-wrapper {
        width: 300px;
        height: 300px;
    }
}
[data-theme="light"] .radio-extra .lyrics-btn,
[data-theme="light"] .radio-extra .btn-download {
    border-color: var(--radio-accent-dark);
    color: var(--radio-accent-dark);
}
[data-theme="light"] .radio-extra .lyrics-btn:hover,
[data-theme="light"] .radio-extra .btn-download:hover {
    background: var(--radio-accent-dark);
    color: white;
    box-shadow: 0 0 12px var(--radio-accent-dark);
}
/* ==================== NLMusic CMS FOOTER ==================== */
.cms-footer {
    text-align: center;
    padding: 2.8rem 1rem 2.2rem;
    border-top: 1px solid var(--radio-border);
}
.cms-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: 0.7px;
    padding: 0.78rem 1.9rem;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid transparent;
}
/* ===================== ТЁМНАЯ ТЕМА ===================== */
:root .cms-link {
    border-color: rgba(226, 232, 240, 0.5);
    box-shadow: 0 0 20px rgba(226, 232, 240, 0.4),
                inset 0 0 12px rgba(226, 232, 240, 0.2);
}
/* Градиент ТОЛЬКО на текст (span) */
:root .cms-link span {
    background: linear-gradient(90deg, var(--radio-neon-light), var(--radio-accent), var(--radio-neon-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px var(--radio-neon-glow-light);
}
/* Иконка всегда видна и отдельно */
:root .cms-link i {
    color: var(--radio-neon-light) !important;
    text-shadow: 0 0 15px var(--radio-neon-glow-light);
    transition: transform 0.4s ease;
}
:root .cms-link:hover {
    transform: translateY(-4px);
    border-color: var(--radio-neon-light);
    box-shadow: 0 0 45px rgba(226, 232, 240, 0.75),
                inset 0 0 20px rgba(226, 232, 240, 0.35);
}
:root .cms-link:hover i {
    transform: rotate(35deg) scale(1.3);
    color: var(--radio-neon-light) !important;
    text-shadow: 0 0 25px #fff;
}
/* ===================== СВЕТЛАЯ ТЕМА ===================== */
[data-theme="light"] .cms-link {
    color: #94a3b8 !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
    box-shadow: 0 0 18px rgba(148, 163, 184, 0.25);
}
[data-theme="light"] .cms-link span {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}
[data-theme="light"] .cms-link i {
    color: #94a3b8 !important;
}
[data-theme="light"] .cms-link:hover {
    transform: translateY(-4px);
    background: rgba(148, 163, 184, 0.14) !important;
    border-color: #94a3b8;
    box-shadow: 0 0 32px rgba(148, 163, 184, 0.45);
}