/* ===================================================
STYLE FINAL - CALI RADIO SALSA
Versión depurada tocadiscos
=================================================== */

/* ===================================================
VARIABLES
=================================================== */
:root {
--color-bg-1: #0f172a;
--color-bg-2: #111827;
--color-bg-3: #020617;

--color-primary: #2ecc71;
--color-primary-dark: #27ae60;
--color-spotify: #1DB954;

--color-white: #ffffff;
--color-text-soft: rgba(255, 255, 255, 0.76);
--color-border: rgba(255, 255, 255, 0.12);
--color-card: rgba(255, 255, 255, 0.05);
--color-card-strong: rgba(255, 255, 255, 0.08);

--radius-lg: 30px;
--radius-md: 22px;
--radius-sm: 16px;

--shadow-card: 0 15px 40px rgba(0, 0, 0, 0.45);
--shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.18);

}

/* ===================================================
RESET
=================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

body {
font-family: 'Poppins', sans-serif;
min-height: 100vh;
color: var(--color-white);
background:
linear-gradient(
180deg,
var(--color-bg-1) 0%,
var(--color-bg-2) 50%,
var(--color-bg-3) 100%
);
transition: background 3s ease, color 0.3s ease;
}

img,
canvas,
video,
iframe {
max-width: 100%;
}

/* ===================================================
LAYOUT GENERAL
=================================================== */
.app-layout {
width: 100%;
max-width: 1500px;
margin: auto;
padding: 20px;
display: flex;
gap: 25px;
align-items: flex-start;
}

.contenido-principal {
flex: 1;
min-width: 0;
}

/* ===================================================
SIDEBAR
=================================================== */
.sidebar {
width: 250px;
position: sticky;
top: 20px;
min-height: calc(100vh - 40px);
padding: 30px;
border-radius: var(--radius-lg);
background: var(--color-card);
border: 1px solid var(--color-border);
backdrop-filter: blur(20px);
box-shadow: var(--shadow-soft);
}

/* ===================================================
BOTÓN TEMA
=================================================== */
#themeButton,
.theme-switch-container,
.topbar-actions {
display: none !important;
}

.sidebar-theme-toggle {
position: absolute;
top: 18px;
right: 18px;
width: 46px !important;
height: 46px !important;
min-width: 46px !important;
padding: 0 !important;
border: none;
border-radius: 50%;
display: inline-flex !important;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.12);
color: var(--color-white);
font-size: 18px;
cursor: pointer;
z-index: 5;
transition: 0.3s ease;
}

.sidebar-theme-toggle:hover {
background: rgba(46, 204, 113, 0.25);
transform: translateY(-2px);
}

/* ===================================================
LOGO SIDEBAR
=================================================== */
.logo-app,
.logo-app-vertical {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
text-align: center;
margin-bottom: 42px;
}

.logo-app img,
.logo-app-vertical img,
.logo-app-img,
.logo-app.logo-app-vertical img {
width: 145px;
height: 145px;
object-fit: contain;
border-radius: 26px;
padding: 10px;
background: rgba(255, 255, 255, 0.08);
}

.logo-app h2,
.logo-app-text h2,
.logo-app-vertical h2 {
margin: 0;
font-size: 30px;
line-height: 1.15;
letter-spacing: 0.5px;
font-weight: 800;
}

.logo-app span,
.logo-app-text span,
.logo-app-vertical span {
display: block;
margin-top: 8px;
color: var(--color-primary);
font-size: 18px;
font-weight: 700;
letter-spacing: 1px;
}

/* ===================================================
MENÚ
=================================================== */
.menu-app {
display: flex;
flex-direction: column;
gap: 18px;
}

.menu-item {
display: flex;
align-items: center;
gap: 15px;
padding: 18px;
border-radius: 20px;
color: var(--color-white);
text-decoration: none;
cursor: pointer;
transition: 0.3s ease;
}

.menu-item i {
width: 25px;
}

.menu-item.active {
background: rgba(46, 204, 113, 0.16);
color: var(--color-primary);
}

.menu-item:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--color-primary);
transform: translateX(5px);
}

/* ===================================================
TOPBAR / BUSCADOR
=================================================== */
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
}

.search-box {
flex: 1;
max-width: 500px;
min-height: 58px;
padding: 15px 25px;
display: flex;
align-items: center;
gap: 15px;
border-radius: 50px;
background: rgba(255, 255, 255, 0.14);
border: 1px solid rgba(255, 255, 255, 0.28);
box-shadow: var(--shadow-soft);
transition: 0.3s ease;
}

.search-box i {
color: var(--color-white);
font-size: 18px;
}

.search-box input {
width: 100%;
background: none;
border: none;
outline: none;
color: var(--color-white);
font-size: 16px;
font-weight: 500;
}

.search-box input::placeholder {
color: rgba(255, 255, 255, 0.78);
}

.search-box:focus-within {
border-color: var(--color-primary);
box-shadow:
0 0 0 4px rgba(46, 204, 113, 0.18),
0 12px 32px rgba(0, 0, 0, 0.22);
}


/* ===================================================
   REPRODUCTOR - TOCADISCOS
=================================================== */

.reproductor-salsa {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow-card);
}

.reproductor-salsa .card-content {
    padding: 35px;
    text-align: center;
}

.player-top-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.player-top-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(10, 18, 35, 0.9);
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.track-main-title,
#trackInfo.track-main-title {
    margin: 0 0 16px 0;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.live-badge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(11, 18, 34, 0.92);
    border: 1px solid rgba(46, 204, 113, 0.26);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-badge-mini {
    font-size: 13px;
    padding: 8px 16px;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.75);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.8);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.turntable-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 10px 0 24px;
}

.turntable-scene {
    position: relative;
    width: 430px;
    height: 430px;
    max-width: 92vw;
    max-height: 92vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-record {
    position: relative;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #0f1116 0 14%, #171a21 15% 22%, #090b10 23% 32%, #121622 33% 42%, #05070b 43% 58%, #101521 59% 76%, #05070b 77% 100%);
    box-shadow:
        inset 0 0 0 10px rgba(255, 255, 255, 0.03),
        inset 0 0 45px rgba(255, 255, 255, 0.04),
        0 18px 50px rgba(0, 0, 0, 0.42),
        0 0 55px rgba(46, 204, 113, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spinVinyl 8s linear infinite;
    animation-play-state: paused;
}

.turntable-scene.is-playing .vinyl-record {
    animation-play-state: running;
}

@keyframes spinVinyl {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.vinyl-rings {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(
            circle,
            rgba(255, 255, 255, 0.06) 0 2px,
            rgba(255, 255, 255, 0) 2px 10px
        );
    opacity: 0.18;
    pointer-events: none;
}

.album-cover-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 7px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

#caratula-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}

.vinyl-center-hole {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #111827;
    border: 3px solid rgba(255, 255, 255, 0.75);
    z-index: 4;
}

.turntable-needle {
    position: absolute;
    top: 34px;
    right: 54px;
    width: 160px;
    height: 160px;
    transform-origin: 18px 18px;
    transform: rotate(18deg);
    transition: transform 0.45s ease;
    z-index: 5;
    pointer-events: none;
}

.turntable-scene.is-playing .turntable-needle {
    transform: rotate(33deg);
}

.needle-arm {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 118px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #bfc7d8 0%, #8b95a8 48%, #d9dee8 100%);
    transform: rotate(42deg);
    transform-origin: left center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.needle-head {
    position: absolute;
    top: 92px;
    left: 88px;
    width: 38px;
    height: 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, #232a38 0%, #0f1727 100%);
    transform: rotate(42deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.turntable-needle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, #1f2937 0%, #0b1220 75%);
    border: 4px solid rgba(255, 255, 255, 0.08);
}

.overlay-play-button {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.92);
    color: #ffffff;
    font-size: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 7;
    box-shadow: 0 0 0 12px rgba(46, 204, 113, 0.14);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.overlay-play-button:hover {
    transform: scale(1.05);
    background: rgba(39, 174, 96, 0.95);
}

.station-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 22px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(9, 15, 30, 0.88);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.player-controls-main {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-play-main,
#btnPlayPausa.btn-play-main {
    width: 78px;
    height: 78px;
    min-width: 78px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #32d76b 0%, #22c55e 100%);
    color: #ffffff;
    font-size: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 12px rgba(46, 204, 113, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-play-main:hover,
#btnPlayPausa.btn-play-main:hover {
    transform: translateY(-2px) scale(1.03);
}

.volume-control-wrap {
    width: min(100%, 1120px);
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto 22px;
}

.btn-volume-toggle {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(9, 15, 30, 0.88);
    color: #ffffff;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-volume-toggle:hover {
    transform: scale(1.05);
    background: rgba(20, 30, 55, 0.95);
}

#volumenControl {
    width: 100%;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: #2f7efc;
    outline: none;
}

#volumenControl::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2f7efc;
    border: 2px solid #ffffff;
    cursor: pointer;
}

#volumenControl::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2f7efc;
    border: 2px solid #ffffff;
    cursor: pointer;
}

.player-status-line {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.spectrum-container {
    height: 86px;
    padding: 10px 20px 22px;
}

#miniSpectrum {
    width: 100%;
    height: 72px;
    display: block;
}

/* ===================================================
BOTONES COMPARTIR
=================================================== */
.redes-compartir-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
margin-top: 30px;
}

.redes-compartir-grid button {
height: 60px;
border: none;
border-radius: 18px;
cursor: pointer;
font-size: 24px;
transition: 0.3s ease;
}

#btnCompartirWhatsapp {
background: #25D366;
color: var(--color-white);
}

#btnCompartirFacebook {
background: #1877F2;
color: var(--color-white);
}

