html,
body {
    margin: 0;
    padding: 0;
}

.EjeServerPlayer,
.EjeServerPlayer * {
    box-sizing: border-box;
}

.EjeServerPlayer {
    --nebula-1: #6d4cff;
    --nebula-2: #00d4ff;
    --nebula-3: #ff3d9a;

    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "play title    volumen silencio cast menu"
        "play subtitle volumen silencio cast menu";
    align-items: center;
    grid-auto-flow: column;
    column-gap: 14px;

    width: 100%;
    height: 92px;
    padding: 0 18px;
    overflow: hidden;

    border-radius: 46px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(14, 10, 32, .62);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 10px 40px -12px rgba(109, 76, 255, .55);

    font-size: 13px;
    text-align: left;
}

.EjeServerPlayer::before {
    content: "";
    position: absolute;
    inset: -60%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(38% 60% at 18% 40%, var(--nebula-1) 0%, transparent 62%),
        radial-gradient(34% 56% at 58% 68%, var(--nebula-2) 0%, transparent 60%),
        radial-gradient(30% 50% at 86% 34%, var(--nebula-3) 0%, transparent 58%);
    filter: blur(26px);
    opacity: .62;
    animation: nebula-giro 19s linear infinite;
}

@keyframes nebula-giro {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.16); }
    100% { transform: rotate(360deg) scale(1); }
}

.EjeServerPlayer > .cover,
.EjeServerPlayer > .radio-logo,
.EjeServerPlayer > .big-logo,
.EjeServerPlayer > .power-button\.on,
.EjeServerPlayer > .mute-button\.on {
    display: none;
}

.title,
.subtitle,
.power-button,
.mute-button,
.volume,
.menuButton {
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------------
   El texto
   ------------------------------------------------------------------------- */
.title,
.subtitle {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: currentColor;
}

.title {
    grid-area: title;
    align-self: end;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.subtitle {
    grid-area: subtitle;
    align-self: start;
    font-size: 12.5px;
    font-weight: 400;
    opacity: .72;
}

.power-button {
    grid-area: play;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    display: grid;
    place-items: center;
}

.power-button:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .45);
}

.power-button::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-left: 15px solid #140f2e;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* `on` lo pone el reproductor cuando esta sonando. */
.power-button.on::after {
    width: 15px;
    height: 18px;
    margin-left: 0;
    border: 0;
    background: linear-gradient(90deg,
        #140f2e 0 5px, transparent 5px 10px, #140f2e 10px 15px);
}

/* -------------------------------------------------------------------------
   Volumen, silencio, cast y compartir
   ------------------------------------------------------------------------- */
.volume {
    grid-area: volumen;
    width: 76px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .25);
    overflow: hidden;
    cursor: pointer;
}

.slider {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--nebula-2), #fff);
}

.mute-button,
.menuButton {
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-color: currentColor;
    opacity: .78;
    transition: opacity .15s ease;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.mute-button:hover,
.menuButton:hover {
    opacity: 1;
}

.mute-button {
    grid-area: silencio;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
}

.mute-button.on {
    opacity: .5;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M22 9l-6 6'/%3E%3Cpath d='M16 9l6 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M22 9l-6 6'/%3E%3Cpath d='M16 9l6 6'/%3E%3C/svg%3E");
}

.menuButton {
    grid-area: menu;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='12' cy='19' r='2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='12' cy='19' r='2'/%3E%3C/svg%3E");
}

.EjeServerPlayer .cast-launcher-wrap {
    position: static;
    grid-area: cast;
    width: 24px;
    height: 24px;
    --connected-color: #00d4ff !important;
    --disconnected-color: currentColor !important;
}

.EjeServerPlayer .cast-launcher-wrap google-cast-launcher {
    width: 24px;
    height: 24px;
    color: currentColor;
    opacity: .78;
    --connected-color: #00d4ff !important;
    --disconnected-color: currentColor !important;
}

.embed,
.popup {
    grid-row: 1 / -1;
    align-self: center;
    width: 14px;
    height: 14px;
    cursor: pointer;
    background-color: currentColor;
    opacity: .45;
    transition: opacity .15s ease;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.embed:hover,
.popup:hover {
    opacity: .95;
}

.embed {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6 2 12l6 6'/%3E%3Cpath d='M16 6l6 6-6 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6 2 12l6 6'/%3E%3Cpath d='M16 6l6 6-6 6'/%3E%3C/svg%3E");
}

.popup {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------
   Estrecho
   -------------------------------------------------------------------------
   Por debajo de 420 px cae el volumen antes que nada: en un telefono se
   ajusta con los botones del aparato, no arrastrando 76 px de barra.
   ------------------------------------------------------------------------- */
@media (max-width: 420px) {
    .EjeServerPlayer {
        height: 80px;
        padding: 0 14px;
        column-gap: 10px;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-areas:
            "play title    silencio menu"
            "play subtitle silencio menu";
    }

    .volume,
    .embed,
    .popup,
    .EjeServerPlayer .cast-launcher-wrap {
        display: none;
    }

    .power-button {
        width: 46px;
        height: 46px;
    }

    .title {
        font-size: 14.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .EjeServerPlayer::before {
        animation: none;
    }

    .power-button {
        transition: none;
    }
}
