/* ==========================================================================
   CÓDIGO ORIGINAL RECEPTOR 
   ========================================================================== */
:root {
    --bg-card: rgba(255, 255, 255, 0.35); 
    --accent: #0046ad; 
    --accent-gradient: linear-gradient(135deg, #0033aa 0%, #0055ff 100%);
    --btn-gradient: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    --text-main: #131924;      
    --text-muted: #4e5d78;     
    --border-color: rgba(255, 255, 255, 0.4);
    --sidebar-item-active: rgba(0, 70, 173, 0.12); 
    --shadow-premium: 0 16px 48px 0 rgba(0, 0, 0, 0.12);
    --province-color: #0046ad; 
}

body {
    transition: background-color 0.4s ease, color 0.4s ease;
    font-family: 'Lexend', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    margin: 0;
    position: relative;
    padding: 20px 0; 
    background: rgba(15, 20, 32, 0.88);
}

.background-brand-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('innovakx.png'); 
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain; 
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    z-index: -2;
    filter: invert(1) brightness(1.5);
    opacity: 0.22; 
    pointer-events: none;
}

.footer-premium {
    width: calc(100% - 32px); 
    max-width: 1200px;        
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;         
    box-sizing: border-box;
}

body.theme-dark {
    --bg-card: rgba(15, 20, 32, 0.40);
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --border-color: rgba(255, 255, 255, 0.12);
    --sidebar-item-active: rgba(255, 255, 255, 0.1);
    --province-color: #3b82f6; 
}

body.theme-dark .province-select {
    background-color: #1f293d !important; 
    color: #ffffff !important;            
    border-color: rgba(255, 255, 255, 0.15);
}

body.theme-dark .province-select option {
    background-color: #1f293d !important; 
    color: #ffffff !important;            
}

body.theme-light {
    --bg-card: rgba(255, 255, 255, 0.35);
    --text-main: #111827;
    --text-muted: #4b5563;
    --border-color: rgba(0, 0, 0, 0.08);
    --sidebar-item-active: rgba(0, 70, 173, 0.12);
    --province-color: #0046ad;
}

.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(120px); 
    opacity: 0.45;       
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.aurora-blob {
    transition: transform 0.15s ease-out, background 0.5s ease;
}

.station-item.station-buffering .station-logo::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid transparent;
    border-top-color: var(--accent, #ff0844);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
    box-sizing: border-box;
}

@media (min-width: 902px) {
    .container {
        flex-direction: row;
        align-items: stretch; 
        padding: 24px;
    }
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    transition: background 0.4s, border 0.4s, transform 0.4s, box-shadow 0.4s;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}
.glass-panel:hover::before {
    left: 150%;
    transition: left 0.8s ease-in-out;
}

.glass-panel.main-player.playing {
    animation: playerPulseGlow 4s infinite alternate ease-in-out;
    border-color: rgba(0, 85, 255, 0.4);
}

@keyframes playerPulseGlow {
    0% { box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.12), 0 0 15px 2px rgba(0, 70, 173, 0.15); }
    50% { box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.18), 0 0 25px 4px rgba(255, 8, 68, 0.2); }
    100% { box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.12), 0 0 20px 3px rgba(0, 180, 216, 0.2); }
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 902px) {
    .sidebar {
        width: 380px;
        flex-shrink: 0;
    }
}

.sidebar h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 700;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tabs-container {
    display: flex;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 12px 4px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.25s ease;
}
.tab-btn:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.1); }
.tab-btn.active { background: #ffffff; color: #0046ad; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); }

.search-container { display: flex; gap: 8px; margin-bottom: 15px; }
.search-box {
    flex: 1; padding: 12px 16px; font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.15); border: 1px solid var(--border-color);
    border-radius: 14px; color: var(--text-main); font-family: inherit; outline: none; transition: all 0.3s ease;
}
.search-box:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.25); }

.voice-search-btn.listening {
    background: #ff0844 !important;
    border-color: #ff0844 !important;
    animation: pulse-recording 1s infinite alternate;
}

.province-select {
    width: 100%; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.15);
    color: var(--text-main); border: 1px solid var(--border-color); cursor: pointer;
    outline: none; font-family: inherit; font-size: 0.9rem; margin-bottom: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.station-list {
    overflow-y: auto;
    flex-grow: 1;
    height: 0; 
    min-height: 350px;
    padding-right: 4px;
}
.station-list::-webkit-scrollbar { width: 6px; }
.station-list::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 3px; }

.province-divider {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--province-color); padding: 16px 8px 6px 4px; display: flex; align-items: center; gap: 10px; user-select: none;
    transition: color 0.3s ease;
}
.province-divider::after { content: ''; flex-grow: 1; height: 1px; background: linear-gradient(90deg, rgba(0, 70, 173, 0.25), transparent); }

