.foutfm-studio-ticker {
    --foutfm-purple: #571548;
    --foutfm-pink: #a72b8b;

    position: fixed;
    left: 14px;
    right: 14px;
    top: 76px;
    z-index: 9998;

    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;

    min-height: var(--foutfm-ticker-height-desktop, 78px);
    padding: 9px 14px;
    box-sizing: border-box;

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.20);
    background: linear-gradient(135deg, rgba(87,21,72,.96), rgba(167,43,139,.94));
    color: #ffffff;

    box-shadow:
        0 10px 28px rgba(0,0,0,.32),
        0 0 24px rgba(167,43,139,.35);

    pointer-events: auto;
    overflow: hidden;
    font-family: inherit;
    animation: foutfmTickerIn .7s ease both;
}

.foutfm-studio-ticker::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 10%, rgba(255,255,255,.18), transparent 18%),
        linear-gradient(110deg, transparent 0%, rgba(255,255,255,.13) 42%, transparent 65%);
    transform: translateX(-120%);
    animation: foutfmTickerShine 7s ease-in-out infinite;
    pointer-events: none;
}

.foutfm-studio-ticker::after {
    content: "🎉";
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 16px;
    opacity: .52;
    transform: rotate(12deg);
    pointer-events: none;
    z-index: 2;
}

.foutfm-ticker-orb {
    position: relative;
    z-index: 1;

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

    width: 34px;
    height: 34px;
    border-radius: 999px;

    background: rgba(255,255,255,.14);
    box-shadow:
        inset 0 0 10px rgba(255,255,255,.16),
        0 0 14px rgba(255,255,255,.16),
        0 0 18px rgba(167,43,139,.45);

    animation: foutfmOrbWiggle 4s ease-in-out infinite;
}

.foutfm-ticker-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.foutfm-ticker-label {
    display: block;
    margin-bottom: 3px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    opacity: .82;
    line-height: 1;
}

.foutfm-ticker-window {
    position: relative;
    min-height: calc(var(--foutfm-cover-size-desktop, 52px) + 4px);
    overflow: hidden;
    padding-right: 24px;
    box-sizing: border-box;
}

.foutfm-ticker-message {
    position: absolute;
    left: 0;
    right: 24px;
    top: 50%;

    transform: translateY(120%) scale(.985);
    opacity: 0;

    display: block;
    max-width: calc(100% - 24px);

    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: .1px;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;

    transition: transform .55s ease, opacity .55s ease;
}

.foutfm-ticker-message.is-active {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.foutfm-ticker-message a,
.foutfm-ticker-message a:link {
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.45);
    pointer-events: auto;
}

.foutfm-ticker-message a:visited {
    color: #d98cff !important;
    border-bottom-color: rgba(217,140,255,.55);
}

.foutfm-ticker-message a:hover,
.foutfm-ticker-message a:focus {
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,.88);
    text-shadow: 0 0 10px rgba(217,140,255,.75);
}

.foutfm-floating-bottom {
    top: auto;
    bottom: 18px;
}

.foutfm-shortcode-ticker {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin: 14px auto;
}