#btnCompartirInstagram {
background:
linear-gradient(
45deg,
#833AB4,
#E1306C,
#FCAF45
);
color: var(--color-white);
}

#btnCopiarEnlace {
background: #374151;
color: var(--color-white);
}

.redes-compartir-grid button:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.redes-compartir-grid button:active {
transform: scale(0.95);
}

/* ===================================================
SECCIONES / TARJETAS
=================================================== */
.card-section {
margin-top: 30px;
padding: 30px;
border-radius: var(--radius-lg);
background: var(--color-card);
border: 1px solid var(--color-border);
backdrop-filter: blur(20px);
transition: 0.3s ease;
}

.card-section:hover {
transform: translateY(-4px);
}

.card-section h2 {
margin-top: 0;
margin-bottom: 25px;
display: flex;
align-items: center;
gap: 15px;
color: var(--color-white);
font-size: 22px;
font-weight: 800;
}

.card-section h2 i {
color: var(--color-primary);
}

.card-section p {
line-height: 1.8;
color: #d9d9d9;
}

/* ===================================================
SPOTIFY
=================================================== */
#spotifySection {
scroll-margin-top: 24px;
}

.spotify-section-featured {
margin-top: 28px;
}

.spotify-section-featured h2 i {
color: var(--color-spotify);
}

.spotify-card {
padding: 20px;
border-radius: 20px;
background: rgba(29, 185, 84, 0.08);
border: 1px solid rgba(29, 185, 84, 0.18);
}

.spotify-header {
display: flex;
align-items: center;
gap: 10px;
color: var(--color-spotify);
font-size: 20px;
margin-bottom: 20px;
}

.spotify-body {
display: flex;
gap: 20px;
align-items: center;
}

.spotify-img,
.spotify-cover {
width: 140px;
height: 140px;
border-radius: 20px;
object-fit: cover;
}

.spotify-info h3 {
margin-bottom: 10px;
}

.spotify-info p {
color: #bfbfbf;
line-height: 1.6;
}

.spotify-link {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 15px;
padding: 12px 22px;
background: #121212;
color: var(--color-spotify);
text-decoration: none;
font-weight: 600;
border: 1px solid var(--color-border);
border-radius: 50px;
transition: 0.3s ease;
}

.spotify-link:hover {
background: var(--color-spotify);
color: var(--color-white);
transform: translateY(-3px);
}

/* ===================================================
GRID DE SECCIONES
=================================================== */
.grid-secciones {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 25px;
margin-top: 30px;
}

.grid-secciones.layout-fase7 {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
grid-template-areas:
"history lyrics"
"social app";
gap: 25px;
align-items: stretch;
}

.layout-fase7 .history-section {
grid-area: history;
}

.layout-fase7 .lyrics-section {
grid-area: lyrics;
position: relative;
top: auto;
height: 100%;
}

.layout-fase7 .social-section {
grid-area: social;
}

.layout-fase7 .app-section {
grid-area: app;
}

.layout-fase7 #lyricsContainer {
max-height: 520px;
}

/* ===================================================
LETRA EN VIVO
=================================================== */
#lyricsContainer {
max-height: 460px;
overflow-y: auto;
padding: 10px 12px 10px 0;
}

#lyricsContainer::-webkit-scrollbar {
width: 8px;
}

#lyricsContainer::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15);
border-radius: 20px;
}

.lyrics-loading {
text-align: center;
color: rgba(255, 255, 255, 0.7);
padding: 20px;
}

.lyrics-line {
padding: 8px 0;
margin-bottom: 6px;
font-size: 17px;
line-height: 1.9;
font-weight: 500;
color: rgba(255, 255, 255, 0.82);
animation: fadeLyrics 0.5s ease;
}

.lyrics-line.active {
color: var(--color-white);
font-size: 22px;
font-weight: 700;
text-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}

@keyframes fadeLyrics {
from {
opacity: 0;
transform: translateY(10px);
}

to {
    opacity: 1;
    transform: translateY(0);
}

}

/* ===================================================
HISTORIAL
=================================================== */
.historial-item {
display: flex;
align-items: center;
gap: 15px;
padding: 14px;
margin-bottom: 12px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--color-border);
transition: 0.3s ease;
animation: aparecerCancion 0.5s ease;
}

.historial-item:hover {
transform: translateX(8px);
background: rgba(255, 255, 255, 0.08);
}

.historial-cover {
width: 58px;
height: 58px;
border-radius: 15px;
object-fit: cover;
flex-shrink: 0;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.historial-info {
flex: 1;
min-width: 0;
}

.historial-song {
font-size: 16px;
font-weight: 700;
color: var(--color-white);
line-height: 1.4;
}

.historial-artist {
margin-top: 5px;
color: #9ca3af;
font-size: 14px;
}

.historial-album {
margin-top: 5px;
color: #6b7280;
font-size: 13px;
}

.historial-vacio {
text-align: center;
color: #888;
padding: 20px;
}

@keyframes aparecerCancion {
from {
opacity: 0;
transform: translateY(-15px);
}

to {
    opacity: 1;
    transform: translateY(0);
}

}

/* ===================================================
REDES SOCIALES
=================================================== */
.social-section {
min-height: 190px;
}

.social-grid {
width: 100%;
height: auto;
display: block;
}

.social-section h2 {
margin-bottom: 22px;
}

.social-section .social-dynamic-icons {
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(62px, 74px));
justify-content: start;
align-items: center;
gap: 12px;
margin-top: 22px;
}

.social-section .social-dynamic-button {
width: 74px;
min-width: 74px;
max-width: 74px;
height: 52px;
min-height: 52px;
max-height: 52px;
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
text-decoration: none;
color: #ffffff;
font-size: 22px;
overflow: hidden;
border-radius: 15px;
margin: 0;
padding: 0;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
transition:
transform 0.22s ease,
filter 0.22s ease,
box-shadow 0.22s ease;
}

.social-section .social-dynamic-button span {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
opacity: 0;
pointer-events: none;
}

.social-section .social-dynamic-button:hover {
transform: translateY(-4px) scale(1.03);
filter: brightness(1.08);
box-shadow: 0 20px 38px rgba(0, 0, 0, 0.32);
}

