/* ==========================================================================
   GSA MODERN 2.0  |  Global Streaming Africa
   Design editorial radio : fort, chaleureux, humain.
   Charge apres style.css, surclasse l'ancien design sans le casser.
   ========================================================================== */

:root {
    --gsa-main:   #2D33AF;
    --gsa-accent: #E00000;
    --gsa-ink:    #14151d;
    --gsa-text:   #2a2c36;
    --gsa-muted:  #70747f;
    --gsa-paper:  #f7f6f2;
    --gsa-card:   #ffffff;
    --gsa-line:   #dcdcd4;
}

/* ---------- Base ---------- */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
    background: var(--gsa-paper) !important;
    color: var(--gsa-text);
    -webkit-font-smoothing: antialiased;
}

.my-container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    float: none !important;
}

/* ==========================================================================
   BARRE PLAYER  (controles genereux, lisibles, presence forte)
   ========================================================================== */
.gsa-player-wrapper {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #ffffff;
    border-bottom: 1px solid #e7e7e0;
    box-shadow: 0 2px 14px rgba(20, 21, 29, .06);
}

.gsa-player {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    min-height: 82px;
}

.gsa-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 60px;
    border: 2px solid var(--gsa-ink);
    box-shadow: 4px 4px 0 var(--gsa-ink);
    background: var(--gsa-ink);
}
.gsa-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gsa-play {
    width: 56px; height: 56px;
    flex: 0 0 56px;
    border: 2px solid var(--gsa-ink);
    border-radius: 50%;
    background: var(--gsa-accent);
    cursor: pointer;
    position: relative;
    box-shadow: 4px 4px 0 var(--gsa-ink);
    transition: transform .12s ease, box-shadow .12s ease;
}
.gsa-play:hover  { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--gsa-ink); }
.gsa-play:active { transform: translate(2px, 2px);  box-shadow: 1px 1px 0 var(--gsa-ink); }
.gsa-play::before {
    content: '';
    position: absolute;
    top: 50%; left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}
.is-playing .gsa-play::before {
    left: 50%;
    border-style: double;
    border-width: 0 0 0 17px;
    height: 21px;
    border-color: #fff;
}
.is-loading .gsa-play::before {
    border: 3px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    width: 22px; height: 22px;
    left: 50%;
    animation: gsa-spin .7s linear infinite;
}
@keyframes gsa-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.gsa-meta { min-width: 0; flex: 1 1 auto; }

.gsa-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #fff;
    background: var(--gsa-accent);
    padding: 2px 9px 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
}
.gsa-live-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: gsa-blink 1.2s infinite;
}
@keyframes gsa-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.gsa-title {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.01em;
    color: var(--gsa-ink);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gsa-artist {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gsa-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gsa-pop { animation: gsa-slidein .45s ease; }
@keyframes gsa-slidein {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Volume : grand, visible, manipulable */
.gsa-vol-zone { display: flex; align-items: center; gap: 10px; }
.gsa-mute {
    border: none; background: none; cursor: pointer;
    width: 34px; height: 34px;
    color: var(--gsa-ink);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gsa-mute svg { width: 26px; height: 26px; fill: currentColor; }
.gsa-mute .gsa-wave-2 { transition: opacity .15s ease; }
.gsa-mute[data-level="low"] .gsa-wave-2 { opacity: 0; }
.gsa-mute[data-level="off"] .gsa-wave-1,
.gsa-mute[data-level="off"] .gsa-wave-2 { opacity: 0; }
.gsa-mute[data-level="off"] { color: var(--gsa-accent); }

.gsa-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 7px;
    border-radius: 7px;
    background: #d8d8cf;
    border: 1px solid var(--gsa-ink);
    outline: none;
    cursor: pointer;
}
.gsa-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--gsa-accent);
    border: 2px solid var(--gsa-ink);
}
.gsa-volume::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--gsa-accent);
    border: 2px solid var(--gsa-ink);
}

.gsa-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gsa-ink);
    text-decoration: none !important;
    white-space: nowrap;
    padding: 9px 17px;
    background: #fff;
    border: 2px solid var(--gsa-ink);
    border-radius: 6px;
    box-shadow: 3px 3px 0 var(--gsa-ink);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.gsa-popup-link:hover {
    background: var(--gsa-main);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--gsa-ink);
}

