/* BBTEK Radio & TV : design unifié (mêmes couleurs, cartes, titres et barre de menu sur toutes les pages) */
:root {
    --bb-nuit: #14161c;
    --bb-nuit2: #20232c;
    --bb-or: #f5b942;
    --bb-orange: #e67e22;
    --bb-rouge: #c0392b;
    --bb-bleu: #123a63;
    --bb-vert: #1e8f76;
    --bb-fond: #f3f4f7;
    --bb-texte: #1f2430;
    --bb-doux: #5d6577;
    --bb-rayon: 16px;
    --bb-ombre: 0 4px 22px rgba(20, 22, 28, .09);
}
body.bbtek-site {
    background: var(--bb-fond);
    color: var(--bb-texte);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    padding-bottom: 76px; /* place pour le mini-lecteur radio */
}
body.bbtek-site.page-direct { padding-bottom: 0; }

/* ---- barre de menu (identique partout) ---- */
.bb-nav { background: var(--bb-nuit); border-bottom: 3px solid var(--bb-or); position: sticky; top: 0; z-index: 1040; }
.bb-nav .navbar-brand { font-weight: 800; letter-spacing: .02em; font-size: 1.25rem; color: #fff; }
.bb-nav .navbar-brand .r { color: var(--bb-or); }
.bb-nav .navbar-brand .t { color: #ff5a4a; }
.bb-nav .nav-link { color: #d9dce6; font-weight: 600; padding: .65rem .85rem; border-radius: 10px; }
.bb-nav .nav-link i { margin-right: .35rem; opacity: .85; }
.bb-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.bb-nav .nav-link.actif { color: var(--bb-nuit); background: var(--bb-or); }
.bb-nav .nav-link.actif i { opacity: 1; }
.bb-nav .nav-link.soutien { color: #ff7a6b; }
.bb-nav .nav-link.soutien.actif { color: var(--bb-nuit); }
.bb-nav .navbar-toggler { border-color: rgba(255, 255, 255, .35); }

/* ---- titres ---- */
.bb-titre { font-weight: 800; font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin: 0 0 1.1rem; padding-left: .8rem; border-left: 5px solid var(--bb-or); line-height: 1.2; }
.bb-sous-titre { color: var(--bb-doux); margin: -.5rem 0 1.2rem .95rem; }
.bb-titre-section { font-weight: 800; font-size: 1.3rem; margin: 0 0 .9rem; }
.bb-titre-section::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--bb-orange); margin-top: .35rem; }
body.bbtek-site h1, body.bbtek-site h2, body.bbtek-site h3 { font-family: inherit; letter-spacing: -.005em; }

/* ---- bandeau d'en-tête de page (Direct, Soutenir…) ---- */
.hero-live { background: linear-gradient(135deg, var(--bb-nuit) 0%, var(--bb-nuit2) 100%); color: #fff; padding: 1.6rem 0 1.4rem; }
.hero-live h1 { font-weight: 800; }
.hero-live .sous-ligne { color: #c9cedb; margin: 0; }
.hero-live .aide-apk { color: #c9cedb; font-size: .82rem; margin-top: .4rem; }
.hero-live .invite-compte { max-width: 560px; margin: .2rem auto 0; color: #c9cedb; font-size: .88rem; }

/* ---- cartes (identiques partout) ---- */
.card, .player-card { border: 0; border-radius: var(--bb-rayon); box-shadow: var(--bb-ombre); overflow: hidden; background: #fff; }
.card .card-title { font-weight: 700; }
.player-card { transition: none; }
.player-card:hover { transform: none; }
.card.carte-actu { transition: transform .15s ease, box-shadow .15s ease; }
.card.carte-actu:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 22, 28, .14); }
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--bb-bleu); border-color: var(--bb-bleu); }
.btn-primary:hover, .btn-primary:focus { background: #0d2d4f; border-color: #0d2d4f; }
.btn-dark { background: var(--bb-nuit); border-color: var(--bb-nuit); }
.text-muted { color: var(--bb-doux) !important; }
.hero-live .text-muted, .player-card.radio .text-muted { color: #c9cedb !important; }
.badge-live { background: #e5251a; color: #fff; padding: .28rem .7rem; border-radius: 20px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; animation: bb-pulse 1.6s infinite; }
@keyframes bb-pulse { 50% { opacity: .65; } }
.nav-tabs .nav-link.active { color: var(--bb-nuit); font-weight: 700; border-bottom: 3px solid var(--bb-or); }
.nav-tabs .nav-link { color: var(--bb-doux); }
.programme-jour { border-left: 4px solid var(--bb-orange); }

/* ---- pied de page ---- */
.bb-pied { background: var(--bb-nuit); color: #e3e6ee; text-align: center; padding: 1.6rem 0; margin-top: 3rem; }
.bb-pied small { color: #aeb4c4; }

/* ---- accueil : bandeau EN DIRECT ---- */
.bb-direct { background: linear-gradient(135deg, var(--bb-nuit) 0%, #261a1a 100%); color: #fff; padding: 1.3rem 0 1.6rem; }
.bb-direct .etiquette { display: inline-flex; align-items: center; gap: .55rem; background: #e5251a; color: #fff; font-weight: 800; letter-spacing: .08em; padding: .3rem .95rem; border-radius: 24px; font-size: .85rem; margin-bottom: .9rem; }
.bb-direct .etiquette i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: bb-pulse 1.2s infinite; }
.bb-direct .cadre-tv { position: relative; background: #000; border-radius: var(--bb-rayon); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.bb-direct .cadre-tv video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.bb-direct .cadre-tv .etat { position: absolute; left: .7rem; top: .7rem; background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; padding: .15rem .55rem; border-radius: 12px; }
.bb-direct .carte-radio { background: linear-gradient(160deg, #3a2410, #1a1a1a); border-radius: var(--bb-rayon); padding: 1.4rem; height: 100%; display: flex; flex-direction: column; justify-content: center; text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.bb-direct .carte-radio .nom { font-weight: 800; font-size: 1.15rem; color: var(--bb-or); }
.bb-direct .carte-radio .titre-en-cours { margin: .7rem 0 1rem; min-height: 2.7rem; color: #eceff5; font-size: .95rem; }
.bb-direct .gros-bouton { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; background: var(--bb-orange); color: #fff; border: 0; border-radius: 50px; font-size: 1.35rem; font-weight: 800; padding: .85rem 2.2rem; box-shadow: 0 6px 20px rgba(230, 126, 34, .45); cursor: pointer; }
.bb-direct .gros-bouton:hover { background: #cf6f1b; }
.bb-direct .gros-bouton.en-lecture { background: #e5251a; box-shadow: 0 6px 20px rgba(229, 37, 26, .45); }
.bb-direct .btn-grand { background: var(--bb-or); color: var(--bb-nuit); font-weight: 800; border: 0; }
.bb-direct .btn-grand:hover { background: #ffc95a; color: var(--bb-nuit); }

/* ---- mini-lecteur radio fixé en bas ---- */
#bbMini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: var(--bb-nuit); color: #fff; border-top: 3px solid var(--bb-orange); padding: .55rem .9rem; display: flex; align-items: center; gap: .85rem; box-shadow: 0 -6px 24px rgba(0, 0, 0, .3); }
body.page-direct #bbMini { display: none; }
#bbMini .mini-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--bb-orange); color: #fff; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
#bbMini .mini-play.en-lecture { background: #e5251a; }
#bbMini .mini-info { min-width: 0; flex: 1; line-height: 1.25; }
#bbMini .mini-direct { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: #ff6a5e; }
#bbMini .mini-direct i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: bb-pulse 1.2s infinite; }
#bbMini .mini-titre { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f3f5fa; }
#bbMini .mini-nom { color: var(--bb-or); font-weight: 700; margin-right: .35rem; }
#bbMini .mini-vol { flex: none; display: flex; align-items: center; gap: .45rem; color: #c9cedb; }
#bbMini .mini-vol input { width: 110px; accent-color: var(--bb-orange); }
@media (max-width: 575.98px) { #bbMini .mini-vol input { width: 70px; } #bbMini .mini-vol i.fa-volume-high { display: none; } }

/* ---- lecteur radio de la page Direct : lecture/pause, volume, EN DIRECT (pas de durée ni de barre de progression) ---- */
.bb-lecteur-direct { display: flex; align-items: center; gap: .8rem; background: rgba(255, 255, 255, .1); border-radius: 50px; padding: .45rem .8rem; }
.bb-lecteur-direct .play { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bb-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bb-lecteur-direct .play.en-lecture { background: #e5251a; }
.bb-lecteur-direct .etiquette-direct { font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: #ff6a5e; display: inline-flex; align-items: center; gap: .35rem; }
.bb-lecteur-direct .etiquette-direct i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: bb-pulse 1.2s infinite; }
.bb-lecteur-direct input[type=range] { flex: 1; min-width: 60px; accent-color: var(--bb-orange); }
.bb-lecteur-direct .vol-icone { color: #e9ecf3; }

/* ---- bulle de chat : repliée en petite bulle dans le coin, ne recouvre plus la vidéo ---- */
#widgetChatBBTEK.chat-replie { width: 58px !important; height: 58px; border-radius: 50% !important; right: 14px !important; left: auto !important; bottom: 86px !important; box-shadow: 0 6px 20px rgba(0, 0, 0, .35) !important; background: linear-gradient(135deg, #1e8f76, #14614f); }
#widgetChatBBTEK.chat-replie .entete-chat { padding: 0; width: 58px; height: 58px; justify-content: center !important; background: transparent; }
#widgetChatBBTEK.chat-replie .entete-chat .texte-chat, #widgetChatBBTEK.chat-replie .entete-chat .droite-chat { display: none !important; }
#widgetChatBBTEK.chat-replie .entete-chat .icone-chat-rond { margin: 0; background: transparent; width: 58px; height: 58px; font-size: 1.35rem; }
#widgetChatBBTEK:not(.chat-replie) { bottom: 86px !important; }
body.page-direct #widgetChatBBTEK { bottom: 15px !important; }
body.page-direct #widgetChatBBTEK.chat-replie { bottom: 15px !important; }
#widgetChatBBTEK .pastille-nouveau { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #ff3b30; border: 2px solid #fff; display: none; }
@media (max-width: 420px) { #widgetChatBBTEK:not(.chat-replie) { right: 8px !important; left: 8px !important; width: auto !important; } }