.social-dynamic-whatsapp {
background: linear-gradient(135deg, #25d366, #22c55e);
}

.social-dynamic-facebook {
background: linear-gradient(135deg, #2563eb, #1877f2);
}

.social-dynamic-instagram {
background:
radial-gradient(circle at 30% 110%, #feda75 0%, #fa7e1e 25%, transparent 45%),
linear-gradient(135deg, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-dynamic-tiktok {
background: #0b0b0f;
}

.social-dynamic-youtube {
background: linear-gradient(135deg, #ef4444, #dc2626);
}

.social-dynamic-spotify {
background: linear-gradient(135deg, #1ed760, #16a34a);
}

.social-dynamic-x,
.social-dynamic-twitter {
background: linear-gradient(135deg, #111827, #000000);
}

.social-dynamic-web,
.social-dynamic-website {
background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.social-dynamic-email {
background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.social-dynamic-phone {
background: linear-gradient(135deg, #10b981, #047857);
}

.social-dynamic-custom {
background: linear-gradient(135deg, #334155, #111827);
}

.social-dynamic-empty {
margin-top: 22px;
padding: 16px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.045);
color: var(--text-muted, rgba(255, 255, 255, 0.72));
font-weight: 800;
text-align: center;
}

@media (max-width: 700px) {
.social-section .social-dynamic-icons {
grid-template-columns: repeat(auto-fit, minmax(54px, 62px));
gap: 10px;
margin-top: 18px;
}

.social-section .social-dynamic-button {
width: 62px;
min-width: 62px;
max-width: 62px;
height: 48px;
min-height: 48px;
max-height: 48px;
border-radius: 14px;
font-size: 20px;
}
}

/* ===================================================
APP / INSTALAR
=================================================== */
.app-section {
display: flex;
flex-direction: column;
}

.app-section h2 {
margin-bottom: 24px;
}

.btn-app,
.app-section .btn-app,
#btnInstallApp,
#btnDescargarApp,
[data-install-app] {
width: 100%;
height: 65px;
margin: auto auto 0 auto;
padding: 0 22px !important;
border: none;
border-radius: 20px;
background: var(--color-primary);
color: var(--color-white);
font-size: 18px;
font-weight: 700;
cursor: pointer;
display: flex !important;
align-items: center !important;
justify-content: center !important;
text-align: center !important;
line-height: 1 !important;
white-space: nowrap;
transition: 0.3s ease;
}

.btn-app:hover,
.app-section .btn-app:hover {
background: var(--color-primary-dark);
transform: translateY(-2px);
}

/* ===================================================
EXPLORA CALI RADIO
Se deja oculto porque fue removido del diseño final
=================================================== */
.recent-section {
display: none !important;
}

/* ===================================================
FOOTER
=================================================== */
footer,
.footer,
.site-footer {
width: 100%;
padding: 26px 12px 12px;
display: flex;
justify-content: center;
align-items: center;
text-align: center !important;
}

footer p,
.footer p,
.site-footer p,
.copyright,
.footer-copy {
width: 100%;
margin: 0 auto;
text-align: center !important;
color: var(--color-text-soft);
}

/* ===================================================
   AJUSTE PC - BOTÓN TEMA EN TOPBAR Y REDES
=================================================== */
@media (min-width: 769px) {

    .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }

    .search-box {
        max-width: 500px;
    }

    .topbar-theme-toggle {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        padding: 0 !important;
        border: none;
        border-radius: 50%;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        transition: 0.3s ease;
    }

    .topbar-theme-toggle:hover {
        background: rgba(46, 204, 113, 0.22);
        transform: translateY(-2px);
    }

    .sidebar-theme-toggle {
        display: none !important;
    }

    .social-section {
        padding-bottom: 36px;
    }

    .social-grid {
        padding-bottom: 10px;
    }

    body.light-theme .topbar-theme-toggle {
        background: rgba(255, 246, 235, 0.92);
        color: #111827;
        box-shadow: 0 8px 24px rgba(80, 45, 20, 0.16);
    }

}

/* ===================================================
   FASE 10 - EDITORIAL SALSERA
=================================================== */
.salsa-editorial-section {
    margin-top: 32px;
    padding: 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(231, 76, 60, 0.14), transparent 32%),
        rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.085);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.salsa-section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 30px auto;
}

.salsa-kicker,
.salsa-subsection-title span,
.salsa-chart-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2ecc71;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.salsa-section-heading h2 {
    margin: 12px 0 12px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 800;
}

.salsa-section-heading p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.7;
}

.salsa-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.salsa-chart-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.085);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.salsa-chart-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    top: -70px;
    right: -70px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.16);
    filter: blur(2px);
}

.salsa-chart-featured::before {
    background: rgba(231, 76, 60, 0.16);
}

.salsa-chart-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.salsa-chart-header h3 {
    margin-top: 8px;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.25;
}

.salsa-chart-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.16);
    border: 1px solid rgba(46, 204, 113, 0.30);
    color: #d1fae5;
    font-size: 12px;
    font-weight: 800;
}

.salsa-chart-featured .salsa-chart-pill {
    background: rgba(231, 76, 60, 0.14);
    border-color: rgba(231, 76, 60, 0.30);
    color: #fee2e2;
}

.salsa-chart-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.salsa-chart-item {
    display: grid;
    grid-template-columns: 42px 58px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.salsa-chart-item:hover {
    transform: translateX(6px);
    background: rgba(46, 204, 113, 0.08);
    border-color: rgba(46, 204, 113, 0.20);
}

.salsa-rank {
    color: rgba(255, 255, 255, 0.34);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.salsa-chart-item img {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.salsa-chart-info {
    min-width: 0;
}

.salsa-chart-info strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.salsa-chart-info span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- ARTISTAS ---------- */

.salsa-artists-block,
.salsa-albums-block {
    margin-top: 34px;
}

.salsa-subsection-title {
    text-align: center;
    margin-bottom: 22px;
}

.salsa-subsection-title h3 {
    margin-top: 8px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.salsa-artists-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.salsa-artist-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 14px 12px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.075);
    transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.salsa-artist-card:hover {
    transform: translateY(-6px);
    background: rgba(46, 204, 113, 0.075);
    border-color: rgba(46, 204, 113, 0.22);
}

.salsa-artist-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.salsa-artist-card h4 {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 5px;
}

.salsa-artist-card p {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.35;
}

/* ---------- ÁLBUMES ---------- */

.salsa-albums-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.salsa-album-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.075);
    transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.salsa-album-card:hover {
    transform: translateY(-6px);
    background: rgba(231, 76, 60, 0.075);
    border-color: rgba(231, 76, 60, 0.22);
}

.salsa-album-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
}

.salsa-album-card div {
    padding: 15px;
}

.salsa-album-card h4 {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.salsa-album-card p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.4;
}

/* ---------- MODO CLARO ---------- */

body.light-theme .salsa-editorial-section {
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(231, 76, 60, 0.10), transparent 32%),
        rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .salsa-section-heading h2,
body.light-theme .salsa-chart-header h3,
body.light-theme .salsa-subsection-title h3,
body.light-theme .salsa-chart-info strong,
body.light-theme .salsa-artist-card h4,
body.light-theme .salsa-album-card h4 {
    color: #111827;
}

body.light-theme .salsa-section-heading p,
body.light-theme .salsa-chart-info span,
body.light-theme .salsa-artist-card p,
body.light-theme .salsa-album-card p {
    color: rgba(17, 24, 39, 0.62);
}

body.light-theme .salsa-chart-card,
body.light-theme .salsa-artist-card,
body.light-theme .salsa-album-card {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .salsa-chart-item {
    background: rgba(17, 24, 39, 0.035);
    border-color: rgba(17, 24, 39, 0.075);
}

body.light-theme .salsa-rank {
    color: rgba(17, 24, 39, 0.28);
}

/* ===================================================
   AJUSTE DISTRIBUCIÓN FINAL - FASE 10
=================================================== */
@media (min-width: 769px) {

    .layout-live-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
        grid-template-areas: "history lyrics";
        gap: 25px;
        align-items: stretch;
        margin-top: 24px;
    }

    .layout-live-content .history-section {
        grid-area: history;
    }

    .layout-live-content .lyrics-section {
        grid-area: lyrics;
    }

    .layout-bottom-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
        grid-template-areas: "social app";
        gap: 25px;
        align-items: stretch;
        margin-top: 28px;
    }

    .layout-bottom-content .social-section {
        grid-area: social;
    }

    .layout-bottom-content .app-section {
        grid-area: app;
    }

    .salsa-editorial-section {
        margin-top: 28px;
    }

}

/* ===================================================
   AJUSTE MODO CLARO - BADGES EDITORIALES
=================================================== */
body.light-theme .salsa-chart-pill {
    background: rgba(46, 204, 113, 0.20);
    border: 1px solid rgba(46, 204, 113, 0.46);
    color: #047857;
    font-weight: 900;
    box-shadow:
        0 10px 24px rgba(46, 204, 113, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.light-theme .salsa-chart-featured .salsa-chart-pill {
    background: rgba(231, 76, 60, 0.18);
    border: 1px solid rgba(231, 76, 60, 0.46);
    color: #b91c1c;
    box-shadow:
        0 10px 24px rgba(231, 76, 60, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.light-theme .salsa-chart-card::before {
    opacity: 0.75;
}

body.light-theme .salsa-chart-label,
body.light-theme .salsa-kicker,
body.light-theme .salsa-subsection-title span {
    color: #16a34a;
    text-shadow: none;
}

body.light-theme .salsa-chart-featured .salsa-chart-label {
    color: #dc2626;
}

/* ===================================================
   BOTÓN APP - MEJORA FINAL
=================================================== */

/* Recuperar fondo y hover del botón Instalar App */

.app-section .btn-app,
.btn-app,
#btnInstallApp {
    width: auto !important;
    min-width: 170px;
    height: auto !important;
    min-height: 54px;
    margin: 18px auto 0 auto;
    padding: 15px 30px !important;
    border: none !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #2ecc71, #16a34a) !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(46, 204, 113, 0.26);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.app-section {
    text-align: center;
}

.app-section .btn-app:hover,
.btn-app:hover,
#btnInstallApp:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #27ae60, #15803d) !important;
    box-shadow: 0 18px 36px rgba(46, 204, 113, 0.36);
}

.app-section .btn-app:active,
.btn-app:active,
#btnInstallApp:active {
    transform: translateY(-1px);
}

body.light-theme .app-section .btn-app,
body.light-theme .btn-app,
body.light-theme #btnInstallApp {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.24);
}

body.light-theme .app-section .btn-app:hover,
body.light-theme .btn-app:hover,
body.light-theme #btnInstallApp:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    box-shadow: 0 18px 34px rgba(34, 197, 94, 0.34);
}

/* ===================================================
   RANKINGS Y ÁLBUMES - DETALLES FINALES
=================================================== */

.ranking-update-text {
    width: fit-content;
    max-width: 100%;
    margin: 14px auto 0 auto;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

body.light-theme .ranking-update-text {
    background: rgba(46, 204, 113, 0.14);
    border: 1px solid rgba(46, 204, 113, 0.32);
    color: rgba(17, 24, 39, 0.72);
}
.salsa-album-card {
    color: inherit;
    text-decoration: none;
}

.salsa-album-card:hover {
    text-decoration: none;
}

.salsa-album-cta {
    width: fit-content;
    margin-top: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 215, 96, 0.16);
    border: 1px solid rgba(30, 215, 96, 0.34);
    color: #22c55e;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.salsa-album-card:hover .salsa-album-cta {
    transform: translateY(-2px);
    background: rgba(30, 215, 96, 0.24);
    border-color: rgba(30, 215, 96, 0.55);
    color: #86efac;
}

.salsa-album-cta-muted {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.24);
    color: rgba(255, 255, 255, 0.62);
}