@media (max-width: 860px) {
    .gsa-popup-link { display: none; }
}
@media (max-width: 620px) {
    .gsa-vol-zone { display: none; }
    .gsa-player { gap: 12px; }
    .gsa-cover { width: 52px; height: 52px; flex-basis: 52px; }
    .gsa-play  { width: 50px; height: 50px; flex-basis: 50px; }
}

/* ==========================================================================
   CORPS DU SITE  (editorial, sobre, professionnel)
   ========================================================================== */

/* Police Inter sur tout le site, icones preservees */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, td, th,
input, textarea, button, select, label {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
}
.fa, .fa::before, .fa::after,
[class^="glyphicon"], [class^="glyphicon"]::before {
    font-family: 'FontAwesome' !important;
}
[class^="glyphicon"], [class^="glyphicon"]::before {
    font-family: 'Glyphicons Halflings' !important;
}

/* Titres de section : sobres, casse normale, ligne raffinee */
.block-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -.015em;
    text-transform: none !important;
    color: var(--gsa-ink) !important;
    padding-bottom: 14px !important;
    margin: 46px 0 26px 0 !important;
    position: relative;
    border-bottom: 1px solid #e4e4dc !important;
}
.block-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 56px; height: 3px;
    border-radius: 3px;
    background: var(--gsa-accent);
}

/* -----------------------------------------------------------------
   Cartes d'actualites : un seul style vertical, uniforme et genereux
   (neutralise l'ancienne mise en page horizontale a image absolue)
   ----------------------------------------------------------------- */
.home-news-container {
    background: var(--gsa-card);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px !important;
    box-shadow: 0 1px 3px rgba(20, 21, 29, .07), 0 10px 26px -18px rgba(20, 21, 29, .25);
    transition: transform .18s ease, box-shadow .18s ease;
}
.home-news-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 5px rgba(20, 21, 29, .08), 0 22px 38px -18px rgba(20, 21, 29, .32);
}

/* Les deux variantes d'image deviennent identiques : pleine largeur en tete */
.home-news-thumb, .home-news-thumb2 {
    position: static !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    display: block;
    overflow: hidden;
}
.home-news-thumb img, .home-news-thumb2 img {
    width: 100% !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.home-news-container:hover img { transform: scale(1.04); }

/* Les deux variantes de texte deviennent identiques */
.home-news-info-container, .home-news-info-container2 {
    position: static !important;
    display: block !important;
    height: auto !important;
    padding: 16px 20px 20px !important;
    line-height: 1.5 !important;
}

.home-news-date {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .04em;
    color: var(--gsa-accent) !important;
    margin: 0 0 8px 0 !important;
}

.home-news-title, .home-news-title2 {
    text-transform: none !important;
    -webkit-line-clamp: 3;
}
.home-news-title a, .home-news-title2 a,
.home-news-container a, .home-news-container a:hover {
    font-size: 16.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: var(--gsa-ink) !important;
    text-decoration: none !important;
    transition: color .15s ease;
}
.home-news-container:hover .home-news-title a,
.home-news-container:hover .home-news-title2 a { color: var(--gsa-main) !important; }

/* Videos et artistes : meme langage sobre */
.video-wrapper {
    background: var(--gsa-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20, 21, 29, .07), 0 10px 26px -18px rgba(20, 21, 29, .25);
    transition: transform .18s ease, box-shadow .18s ease;
}
.video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 5px rgba(20, 21, 29, .08), 0 22px 38px -18px rgba(20, 21, 29, .32);
}
.video-wrapper img { transition: transform .35s ease; }
.video-wrapper:hover img { transform: scale(1.04); }
.video-title a, .video-title-crop {
    font-weight: 600 !important;
    text-transform: none !important;
    color: var(--gsa-ink) !important;
}

/* Navigation */
.navbar-nav .nav-link, .navbar-nav a {
    font-weight: 600 !important;
    font-size: 15px !important;
}

