/* ============================================
   LIVE / VOD SWITCHING STYLES
   ============================================ */

/* Make the poster wrapper a positioning context */
.poster-wrapper {
    position: relative;
    overflow: hidden;
}

/* LIVE video container – positioned to fill the poster */
.live-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;          /* Hidden by default (VOD mode) */
    z-index: 2;             /* Above the poster image */
}

/* Show the live video when data-live="on" */
.item[data-live="on"] .live-video {
    display: block;
}

/* Make the iframe fill the container exactly */
.live-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
}

/* Play button – positioned above the video */
.playBut {
    position: relative;
    z-index: 3;             /* Above the live video */
    /* Your existing button styles remain unchanged */
}

/* Hide the play button when live mode is active */
.item[data-live="on"] .playBut {
    display: none;
}

/* Optional: hide the static poster when live video is playing
   (prevents flash while loading) */
.item[data-live="on"] .poster-wrapper > img {
    opacity: 0;
}