*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    background-color: #444;
}

.main-ctn {
    width: 653px;
    height: 196px;
    position: relative;
    overflow: hidden;
    display: block;
}

.repro32-bg-ctn {
    position: absolute;
    top: 0;
    left: 0;
    width: 653px;
    height: 196px;
    z-index: 0;
    overflow: hidden;
}

.R32-BG {
    background-image: url('assets/img/Player32.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    width: 653px;
    height: 196px;
    display: block;
    pointer-events: none;
}

.zone-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 105px;
    height: 185px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.zone-meta {
    position: absolute;
    top: 0;
    left: 100px;
    width: 413px;
    height: 100%;
    z-index: 2;
    position: relative;
}

.zone-right {
    position: absolute;
    top: 0;
    left: 533px;
    width: 120px;
    height: 195px;
    z-index: 3;
    position: relative;
    display: block;
}

.zone-left > div {
    width: 32px;
    height: 32px;
    margin: 6px auto;
    cursor: pointer;
    z-index: 4;
}

.zone-left i {
    font-size: 20px;
    width: 32px;
    height: 32px;
    line-height: 42px;
    margin: 0 auto;
    text-align: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    text-shadow:
        0 0 4px rgba(0, 150, 255, 0.8),
        0 0 8px rgba(0, 180, 255, 0.6),
        0 0 1px rgba(0, 100, 200, 0.9);
}

#status-indicator {
    position: absolute;
    top: -212px;
    right: 18px;
    width: 55px;
    height: 20px;
    z-index: 10;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #00FF00;
    padding: 2px 5px;
    border-radius: 3px;
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.8);
}

.zone-right > div:nth-child(2) {
    position: absolute;
    top: -138px;
    right: 120px;
    width: 40px;
    height: 40px;
    margin: 0;
    cursor: pointer;
    z-index: 10;
}

#power-btn {
    animation: power-pulse 3s infinite alternate;
}

.zone-right > div {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    cursor: pointer;
}

.zone-right i {
    font-size: 30px;
    width: 40px;
    height: 40px;
    line-height: 45px;
    transition: all 0.2s ease-in-out;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    text-shadow:
        0 0 4px rgba(0, 150, 255, 0.8),
        0 0 8px rgba(0, 180, 255, 0.6),
        0 0 1px rgba(0, 100, 200, 0.9);
}

.radioescuchas {
    position: absolute;
    top: -70px;/* -120 */
    right: 35px;
    left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.radioescuchas .fas {
    font-size: 20px;
    line-height: 1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Volumen ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.volumen-option {
    position: absolute;
    bottom: 1px; 
    right: 5px;
    width: 350px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    z-index: 5;
}

.volume-icon {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-shadow:
        0 0 4px rgba(0, 150, 255, 0.8),
        0 0 8px rgba(0, 180, 255, 0.6),
        0 0 1px rgba(0, 100, 200, 0.9); 
    cursor: pointer;
}

/* Orificio para la barra de volumen */
.volume-track {
    width: 180px;
    height: 16px;
    background: #01010120;
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.volume-bar {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    appearance: none;
    background: #292d38;
    outline: none;
    cursor: pointer;
    margin: 0;
}

/* Thumb (manija) */
.volume-bar::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    background: #3688ff;
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    box-shadow: 0 0 2px #000;
    margin-top: -4px;
}

/* Metadatos */
.meta-top-row {
    position: absolute;
    top: 15px;
    left: 12px;
    width: 390px;
    height: 120px;
    display: flex;
    align-items: center;
}

.meta-cover {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.cover-img {
    position: absolute;
    top: 1px;
    width: 31%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.meta-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding-left: 10px;
    padding-right: 70px;
    text-align: left;
    min-width: 0;
}

.track-title,
.track-artist,
.track-genre {
    height: 16px;
    line-height: 16px;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.track-content {
    /* Nuevo para evitar estiramiento excesivo */
    max-width: 100%; 
}

.meta-info {
    position: absolute;
    top: 140px;
    left: 12px;
    width: 300px;
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.info-date,
.info-day,
.info-hour {
    height: 16px;
    line-height: 16px;
    overflow: hidden;
    text-align: left;
    display: inline-block;
    flex: none;
    padding-left: 200px;
    padding-right: 100px;
    animation: marquee-info 15s linear infinite;
}

/* 🛑 MARQUESINA DE PISTA/ARTISTA CORREGIDA 🛑 */
.track-content.marquee {
    overflow: visible;
    display: inline-block;
    white-space: nowrap;
    transform: translateX(0); /* Punto de partida para el navegador */
    animation: marquee-scroll 10s linear infinite !important;
    padding-right: 200px;
}

.zone-right > div:nth-child(2):hover i {
    transform: scale(1.1);
    text-shadow:
        0 0 10px rgba(0, 200, 255, 1.0),
        0 0 15px rgba(0, 220, 255, 0.9),
        0 0 3px rgba(0, 150, 255, 1.0);
}

@keyframes power-pulse {
    0% {
        transform: scale(1.0);
        text-shadow:
            0 0 3px rgba(0, 150, 255, 0.8),
            0 0 6px rgba(0, 180, 255, 0.6),
            0 0 1px rgba(0, 100, 200, 0.9);
    }
    50% {
        transform: scale(1.05);
        text-shadow:
            0 0 8px rgba(0, 180, 255, 1.0),
            0 0 10px rgba(0, 200, 255, 0.8),
            0 0 1px rgba(0, 150, 255, 1.0);
    }
    100% {
        transform: scale(1.0);
        text-shadow:
            0 0 3px rgba(0, 150, 255, 0.8),
            0 0 6px rgba(0, 180, 255, 0.6),
            0 0 1px rgba(0, 100, 200, 0.9);
    }
}

/* 🛑 KEYFRAME DE PISTA/ARTISTA CORREGIDO 🛑 */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100%)); } 
}

/* MARQUESINA DE INFO (Deja este keyframe como está) */
@keyframes marquee-info {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 30px)); }
}