
/* ============================================================
   CSB PODCAST — ULTRA PREMIUM SPONSORED MEDIA
   Version 2026.10
   Audio / Video / Responsive / Glassmorphism
============================================================ */

.csb-sponsored-media {
    --csb-purple: #8b43a8;
    --csb-pink: #ea5b78;
    --csb-cyan: #12b4d6;
    --csb-white: #f7f7fb;
    --csb-muted: #a9a5b8;
    --csb-bg: #090910;
    --csb-radius: 20px;

    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: block;

    width: min(100%, 680px);
    margin: 26px auto;
    padding: 1px;

    overflow: hidden;
    border-radius: var(--csb-radius);

    color: var(--csb-white);
    font-family: inherit;

    background: linear-gradient(
        135deg,
        rgba(139, 67, 168, .65),
        rgba(255, 255, 255, .08) 30%,
        rgba(18, 180, 214, .3) 68%,
        rgba(234, 91, 120, .55)
    );

    box-shadow:
        0 20px 55px rgba(0, 0, 0, .26),
        0 0 35px rgba(139, 67, 168, .055);

    transition:
        transform .45s cubic-bezier(.2, .8, .2, 1),
        box-shadow .45s ease,
        filter .35s ease;
}

.csb-sponsored-media *,
.csb-sponsored-media *::before,
.csb-sponsored-media *::after {
    box-sizing: border-box;
}

.csb-sponsored-media::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px;
    border-radius: calc(var(--csb-radius) - 1px);

    background:
        radial-gradient(
            ellipse at 90% 0%,
            rgba(139, 67, 168, .22),
            transparent 52%
        ),
        radial-gradient(
            ellipse at 0% 100%,
            rgba(18, 180, 214, .10),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            #15111e,
            #0b0b12 58%,
            #11101a
        );
}

.csb-sponsored-media::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 250px;
    height: 250px;
    right: -140px;
    top: -150px;

    border-radius: 50%;
    pointer-events: none;

    background: rgba(139, 67, 168, .22);
    filter: blur(55px);

    animation: csb-ad-glow 9s ease-in-out infinite alternate;
}

.csb-sponsored-media:hover {
    transform: translateY(-4px);
    box-shadow:
        0 29px 75px rgba(0, 0, 0, .3),
        0 0 42px rgba(139, 67, 168, .14);
}

.csb-sponsored-media.is-ready {
    animation: csb-ad-enter .7s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes csb-ad-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes csb-ad-glow {
    from {
        transform: translate(-25px, 10px);
        opacity: .45;
    }
    to {
        transform: translate(15px, 35px);
        opacity: .9;
    }
}

/* ============================================================
   HEADER
============================================================ */

.csb-sponsored-media__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    padding: 15px 19px 0;
}

.csb-sponsored-media__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;

    border: 1px solid rgba(234, 91, 120, .3);
    border-radius: 999px;

    background: rgba(234, 91, 120, .1);
    backdrop-filter: blur(16px);

    color: #ffd5df;

    font-size: 9px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.csb-sponsored-media__badge::before {
    content: "";
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--csb-pink);

    box-shadow: 0 0 12px var(--csb-pink);
    animation: csb-ad-pulse 2s ease-in-out infinite;
}

@keyframes csb-ad-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(234,91,120,.55);
    }
    50% {
        opacity: .55;
        box-shadow: 0 0 18px rgba(234,91,120,.85);
    }
}