body.light-theme .salsa-album-cta {
    background: rgba(22, 163, 74, 0.13);
    border-color: rgba(22, 163, 74, 0.32);
    color: #15803d;
}

body.light-theme .salsa-album-card:hover .salsa-album-cta {
    background: rgba(22, 163, 74, 0.20);
    border-color: rgba(22, 163, 74, 0.46);
    color: #166534;
}

body.light-theme .salsa-album-cta-muted {
    background: rgba(100, 116, 139, 0.10);
    border-color: rgba(100, 116, 139, 0.22);
    color: rgba(51, 65, 85, 0.70);
}


/* ===================================================
   REPRODUCTOR - MODO CLARO Y RESPONSIVE
=================================================== */

body.light-theme .track-main-title,
body.light-theme #trackInfo.track-main-title {
    color: #111827;
    text-shadow: none;
}

body.light-theme .player-top-badge span,
body.light-theme .live-badge,
body.light-theme .station-chip,
body.light-theme .btn-volume-toggle {
    background: rgba(255, 255, 255, 0.86);
    color: #111827;
}

body.light-theme .btn-play-main,
body.light-theme #btnPlayPausa.btn-play-main {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
}

body.light-theme .vinyl-center-hole {
    background: #e5e7eb;
    border-color: #111827;
}

@media (max-width: 768px) {
    .reproductor-salsa .card-content {
        padding: 28px 18px;
    }

    .track-main-title,
    #trackInfo.track-main-title {
        font-size: 34px;
    }

    .turntable-scene {
        width: 340px;
        height: 340px;
    }

    .vinyl-record {
        width: 290px;
        height: 290px;
    }

    .album-cover-wrapper {
        width: 165px;
        height: 165px;
    }

    .vinyl-center-hole {
        width: 18px;
        height: 18px;
    }

    .turntable-needle {
        top: 26px;
        right: 24px;
        transform-origin: 18px 18px;
    }

    .volume-control-wrap {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .track-main-title,
    #trackInfo.track-main-title {
        font-size: 28px;
    }

    .turntable-scene {
        width: 300px;
        height: 300px;
    }

    .vinyl-record {
        width: 250px;
        height: 250px;
    }

    .album-cover-wrapper {
        width: 145px;
        height: 145px;
    }

    .vinyl-center-hole {
        width: 17px;
        height: 17px;
    }

    .btn-play-main,
    #btnPlayPausa.btn-play-main {
        width: 72px;
        height: 72px;
        min-width: 72px;
        font-size: 28px;
    }

    .turntable-needle {
        top: 18px;
        right: 10px;
        transform: rotate(12deg);
    }

    .turntable-scene.is-playing .turntable-needle {
        transform: rotate(26deg);
    }
}


/* ===================================================
   RANKINGS DINÁMICOS - DISEÑO PREMIUM LIMPIO
   Top semanal, top mensual, artistas destacados y joyas
=================================================== */

.music-discovery-section,
.featured-music-section {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.22);
    color: var(--site-primary-color, var(--color-primary, #2ecc71));
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.section-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    font-weight: 950;
}

.section-title i {
    color: var(--site-secondary-color, #f97316);
    margin-right: 8px;
}

.section-description {
    max-width: 760px;
    margin: 0 0 26px;
    color: var(--text-soft, var(--color-text-soft, #cbd5e1));
    font-size: 16px;
    line-height: 1.7;
}

/* Top semanal y mensual en dos columnas */

.rankings-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.ranking-panel {
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.10), transparent 34%),
        rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.20);
}

.ranking-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.ranking-panel-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 950;
}