.station-item {
    display: flex; align-items: center; padding: 12px 14px; border-radius: 18px; cursor: pointer;
    margin-bottom: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.08); position: relative;
    overflow: hidden;
    transform: perspective(400px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s, border-color 0.3s;
}
.station-item::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg); pointer-events: none;
}
.station-item:hover { 
    background: rgba(255, 255, 255, 0.18); 
    transform: perspective(400px) scale(1.02) translateZ(8px) rotateX(2deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.station-item:hover::before { left: 150%; transition: left 0.5s ease-out; }
.station-item.active { background: var(--sidebar-item-active); border-color: rgba(0, 70, 173, 0.35); }

.station-logo {
    width: 48px; height: 48px; border-radius: 12px; background: #ffffff; margin-right: 14px;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
    color: var(--accent); border: 1px solid var(--border-color); overflow: hidden; flex-shrink: 0;
}
.station-logo img { width: 100%; height: 100%; object-fit: cover; }
.station-info { flex-grow: 1; padding-right: 35px; overflow: hidden; }
.station-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-freq { font-size: 0.8rem; color: var(--text-muted); }

.fav-btn {
    background: transparent; border: none; cursor: pointer; color: rgba(20, 25, 38, 0.25);
    padding: 6px; position: absolute; right: 14px; top: calc(50% - 16px); display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.fav-btn:hover { transform: scale(1.2); color: #ffca28; }
.fav-btn.is-fav { color: #ffca28; }

.main-player {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 24px;
}

.now-playing-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--accent); margin-bottom: 20px; font-weight: 700; }
.album-art-container { position: relative; width: 240px; height: 240px; margin-bottom: 20px; }
.album-art-wrapper { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 45px rgba(19, 25, 36, 0.18); border: 2px solid rgba(255, 255, 255, 0.5); transition: all 0.4s ease; }
.album-art { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease, transform 0.4s ease; }
.album-art.fade-out { opacity: 0; transform: scale(1.05); }
.album-art-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 40%, rgba(19, 25, 36, 0.15)); }
.playing .album-art-wrapper { transform: scale(1.04); border-color: var(--accent); box-shadow: 0 25px 50px rgba(0, 70, 173, 0.25); }
.album-art-container.loading .album-art-wrapper { opacity: 0.5; filter: blur(2px); }

/* ===== TEXTOS DEL REPRODUCTOR ===== */
.track-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-artist {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 2px 0;
}

.track-province {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 6px 0;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.track-song {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    margin: 6px 0 14px 0;
    min-height: 1.5rem;
    transition: opacity 0.3s ease;
    letter-spacing: 0.3px;
}
.track-song.is-commercial {
    color: #ff6b6b;
    font-weight: 600;
}
.track-song.fade-in {
    animation: songFadeIn 0.5s ease;
}
@keyframes songFadeIn {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== FIN TEXTOS ===== */

.live-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #ff0844;
    font-weight: 600;
    margin-bottom: 20px;
    background: rgba(255, 8, 68, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 8, 68, 0.15);
}

.pulse-dot { width: 8px; height: 8px; background-color: #ff0844; border-radius: 50%; animation: pulse-animation 1.6s infinite; }

@keyframes pulse-animation {
    0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(255, 8, 68, 0.6); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px rgba(255, 8, 68, 0); }
    100% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(255, 8, 68, 0); }
}

.controls { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }

.btn { 
    background: transparent; border: none; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; 
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; 
}
.btn:hover { color: var(--accent); transform: translateY(-3px) scale(1.06); }
.btn:active { transform: translateY(1px) scale(0.95); }

.btn-play-pause { 
    width: 64px; height: 64px; border-radius: 50%; background: var(--btn-gradient); color: #ffffff; 
    box-shadow: 0 8px 20px rgba(255, 8, 68, 0.25); 
}
.btn-play-pause:hover { 
    transform: translateY(-4px) scale(1.08); 
    box-shadow: 0 14px 28px rgba(255, 8, 68, 0.4), inset 0 4px 12px rgba(255, 255, 255, 0.4); 
}
.btn svg { width: 26px; height: 26px; fill: currentColor; }
.btn-play-pause svg { width: 30px; height: 30px; }

.player-actions-row { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 480px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }

/* === VOLUMEN CON GRADIENTE DINÁMICO === */
.volume-container { 
    display: flex; align-items: center; gap: 12px; flex: 1; min-width: 140px; background: rgba(255, 255, 255, 0.12); 
    padding: 10px 16px; border-radius: 30px; border: 1px solid var(--border-color); 
}
.volume-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    outline: none;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) 70%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.15) 100%);
    transition: background 0.1s ease;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }
.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent);
    cursor: pointer;
}
/* === FIN VOLUMEN === */

.btn-share-premium { 
    background: rgba(255, 255, 255, 0.12); border: 1px solid var(--border-color); width: 44px; height: 44px; border-radius: 50%; 
    color: var(--text-main); display: flex; align-items: center; justify-content: center; cursor: pointer; 
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}
.btn-share-premium:hover { 
    background: var(--accent-gradient); color: #ffffff; transform: translateY(-3px) rotate(8deg); 
    box-shadow: 0 8px 20px rgba(0, 70, 173, 0.3);
}