@keyframes foutfmTickerIn {
    from { transform: translateY(14px) scale(.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes foutfmTickerShine {
    0%, 55% { transform: translateX(-120%); }
    75%, 100% { transform: translateX(120%); }
}

@keyframes foutfmOrbWiggle {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.05); }
}



/* Voorkom dat de zwevende ticker onderin over footer/widgets heen valt */
body.foutfm-studio-ticker-bottom-active {
    padding-bottom: 92px !important;
}

body.foutfm-studio-ticker-bottom-active .site-footer,
body.foutfm-studio-ticker-bottom-active footer {
    margin-bottom: 78px;
}

@media (max-width: 768px) {
    .foutfm-studio-ticker {
        left: 50%;
        right: auto;
        top: 64px;
        width: calc(100vw - 28px);
        max-width: 360px;
        transform: translateX(-50%);

        grid-template-columns: 30px 1fr;
        gap: 7px;
        min-height: var(--foutfm-ticker-height-mobile, 62px);
        padding: 7px 10px;
        border-radius: 15px;
    }

    .foutfm-floating-bottom {
        top: auto;
        bottom: 12px;
    }

    .foutfm-shortcode-ticker {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: calc(100% - 8px);
        max-width: 100%;
        margin: 12px auto;
    }

    .foutfm-ticker-orb {
        width: 26px;
        height: 26px;
        font-size: 15px;
    }

    .foutfm-ticker-label {
        display: none;
    }

    .foutfm-ticker-window {
        min-height: calc(var(--foutfm-cover-size-mobile, 42px) + 4px);
        padding-right: 18px;
    }

    .foutfm-ticker-message {
        right: 18px;
        max-width: calc(100% - 18px);
        font-size: 12.5px;
        line-height: 1.2;
        white-space: nowrap !important;
    }

    .foutfm-studio-ticker::after {
        right: 9px;
        top: 7px;
        font-size: 14px;
        opacity: .55;
    }

    .foutfm-hide-mobile {
        display: none !important;
    }
}


@media (max-width: 768px) {
    .foutfm-studio-ticker {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .foutfm-studio-ticker,
    .foutfm-studio-ticker::before,
    .foutfm-ticker-orb,
    .foutfm-ticker-message {
        animation: none !important;
        transition: none !important;
    }
}


@media (max-width: 768px) {
    body.foutfm-studio-ticker-bottom-active {
        padding-bottom: 68px !important;
    }

    body.foutfm-studio-ticker-bottom-active .site-footer,
    body.foutfm-studio-ticker-bottom-active footer {
        margin-bottom: 56px;
    }
}



/* Marquee v1.7.4: alle berichten lopen achter elkaar door, mobiel én desktop. */
.foutfm-ticker-window {
    overflow: hidden !important;
}

.foutfm-ticker-message-continuous {
    right: 0;
    max-width: 100%;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    height: calc(var(--foutfm-cover-size-desktop, 52px) + 6px);
}

.foutfm-ticker-message-continuous .foutfm-ticker-marquee {
    display: inline-flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: foutfmTickerScrollContinuous var(--foutfm-scroll-duration, 35s) linear infinite;
}

.foutfm-ticker-marquee-set {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.foutfm-ticker-item {
    display: inline-flex;
    align-items: center;
    min-height: calc(var(--foutfm-cover-size-desktop, 52px) + 6px);
    white-space: nowrap;
}

.foutfm-ticker-item::after {
    content: "  •  ";
    opacity: .75;
    padding: 0 18px;
}

@keyframes foutfmTickerScrollContinuous {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .foutfm-ticker-message-continuous .foutfm-ticker-marquee {
        animation: none !important;
    }
}

/* Albumcovers bij Net gedraaid v1.7.7 */
.foutfm-ticker-cover {
    width: var(--foutfm-cover-size-desktop, 52px);
    height: var(--foutfm-cover-size-desktop, 52px);
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
    margin-left: 12px;
    margin-right: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.28);
    vertical-align: middle;
}

@media (max-width: 768px) {
    .foutfm-ticker-item {
        min-height: calc(var(--foutfm-cover-size-mobile, 42px) + 6px);
    }

    .foutfm-ticker-message-continuous {
        height: calc(var(--foutfm-cover-size-mobile, 42px) + 6px);
    }

    .foutfm-ticker-cover {
        width: var(--foutfm-cover-size-mobile, 42px);
        height: var(--foutfm-cover-size-mobile, 42px);
        border-radius: 9px;
        margin-left: 10px;
        margin-right: 0;
    }
}

/* Cover als subtiele FoutFM achtergrond v1.7.9 */
.foutfm-studio-ticker.foutfm-has-cover-background {
    background:
        linear-gradient(135deg, rgba(87,21,72,.92), rgba(167,43,139,.88));
    isolation: isolate;
}

.foutfm-ticker-bg-cover {
    position: absolute;
    inset: -24px;
    z-index: 0;
    pointer-events: none;
    background-image: var(--foutfm-cover-bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(var(--foutfm-cover-bg-blur, 18px)) saturate(1.15) contrast(1.04);
    opacity: var(--foutfm-cover-bg-opacity, .26);
    transform: scale(1.12);
}

.foutfm-studio-ticker.foutfm-has-cover-background::before {
    z-index: 1;
    opacity: .55;
}

.foutfm-studio-ticker.foutfm-has-cover-background::after {
    z-index: 3;
}

.foutfm-studio-ticker.foutfm-has-cover-background .foutfm-ticker-orb,
.foutfm-studio-ticker.foutfm-has-cover-background .foutfm-ticker-copy {
    z-index: 2;
}

.foutfm-studio-ticker.foutfm-has-cover-background .foutfm-ticker-copy::before {
    content: "";
    position: absolute;
    inset: -8px -10px;
    z-index: -1;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(87,21,72,.38), rgba(87,21,72,.12));
    pointer-events: none;
}

.foutfm-studio-ticker.foutfm-cover-bg-subtle {
    box-shadow:
        0 10px 28px rgba(0,0,0,.34),
        0 0 24px rgba(167,43,139,.38);
}

.foutfm-studio-ticker.foutfm-cover-bg-normal .foutfm-ticker-bg-cover {
    opacity: calc(var(--foutfm-cover-bg-opacity, .26) + .08);
    filter: blur(var(--foutfm-cover-bg-blur, 18px)) saturate(1.3) contrast(1.08);
}

.foutfm-studio-ticker.foutfm-cover-bg-intense .foutfm-ticker-bg-cover {
    opacity: calc(var(--foutfm-cover-bg-opacity, .26) + .16);
    filter: blur(var(--foutfm-cover-bg-blur, 18px)) saturate(1.45) contrast(1.12);
}

.foutfm-studio-ticker.foutfm-cover-bg-intense {
    background:
        linear-gradient(135deg, rgba(87,21,72,.86), rgba(167,43,139,.80));
}
