/* =========================================================
   MS STREAMING — FM RADIO INLINE PLAYER UI
   Compact • Animated • Cinematic in thumbnail or featured image bottom
   ========================================================= */

/* ── Wrapper ───────────────────────────── */

.ms-radio-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;   /* Image on top, bar below */
    border-radius: 12px;
    overflow: hidden;
}

.ms-radio-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.related-card-media .ms-radio-wrapper {
    height: auto;
}

.related-card-media .ms-radio-wrapper img {
    height: auto;
}


.related-card-media {
    overflow: visible;
    aspect-ratio: auto !important;
    height: auto !important;
    overflow: visible !important;
}


.related-card-media .ms-radio-wrapper {
    display: flex;
    flex-direction: column;
}



/* =========================================================
   GLASS RADIO BAR
   position: relative — sits below the image in normal flow.
   No more collapsing / clipping when logo is a small square.
   ========================================================= */
.ms-radio-inline {
     opacity: 1;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 12px;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.6) 60%,
        rgba(0,0,0,0.2) 100%
    );

    backdrop-filter: blur(4px);

    z-index: 10;
}




/* =========================================================
   PLAY BUTTON on INLINE PLAYER — Neon Cyan Orb
   ========================================================= */
.ms-radio-play {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

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

    font-size: 13px;
    color: #000;

    background: radial-gradient(circle at 32% 32%, #00f5ff, #0077ff);

    box-shadow:
        0 0 0 2px rgba(0, 220, 255, 0.2),
        0 0 14px rgba(0, 180, 255, 0.65),
        0 4px 10px rgba(0, 0, 0, 0.55);

    transition: all .3s cubic-bezier(.2, .8, .2, 1);
}

.ms-radio-play:hover {
    transform: scale(1.12);
    box-shadow:
        0 0 0 3px rgba(0, 220, 255, 0.38),
        0 0 24px rgba(0, 200, 255, 1),
        0 6px 16px rgba(0, 0, 0, 0.65);
}

.ms-radio-play:active { transform: scale(0.92); }

/* Pulse ring */
.ms-radio-play::after {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 210, 255, 0.55);
    animation: msRadioPulse 2.2s infinite ease-out;
    pointer-events: none;
}

@keyframes msRadioPulse {
    0%   { transform: scale(1);    opacity: .75; }
    100% { transform: scale(1.7);  opacity: 0;   }
}

/* =========================================================
   STATUS ROW — Live dot + label + equalizer
   ========================================================= */
.ms-radio-status {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .35px;
    color: #d0f4ff;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}







/* Red live blink dot */
.ms-radio-status::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff2d55;
    box-shadow: 0 0 6px #ff2d55, 0 0 12px rgba(255,45,85,.45);
    animation: msLiveBlink 1.4s infinite;
}

@keyframes msLiveBlink {
    0%,100% { opacity: 1;  }
    50%      { opacity: .2; }
}

/* =========================================================
   EQUALIZER — 4 animated bars (add to your PHP output)
   Usage: <span class="ms-eq"><i></i><i></i><i></i><i></i></span>
   ========================================================= */
.ms-eq {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.ms-eq i {
    display: block;
    width: 2.5px;
    border-radius: 2px;
    background: #00e0ff;
    box-shadow: 0 0 4px rgba(0,224,255,.7);
    font-style: normal;
}

.ms-eq i:nth-child(1) { animation: msBar1 1.0s infinite ease-in-out; }
.ms-eq i:nth-child(2) { animation: msBar2 1.2s infinite ease-in-out; }
.ms-eq i:nth-child(3) { animation: msBar3 0.9s infinite ease-in-out; }
.ms-eq i:nth-child(4) { animation: msBar4 1.1s infinite ease-in-out; }

@keyframes msBar1 { 0%,100%{ height:4px  } 50%{ height:13px } }
@keyframes msBar2 { 0%,100%{ height:11px } 50%{ height:4px  } }
@keyframes msBar3 { 0%,100%{ height:6px  } 50%{ height:14px } }
@keyframes msBar4 { 0%,100%{ height:3px  } 50%{ height:10px } }

/* =========================================================
   LIVE BADGE
   ========================================================= */
.ms-radio-live-badge {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .9px;
    color: #fff;
    background: #ff2d55;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255,45,85,.55);
    text-transform: uppercase;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 600px) {
    .ms-radio-play   { width: 30px; height: 30px; font-size: 11px; }
    .ms-radio-status { font-size: 11px; }
}


/* =========================================================
   v3.2 FtaFlix radio button polish
   Light theme: funky orange. Dark theme: funky yellow.
   Smaller radio UI for cards and thumbnails.
   ========================================================= */

:root{
    --ms-radio-main:#ff7a18;
    --ms-radio-alt:#ffb000;
    --ms-radio-glow:rgba(255,122,24,.46);
    --ms-radio-ring:rgba(255,122,24,.34);
}

html[data-theme="dark"],
body[data-theme="dark"],
[data-theme="dark"]{
    --ms-radio-main:#ffe259;
    --ms-radio-alt:#ffa751;
    --ms-radio-glow:rgba(255,226,89,.48);
    --ms-radio-ring:rgba(255,226,89,.36);
}

.ms-radio-inline{
    gap:7px!important;
    padding:6px 9px!important;
}

.ms-radio-play{
    width:28px!important;
    height:28px!important;
    font-size:11px!important;
    color:#111!important;
    background:radial-gradient(circle at 32% 32%,var(--ms-radio-alt),var(--ms-radio-main))!important;
    box-shadow:
        0 0 0 2px rgba(255,255,255,.18),
        0 0 12px var(--ms-radio-glow),
        0 3px 8px rgba(0,0,0,.45)!important;
}

.ms-radio-play:hover{
    transform:scale(1.08)!important;
    box-shadow:
        0 0 0 3px rgba(255,255,255,.22),
        0 0 18px var(--ms-radio-glow),
        0 5px 12px rgba(0,0,0,.55)!important;
}

.ms-radio-play::after{
    inset:-6px!important;
    border-color:var(--ms-radio-ring)!important;
}

.ms-radio-status{
    font-size:11px!important;
    font-weight:800!important;
}

.ms-radio-live-badge{
    font-size:9px!important;
    padding:2px 5px!important;
    border-radius:999px!important;
}

/* Extra compact inside widgets / archive cards */
.post-card-thumbnail .ms-radio-inline,
.related-card-media .ms-radio-inline,
.widget .ms-radio-inline,
.site-sidebar .ms-radio-inline{
    padding:5px 7px!important;
    gap:6px!important;
}

.post-card-thumbnail .ms-radio-play,
.related-card-media .ms-radio-play,
.widget .ms-radio-play,
.site-sidebar .ms-radio-play{
    width:24px!important;
    height:24px!important;
    font-size:10px!important;
}

.post-card-thumbnail .ms-radio-status,
.related-card-media .ms-radio-status,
.widget .ms-radio-status,
.site-sidebar .ms-radio-status{
    font-size:10px!important;
}

@media(max-width:700px){
    .ms-radio-inline{
        padding:5px 7px!important;
        gap:6px!important;
    }

    .ms-radio-play{
        width:25px!important;
        height:25px!important;
        font-size:10px!important;
    }

    .ms-radio-status{
        font-size:10px!important;
    }

    .ms-radio-live-badge{
        display:none!important;
    }
}

