/* ========================================================
   STUDIO24TV — CSS additionnel v3
   Bandeau live persistant, vignette live PeerTube, compteur vues vignettes
======================================================== */

/* ================ BANDEAU LIVE PERSISTANT EN HAUT ================ */
.live-banner-top {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: linear-gradient(90deg, #c80511 0%, #e50914 50%, #c80511 100%);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(229, 9, 20, 0.4);
    transition: opacity 0.2s;
    overflow: hidden;
}
.live-banner-top.visible {
    display: flex;
}
.live-banner-top:hover {
    background: linear-gradient(90deg, #e50914 0%, #ff1521 50%, #e50914 100%);
}

.lbt-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    animation: lbtBlink 1.4s infinite ease-in-out;
    flex-shrink: 0;
}
@keyframes lbtBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.85); }
}

.lbt-text {
    font-weight: 700;
    letter-spacing: 1.2px;
    flex-shrink: 0;
}

.lbt-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.95;
}

.lbt-viewers {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px 10px;
    border-radius: 12px;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .live-banner-top { padding: 7px 12px; font-size: 12px; gap: 8px; }
    .lbt-title { font-size: 12px; }
    .lbt-text { font-size: 11px; }
}

/* ================ VIGNETTE LIVE PEERTUBE ================ */
.card-live-peertube {
    /* Bordure subtile rouge pour la mettre en avant */
    position: relative;
}
.card-live-peertube::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.5), transparent 50%, rgba(229, 9, 20, 0.3));
    z-index: -1;
    pointer-events: none;
    animation: liveCardGlow 3s ease-in-out infinite;
}
@keyframes liveCardGlow {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 0.9; }
}

.card-tag-live {
    background: var(--red) !important;
    color: #fff !important;
    border-color: var(--red) !important;
    font-weight: 600;
    letter-spacing: 0.6px;
}

.card-viewers-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}

/* ================ COMPTEUR VUES SUR LES VIGNETTES ================ */
.card-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-3);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.card-views svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* ================ PAGE /LIVE ================ */
.live-page .title-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 0 14px rgba(229, 9, 20, 0.5);
}
.live-page .title-live-badge .live-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: lbtBlink 1.4s infinite;
}

.live-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-2);
}
.live-empty-icon {
    color: var(--text-3);
    margin-bottom: 16px;
}
.live-empty h1 {
    color: var(--text-1);
    font-size: 22px;
    font-weight: 500;
    margin: 16px 0 8px;
}
.live-empty p {
    font-size: 14px;
    margin: 8px 0;
}
.live-empty-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--red);
    text-decoration: none;
    padding: 10px 22px;
    border: 1px solid var(--red);
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.live-empty-link:hover {
    background: var(--red);
    color: #fff;
}