.ranking-panel-header h3 i {
    color: var(--site-secondary-color, #f97316);
    margin-right: 7px;
}

.ranking-label {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: var(--site-secondary-color, #f97316);
    font-size: 12px;
    font-weight: 900;
}

/* Listas y tarjetas dinámicas */

.dynamic-ranking-list,
.ranking-list {
    display: grid;
    gap: 14px;
    min-height: 80px;
}

.ranking-item,
.ranking-card {
    display: grid;
    grid-template-columns: 42px 68px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.085);
    box-shadow: none;
}

.ranking-position {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        var(--site-primary-color, var(--color-primary, #2ecc71)),
        var(--site-primary-dark-color, var(--color-primary-dark, #16a34a))
    );
    color: #ffffff;
    font-weight: 950;
    font-size: 15px;
}

.ranking-cover {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px;
    min-height: 68px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.ranking-info {
    min-width: 0;
}

.ranking-info strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 950;
}

.ranking-info span,
.ranking-info small {
    display: block;
    color: var(--text-soft, var(--color-text-soft, #cbd5e1));
    font-size: 13px;
    line-height: 1.35;
}

/* Botón Spotify único y consistente */

.ranking-spotify-link {
    min-width: 108px;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    justify-self: center;
    align-self: center;
    background: rgba(30, 215, 96, 0.13);
    border: 1px solid rgba(30, 215, 96, 0.32);
    color: #1ed760;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.ranking-spotify-link i {
    font-size: 16px;
}

.ranking-spotify-link span {
    display: inline-block;
}

.ranking-spotify-link:hover {
    transform: translateY(-2px);
    background: rgba(30, 215, 96, 0.22);
    border-color: rgba(30, 215, 96, 0.52);
    color: #86efac;
}

/* Artistas y joyas en tarjetas horizontales */

.featured-artists-grid,
.featured-albums-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.featured-artists-grid .ranking-card,
.featured-albums-grid .ranking-card {
    grid-template-columns: 44px 82px minmax(0, 1fr);
    min-height: 126px;
    padding: 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 38%),
        rgba(255, 255, 255, 0.05);
}

.featured-artists-grid .ranking-cover,
.featured-albums-grid .ranking-cover {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px;
    min-height: 82px;
    border-radius: 22px;
}

.featured-artists-grid .ranking-spotify-link,
.featured-albums-grid .ranking-spotify-link {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 8px;
}

/* Estado vacío */

.ranking-empty {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: var(--text-soft, var(--color-text-soft, #cbd5e1));
    text-align: center;
    font-weight: 800;
}

/* Modo claro */

body.light-theme .section-title,
body.light-theme .ranking-panel-header h3,
body.light-theme .ranking-info strong {
    color: #111827;
}

body.light-theme .ranking-panel,
body.light-theme .ranking-card,
body.light-theme .ranking-item,
body.light-theme .featured-artists-grid .ranking-card,
body.light-theme .featured-albums-grid .ranking-card {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(17, 24, 39, 0.08);
}

body.light-theme .ranking-info span,
body.light-theme .ranking-info small,
body.light-theme .section-description {
    color: #64748b;
}

body.light-theme .ranking-spotify-link {
    background: rgba(22, 163, 74, 0.13);
    border-color: rgba(22, 163, 74, 0.32);
    color: #15803d;
}

body.light-theme .ranking-spotify-link:hover {
    background: rgba(22, 163, 74, 0.20);
    border-color: rgba(22, 163, 74, 0.46);
    color: #166534;
}

/* Responsive */

@media (max-width: 980px) {
    .rankings-dashboard {
        grid-template-columns: 1fr;
    }

    .featured-artists-grid,
    .featured-albums-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .music-discovery-section,
    .featured-music-section {
        width: min(100% - 24px, 1180px);
        margin: 32px auto;
    }

    .ranking-panel {
        padding: 16px;
        border-radius: 22px;
    }

    .ranking-item,
    .ranking-card,
    .featured-artists-grid .ranking-card,
    .featured-albums-grid .ranking-card {
        grid-template-columns: 36px 58px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        min-height: auto;
    }

    .ranking-position {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .ranking-cover,
    .featured-artists-grid .ranking-cover,
    .featured-albums-grid .ranking-cover {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px;
        min-height: 58px;
        border-radius: 16px;
    }

    .featured-artists-grid,
    .featured-albums-grid {
        grid-template-columns: 1fr;
    }

    .ranking-spotify-link,
    .featured-artists-grid .ranking-spotify-link,
    .featured-albums-grid .ranking-spotify-link {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 8px;
    }
}

/* ===================================================
   AJUSTE ESPACIO TEXTO EN ARTISTAS Y JOYAS
=================================================== */

.featured-artists-grid .ranking-card,
.featured-albums-grid .ranking-card {
    column-gap: 20px;
}

.featured-artists-grid .ranking-info,
.featured-albums-grid .ranking-info {
    padding-left: 8px;
}

.featured-artists-grid .ranking-info strong,
.featured-albums-grid .ranking-info strong {
    padding-right: 8px;
}

@media (max-width: 640px) {
    .featured-artists-grid .ranking-card,
    .featured-albums-grid .ranking-card {
        column-gap: 14px;
    }

    .featured-artists-grid .ranking-info,
    .featured-albums-grid .ranking-info {
        padding-left: 4px;
    }
}
/* ===================================================
   FASE 21B - AVISOS Y BANNERS PÚBLICOS
=================================================== */

.public-banners-section {
    width: 100%;
    display: grid;
    gap: 18px;
    margin: 0 0 28px 0;
}

.public-banner {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.18), transparent 36%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.13), transparent 34%),
        rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.105);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.public-banner-glow {
    position: absolute;
    width: 190px;
    height: 190px;
    top: -95px;
    right: -70px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.18);
    filter: blur(2px);
    pointer-events: none;
}

.public-banner-content {
    position: relative;
    z-index: 2;
    padding: 26px 30px;
}

.public-banner-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.13);
    border: 1px solid rgba(46, 204, 113, 0.26);
    color: #86efac;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-banner-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.18);
    color: #2ecc71;
    font-size: 12px;
}

.public-banner h2 {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.12;
    font-weight: 950;
}

.public-banner p {
    max-width: 860px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.75;
    font-weight: 500;
}

.public-banner-button {
    width: fit-content;
    margin-top: 20px;
    padding: 13px 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #2ecc71, #16a34a);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 14px 30px rgba(46, 204, 113, 0.22);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.public-banner-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
    box-shadow: 0 18px 38px rgba(46, 204, 113, 0.32);
}

.public-banner-image {
    position: absolute;
    inset: 0 0 0 auto;
    width: 34%;
    min-width: 260px;
    opacity: 0.18;
    z-index: 1;
}

.public-banner-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.25));
}

.public-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Variantes por tipo */

.public-banner-info {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 36%),
        rgba(255, 255, 255, 0.055);
}

.public-banner-info .public-banner-kicker {
    background: rgba(59, 130, 246, 0.13);
    border-color: rgba(59, 130, 246, 0.26);
    color: #93c5fd;
}

.public-banner-info .public-banner-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
}

.public-banner-success {
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 36%),
        rgba(255, 255, 255, 0.055);
}

.public-banner-warning,
.public-banner-special,
.public-banner-program {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 36%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.13), transparent 34%),
        rgba(255, 255, 255, 0.055);
}

.public-banner-warning .public-banner-kicker,
.public-banner-special .public-banner-kicker,
.public-banner-program .public-banner-kicker {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.30);
    color: #fde68a;
}

.public-banner-warning .public-banner-icon,
.public-banner-special .public-banner-icon,
.public-banner-program .public-banner-icon {
    background: rgba(245, 158, 11, 0.18);
    color: #facc15;
}

.public-banner-danger {
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.18), transparent 36%),
        rgba(255, 255, 255, 0.055);
}

.public-banner-danger .public-banner-kicker {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.30);
    color: #fecaca;
}

.public-banner-danger .public-banner-icon {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

.public-banner-event {
    background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.18), transparent 36%),
        rgba(255, 255, 255, 0.055);
}

.public-banner-event .public-banner-kicker {
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.30);
    color: #d8b4fe;
}

.public-banner-event .public-banner-icon {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
}

/* Modo claro */