/* Boutons */
.btn-primary, button.btn-primary {
    background: var(--gsa-main) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn-primary:hover {
    background: #232880 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px rgba(45, 51, 175, .5);
}

::selection { background: var(--gsa-main); color: #fff; }

/* ==========================================================================
   PAGE POP UP  (plein ecran, naturel, professionnel)
   ========================================================================== */
body.gsa-popup-body {
    background: radial-gradient(120% 90% at 50% 0%, #2b2f7a 0%, #1a1c46 55%, #101128 100%) !important;
    min-height: 100vh;
    margin: 0;
}
.gsa-popup-stage {
    max-width: 640px;
    margin: 0 auto;
    padding: 38px 26px 46px;
    text-align: center;
    color: #fff;
}
.gsa-popup-stage .gsa-live-badge { font-size: 12px; }

.gsa-popup-cover {
    width: 260px; height: 260px;
    margin: 28px auto 26px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px -22px rgba(0, 0, 0, .85), 0 0 90px -30px rgba(90, 100, 255, .55);
}
.gsa-popup-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gsa-popup-stage .gsa-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    white-space: normal;
    line-height: 1.3;
    margin-top: 0;
}
.gsa-popup-stage .gsa-artist {
    font-size: 16px;
    color: rgba(255,255,255,.72);
    white-space: normal;
    margin-top: 5px;
}
.gsa-popup-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 30px;
}
.gsa-popup-stage .gsa-play {
    width: 88px; height: 88px;
    flex-basis: 88px;
    border: none;
    background: linear-gradient(150deg, #ff2f2f, #cf0000);
    box-shadow: 0 18px 44px -10px rgba(224, 0, 0, .55);
    transition: transform .15s ease, box-shadow .15s ease;
}
.gsa-popup-stage .gsa-play:hover  { transform: scale(1.06); box-shadow: 0 22px 52px -10px rgba(224, 0, 0, .7); }
.gsa-popup-stage .gsa-play:active { transform: scale(.97); }
.gsa-popup-stage .gsa-play::before { border-width: 16px 0 16px 26px; }
body.gsa-popup-body .is-playing .gsa-play::before { border-width: 0 0 0 24px; height: 30px; }

.gsa-popup-stage .gsa-mute { color: rgba(255,255,255,.9); }
.gsa-popup-stage .gsa-mute svg { width: 28px; height: 28px; }
.gsa-popup-stage .gsa-volume {
    width: 170px;
    height: 6px;
    border: none;
    background: rgba(255,255,255,.22);
}
.gsa-popup-stage .gsa-volume::-webkit-slider-thumb {
    width: 20px; height: 20px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.gsa-popup-stage .gsa-volume::-moz-range-thumb {
    width: 20px; height: 20px;
    border: none;
    background: #fff;
}

.gsa-history {
    margin-top: 44px;
    text-align: left;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px 28px;
    min-height: 180px;
}
.gsa-history-heading {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    margin-bottom: 16px;
}

.gsa-history-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
}
.gsa-history-item + .gsa-history-item { border-top: 1px solid rgba(255,255,255,.08); }
.gsa-history-num  { font-weight: 800; color: rgba(255,255,255,.3); font-size: 13px; min-width: 16px; }
.gsa-history-song { font-weight: 600; font-size: 15px; color: rgba(255,255,255,.95); line-height: 1.4; }
.gsa-history-empty { color: rgba(255,255,255,.45); font-size: 14px; padding: 8px 0; }

.gsa-popup-brand {
    margin-top: 32px;
    font-size: 12px;
    color: rgba(255,255,255,.4);
}
.gsa-popup-brand a { color: rgba(255,255,255,.68); text-decoration: none; font-weight: 700; }

@media (max-width: 520px) {
    .gsa-popup-cover { width: 210px; height: 210px; }
    .gsa-popup-stage .gsa-play { width: 76px; height: 76px; flex-basis: 76px; }
    .gsa-history { padding: 20px 18px; }
}

/* Historique enrichi : pochettes et horodatage */
.gsa-history-art {
    width: 46px; height: 46px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 46px;
    align-self: center;
}
.gsa-history-item { align-items: center; }
.gsa-history-txt  { min-width: 0; }
.gsa-history-when {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    margin-top: 2px;
}
