/* IPTV — Bande-annonce
   La barre est collée en haut (position: sticky) et le header du thème est
   décalé vers le bas de la hauteur exacte de la barre (--iptvbb-h), pour que
   les deux restent solidaires au défilement. */

:root {
    --iptvbb-h: 0px;
}

.iptvbb-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 55%, #1d4ed8 100%);
    color: #fff;
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}

.iptvbb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 9px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.iptvbb-text {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: .01em;
    color: #fff;
}

.iptvbb-text strong,
.iptvbb-text b {
    color: #fde047;
    font-weight: 800;
}

.iptvbb-text a {
    color: #fde047;
    text-decoration: underline;
}

.iptvbb-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fde047;
    color: #1e3a8a !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    padding: 15px 15px;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.iptvbb-cta:hover,
.iptvbb-cta:focus {
    background: #fff;
    color: #1e3a8a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

/* ---- Solidarité avec le header du thème -----------------------------------
   Thème iptvquebec-v2-2 :
     body > header                  -> position: sticky; top: 0
     header.header-transparent      -> position: fixed  (page d'accueil)
     body.admin-bar > header        -> top: 32px
   On surclasse uniquement la propriété « top ». */

body.iptvbb-active > header {
    top: var(--iptvbb-h, 0px);
}

body.iptvbb-active.admin-bar .iptvbb-bar {
    top: 32px;
}

body.iptvbb-active.admin-bar > header {
    top: calc(32px + var(--iptvbb-h, 0px));
}

@media screen and (max-width: 782px) {
    body.iptvbb-active.admin-bar .iptvbb-bar {
        top: 46px;
    }

    body.iptvbb-active.admin-bar > header {
        top: calc(46px + var(--iptvbb-h, 0px));
    }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .iptvbb-inner {
        padding: 8px 14px;
        gap: 8px;
    }

    .iptvbb-text {
        font-size: 13px;
    }

    .iptvbb-cta {
        font-size: 12px;
    }
}

/* ---- Aperçu dans l'administration ---- */
.iptvbb-preview {
    position: static !important;
    box-shadow: none;
}
