:root {
    --accent: #2e7bff;
    --accent-soft: rgba(46, 123, 255, 0.3);
    --bg: #111;
    --bg-soft: #222;
    --bg-bar: #000;
    --text-main: #fff;
    --text-muted: #aaa;
}

/* ========== ОСНОВА ========== */

body {
    margin: 0;
    background: var(--bg);
    font-family: Arial, sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

#top {
    flex: 1;
    display: flex;
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
    height: calc(100% - 65px);
    
}
*::-webkit-scrollbar {
    display: none; 
  }
  

/* ========== ЛОГО ========== */

#logo {
    width: 300px;
    height: 300px;
    background: var(--bg-soft);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #444;
    font-size: 30px;
    position: relative;
}

#logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#eqCanvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    opacity: 0.55;
    pointer-events: none;
}

/* ========== СТАНЦИИ ========== */

#stations {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    overflow: auto;
}

.station {
    background: var(--bg-soft);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.station-title {
    font-size: 24px;
    font-weight: bold;
    width: 100%;
}

.stream-type {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.variant {
    padding: 8px 12px;
    background: #333;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #444;
    user-select: none;
    font-size: 15px;
}

.variant.active,
.variant:hover {
    background: var(--accent);
}

/* ========== НИЖНИЙ ПЛЕЕР (FIXED) ========== */

#playerBar {
    left: 0;
    right: 0;
    bottom: 0;
    height: 65px;
    background: var(--bg-bar);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #222;
    z-index: 1000;
    box-sizing: border-box;
    position: sticky;
}

#playbtn {
    width: 50px;
    height: 50px;
    background: #2ecc71;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ========== БЕГУЩАЯ СТРОКА ========== */

#trackContainer {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

#trackMarquee {
    display: inline-block;
    white-space: nowrap;
    --marquee-width: -200px;
    --marquee-duration: 10s;
}

#trackMarquee.animate {
    animation: trackMarquee var(--marquee-duration) linear infinite;
    animation-delay: 1.5s;
}

@keyframes trackMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--marquee-width)); }
}


.trackText {
    padding-right: 60px;
}

/* анимация */
.marquee-animate {
    animation: marquee 15s linear infinite;
    animation-delay: 2s;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== ПРАВЫЕ КНОПКИ ========== */
#rightControls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid #444;
    background: #191919;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 18px;
}

/* ========== ПАНЕЛЬ ГРОМКОСТИ ========== */

#volumePanel {
    position: fixed;
    right: 10px;
    bottom: 75px;
    width: 40px;
    height: 160px;
    background: #202020;
    border-radius: 20px;
    border: 1px solid #444;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    box-shadow: 0 0 12px rgba(0,0,0,0.7);
    z-index: 1200;
}

#volumePanel.show {
    display: flex;
}

#volumeSlider {
    writing-mode: sideways-lr;
    width: 100%;
    height: 100%;
    appearance: revert-layer;
}

/* ========== МОДАЛКА ЭКВАЛАЙЗЕРА ========== */

#eqModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1300;
}

#eqModal.show {
    display: flex;
}

.eq-dialog {
    width: 90%;
    max-width: 500px;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 18px 20px 20px;
    box-sizing: border-box;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.eq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.eq-title {
    font-size: 20px;
    font-weight: bold;
}

.eq-close {
    cursor: pointer;
    font-size: 20px;
}

.eq-presets {
    margin: 10px 0 10px;
}

.eq-presets select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #111;
    color: var(--text-main);
}

.eq-footer {
    margin-top: 12px;
    text-align: right;
}

#eqResetBtn {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #222;
    color: var(--text-main);
    cursor: pointer;
    font-size: 13px;
}
#eqResetBtn:hover {
    background: #333;
}

/* Полосы эквалайзера */

.eq-bands {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    font-size: 11px;
    color: var(--text-muted);
}

.eq-band input[type="range"] {
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    width: 100%;
    height: 100px;
    margin-bottom: 4px;
}
.eq-db-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

/* ========== MOBILE ========== */

@media (max-width: 768px) {
    #top {
        flex-direction: column;
        padding: 10px;
        height: calc(100vh - 90px);
    }

    #logo {
        width: 100%;
        height: 220px;
    }

    #stations {
        flex: 1;
        width: 100%;
        padding-right: 0;
        margin-top: 12px;
    }

    .station-title {
        font-size: 22px;
    }

    #playerBar {
        height: 80px;
    }
}

@media (max-height: 500px) {
    #top {
        flex-direction: row;
        padding: 8px;
    }

    #logo {
        width: 180px;
        height: 180px;
    }

    .station-title {
        font-size: 18px;
    }
}
