/* ===== radio-widget.css — стили для радио-виджета ===== */

/* === РАДИО-ВИДЖЕТ В ХЕДЕРЕ (рядом с логотипом на мобилках) === */
.radio-header-link {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    background: rgba(184, 160, 224, 0.06);
    border: 1px solid rgba(184, 160, 224, 0.12);
    transition: var(--transition);
    flex-shrink: 0;
}
.radio-header-link:hover {
    border-color: rgba(184, 160, 224, 0.25);
    background: rgba(184, 160, 224, 0.1);
}
.radio-header-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4757;
    animation: pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
.radio-header-icon {
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 18px;
}
.radio-header-icon .wave {
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
    display: block;
    transition: var(--transition);
}
.radio-header-icon .wave:nth-child(1) {
    height: 7px;
    animation: waveAnim 0.8s ease-in-out infinite alternate;
}
.radio-header-icon .wave:nth-child(2) {
    height: 13px;
    animation: waveAnim 0.8s ease-in-out 0.2s infinite alternate;
}
.radio-header-icon .wave:nth-child(3) {
    height: 9px;
    animation: waveAnim 0.8s ease-in-out 0.4s infinite alternate;
}
.radio-header-link:hover .wave {
    background: #ff6b6b;
}
.radio-header-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.5px;
}

/* === РАДИО-ВИДЖЕТ В МЕНЮ (на десктопе) === */
.radio-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #b8b8c8;
    transition: var(--transition);
}
.radio-nav-link:hover {
    color: #fff;
}
.radio-nav-icon {
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 20px;
}
.radio-nav-icon .wave {
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
    display: block;
    transition: var(--transition);
}
.radio-nav-icon .wave:nth-child(1) {
    height: 8px;
    animation: waveAnim 0.8s ease-in-out infinite alternate;
}
.radio-nav-icon .wave:nth-child(2) {
    height: 14px;
    animation: waveAnim 0.8s ease-in-out 0.2s infinite alternate;
}
.radio-nav-icon .wave:nth-child(3) {
    height: 10px;
    animation: waveAnim 0.8s ease-in-out 0.4s infinite alternate;
}
.radio-nav-link:hover .wave {
    background: #ff6b6b;
}
.radio-nav-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.5px;
}
.radio-nav-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4757;
    animation: pulse 1.5s ease-in-out infinite;
    margin-right: 2px;
}

/* ===== ПЛАВАЮЩИЙ ВИДЖЕТ (в углу) ===== */
.radio-float-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: rgba(12, 12, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 160, 224, 0.15);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    min-width: 200px;
}
.radio-float-widget:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.radio-float-widget .radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4757;
    flex-shrink: 0;
    animation: pulse 1.5s ease-in-out infinite;
}
.radio-float-widget .radio-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.radio-float-widget .radio-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.radio-float-widget .radio-info .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}
.radio-float-widget .radio-info .track {
    font-size: 13px;
    color: #fff;
    font-weight: 400;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.radio-float-widget .radio-info .artist {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 300;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 820px) {
    .radio-float-widget {
        bottom: 16px;
        right: 16px;
        padding: 10px 14px;
        min-width: auto;
        gap: 10px;
    }
    .radio-float-widget .radio-info .track {
        max-width: 80px;
        font-size: 12px;
    }
    .radio-float-widget .radio-info .artist {
        max-width: 80px;
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    /* На мобилках: радио-виджет рядом с логотипом */
    .radio-header-link {
        display: flex !important;
    }
    /* В меню: радио-виджет скрываем */
    .radio-nav-link {
        display: none !important;
    }
    .radio-float-widget {
        bottom: 12px;
        right: 12px;
        padding: 8px 12px;
        border-radius: 12px;
        min-width: auto;
        gap: 8px;
    }
    .radio-float-widget .radio-info .track {
        max-width: 60px;
        font-size: 11px;
    }
    .radio-float-widget .radio-info .artist {
        display: none;
    }
    .radio-float-widget .radio-icon {
        font-size: 16px;
    }
    .radio-float-widget .radio-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 400px) {
    .radio-header-link {
        padding: 4px 10px;
        gap: 6px;
    }
    .radio-header-dot {
        width: 6px;
        height: 6px;
    }
    .radio-header-icon {
        height: 15px;
    }
    .radio-header-icon .wave:nth-child(1) { height: 6px; }
    .radio-header-icon .wave:nth-child(2) { height: 10px; }
    .radio-header-icon .wave:nth-child(3) { height: 8px; }
    .radio-header-label {
        font-size: 10px;
    }
    .radio-float-widget .radio-info .track {
        max-width: 50px;
        font-size: 10px;
    }
}

/* Анимации */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}
@keyframes waveAnim {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1); }
}
