/* javier.band — cabeceras tipo Genius para álbumes y letras.
 * Hoja independiente, posterior al CSS original y con versión anticaché.
 * No afecta a menús, portada principal ni directorio de letras. */

/* La antigua cabecera tenía 500px en escritorio y 350px en móvil.
   Damos espacio real a la portada grande y a los títulos largos. */
/* El fondo y la capa superpuesta reciben la misma altura. */
body.single-lyrics .background-single-lyrics,
body.single-album .background-single-lyrics,
.javier-cover-overlay {
    height: 650px !important;
    min-height: 650px !important;
    padding-bottom: 650px !important;
}

/* Convertimos el contenedor del encabezado en una referencia estable:
   título y portada NO dependen de los viejos floats de la plantilla. */
.javier-cover-overlay {
    position: relative;
    overflow: visible !important;
}
.javier-cover-overlay > .container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 140px; /* El contenido blanco empieza a 100px del borde. */
    margin-left: auto;
    margin-right: auto;
}
.javier-cover-overlay .lyrics-title.javier-cover-header,
.javier-cover-overlay .lyrics-title.album.javier-cover-header {
    position: static !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: row;
    align-items: flex-end;
    gap: 35px;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    transform: none;
    overflow: visible;
}
.javier-cover-overlay .javier-cover-art {
    position: relative;
    flex: 0 0 285px;
    width: 285px;
    max-width: 285px;
    margin: 0;
    transform: translateY(47px) perspective(900px) rotateY(-7deg) rotate(-2deg);
    transform-origin: 50% 70%;
    filter: drop-shadow(0 17px 22px rgba(0,0,0,.37));
    z-index: 5;
    isolation: isolate;
    transition: transform .35s ease;
}
.javier-cover-overlay .javier-cover-art::before {
    content: '';
    position: absolute;
    inset: 7px -10px -10px 8px;
    background: #101523;
    border: 1px solid #3a4355;
    border-radius: 4px;
    transform: translate(4px,3px);
    z-index: -1;
}
.javier-cover-overlay .javier-cover-art::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 3px;
    box-shadow: inset -12px 0 18px rgba(0,0,0,.17);
}
.javier-cover-overlay .javier-cover-art img,
.javier-cover-overlay .javier-cover-art .muusico-entry-cover-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    max-width: 100% !important;
    object-fit: cover !important;
    border-radius: 3px;
    box-shadow: 0 24px 45px rgba(0,0,0,.42);
}
.javier-cover-overlay .javier-cover-art:hover {
    transform: translateY(43px) perspective(900px) rotateY(-2deg) rotate(-1deg);
}
.javier-cover-overlay .javier-cover-copy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 0 0 3px;
}
.javier-cover-overlay .javier-cover-copy .javier-cover-title-line,
.javier-cover-overlay .javier-cover-copy .javier-cover-album-line {
    float: none !important;
    display: block;
    width: auto;
    clear: none;
}
.javier-cover-overlay .javier-cover-copy h3 {
    margin: 0 0 10px;
    line-height: 1.3;
}
.javier-cover-overlay .javier-cover-copy h1 {
    margin: 0 0 14px;
    padding: 0;
    font-size: clamp(31px, 3.5vw, 49px);
    line-height: 1.13 !important;
    overflow-wrap: anywhere;
}
.javier-cover-overlay .javier-cover-copy h4 {
    margin: 0;
    line-height: 1.5;
}
.javier-cover-overlay .javier-cover-copy h4 a {
    line-height: inherit;
}
.javier-cover-overlay .javier-cover-copy .muusico-album-release-header {
    clear: none;
    margin-top: 8px;
    line-height: 1.5;
}

/* Mantenemos el texto por encima del bloque blanco, mientras la portada
   lo invade ligeramente: el efecto 3D de Genius sin tapar el título. */