body.light-theme .public-banner {
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.14), transparent 36%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.10), transparent 34%),
        rgba(255, 255, 255, 0.86);
    border-color: rgba(17, 24, 39, 0.08);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

body.light-theme .public-banner h2 {
    color: #111827;
}

body.light-theme .public-banner p {
    color: rgba(17, 24, 39, 0.68);
}

body.light-theme .public-banner-image::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.46));
}

/* Responsive */

@media (max-width: 700px) {
    .public-banners-section {
        margin-bottom: 24px;
        gap: 14px;
    }

    .public-banner {
        min-height: auto;
        border-radius: 24px;
    }

    .public-banner-content {
        padding: 22px;
    }

    .public-banner h2 {
        font-size: 25px;
    }

    .public-banner p {
        font-size: 14px;
    }

    .public-banner-button {
        width: 100%;
        min-height: 50px;
    }

    .public-banner-image {
        display: none;
    }
}
/* ===================================================
   ANCLA SUAVE AL REPRODUCTOR
=================================================== */

.player-anchor {
    width: 100%;
    height: 1px;
    scroll-margin-top: 24px;
}

/* ===================================================
   FASE 21C - AJUSTE FINAL VISUAL DE BANNERS
=================================================== */

.public-banners-section {
    margin-bottom: 30px;
}

.public-banner {
    min-height: 190px;
    isolation: isolate;
}

.public-banner-content {
    position: relative;
    z-index: 3;
    max-width: 68%;
    padding: 30px 34px;
}

.public-banner:has(.public-banner-image) .public-banner-content {
    max-width: 66%;
}

.public-banner-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44%;
    min-width: 320px;
    opacity: 0.46;
    z-index: 1;
}

.public-banner-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(15, 23, 42, 0.78) 28%,
            rgba(15, 23, 42, 0.34) 62%,
            rgba(15, 23, 42, 0.10) 100%
        );
    z-index: 2;
}

.public-banner-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.public-banner h2 {
    text-wrap: balance;
}

.public-banner-button {
    min-height: 48px;
}

@media (max-width: 900px) {
    .public-banner-content,
    .public-banner:has(.public-banner-image) .public-banner-content {
        max-width: 76%;
    }

    .public-banner-image {
        width: 48%;
        min-width: 260px;
        opacity: 0.34;
    }
}

@media (max-width: 700px) {
    .public-banner {
        min-height: auto;
    }

    .public-banner-content,
    .public-banner:has(.public-banner-image) .public-banner-content {
        max-width: 100%;
        padding: 24px;
    }

    .public-banner-image {
        display: none;
    }

    .public-banner-kicker {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .public-banner-button {
        width: 100%;
    }
}
/* ===================================================
   FASE 22B / 22C - PROGRAMACIÓN RADIAL PÚBLICA
=================================================== */

.public-schedule-section {
    width: 100%;
    margin: 34px 0;
    padding: 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.14), transparent 36%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.085);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(20px);
}

.public-schedule-heading {
    max-width: 780px;
    margin-bottom: 26px;
}

.public-schedule-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 22px;
    align-items: stretch;
}

.public-schedule-now {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.56)),
        rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(46, 204, 113, 0.18);
}

.public-schedule-now-image {
    position: absolute;
    inset: 0;
    opacity: 0.20;
    z-index: 1;
}

.public-schedule-now-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.42));
}

.public-schedule-now-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-schedule-now-content {
    position: relative;
    z-index: 2;
    padding: 32px;
}

.public-schedule-live-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.14);
    border: 1px solid rgba(46, 204, 113, 0.30);
    color: #86efac;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-schedule-live-badge span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.78);
    animation: livePulse 1.8s infinite;
}

.public-schedule-now h3 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.08;
    font-weight: 950;
}

.public-schedule-time {
    margin: 14px 0 0;
    color: #86efac;
    font-size: 17px;
    font-weight: 900;
}

.public-schedule-host {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.public-schedule-description {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.public-schedule-today {
    padding: 24px;
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.public-schedule-today-header h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.public-schedule-list {
    display: grid;
    gap: 12px;
}

.public-schedule-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.065);
}

.public-schedule-item.is-current {
    background: rgba(46, 204, 113, 0.11);
    border-color: rgba(46, 204, 113, 0.28);
}

.public-schedule-item-time {
    color: #86efac;
    font-size: 13px;
    font-weight: 950;
}

.public-schedule-item-info {
    min-width: 0;
}

.public-schedule-item-info strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-schedule-item-info span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
}

.public-schedule-current-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.18);
    color: #86efac;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.public-schedule-next {
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(249, 115, 22, 0.11);
    border: 1px solid rgba(249, 115, 22, 0.24);
}

.public-schedule-next span {
    display: block;
    margin-bottom: 6px;
    color: #fdba74;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.public-schedule-next strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
}

.public-schedule-next small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.62);
}

.public-schedule-empty {
    padding: 18px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.045);
    text-align: center;
    font-weight: 800;
}

@media (max-width: 980px) {
    .public-schedule-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .public-schedule-section {
        padding: 22px;
        border-radius: 26px;
        margin: 28px 0;
    }

    .public-schedule-now-content {
        padding: 24px;
    }

    .public-schedule-today {
        padding: 18px;
        border-radius: 24px;
    }

    .public-schedule-item {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .public-schedule-current-pill {
        grid-column: 1 / -1;
        width: fit-content;
    }
}
/* ===================================================
   FASE 29A - REPRODUCTOR CON FONDO DIFUMINADO DINÁMICO
=================================================== */

.reproductor-salsa {
    isolation: isolate;
    --player-bg-cover: url("/img/default-cover.webp");
}

.reproductor-salsa::before {
    content: "";
    position: absolute;
    inset: -40px;
    z-index: 0;
    pointer-events: none;
    background-image: var(--player-bg-cover);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(14px) saturate(1.45) contrast(1.08) brightness(0.95);
    opacity: 0.52;
    transform: scale(1.05);
    transition:
        opacity 0.45s ease,
        filter 0.45s ease,
        background-image 0.45s ease;
}

.reproductor-salsa::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at center 42%, rgba(46, 204, 113, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.62));
}

.reproductor-salsa > * {
    position: relative;
    z-index: 2;
}

.reproductor-salsa .card-content {
    position: relative;
    z-index: 3;
}

.reproductor-salsa .track-main-title,
.reproductor-salsa #trackInfo.track-main-title {
    text-shadow:
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(0, 0, 0, 0.22);
}

.reproductor-salsa .player-top-badge span,
.reproductor-salsa .live-badge,
.reproductor-salsa .station-chip {
    backdrop-filter: blur(10px);
}

/* Pantallas grandes / TV */
@media (min-width: 1200px) {
    .reproductor-salsa::before {
        inset: -55px;
        opacity: 0.48;
        filter: blur(20px) saturate(1.55) contrast(1.10) brightness(0.96);
    }

    .reproductor-salsa::after {
        background:
            radial-gradient(circle at center 40%, rgba(46, 204, 113, 0.12), transparent 32%),
            radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 28%),
            linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.60));
    }
}

/* Modo claro */
body.light-theme .reproductor-salsa::before {
    opacity: 0.24;
    filter: blur(18px) saturate(1.15) contrast(0.98) brightness(1.04);
}

body.light-theme .reproductor-salsa::after {
    background:
        radial-gradient(circle at center 40%, rgba(46, 204, 113, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.78));
}

body.light-theme .reproductor-salsa .track-main-title,
body.light-theme .reproductor-salsa #trackInfo.track-main-title {
    color: #111827;
    text-shadow:
        0 4px 14px rgba(255, 255, 255, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Celular: un poco más suave pero visible */
@media (max-width: 700px) {
    .reproductor-salsa::before {
        inset: -28px;
        opacity: 0.24;
        filter: blur(16px) saturate(1.20) contrast(1.02);
    }

    .reproductor-salsa::after {
        background:
            radial-gradient(circle at center 40%, rgba(46, 204, 113, 0.08), transparent 30%),
            linear-gradient(180deg, rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.72));
    }

    body.light-theme .reproductor-salsa::before {
        opacity: 0.16;
    }

    body.light-theme .reproductor-salsa::after {
        background:
            radial-gradient(circle at center 40%, rgba(46, 204, 113, 0.06), transparent 30%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.86));
    }
}
/* ===================================================
   FASE 29B - AJUSTE GLOBAL MODO CLARO / OSCURO
   Este bloque debe ir al final del style.css
=================================================== */

