/* =========================================================
   LORIEN MUSIC PLAYER
========================================================= */

.lorien-music-player {
    position: fixed;
    left: 28px;
    bottom: 28px;
    z-index: 99990;

    font-family: "Object Sans Lorien", Arial, sans-serif;
}

.lorien-music-toggle {
    width: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid rgba(255,255,255,.65);
    border-radius: 50%;
    overflow: hidden;

    background: linear-gradient(135deg, rgba(155, 231, 255, .96), rgba(0, 191, 255, .95));
    box-shadow:
        0 14px 30px rgba(0, 119, 217, .22),
        inset 0 1px 0 rgba(255,255,255,.55);

    cursor: pointer;
    transition: .22s ease;
    padding: 0;
}

.lorien-music-toggle-img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.lorien-music-toggle:hover {
    transform: translateY(-3px) scale(1.04);
}

.lorien-music-panel {
    position: absolute;
    overflow: hidden;
    left: 0;
    bottom: 88px;

    width: 310px;
    padding: 18px;

    border-radius: 26px;

    background:
        linear-gradient(145deg, rgba(255,255,255,.94), rgba(233,248,255,.96));

    border: 2px solid rgba(129, 226, 255, .75);

    box-shadow:
        0 18px 42px rgba(0, 119, 217, .18),
        0 0 30px rgba(255, 192, 230, .18),
        inset 0 1px 0 rgba(255,255,255,.65);

    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(.96);

    transition: .22s ease;
}

.lorien-music-player.open .lorien-music-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.lorien-music-header {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 14px;
}

.lorien-music-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(135deg, rgba(0,191,255,.18), rgba(255,105,180,.14));

    border: 1px solid rgba(0,191,255,.30);

    font-size: 22px;
}

.lorien-music-title-box {
    min-width: 0;
}

.lorien-music-label {
    margin: 0;

    font-family: "Heavitas", Arial, sans-serif;
    color: #0077d9;
    font-size: 17px;
    letter-spacing: 1px;
}

.lorien-music-track {
    margin: 3px 0 0;

    color: #526d85;
    font-size: 13px;
    font-weight: 900;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lorien-music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    margin: 14px 0;
}

.lorien-music-btn {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background:
        linear-gradient(135deg, #ffffff, #eaf8ff);

    color: #0077d9;
    font-size: 16px;
    font-weight: 1000;

    cursor: pointer;

    border: 1px solid rgba(0,191,255,.28);

    box-shadow:
        0 8px 18px rgba(0,119,217,.10),
        inset 0 1px 0 rgba(255,255,255,.7);

    transition: .18s ease;
}

.lorien-music-btn:hover {
    transform: translateY(-2px);
    color: #00a8e8;
}

.lorien-music-play {
    width: 52px;
    height: 52px;

    background:
        linear-gradient(135deg, #00bfff, #0077d9);

    color: white;
    font-size: 18px;

    box-shadow:
        0 12px 24px rgba(0,191,255,.25),
        inset 0 1px 0 rgba(255,255,255,.35);
}

.lorien-music-volume-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;

    margin-top: 12px;
}

.lorien-music-volume-row span {
    color: #07527e;
    font-size: 13px;
    font-weight: 1000;
}

.lorien-music-volume {
    width: 100%;
    accent-color: #00bfff;
    cursor: pointer;
}

.lorien-music-note {
    margin-top: 12px;
    padding: 10px 12px;

    border-radius: 16px;

    background: rgba(0,191,255,.08);
    border: 1px solid rgba(0,191,255,.18);

    color: #6c8195;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
}

@media (max-width: 700px) {
    .lorien-music-player {
        left: 16px;
        bottom: 16px;
    }

    .lorien-music-panel {
        width: min(300px, calc(100vw - 32px));
    }
}

/* =========================================================
   BACKGROUND DINÁMICO DEL REPRODUCTOR
========================================================= */

.lorien-music-panel {
    overflow: hidden;
    isolation: isolate;
}

/* Imagen de fondo */
.lorien-music-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image: var(--lorien-music-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: .90;
    filter: saturate(1.15) brightness(1.05);
}

/* Capa pastel encima para que el texto se lea */
.lorien-music-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.88),
            rgba(232,248,255,.80),
            rgba(255,225,245,.72)
        );
}

/* Asegura que el contenido quede encima */
.lorien-music-panel > * {
    position: relative;
    z-index: 1;
}