/* BD Insert */
/* =========================================================
   BACKdigit RADIO - Banner
   Desktop: 800x80
   Mobile: compatto
   ========================================================= */

.bd-radio-banner {
    --bd-bg: #101318;
    --bd-bg2: #171c23;
    --bd-border: rgba(255,255,255,.10);
    --bd-text: #ffffff;
    --bd-muted: #9ba3ad;
    --bd-accent: #19bfff;
    --bd-accent2: #00e5ff;

    position: relative;
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 800px;
    height: 80px;

    margin: 0 auto;
    padding: 0 12px 0 17px;

    box-sizing: border-box;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 72% 50%,
            rgba(25,191,255,.12),
            transparent 34%
        ),
        linear-gradient(
            110deg,
            var(--bd-bg),
            var(--bd-bg2)
        );

    border: 1px solid var(--bd-border);
    border-radius: 9px;

    color: var(--bd-text);
    font-family: Arial, Helvetica, sans-serif;

    box-shadow:
        0 5px 22px rgba(0,0,0,.20);
}


/* =========================================================
   DECORAZIONE
   ========================================================= */

.bd-radio-banner::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: 100px;
    top: -75px;

    background: rgba(25,191,255,.07);

    filter: blur(38px);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   BRAND
   ========================================================= */

.bd-radio-brand {
    position: relative;
    z-index: 3;

    flex: 0 0 185px;

    min-width: 185px;
    padding-right: 12px;

    box-sizing: border-box;
}

.bd-radio-title {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0 0 4px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: .2px;
}

.bd-radio-live {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #ff3b30;

    box-shadow:
        0 0 7px rgba(255,59,48,.75);

    animation: bd-radio-live-pulse 1.4s infinite;
}

@keyframes bd-radio-live-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.75);
    }
}

.bd-radio-subtitle {
    color: var(--bd-muted);

    font-size: 10px;

    line-height: 1.2;

    white-space: nowrap;
}


/* =========================================================
   GENERI
   ========================================================= */

.bd-radio-genres {
    position: relative;
    z-index: 3;

    flex: 1;

    min-width: 0;

    overflow: hidden;

    margin-right: 10px;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0,
            black 10px,
            black calc(100% - 10px),
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0,
            black 10px,
            black calc(100% - 10px),
            transparent 100%
        );
}

.bd-radio-genres-track {
    display: flex;
    align-items: center;

    width: max-content;

    gap: 6px;

    animation:
        bd-radio-ticker 45s linear infinite;
}

.bd-radio-genres:hover .bd-radio-genres-track {
    animation-play-state: paused;
}

@keyframes bd-radio-ticker {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =========================================================
   SINGOLO GENERE
   ========================================================= */

.bd-radio-genre {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 25px;

    padding: 0 8px;

    box-sizing: border-box;

    color: #cbd1d8;

    background: rgba(255,255,255,.045);

    border: 1px solid rgba(255,255,255,.09);

    border-radius: 5px;

    font-size: 9px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.bd-radio-genre:hover {
    color: #ffffff;

    background:
        rgba(25,191,255,.14);

    border-color:
        rgba(25,191,255,.45);

    transform: translateY(-1px);
}


/* =========================================================
   MINI EQUALIZZATORE
   ========================================================= */

.bd-radio-eq {
    position: relative;
    z-index: 3;

    display: flex;

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

    gap: 2px;

    width: 39px;
    height: 29px;

    margin-right: 10px;

    flex: 0 0 39px;
}

.bd-radio-eq span {
    display: block;

    width: 3px;

    min-height: 4px;

    border-radius: 3px 3px 0 0;

    background:
        linear-gradient(
            to top,
            var(--bd-accent),
            var(--bd-accent2)
        );

    transform-origin: bottom;

    animation:
        bd-radio-equalizer
        .8s ease-in-out
        infinite alternate;
}


/* diverse altezze e tempi */

.bd-radio-eq span:nth-child(1) {
    height: 9px;
    animation-delay: -.65s;
}

.bd-radio-eq span:nth-child(2) {
    height: 19px;
    animation-delay: -.15s;
}

.bd-radio-eq span:nth-child(3) {
    height: 26px;
    animation-delay: -.45s;
}

.bd-radio-eq span:nth-child(4) {
    height: 14px;
    animation-delay: -.05s;
}

.bd-radio-eq span:nth-child(5) {
    height: 23px;
    animation-delay: -.55s;
}

.bd-radio-eq span:nth-child(6) {
    height: 12px;
    animation-delay: -.25s;
}

.bd-radio-eq span:nth-child(7) {
    height: 20px;
    animation-delay: -.75s;
}

@keyframes bd-radio-equalizer {

    0% {
        transform: scaleY(.25);
        opacity: .45;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}


/* =========================================================
   PULSANTE ASCOLTA
   ========================================================= */

.bd-radio-listen {
    position: relative;
    z-index: 4;

    display: inline-flex;

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

    gap: 6px;

    flex: 0 0 auto;

    height: 34px;

    padding: 0 13px;

    box-sizing: border-box;

    color: #071016;

    background:
        var(--bd-accent);

    border-radius: 6px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .2px;

    white-space: nowrap;

    text-decoration: none;

    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.bd-radio-listen:hover {
    color: #071016;

    background:
        var(--bd-accent2);

    box-shadow:
        0 0 18px rgba(25,191,255,.25);

    transform: translateY(-1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .bd-radio-banner {
        height: 104px;

        padding: 11px 11px 10px;

        display: grid;

        grid-template-columns: 1fr auto;
        grid-template-rows: 31px 32px;

        gap: 8px;

        border-radius: 8px;
    }


    .bd-radio-brand {
        grid-column: 1;
        grid-row: 1;

        min-width: 0;

        padding: 0;
    }

    .bd-radio-title {
        font-size: 14px;
    }

    .bd-radio-subtitle {
        font-size: 9px;
    }


    .bd-radio-eq {
        grid-column: 2;
        grid-row: 1;

        width: 39px;
        height: 27px;

        margin: 0;
    }


    .bd-radio-genres {
        grid-column: 1;
        grid-row: 2;

        width: 100%;

        margin: 0;

        align-self: center;
    }

    .bd-radio-genres-track {
        gap: 5px;

        animation-duration: 38s;
    }

    .bd-radio-genre {
        height: 25px;

        padding: 0 7px;

        font-size: 8px;
    }


    .bd-radio-listen {
        grid-column: 2;
        grid-row: 2;

        height: 32px;

        padding: 0 10px;

        font-size: 8px;
    }
}


/* =========================================================
   SMARTPHONE MOLTO STRETTO
   ========================================================= */

@media (max-width: 380px) {

    .bd-radio-banner {
        height: 104px;

        grid-template-columns: 1fr auto;
    }

    .bd-radio-subtitle {
        display: none;
    }

    .bd-radio-title {
        margin-top: 6px;
    }

    .bd-radio-eq {
        width: 34px;
    }

    .bd-radio-genre {
        font-size: 8px;

        padding: 0 6px;
    }
}


/* =========================================================
   ACCESSIBILITÀ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bd-radio-live,
    .bd-radio-eq span,
    .bd-radio-genres-track {
        animation: none !important;
    }
}