/* ===================================================
   VARIABLES BASE MODO CLARO
=================================================== */

body.light-theme {
    --light-bg-main: #f4f7fb;
    --light-bg-soft: #ffffff;
    --light-bg-card: rgba(255, 255, 255, 0.88);
    --light-bg-card-strong: rgba(255, 255, 255, 0.96);
    --light-border: rgba(15, 23, 42, 0.10);
    --light-border-strong: rgba(15, 23, 42, 0.16);
    --light-text: #0f172a;
    --light-text-soft: #475569;
    --light-text-muted: #64748b;
    --light-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);

    color: var(--light-text);
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.10), transparent 32%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #eef4fb 52%, #e8eef7 100%) !important;
}

/* ===================================================
   ESTRUCTURA GENERAL
=================================================== */

body.light-theme .sidebar,
body.light-theme .card-section,
body.light-theme .reproductor-salsa,
body.light-theme .salsa-editorial-section,
body.light-theme .public-schedule-section,
body.light-theme .public-banner,
body.light-theme .ranking-panel,
body.light-theme .ranking-card,
body.light-theme .ranking-item,
body.light-theme .spotify-section-featured,
body.light-theme .spotify-card {
    background: var(--light-bg-card) !important;
    border-color: var(--light-border) !important;
    color: var(--light-text) !important;
    box-shadow: var(--light-shadow) !important;
}

body.light-theme .sidebar {
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px);
}

/* ===================================================
   TEXTOS GENERALES
=================================================== */

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme .section-title,
body.light-theme .track-main-title,
body.light-theme #trackInfo.track-main-title,
body.light-theme .card-section h2,
body.light-theme .salsa-section-heading h2,
body.light-theme .salsa-chart-header h3,
body.light-theme .salsa-subsection-title h3,
body.light-theme .ranking-panel-header h3,
body.light-theme .ranking-info strong,
body.light-theme .historial-song,
body.light-theme .spotify-info h3,
body.light-theme .public-banner h2,
body.light-theme .public-schedule-now h3,
body.light-theme .public-schedule-today-header h3,
body.light-theme .public-schedule-item-info strong {
    color: var(--light-text) !important;
}

body.light-theme p,
body.light-theme .section-description,
body.light-theme .card-section p,
body.light-theme .salsa-section-heading p,
body.light-theme .ranking-info span,
body.light-theme .ranking-info small,
body.light-theme .historial-artist,
body.light-theme .historial-album,
body.light-theme .spotify-info p,
body.light-theme .lyrics-line,
body.light-theme .public-banner p,
body.light-theme .public-schedule-description,
body.light-theme .public-schedule-host,
body.light-theme .public-schedule-item-info span,
body.light-theme footer p,
body.light-theme .footer p,
body.light-theme .site-footer p,
body.light-theme .copyright,
body.light-theme .footer-copy {
    color: var(--light-text-soft) !important;
}

/* ===================================================
   LOGO Y MENÚ LATERAL
=================================================== */

body.light-theme .logo-app h2,
body.light-theme .logo-app-text h2,
body.light-theme .logo-app-vertical h2 {
    color: var(--light-text) !important;
}

body.light-theme .logo-app span,
body.light-theme .logo-app-text span,
body.light-theme .logo-app-vertical span {
    color: #16a34a !important;
}

body.light-theme .logo-app img,
body.light-theme .logo-app-vertical img,
body.light-theme .logo-app-img,
body.light-theme .logo-app.logo-app-vertical img {
    background: rgba(15, 23, 42, 0.045) !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-theme .menu-item {
    color: var(--light-text) !important;
}

body.light-theme .menu-item:hover {
    background: rgba(22, 163, 74, 0.10) !important;
    color: #15803d !important;
}

body.light-theme .menu-item.active {
    background: rgba(22, 163, 74, 0.14) !important;
    color: #15803d !important;
}

/* ===================================================
   BUSCADOR Y BOTONES DE TEMA
=================================================== */

body.light-theme .search-box {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .search-box input {
    color: var(--light-text) !important;
}

body.light-theme .search-box input::placeholder {
    color: var(--light-text-muted) !important;
}

body.light-theme .search-box i {
    color: #16a34a !important;
}

body.light-theme .sidebar-theme-toggle,
body.light-theme .topbar-theme-toggle {
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--light-text) !important;
    border: 1px solid rgba(15, 23, 42, 0.10);
}

/* ===================================================
   REPRODUCTOR EN MODO CLARO
=================================================== */

body.light-theme .reproductor-salsa {
    background:
        radial-gradient(circle at center 34%, rgba(46, 204, 113, 0.10), transparent 34%),
        rgba(255, 255, 255, 0.92) !important;
}

body.light-theme .reproductor-salsa::before {
    opacity: 0.22 !important;
    filter: blur(18px) saturate(1.16) contrast(0.96) brightness(1.04) !important;
}

body.light-theme .reproductor-salsa::after {
    background:
        radial-gradient(circle at center 40%, rgba(46, 204, 113, 0.09), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.90)) !important;
}

body.light-theme .player-top-badge span,
body.light-theme .live-badge,
body.light-theme .station-chip,
body.light-theme .btn-volume-toggle {
    background: rgba(255, 255, 255, 0.88) !important;
    color: var(--light-text) !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

body.light-theme .live-badge,
body.light-theme .player-status-line .live-badge {
    border-color: rgba(22, 163, 74, 0.28) !important;
}

body.light-theme .track-main-title,
body.light-theme #trackInfo.track-main-title {
    color: #0f172a !important;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.70),
        0 8px 22px rgba(15, 23, 42, 0.12) !important;
}

/* Tocadiscos se mantiene oscuro para conservar efecto vinilo */
body.light-theme .vinyl-record {
    box-shadow:
        inset 0 0 0 10px rgba(255, 255, 255, 0.03),
        inset 0 0 45px rgba(255, 255, 255, 0.04),
        0 18px 50px rgba(15, 23, 42, 0.22),
        0 0 55px rgba(46, 204, 113, 0.16) !important;
}

/* ===================================================
   COMPARTIR / REDES DEL REPRODUCTOR
=================================================== */

body.light-theme .redes-compartir-grid button,
body.light-theme .social-dynamic-button,
body.light-theme .social-grid a,
body.light-theme .social-card {
    color: #ffffff !important;
}

body.light-theme .social-section,
body.light-theme .app-section {
    background: var(--light-bg-card) !important;
    border-color: var(--light-border) !important;
}

/* ===================================================
   HISTORIAL Y LETRAS
=================================================== */

body.light-theme .historial-item {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .historial-item:hover {
    background: rgba(22, 163, 74, 0.08) !important;
}

body.light-theme .lyrics-line.active {
    color: #15803d !important;
    text-shadow: 0 0 18px rgba(34, 197, 94, 0.18) !important;
}

body.light-theme .lyrics-loading,
body.light-theme .historial-vacio,
body.light-theme .ranking-empty {
    color: var(--light-text-muted) !important;
}

/* ===================================================
   BANNERS PÚBLICOS
=================================================== */

body.light-theme .public-banner {
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.12), transparent 36%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.92) !important;
}

body.light-theme .public-banner-kicker {
    background: rgba(22, 163, 74, 0.12) !important;
    border-color: rgba(22, 163, 74, 0.26) !important;
    color: #15803d !important;
}

body.light-theme .public-banner-icon {
    background: rgba(22, 163, 74, 0.14) !important;
    color: #15803d !important;
}