@media (max-width: 991px) {
    body.single-lyrics .background-single-lyrics,
    body.single-album .background-single-lyrics,
    .javier-cover-overlay {
        height: 575px !important;
        min-height: 575px !important;
        padding-bottom: 575px !important;
    }
    .javier-cover-overlay > .container { bottom: 136px; }
    .javier-cover-overlay .lyrics-title.javier-cover-header { gap: 22px; }
    .javier-cover-overlay .javier-cover-art {
        width: 215px; max-width: 215px; flex-basis: 215px;
        transform: translateY(35px) perspective(900px) rotateY(-6deg) rotate(-2deg);
    }
}
@media (max-width: 767px) {
    body.single-lyrics .background-single-lyrics,
    body.single-album .background-single-lyrics,
    .javier-cover-overlay {
        height: 510px !important;
        min-height: 510px !important;
        padding-bottom: 510px !important;
    }
    .javier-cover-overlay > .container { bottom: 130px; }
    .javier-cover-overlay .lyrics-title.javier-cover-header {
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    .javier-cover-overlay .javier-cover-art {
        width: 145px; max-width: 145px; flex-basis: 145px;
        transform: translateY(27px) perspective(900px) rotateY(-5deg) rotate(-2deg);
    }
    .javier-cover-overlay .javier-cover-copy h1 {
        font-size: clamp(23px, 5.2vw, 34px);
        line-height: 1.16 !important;
        margin-bottom: 7px;
    }
    .javier-cover-overlay .javier-cover-copy h3 {
        font-size: 14px; margin-bottom: 6px;
    }
    .javier-cover-overlay .javier-cover-copy h4,
    .javier-cover-overlay .javier-cover-copy h4 a,
    .javier-cover-overlay .javier-cover-copy .muusico-album-release-header {
        font-size: 12px; line-height: 1.35;
    }
}
@media (max-width: 420px) {
    .javier-cover-overlay .lyrics-title.javier-cover-header { gap: 12px; }
    .javier-cover-overlay .javier-cover-art {
        width: 115px; max-width: 115px; flex-basis: 115px;
    }
    .javier-cover-overlay .javier-cover-copy h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .javier-cover-overlay .javier-cover-art { transition: none; }
}


/* javier.band — fondo horizontal opcional por álbum o letra. */
.background-single-lyrics.javier-has-banner {
    background-color: #111827;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}
.background-single-lyrics.javier-has-banner > .javier-cover-overlay {
    /* Contraste legible sin ocultar la fotografía del banner. */
    background: linear-gradient(90deg, rgba(8,12,23,.68) 0%, rgba(8,12,23,.53) 55%, rgba(8,12,23,.46) 100%) !important;
}


/* Editor del banner desde la página pública: visible solo a usuarios autorizados. */
.javier-cover-overlay .javierband-front-banner-controls {
    position: absolute;
    z-index: 60;
    right: max(20px, calc((100% - 1140px) / 2));
    top: 130px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
    max-width: calc(100% - 40px);
}
.javierband-front-banner-controls button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 5px;
    color: #fff;
    background: rgba(11,18,33,.77);
    padding: 7px 13px;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 3px 16px rgba(0,0,0,.21);
    backdrop-filter: blur(7px);
    transition: background .18s, border-color .18s;
}
.javierband-front-banner-controls .javierband-front-banner-change {
    background: rgba(8,64,77,.89);
    border-color: #72e7d8;
}
.javierband-front-banner-controls button:hover,
.javierband-front-banner-controls button:focus-visible {
    background: #184b60;
    border-color: #8ff5e5;
    outline-offset: 2px;
}
.javierband-front-banner-controls button:disabled {
    opacity: .65;
    cursor: wait;
}
.javierband-front-banner-status {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.85);
}
@media (max-width: 767px) {
    .javier-cover-overlay .javierband-front-banner-controls {
        top: 107px;
        right: 14px;
        max-width: calc(100% - 28px);
        gap: 6px;
    }
    .javierband-front-banner-controls button { min-height: 32px; padding: 5px 9px; font-size: 11px; }
}
@media print {
    .javierband-front-banner-controls { display: none !important; }
}
