/* =============================================
   HLS LiveStream Widget — Styles
   ============================================= */

.hls-livestream-widget .hls-player-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.hls-player-wrapper .hls-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: block;
    background: #000;
    outline: none;
}

/* Message hors-ligne */
.hls-player-wrapper .hls-offline-msg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #ccc;
    font-family: sans-serif;
    text-align: center;
    padding: 1rem;
    gap: .5rem;
}

.hls-offline-msg .hls-offline-icon {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.hls-offline-msg p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.4;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

/* Bouton plein écran */
.hls-player-wrapper .hls-fullscreen-btn {
    position: absolute;
    bottom: 8px; right: 8px;
    z-index: 10;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
    line-height: 1;
}

.hls-player-wrapper .hls-fullscreen-btn:hover {
    background: rgba(0,0,0,.85);
}

.hls-player-wrapper:fullscreen .hls-fullscreen-btn,
.hls-player-wrapper:-webkit-full-screen .hls-fullscreen-btn {
    display: none;
}

.hls-video:fullscreen,
.hls-video:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
}
