/* =========================================================
   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; }
}