.csb-sponsored-media__format {
    color: var(--csb-cyan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ============================================================
   CONTENT
============================================================ */

.csb-sponsored-media__content {
    display: grid;
    gap: 14px;
    padding: 17px 19px 19px;
}

.csb-sponsored-media__information {
    min-width: 0;
}

.csb-sponsored-media__eyebrow {
    display: block;
    margin-bottom: 7px;

    color: var(--csb-cyan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.csb-sponsored-media__information h3 {
    margin: 0;
    max-width: 100%;

    color: var(--csb-white);
    font-size: clamp(17px, 2vw, 23px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.csb-sponsored-media__information p {
    margin: 7px 0 0;

    color: var(--csb-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ============================================================
   COMPACT PLAYER
============================================================ */

.csb-sponsored-media__player {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;

    min-width: 0;
}

.csb-sponsored-media--video {
    width: min(100%, 600px);
}

.csb-sponsored-media--video
.csb-sponsored-media__player {
    max-width: 520px;
}

.csb-sponsored-media__player video {
    display: block;
    width: 100%;
    max-width: 520px;
    max-height: 293px;

    aspect-ratio: 16 / 9;
    object-fit: contain;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;

    background: #000;
    box-shadow: 0 16px 40px rgba(0,0,0,.3);

    transition:
        border-color .35s ease,
        box-shadow .35s ease;
}

.csb-sponsored-media.is-playing
.csb-sponsored-media__player video {
    border-color: rgba(18,180,214,.32);
    box-shadow:
        0 16px 40px rgba(0,0,0,.3),
        0 0 20px rgba(18,180,214,.07);
}

.csb-sponsored-media--audio {
    width: min(100%, 560px);
}

.csb-sponsored-media__player audio {
    display: block;
    width: 100%;
    height: 46px;
    min-height: 46px;

    border-radius: 999px;
    color-scheme: dark;
}

/* ============================================================
   AUDIO ART
============================================================ */

.csb-sponsored-media__audio-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;

    min-height: 110px;
    overflow: hidden;

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

    background:
        radial-gradient(
            ellipse at 18% 72%,
            rgba(139,67,168,.35),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 85% 15%,
            rgba(18,180,214,.2),
            transparent 50%
        ),
        #13101c;
}

.csb-sponsored-media__audio-art::before,
.csb-sponsored-media__audio-art::after {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}

.csb-sponsored-media__audio-art::before {
    box-shadow:
        0 0 0 34px rgba(139,67,168,.035),
        0 0 0 68px rgba(18,180,214,.02);
}

.csb-sponsored-media__audio-art::after {
    width: 125px;
    height: 125px;
    border-style: dashed;
    border-color: rgba(18,180,214,.15);

    animation: csb-ad-orbit 17s linear infinite;
}

@keyframes csb-ad-orbit {
    to { transform: rotate(360deg); }
}

.csb-sponsored-media__audio-art > span {
    position: relative;
    z-index: 1;

    color: #fff;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -.09em;
}

.csb-sponsored-media__audio-art > strong {
    position: relative;
    z-index: 1;

    color: var(--csb-cyan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .3em;
}

/* ============================================================
   AUDIO WAVEFORM
============================================================ */

.csb-sponsored-media__waves {
    position: absolute;
    right: 20px;
    bottom: 18px;

    display: flex;
    align-items: center;
    gap: 4px;
    height: 25px;
}

.csb-sponsored-media__waves i {
    display: block;
    width: 3px;
    height: 12px;

    border-radius: 999px;

    background: linear-gradient(
        180deg,
        var(--csb-pink),
        var(--csb-cyan)
    );

    transform-origin: center;
}

.csb-sponsored-media__waves i:nth-child(3n+1) {
    height: 20px;
}

.csb-sponsored-media__waves i:nth-child(3n+2) {
    height: 25px;
}

.csb-sponsored-media.is-playing
.csb-sponsored-media__waves i {
    animation: csb-ad-wave .85s ease-in-out infinite alternate;
}

.csb-sponsored-media.is-playing
.csb-sponsored-media__waves i:nth-child(2n) {
    animation-delay: -.32s;
}

.csb-sponsored-media.is-playing
.csb-sponsored-media__waves i:nth-child(3n) {
    animation-delay: -.57s;
}

@keyframes csb-ad-wave {
    from { transform: scaleY(.4); }
    to { transform: scaleY(1.2); }
}

/* ============================================================
   PLAYBACK CONTROLS
============================================================ */

.csb-sponsored-media__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 9px;
}

.csb-sponsored-media__start,
.csb-sponsored-media__unmute {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 36px;
    padding: 8px 13px;

    border: 1px solid rgba(18,180,214,.32);
    border-radius: 10px;

    background: rgba(18,180,214,.09);
    backdrop-filter: blur(14px);

    color: #a3eeff;
    font: inherit;
    font-size: 11px;
    font-weight: 850;

    cursor: pointer;

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

.csb-sponsored-media__start:hover,
.csb-sponsored-media__unmute:hover {
    transform: translateY(-2px);
    background: rgba(18,180,214,.2);
    box-shadow: 0 8px 20px rgba(18,180,214,.08);
}

.csb-sponsored-media__start[hidden],
.csb-sponsored-media__unmute[hidden] {
    display: none !important;
}

/* ============================================================
   SPONSORED CTA
============================================================ */

.csb-sponsored-media__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: fit-content;
    min-height: 40px;
    padding: 10px 16px;

    overflow: hidden;
    border: 0;
    border-radius: 11px;

    background: linear-gradient(
        115deg,
        var(--csb-purple),
        var(--csb-pink),
        var(--csb-cyan)
    );

    background-size: 200% 200%;

    color: #fff;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background-position .5s ease;
}

.csb-sponsored-media__cta::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255,255,255,.25) 48%,
        transparent 75%
    );

    transform: translateX(-130%);
    transition: transform .6s ease;
}

.csb-sponsored-media__cta:hover::before {
    transform: translateX(130%);
}

.csb-sponsored-media__cta:hover {
    color: #fff;
    transform: translateY(-2px);
    background-position: 100% 50%;

    box-shadow:
        0 10px 28px rgba(139,67,168,.25);
}

/* ============================================================
   STATUS
============================================================ */

.csb-sponsored-media__status {
    margin: 0;

    color: var(--csb-muted);
    font-size: 11px;
    line-height: 1.5;
}

.csb-sponsored-media.is-error
.csb-sponsored-media__status {
    color: #ffabab;
}

.csb-sponsored-media.is-playing
.csb-sponsored-media__badge::before {
    background: var(--csb-cyan);
    box-shadow: 0 0 13px rgba(18,180,214,.6);
}

/* ============================================================
   ACCESSIBILITY
============================================================ */

.csb-sponsored-media :is(
    a,
    button,
    audio,
    video
):focus-visible {
    outline: 3px solid var(--csb-cyan);
    outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {
    .csb-sponsored-media {
        width: 100%;
        margin: 20px auto;
        border-radius: 17px;
    }

    .csb-sponsored-media::before {
        border-radius: 16px;
    }

    .csb-sponsored-media__header {
        padding: 13px 14px 0;
    }

    .csb-sponsored-media__content {
        padding: 14px;
        gap: 12px;
    }

    .csb-sponsored-media__information h3 {
        font-size: 19px;
    }

    .csb-sponsored-media__player video {
        max-height: 240px;
        border-radius: 11px;
    }

    .csb-sponsored-media__audio-art {
        min-height: 90px;
    }

    .csb-sponsored-media__cta {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .csb-sponsored-media__badge,
    .csb-sponsored-media__format {
        font-size: 8px;
    }

    .csb-sponsored-media__player video {
        max-height: 200px;
    }

    .csb-sponsored-media__audio-art > span {
        font-size: 27px;
    }

    .csb-sponsored-media__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .csb-sponsored-media__start,
    .csb-sponsored-media__unmute {
        width: 100%;
    }
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
    .csb-sponsored-media,
    .csb-sponsored-media::after,
    .csb-sponsored-media__audio-art::after,
    .csb-sponsored-media__badge::before,
    .csb-sponsored-media__waves i,
    .csb-sponsored-media__cta,
    .csb-sponsored-media__cta::before,
    .csb-sponsored-media__start,
    .csb-sponsored-media__unmute {
        animation: none !important;
        transition: none !important;
    }

    .csb-sponsored-media:hover,
    .csb-sponsored-media__cta:hover,
    .csb-sponsored-media__start:hover,
    .csb-sponsored-media__unmute:hover {
        transform: none;
    }
}

