/* Estilos base para HTML y Body */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font: 12px 'Trebuchet MS', Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #ffffe1; /* Color de texto claro */

    /* --- Fondo General --- */
    background-color: #000000; /* Color de fondo negro (fallback) */
    background-image: url('/img/bg_pic1_b.jpg'); /* Fondo principal */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    /* --- Fin Fondo General --- */

    overflow: hidden;
}

/* Estilos para el contenedor principal (#wrapper) - Centra el contenido Y AHORA TIENE EL EFECTO */
#wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    padding: 20px;
    box-sizing: border-box;

    /* --- Efecto de Fondo (detrás del logoHolder) --- */
    background-image: url('/img/bg_effect.png'); /* <<< MOVIDO AQUÍ */
    background-repeat: no-repeat;               /* <<< MOVIDO AQUÍ */
    background-position: center center;         /* <<< MOVIDO AQUÍ */
    /* Opcional: Ajusta el tamaño del efecto si es necesario */
    /* background-size: contain; */
    /* background-size: 800px 600px; */ /* Ejemplo de tamaño fijo */
    /* --- Fin Efecto de Fondo --- */

    /* position: relative; */ /* Puede ser útil si necesitas posicionar elementos hijos absolutamente respecto al wrapper */
}

/* Estilos para el contenedor del logo y reproductor */
.logoHolder {
    text-align: center;
    /* --- Fondo del Contenedor (SOLO COLOR) --- */
    background-color: rgba(42, 42, 42, 0.3); /* <<< SOLO QUEDA EL COLOR */
    /* La imagen de efecto fue movida al #wrapper */
    /* --- Fin Fondo del Contenedor --- */
    padding: 30px;
    border-radius: 15px;
    display: inline-block;
    max-width: 90%;
    position: relative; /* Asegura que esté por encima del fondo del wrapper si hay problemas de apilamiento */
    z-index: 1;         /* Asegura que esté por encima del fondo del wrapper */
}

/* Estilos para el Logo (h1) */
.logoHolder h1 {
    margin: 0 0 25px 0;
    padding: 0;
    line-height: 1;
}

.logoHolder h1 a {
    text-decoration: none;
    display: inline-block;
}

.logoHolder h1 a img {
    max-width: 340px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Estilos para el contenedor del reproductor */
.player-container {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 350px;
    justify-content: center;
}

.player-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: white;
    color: #1e1e1e;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 20px;
    flex-shrink: 0;
}

.player-button:hover {
    background-color: #d3d3d3;
}

.controls-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
    margin-right: 10px;
    text-align: left;
}

.volume-container {
    margin-bottom: 8px;
}

.volume-slider {
    -webkit-appearance: none; /* Quita estilos por defecto en WebKit */
    appearance: none;
    width: 150px;
    height: 5px; /* Un poco más grueso para ver mejor el efecto */
    /* Fondo con gradiente controlado por variable CSS */
    background: linear-gradient(to right,
        white 0%, /* Color 'lleno' empieza al 0% */
        white var(--volume-percentage, 100%), /* Color 'lleno' hasta el porcentaje actual (fallback 100%) */
        #555 var(--volume-percentage, 100%), /* Color 'vacío' desde el porcentaje actual */
        #555 100% /* Color 'vacío' hasta el final */
    );
    border-radius: 5px; /* Bordes redondeados para la barra */
    outline: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
    /* La variable --volume-percentage se establecerá con JavaScript */
}

.volume-slider:hover {
    opacity: 1;
}

/* Ajuste ligero para centrar verticalmente el 'thumb' si cambiaste la altura */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4.5px; /* Aproximadamente (trackHeight - thumbHeight) / 2 */
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    /* Firefox generalmente no necesita ajuste de margen vertical para el thumb */
}

.track-info {
    display: flex;
    flex-direction: column;
}

.track-title {
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    margin-bottom: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.track-artist {
    font-size: 0.9em;
    color: #cccccc;
    font-weight: normal;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.album-art-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgba(0,0,0,0.3);
    border-radius: 5px;
}

.album-art {
    max-height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.copyright {
    margin-top: 5%;
}
}