/* css/components/radio.css */

.radio-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #0a2e05 0%, #000 100%);
    border-radius: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.radio-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(249, 236, 93, 0.1), transparent 60%);
    pointer-events: none;
}

.radio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.radio-title-stack {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.15);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff3b30;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.radio-player-ui {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .radio-player-ui {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.play-toggle-wrapper {
    position: relative;
}

.radio-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 10px 25px rgba(249, 236, 93, 0.3);
}

.radio-play-btn:hover {
    transform: scale(1.05);
    background: #fff;
}

.radio-play-btn:active {
    transform: scale(0.95);
}

.radio-info-main {
    flex: 1;
}

.now-playing-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 8px;
}

.track-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.radio-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@media (max-width: 560px) {
    .radio-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

.vol-control {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.vol-slider {
    flex: 1;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.15);
    height: 4px;
    border-radius: 2px;
}

.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.radio-actions {
    display: flex;
    gap: 10px;
}

/* Mini Player Global */
.radio-mini {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 440px;
    margin-left: auto;
    z-index: 1000;
    background: rgba(10, 46, 5, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s;
}

.radio-mini[hidden] {
    display: none;
    transform: translateY(120%);
    opacity: 0;
}

.mini-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.mini-content {
    flex: 1;
    min-width: 0;
}

.mini-track {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.mini-meta {
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-close {
    padding: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 18px;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}