:root {
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.3);
    --logo-def: url('https://radiomotiva.cl/gallery_gen/7f0e62220ec9f191e731120045693f9c_214x214_fit.png?ts=1768925473');
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: transparent;
}

/* 🔥 FONDO DIFUMINADO CON FADE */
#bg-blur, #bg-blur-next {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(60px) brightness(0.5);
    transform: scale(1.1);
    transition: opacity 1.2s ease-in-out;
}

#bg-blur { background-image: var(--logo-def); opacity: 1; z-index: -2; }
#bg-blur-next { opacity: 0; z-index: -1; }

/* CONTENEDOR GENERAL */
.container {
    width: 95%;
    max-width: 950px;
    margin: 20px auto;
}

/* HEADER */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    padding: 18px 30px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.station-logo { height: 45px; }

/* REDES SOCIALES DINÁMICAS — FIX MULTI ICONOS */
.social-box {
    display: flex;
    gap: 12px;
    padding-top: 18px; /* separa del borde superior */
    flex-wrap: wrap; /* evita que se rompa en pantallas chicas */
    justify-content: flex-end;
}

.social-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 46px;
    max-width: 46px;
    overflow: hidden;
    border: 1px solid transparent;
    color: white;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.social-item i {
    min-width: 20px;
    text-align: center;
    font-size: 16px;
}

.social-item span {
    margin-left: 12px;
    opacity: 0;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

/* EXPANSIÓN SUAVE */
.social-item:hover {
    max-width: 240px;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255,255,255,0.7);
    padding-right: 22px;
}

/* Mostrar texto SOLO del que tiene hover */
.social-item:hover span {
    opacity: 1;
}

/* En vez de desaparecer los otros, solo se atenúan */
.social-box:hover .social-item:not(:hover) {
    opacity: 0.35;
    transform: scale(0.92);
}


/* 🎧 PLAYER CARD */
.player-card {
    background: var(--glass-bg);
    backdrop-filter: blur(35px);
    border: 1px solid var(--glass-border);
    border-radius: 45px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 0 20px 20px rgba(39, 39, 39, 0.5);

    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    box-sizing: border-box;
}

#art-container {
    width: 240px;
    height: 240px;
    margin: 0 auto 40px;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 15px rgba(0,0,0,0.5);
}

#art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

/* INFO CANCIÓN */
.track-info {
    min-height: 72px;
    max-width: 600px;
    margin: 0 auto;
}

.track-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease;
}

.track-info p {
    margin: 8px 0 0;
    opacity: 0.75;
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease;
}

/* CONTROLES */
.controls-row {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.play-btn {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #000;
    font-size: 26px;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 250px;
    background: rgba(0,0,0,0.25);
    padding: 12px 15px;
    border-radius: 20px;
}

input[type=range] {
    flex-grow: 1;
    cursor: pointer;
    accent-color: #fff;
}
.credits {
  text-align: center;
  padding: 1px 10px 30px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.credits a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.credits a:hover {
  opacity: 0.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}