/* ========== VORTEX23 WEB RADIO - MINIMAL DESIGN ========== */

/* Conteneur persistant - Positionné correctement */
#persistent-container {
    position: relative;
    z-index: 9999;
    pointer-events: auto;
    display: block;
    width: auto;
    visibility: visible;
    opacity: 1;
}

/* Radio - Positionné dans le header */
.vortex-radio {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: transparent !important;
    border: none !important;
    color: #ffffff;
    z-index: 10;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Equalizer animé (8 barres avec effet glow) */
.radio-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
    width: 48px;
}

.radio-eq-bar {
    width: 4px;
    background: linear-gradient(to top, #60a5fa, #3b82f6);
    border-radius: 0;
    animation: none;
    transition: all 0.15s ease;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* Hauteurs initiales variées */
.radio-eq-bar:nth-child(1) { height: 6px; }
.radio-eq-bar:nth-child(2) { height: 10px; }
.radio-eq-bar:nth-child(3) { height: 14px; }
.radio-eq-bar:nth-child(4) { height: 18px; }
.radio-eq-bar:nth-child(5) { height: 16px; }
.radio-eq-bar:nth-child(6) { height: 12px; }
.radio-eq-bar:nth-child(7) { height: 8px; }
.radio-eq-bar:nth-child(8) { height: 6px; }

/* Animation wave avec délai progressif et effet glow */
.radio-equalizer.playing .radio-eq-bar:nth-child(1) {
    animation: eq-wave 1.2s ease-in-out infinite;
}

.radio-equalizer.playing .radio-eq-bar:nth-child(2) {
    animation: eq-wave 1.1s ease-in-out infinite 0.1s;
}

.radio-equalizer.playing .radio-eq-bar:nth-child(3) {
    animation: eq-wave 1.0s ease-in-out infinite 0.15s;
}

.radio-equalizer.playing .radio-eq-bar:nth-child(4) {
    animation: eq-wave 0.9s ease-in-out infinite 0.2s;
}

.radio-equalizer.playing .radio-eq-bar:nth-child(5) {
    animation: eq-wave 0.95s ease-in-out infinite 0.25s;
}

.radio-equalizer.playing .radio-eq-bar:nth-child(6) {
    animation: eq-wave 1.05s ease-in-out infinite 0.3s;
}

.radio-equalizer.playing .radio-eq-bar:nth-child(7) {
    animation: eq-wave 1.15s ease-in-out infinite 0.35s;
}

.radio-equalizer.playing .radio-eq-bar:nth-child(8) {
    animation: eq-wave 1.25s ease-in-out infinite 0.4s;
}

@keyframes eq-wave {
    0%, 100% {
        height: 6px;
        opacity: 0.6;
        box-shadow: 0 0 4px rgba(59, 130, 246, 0.3);
    }
    50% {
        height: 24px;
        opacity: 1;
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.8), 0 0 20px rgba(96, 165, 250, 0.4);
    }
}

/* Track info - Sobre et minimaliste avec effet cliquable */
.radio-track-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 180px;
    max-width: 240px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.radio-track-info:hover {
    opacity: 0.7;
}

.radio-track-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    font-family: 'Courier New', 'Courier', monospace;
    letter-spacing: 0.5px;
}

.radio-track-artist {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
    font-family: 'Courier New', 'Courier', monospace;
}

/* Scrolling text pour "Buy this title on vinyl" */
.radio-track-scroll {
    font-size: 9px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', 'Courier', monospace;
    white-space: nowrap;
    overflow: hidden;
    max-width: 240px;
    position: relative;
    margin-top: 2px;
}

.radio-track-scroll-inner {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 15s linear infinite;
}

@keyframes scroll-text {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* Wrapper vertical pour contrôles + genre */
.radio-controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Boutons de contrôle - Carrés et minimalistes */
.radio-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.radio-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.radio-btn:active {
    background: #d1d5db;
}

.radio-btn.playing {
    background: #3b82f6;
    border-color: #3b82f6;
}

.radio-btn.playing:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.radio-btn svg {
    width: 14px;
    height: 14px;
    stroke: #6b7280;
}

.radio-btn.playing svg {
    fill: #ffffff;
    stroke: #ffffff;
}

/* Bouton genre (discret avec style électronique) - Compact */
.radio-genre-btn {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-size: 9px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Courier New', 'Courier', monospace;
    width: 100px;
    text-align: center;
}

.radio-genre-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Cache le toggle et les anciens styles */
.radio-toggle,
.radio-close,
.radio-header,
.radio-now-playing,
.radio-label,
.radio-icon,
.radio-logo,
.radio-title {
    display: none;
}

/* Hidden YouTube player */
#radioYoutubePlayer {
    display: none;
}

/* Music Shop (god-header) layout override */
.god-header-container .vortex-radio {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-left: 20px;
    flex-shrink: 0;
}

/* Responsive - Cache sur mobile pour pas encombrer */
@media (max-width: 768px) {
    .vortex-radio {
        display: none;
    }
}