body.light-theme .public-banner-image::after {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.72) 36%,
            rgba(255, 255, 255, 0.32) 100%
        ) !important;
}

/* ===================================================
   PROGRAMACIÓN RADIAL
=================================================== */

body.light-theme .public-schedule-section {
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.11), transparent 36%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.90) !important;
}

body.light-theme .public-schedule-now,
body.light-theme .public-schedule-today,
body.light-theme .public-schedule-item,
body.light-theme .public-schedule-empty {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .public-schedule-now {
    background:
        radial-gradient(circle at top left, rgba(46, 204, 113, 0.12), transparent 40%),
        rgba(255, 255, 255, 0.84) !important;
}

body.light-theme .public-schedule-now-image::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.42)) !important;
}

body.light-theme .public-schedule-live-badge,
body.light-theme .public-schedule-current-pill {
    background: rgba(22, 163, 74, 0.13) !important;
    border-color: rgba(22, 163, 74, 0.30) !important;
    color: #15803d !important;
}

body.light-theme .public-schedule-time,
body.light-theme .public-schedule-item-time {
    color: #15803d !important;
}

body.light-theme .public-schedule-next {
    background: rgba(249, 115, 22, 0.10) !important;
    border-color: rgba(249, 115, 22, 0.20) !important;
}

body.light-theme .public-schedule-next span {
    color: #c2410c !important;
}

body.light-theme .public-schedule-next strong {
    color: var(--light-text) !important;
}

body.light-theme .public-schedule-next small {
    color: var(--light-text-muted) !important;
}

/* ===================================================
   RANKINGS / ARTISTAS / JOYAS
=================================================== */

body.light-theme .ranking-panel,
body.light-theme .ranking-card,
body.light-theme .ranking-item,
body.light-theme .featured-artists-grid .ranking-card,
body.light-theme .featured-albums-grid .ranking-card {
    background: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .ranking-label,
body.light-theme .section-kicker {
    background: rgba(22, 163, 74, 0.11) !important;
    border-color: rgba(22, 163, 74, 0.24) !important;
    color: #15803d !important;
}

body.light-theme .ranking-position {
    color: #ffffff !important;
}

body.light-theme .ranking-spotify-link {
    background: rgba(22, 163, 74, 0.12) !important;
    border-color: rgba(22, 163, 74, 0.26) !important;
    color: #15803d !important;
}

body.light-theme .ranking-spotify-link:hover {
    background: rgba(22, 163, 74, 0.20) !important;
    color: #166534 !important;
}

/* ===================================================
   EDITORIAL SALSERA / LISTAS ANTIGUAS
=================================================== */

body.light-theme .salsa-chart-card,
body.light-theme .salsa-artist-card,
body.light-theme .salsa-album-card,
body.light-theme .salsa-chart-item {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .salsa-rank {
    color: rgba(15, 23, 42, 0.30) !important;
}

/* ===================================================
   BOTONES
=================================================== */

body.light-theme .btn-app,
body.light-theme .app-section .btn-app,
body.light-theme #btnInstallApp,
body.light-theme #btnDescargarApp,
body.light-theme [data-install-app],
body.light-theme .public-banner-button {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.22) !important;
}

body.light-theme .btn-app:hover,
body.light-theme .app-section .btn-app:hover,
body.light-theme #btnInstallApp:hover,
body.light-theme .public-banner-button:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
}

/* ===================================================
   FOOTER
=================================================== */

body.light-theme footer,
body.light-theme .footer,
body.light-theme .site-footer {
    color: var(--light-text-soft) !important;
}

/* ===================================================
   CHAT FLOTANTE / SOLICITUDES
=================================================== */

body.light-theme .request-chat-widget,
body.light-theme .request-chat-panel {
    color: var(--light-text) !important;
}

body.light-theme .request-chat-panel {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
}

body.light-theme .request-chat-panel input,
body.light-theme .request-chat-panel textarea,
body.light-theme .request-chat-panel select {
    background: rgba(248, 250, 252, 0.96) !important;
    color: var(--light-text) !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
}

/* ===================================================
   RESPONSIVE MODO CLARO
=================================================== */

@media (max-width: 700px) {
    body.light-theme .sidebar,
    body.light-theme .card-section,
    body.light-theme .reproductor-salsa,
    body.light-theme .public-schedule-section,
    body.light-theme .public-banner,
    body.light-theme .ranking-panel {
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
    }

    body.light-theme .track-main-title,
    body.light-theme #trackInfo.track-main-title {
        text-shadow: none !important;
    }
}

/* ===================================================
   FIX FASE 29B - CARÁTULA DE FONDO VISIBLE EN MODO CLARO
   Debe ir después del bloque de modo claro/oscuro
=================================================== */

body.light-theme .reproductor-salsa {
    background:
        radial-gradient(circle at center 38%, rgba(46, 204, 113, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.88) !important;
}

body.light-theme .reproductor-salsa::before {
    inset: -42px !important;
    opacity: 0.62 !important;
    filter: blur(18px) saturate(1.35) contrast(1.05) brightness(1.02) !important;
    transform: scale(1.05) !important;
}

body.light-theme .reproductor-salsa::after {
    background:
        radial-gradient(circle at center 42%, rgba(255, 255, 255, 0.12), transparent 28%),
        radial-gradient(circle at center 45%, rgba(46, 204, 113, 0.08), transparent 36%),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.42) 0%,
            rgba(255, 255, 255, 0.58) 48%,
            rgba(255, 255, 255, 0.74) 100%
        ) !important;
}

/* Mantener el título legible encima de la carátula */
body.light-theme .reproductor-salsa .track-main-title,
body.light-theme .reproductor-salsa #trackInfo.track-main-title {
    color: #0f172a !important;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.75),
        0 10px 26px rgba(15, 23, 42, 0.18) !important;
}

/* Badges más sólidos para que no se pierdan sobre el fondo */
body.light-theme .reproductor-salsa .player-top-badge span,
body.light-theme .reproductor-salsa .live-badge,
body.light-theme .reproductor-salsa .station-chip,
body.light-theme .reproductor-salsa .btn-volume-toggle {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(14px);
}

/* Pantallas grandes / TV: fondo más presente */
@media (min-width: 1200px) {
    body.light-theme .reproductor-salsa::before {
        inset: -58px !important;
        opacity: 0.50 !important;
        filter: blur(18px) saturate(1.45) contrast(1.08) brightness(1.02) !important;
    }

    body.light-theme .reproductor-salsa::after {
        background:
            radial-gradient(circle at center 42%, rgba(255, 255, 255, 0.08), transparent 26%),
            radial-gradient(circle at center 44%, rgba(46, 204, 113, 0.08), transparent 36%),
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.34) 0%,
                rgba(255, 255, 255, 0.50) 48%,
                rgba(255, 255, 255, 0.68) 100%
            ) !important;
    }
}

/* Celular: visible, pero sin ensuciar */
@media (max-width: 700px) {
    body.light-theme .reproductor-salsa::before {
        inset: -28px !important;
        opacity: 0.28 !important;
        filter: blur(15px) saturate(1.22) contrast(1.02) brightness(1.02) !important;
    }

    body.light-theme .reproductor-salsa::after {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.56) 0%,
                rgba(255, 255, 255, 0.76) 100%
            ) !important;
    }
}

/* ===================================================
   FIX FINAL - RANKINGS SIN FONDO CONTENEDOR EN MODO CLARO
   El fondo gris grande venía de .music-discovery-section y
   .featured-music-section en el bloque global light-theme.
=================================================== */

body.light-theme .music-discovery-section,
body.light-theme .featured-music-section {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.light-theme .music-discovery-section .rankings-dashboard,
body.light-theme .featured-music-section .featured-artists-grid,
body.light-theme .featured-music-section .featured-albums-grid {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.light-theme .music-discovery-section .ranking-panel,
body.light-theme .featured-music-section .ranking-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07) !important;
}

body.light-theme .music-discovery-section .ranking-item {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
}
