/* === SAXB RADIO PLAYER STYLES === */

/* Обертка плеера */
.sax-radio-wrap {
    max-width: 650px;
    width: 100%;
    margin: 20px auto;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sax-radio-empty {
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Основная карточка */
.sax-radio-card {
    background: linear-gradient(180deg, #222222 0%, #181818 100%);
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.3); 
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), inset 0 2px 5px rgba(0, 0, 0, 0.6);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
    position: relative;
    z-index: 2;
}

/* Состояние "Играет" (золотое свечение) */
.sax-radio-card.is-playing {
    border-color: rgba(245, 166, 35, 0.8); 
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), inset 0 2px 5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 166, 35, 0.3); 
    animation: sax-pulse-glow 2s infinite alternate;
}

@keyframes sax-pulse-glow {
    from { box-shadow: inset 0 0 40px rgba(0,0,0,0.8), 0 0 15px rgba(245, 166, 35, 0.1); border-color: rgba(245, 166, 35, 0.5); }
    to { box-shadow: inset 0 0 40px rgba(0,0,0,0.8), 0 0 35px rgba(245, 166, 35, 0.6); border-color: rgba(245, 166, 35, 1); }
}

/* Кнопка Play (объемная) */
.sax-play-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(180deg, #ffbb3d 0%, #f5a623 100%);
    border: 1px solid #d4891a; border-bottom: 4px solid #b87210;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(245, 166, 35, 0.2);
    transition: all 0.1s ease; flex-shrink: 0; padding: 0;
}
.sax-play-btn:active { transform: translateY(3px); border-bottom: 1px solid #b87210; }
.sax-play-btn::after {
    content: ''; display: block; width: 0; height: 0;
    border-style: solid; border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #111; margin-left: 4px;
}
/* Иконка паузы (появляется через JS, если нужно, пока оставим треугольник) */

/* Центр: Название и LIVE */
.sax-player-center {
    display: flex; flex-direction: column; justify-content: center; overflow: hidden; width: 140px; flex-shrink: 0;
}
.sax-track-title {
    font-size: 16px; font-weight: 500; color: #e8e8e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.sax-live-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: bold; color: #f5a623; text-transform: uppercase; letter-spacing: 1px;
}
.sax-live-dot {
    width: 8px; height: 8px; background-color: #ff4d4d; border-radius: 50%; box-shadow: 0 0 8px #ff4d4d;
    animation: sax-blink 1.5s infinite;
}
@keyframes sax-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* === АНТЕННА (CSS ДУГИ) === */
.sax-radio-waves {
    flex-grow: 1; 
    height: 50px; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden;
}

.sax-antenna {
    width: 10px; height: 10px; background: #f5a623; border-radius: 50%; z-index: 10;
    box-shadow: 0 0 8px #f5a623;
    position: relative;
}

.sax-arc {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid transparent;
    border-radius: 50%;
    opacity: 0.15;
    transition: opacity 0.3s;
}

.sax-arc.inner  { width: 18px; height: 36px; }
.sax-arc.middle { width: 28px; height: 46px; }
.sax-arc.outer  { width: 38px; height: 56px; }

.sax-arc.left  { right: 50%; }
.sax-arc.inner.left  { margin-right: 10px; border-left-color: #f5a623; }
.sax-arc.middle.left { margin-right: 18px; border-left-color: #f5a623; }
.sax-arc.outer.left  { margin-right: 26px; border-left-color: #f5a623; }

.sax-arc.right  { left: 50%; }
.sax-arc.inner.right  { margin-left: 10px; border-right-color: #f5a623; }
.sax-arc.middle.right { margin-left: 18px; border-right-color: #f5a623; }
.sax-arc.outer.right  { margin-left: 26px; border-right-color: #f5a623; }

/* Анимация антенны только когда играет */
.sax-radio-card.is-playing .sax-antenna { 
    animation: sax-antenna-pulse 1.2s infinite ease-in-out; 
}
@keyframes sax-antenna-pulse { 
    0%, 100% { transform: scale(0.8); box-shadow: 0 0 6px #f5a623; } 
    50% { transform: scale(1.4); box-shadow: 0 0 16px #f5a623, 0 0 24px #f5a623; } 
}

.sax-radio-card.is-playing .sax-arc.inner  { animation: sax-arc-pulse 1.2s infinite ease-in-out; }
.sax-radio-card.is-playing .sax-arc.middle { animation: sax-arc-pulse 1.2s infinite ease-in-out 0.15s; }
.sax-radio-card.is-playing .sax-arc.outer  { animation: sax-arc-pulse 1.2s infinite ease-in-out 0.3s; }

@keyframes sax-arc-pulse {
    0%, 100% { opacity: 0.2; transform: translateY(-50%) scale(0.9); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.15); }
}

/* Громкость */
.sax-volume-control { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sax-volume-icon { color: #888; font-size: 18px; cursor: pointer; user-select: none; }
.sax-volume-slider { -webkit-appearance: none; width: 60px; height: 4px; background: #0a0a0a; border-radius: 2px; outline: none; }
.sax-volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #f5a623; cursor: pointer; border: 1px solid #d4891a; }

/* Кнопка списка */
.sax-list-toggle {
    background: transparent; border: 1px solid #444; color: #888; border-radius: 4px; width: 32px; height: 32px;
    display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.2s; font-size: 18px; flex-shrink: 0;
}
.sax-list-toggle:hover { color: #f5a623; border-color: #f5a623; }

/* Выпадающий список станций */
.sax-station-list {
    list-style: none; margin: 0; padding: 0; background: #1a1a1a; border: 1px solid rgba(245, 166, 35, 0.3); border-top: none;
    border-radius: 0 0 12px 12px; 
    max-height: 0;
    overflow-y: hidden; 
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    margin-top: -5px; position: relative; z-index: 1;
}
.sax-station-list.open { 
    max-height: 230px; 
    overflow-y: auto; 
    padding-top: 5px; 
}

.sax-station-list::-webkit-scrollbar { width: 6px; }
.sax-station-list::-webkit-scrollbar-track { background: #151515; }
.sax-station-list::-webkit-scrollbar-thumb { background: #f5a623; border-radius: 3px; }

.sax-station-item {
    display: flex; align-items: center; padding: 12px 25px; border-bottom: 1px solid #2a2a2a; cursor: pointer; transition: all 0.2s;
}
.sax-station-item:hover { background: rgba(255, 255, 255, 0.02); }
.sax-station-item.active { background: rgba(245, 166, 35, 0.05); border-left: 3px solid #f5a623; padding-left: 22px; }
.sax-station-num { width: 30px; color: #555; font-size: 14px; }
.sax-station-item.active .sax-station-num { color: #f5a623; }
.sax-station-name { flex-grow: 1; color: #ccc; font-size: 15px; }
.sax-station-item.active .sax-station-name { color: #f5a623; font-weight: bold; }

/* === АДАПТИВНОСТЬ (МОБИЛЬНЫЕ) === */
@media (max-width: 600px) {
    .sax-radio-card {
        padding: 15px;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .sax-radio-waves {
        display: none; /* Скрываем антенну на мобильных, как договаривались */
    }
    .sax-player-center {
        width: auto;
        flex-grow: 1;
        text-align: left;
    }
    .sax-volume-control {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
        order: 3;
    }
    .sax-list-toggle {
        order: 4;
    }
}