/* === ECUALUZADOR COMPACTO === */
.eq-panel { 
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 10px;
    margin: 0 auto 14px auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.eq-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--accent);
    text-align: center;
}
.eq-presets {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
}
.eq-preset-btn {
    padding: 4px 10px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.eq-preset-btn.active,
.eq-preset-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: transparent;
}
.eq-sliders {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    width: 100%;
    max-width: 260px;
}
.eq-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.eq-control label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.eq-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 10px;
    height: 60px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}
.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.eq-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #ffffff;
    cursor: pointer;
}
/* === FIN ECUALUZADOR === */

/* === VISUALIZADOR CON GLOW === */
.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 32px;
    margin: 10px auto 0 auto;
    width: fit-content;
}
.bar {
    width: 4px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: height 0.06s ease, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 6px rgba(0, 70, 173, 0.2);
}
.bar.active {
    box-shadow: 0 0 12px rgba(0, 70, 173, 0.6), 0 0 24px rgba(0, 70, 173, 0.2);
}
/* === FIN VISUALIZADOR === */

.footer-content { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 16px; text-align: center; }
@media (min-width: 768px) { .footer-content { flex-direction: row; text-align: left; } }
.footer-brand h3 { font-size: 1.2rem; font-weight: 700; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0 0 4px 0; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-btn { font-family: inherit; font-size: 0.85rem; color: var(--text-main); padding: 8px 16px; background: rgba(255, 255, 255, 0.15); border: 1px solid var(--border-color); border-radius: 20px; font-weight: 500; cursor: pointer; transition: all 0.25s ease; }
.footer-btn:hover { background: var(--accent-gradient); color: #ffffff; }
.footer-copyright { border-top: 1px solid rgba(0, 0, 0, 0.05); padding-top: 12px; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 20, 32, 0.25); backdrop-filter: blur(20px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box { background: var(--bg-card); backdrop-filter: blur(30px); border: 1px solid var(--border-color); border-radius: 28px; padding: 28px; width: 90%; max-width: 550px; max-height: 75vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.12); transform: scale(0.93); transition: transform 0.3s ease; }
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); padding-bottom: 10px; }
.modal-header h2 { font-size: 1.4rem; font-weight: 700; margin: 0; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.btn-close-modal { background: rgba(0, 0, 0, 0.04); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-close-modal:hover { background: rgba(255, 8, 68, 0.1); color: #ff0844; }
.modal-body { font-size: 0.95rem; line-height: 1.6; color: var(--text-main); }

.spinner-button { width: 28px; height: 28px; border: 3.5px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #ffffff; animation: spinButton 0.8s linear infinite; margin: auto; }
@keyframes spinButton { to { transform: rotate(360deg); } }

@keyframes pulse-recording {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 8, 68, 0.7);
    }
    100% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(255, 8, 68, 0);
    }
}

/* ============================================================
   ESTILOS PARA BOTONES DE PAÍS
   ============================================================ */
.country-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s;
}
.country-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}
.country-btn.active {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(0, 70, 173, 0.3);
}

/* ============================================================
   NUEVOS ESTILOS: OVERLAY DE CARGA, BADGE, TOASTS Y VISUALIZADOR
   ============================================================ */

/* Overlay de carga sobre la carátula */
.album-art-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border-radius: 28px;
    z-index: 5;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}
.album-art-loading.active {
    display: flex;
}

.spinner-large {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spinButton 0.9s linear infinite;
}

/* Badge de estado */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 6px 16px 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 6px 0 10px 0;
    border: 1px solid rgba(255,255,255,0.15);
}
.status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffc107;
    animation: pulse-dot 1.2s infinite;
}
.status-badge .status-dot.offline {
    background: #9e9e9e;
    animation: none;
}
.status-badge .status-dot.playing {
    background: #4caf50;
    animation: none;
}
@keyframes pulse-dot {
    0% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.4; transform: scale(0.9); }
}

/* Toast de sin conexión (flotante) */
.offline-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff6b6b;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    z-index: 9999;
    animation: slideUp 0.4s ease;
    max-width: 360px;
}
.offline-toast .offline-icon {
    width: 24px;
    height: 24px;
    fill: #ff6b6b;
    flex-shrink: 0;
}

/* Toast de favoritos */
.favorite-toast {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    z-index: 9998;
    animation: slideUp 0.3s ease;
    transition: opacity 0.3s;
}

@keyframes slideUp {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    .offline-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        padding: 12px 18px;
        font-size: 0.8rem;
    }
    .favorite-toast {
        bottom: 80px;
        left: 16px;
        right: 16px;
        font-size: 0.8rem;
        padding: 10px 16px;
    }
    .player-actions-row {
        gap: 8px;
    }
    .btn-share-premium {
        width: 38px;
        height: 38px;
    }
    .volume-container {
        padding: 6px 12px;
        min-width: 100px;
    }
    .album-art-container {
        width: 180px;
        height: 180px;
    }
    .track-title {
        font-size: 1.4rem;
    }
    .track-song {
        font-size: 0.9rem;
    }
    .eq-panel {
        padding: 8px 6px;
    }
    .eq-slider {
        height: 40px;
        width: 8px;
    }
    .eq-control label {
        font-size: 0.5rem;
    }
    .visualizer {
        height: 24px;
    }
}