/* =========================================================
   XBeat Radio — feuille de style principale
   ========================================================= */

/* Polices auto-hébergées (Barlow / Barlow Condensed, licence SIL OFL) —
   plus aucune requête vers Google Fonts : l'adresse IP des visiteurs n'est
   jamais transmise à un tiers pour l'affichage du site. */
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/barlow-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/barlow-condensed-latin-800-normal.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #08080a;
    --bg-alt: #131316;
    --bg-card: #1a1a1e;
    --border: #2a2a2f;
    --red: #e2141a;
    --red-bright: #ff2a2a;
    --red-dark: #7a0209;
    --text: #f5f5f7;
    --text-muted: #a3a3ab;
    --radius: 14px;
    --font: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Barlow', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.5em;
    font-weight: 700;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
}
.brand-name small {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    font-weight: 400;
}
.brand-since {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}
.brand-since::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red-bright);
    flex-shrink: 0;
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav.main-nav a {
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color .15s;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--text); }

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background .15s, transform .1s;
}
.btn-play:hover { background: var(--red-bright); }
.btn-play:active { transform: scale(0.97); }
/* Repère "toujours en écoute" sur le bouton du menu quand la popup est fermée
   mais que la radio continue de jouer en fond. */
.btn-play.is-live::after {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: #fff;
    animation: pulse 1.4s infinite;
}

.btn-play-big {
    padding: 18px 36px;
    font-size: 1rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(226,20,26,0.35);
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
}
.lang-switch a {
    padding: 5px 10px;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.lang-switch a.active { background: var(--red); color: #fff; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    cursor: pointer;
}

@media (max-width: 860px) {
    nav.main-nav { display: none; }
    .nav-toggle { display: block; }
    .site-header.nav-open nav.main-nav {
        display: flex;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--bg-alt);
        flex-direction: column;
        padding: 18px 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
}

/* ---------- Hero (accueil) ---------- */

.hero {
    position: relative;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(226,20,26,0.25), transparent 60%),
        linear-gradient(180deg, #0c0c0f 0%, #08080a 100%);
    padding: 64px 0 48px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.onair-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.onair-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    animation: pulse 1.4s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 12px;
}
.hero-time {
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.hero-track {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.hero-track strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
    aspect-ratio: 1;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(226,20,26,0.35);
}

.listeners-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- Section titles ---------- */

.section {
    padding: 56px 0;
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 26px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-head h2 {
    font-size: 1.7rem;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}
.section-head h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 46px; height: 3px;
    background: var(--red);
    border-radius: 3px;
}
.section-head .see-all {
    color: var(--red);
    font-family: var(--font);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* ---------- Cartes émissions ---------- */

.show-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.show-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s, border-color .15s;
    display: flex;
    flex-direction: column;
}
.show-card:hover { transform: translateY(-4px); border-color: var(--red-dark); }

.show-card .thumb {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: #202024;
    position: relative;
}
.show-card .thumb .time-badge {
    position: absolute;
    left: 10px; bottom: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
}
.show-card .body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.show-card h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    text-transform: none;
    letter-spacing: 0;
}
.show-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.4;
}

/* ---------- Grille hebdomadaire ---------- */

.day-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.day-tabs button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 16px;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.day-tabs button.active {
    color: #fff;
    border-bottom-color: var(--red);
}

.day-panel { display: none; }
.day-panel.active { display: block; }

.slot-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.slot-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    transition: background .15s;
}
.slot-row:last-child { border-bottom: none; }
.slot-row:hover { background: #202024; }
.slot-time {
    font-family: var(--font);
    font-weight: 700;
    color: var(--red-bright);
    width: 64px;
    flex-shrink: 0;
    font-size: 1rem;
}
.slot-thumb {
    width: 52px; height: 52px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #202024;
    flex-shrink: 0;
}
.slot-title { font-weight: 600; font-size: 0.98rem; }
.slot-desc { color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; }

/* ---------- Équipe ---------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}
.team-card {
    display: block;
    text-align: center;
    color: inherit;
    text-decoration: none;
    padding: 10px;
    border-radius: var(--radius);
    transition: background .15s, transform .1s;
}
a.team-card:hover { background: var(--bg-card); transform: translateY(-2px); }
.team-card .photo {
    width: 140px; height: 140px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
    border: 3px solid var(--border);
}
.team-card h3 { font-size: 1.05rem; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.team-card-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.team-card-tags .tag { margin: 0 4px 4px 0; }

/* ---------- Formulaires ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Page Contact : formulaire + bannière partenaire ---------- */
.contact-layout { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; flex-wrap: wrap; margin-top: 30px; }
.contact-main { flex: 1 1 420px; max-width: 640px; }
.contact-side { flex: 1 1 280px; max-width: 400px; }
.contact-banner-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.contact-banner {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #141416;
}
.contact-banner img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: opacity .15s, transform .2s; }
.contact-banner:hover img { opacity: 0.92; transform: scale(1.02); }

label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=time], input[type=url], textarea, select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); }

.field { margin-bottom: 18px; }
.checkbox-field { display: flex; align-items: center; gap: 10px; }
.checkbox-field label { margin: 0; }

button, .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.9rem;
}
button:hover, .btn:hover { background: var(--red-bright); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-card); }
.btn-small { padding: 7px 14px; font-size: 0.8rem; }
.btn-danger { background: #7a0209; }
.btn-danger:hover { background: #a3070f; }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.alert-success { background: rgba(30,150,80,0.15); border: 1px solid #1e9650; color: #6fe3a0; }
.alert-error { background: rgba(226,20,26,0.15); border: 1px solid var(--red); color: #ff8b8f; }
.alert-info { background: rgba(255,184,28,0.10); border: 1px solid #b8860b; color: #ffcf6b; }

/* ---------- Proposer un set (submit-set.php) ---------- */
.quota-bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.quota-bar-fill { height: 100%; background: var(--red-bright); border-radius: 999px; transition: width .2s ease; }

.dj-set-dropzone {
    border: 2px dashed var(--border); border-radius: 12px; padding: 28px;
    text-align: center; margin-bottom: 4px; transition: border-color .15s ease, background .15s ease;
}
.dj-set-dropzone.drag { border-color: var(--red); background: rgba(226,20,26,0.05); }
.dj-set-dropzone-text { margin-bottom: 10px; color: var(--text-muted); font-size: 0.9rem; }

.dj-set-progress-wrap { margin-top: 16px; }
.dj-set-progress-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }

.dj-set-warn {
    margin-top: 16px; display: flex; flex-direction: column; gap: 10px;
    background: rgba(226,20,26,0.08); border: 1px solid var(--red-dark); border-radius: 10px; padding: 16px;
}
.dj-set-warn-title { font-weight: 700; }
.dj-set-warn-text { color: var(--text-muted); font-size: 0.88rem; }
.dj-set-warn-actions { display: flex; gap: 10px; }

.kbps-badge {
    font-family: var(--font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.kbps-badge.ok { background: rgba(74,222,128,0.12); color: #4ade80; }
.kbps-badge.low { background: rgba(255,42,42,0.12); color: #ff8a8a; }

.submit-set-file-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.submit-set-file-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
}
.submit-set-file-item.low { border-color: var(--red-dark); }
.submit-set-file-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }

.info-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}

/* ---------- Contenu générique (pages statiques) ---------- */

.prose { max-width: none; line-height: 1.7; color: #d6d6da; }
.prose h2 { margin-top: 1.4em; font-size: 1.3rem; }
.prose a { color: var(--red-bright); text-decoration: underline; }

.app-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
.app-link-card {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 18px;
    font-family: var(--font); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.app-link-card:hover { border-color: var(--red); }
.app-link-label {
    display: flex;
    align-items: center;
    gap: 12px;
}
.app-link-card img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ---------- Annonces d'accueil ---------- */

.announce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.announce-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s, border-color .15s;
    color: inherit;
    text-decoration: none;
}
a.announce-card:hover { transform: translateY(-4px); border-color: var(--red-dark); }
.announce-art {
    aspect-ratio: 1200/630;
    background-size: cover;
    background-position: center;
    background-color: #202024;
}
/* Bannière pleine largeur en haut de la page détail d'une actualité — même
   ratio que l'image stockée (1200x630), donc jamais rognée sur les côtés
   comme le serait un cadre carré (contrairement à .show-hero .art). */
.news-banner {
    aspect-ratio: 1200/630;
    width: 100%;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    background-color: #202024;
    border: 1px solid var(--border);
    margin-bottom: 28px;
}
.announce-body { padding: 14px 16px 18px; }
.announce-body h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    text-transform: none;
    letter-spacing: 0;
}
.announce-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 44px 0 28px;
    color: var(--text-muted);
    background: var(--bg-alt);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
    color: var(--text);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--text); }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}
.social-row a:hover { border-color: var(--red); color: var(--red-bright); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
}
.footer-credit a { text-decoration: underline; text-decoration-color: transparent; transition: color .15s, text-decoration-color .15s; }
.footer-credit a:hover { color: var(--red-bright); text-decoration-color: currentColor; }

/* ---------- Lecteur en popup ---------- */

.player-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8,8,10,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
/* L'attribut HTML "hidden" doit garder le dessus sur le display:flex ci-dessus,
   sinon la popup reste visible en permanence dès le chargement de la page. */
.player-overlay[hidden] {
    display: none;
}
body.player-open { overflow: hidden; }
.player-modal {
    position: relative;
    width: 100%;
    max-width: 360px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    text-align: center;
}
.player-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 28px; height: 28px; border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.75rem; line-height: 1;
    padding: 0;
}
.player-modal-close:hover { color: #fff; border-color: var(--red); background: transparent; }
.player-modal-brand {
    justify-content: center;
    margin-bottom: 12px;
}
.player-modal-brand img { height: 32px; width: 32px; }
.player-modal-brand .brand-name { font-size: 1rem; }
.player-modal-art {
    width: 100%;
    aspect-ratio: 1200 / 540;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
}
.player-modal-title { font-family: var(--font); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1rem; margin-bottom: 6px; }
.player-modal-track { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 12px; min-height: 1.3em; }
.quality-switch {
    display: inline-flex;
    gap: 4px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    margin-bottom: 14px;
}
.quality-switch button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}
.quality-switch button.active { background: var(--red); color: #fff; }
.player-modal-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.player-modal-controls .play-toggle {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    color: #fff; border: none; cursor: pointer; font-size: 1.2rem;
    flex-shrink: 0;
}
.player-modal-controls .play-toggle:hover { background: var(--red-bright); }
.player-modal-controls .volume {
    flex: 1;
    max-width: 160px;
    accent-color: var(--red);
    cursor: pointer;
}
.mini-player-frame {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    max-height: 60vh;
    border-radius: 12px;
    overflow: hidden;
}
.mini-player-frame iframe { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 420px) {
    .player-modal { padding: 22px 16px 18px; }
}

/* ---------- Barre lecteur persistante (voir includes/footer.php) ----------
   Toujours visible sur les pages publiques (contrairement à .player-overlay
   ci-dessus, qui reste utilisée telle quelle par la fenêtre séparée
   player-window.php). Un bouton permet d'y renvoyer la lecture pour qu'elle
   survive à un changement de page (voir assets/js/main.js). */
body.has-player-bar { padding-bottom: 78px; }
.player-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: rgba(15,15,17,0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 10px 0;
}
.player-bar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.player-bar-play {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--red);
    color: #fff;
    font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.player-bar-play:hover { background: var(--red-bright); }
.player-bar-play[hidden] { display: none; }
.player-bar-art {
    flex: none;
    width: 40px; height: 40px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
}
.player-bar-info { display: flex; flex-direction: column; gap: 2px; min-width: 130px; }
.player-bar-title {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.player-bar-sub { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); }
.player-bar .live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--red-bright);
    box-shadow: 0 0 0 0 rgba(255,42,42,.6);
    animation: player-bar-pulse 1.6s infinite;
}
.player-bar .live-dot.paused { background: var(--text-muted); animation: none; box-shadow: none; }
@keyframes player-bar-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,42,42,.55); }
    70% { box-shadow: 0 0 0 7px rgba(255,42,42,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,42,42,0); }
}
.player-bar-viz { flex: 1 1 100px; height: 30px; min-width: 70px; max-width: 220px; }
.player-bar .vol-wrap { display: flex; align-items: center; gap: 6px; color: var(--text-muted); flex: none; }
.player-bar .vol-wrap input[type=range] { width: 80px; accent-color: var(--red); cursor: pointer; }
.player-bar-popout {
    flex: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body);
}
.player-bar-popout:hover { color: var(--text); border-color: var(--red-dark); }
.player-bar-handoff {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.player-bar-handoff[hidden] { display: none; }
.player-bar-handoff button {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
}
.player-bar-handoff button:hover { background: var(--red-bright); }
.player-bar .mini-player-frame { flex: 1 1 200px; max-width: 280px; max-height: 60px; aspect-ratio: auto; }
@media (max-width: 640px) {
    body.has-player-bar { padding-bottom: 70px; }
    .player-bar-art { display: none; }
    .player-bar-viz { display: none; }
    .player-bar .vol-wrap { display: none; }
    .player-bar-inner { gap: 10px; }
}

/* ---------- Page émission ---------- */

.show-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: start;
}
@media (max-width: 760px) { .show-hero { grid-template-columns: 1fr; } }
.show-hero .art {
    aspect-ratio: 1;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
}
.show-hero .art.round { border-radius: 50%; }
.tag {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 6px 6px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* Lecteur de podcast : un seul <audio>, les pistes s'enchaînent automatiquement
   dans l'ordre défini dans l'admin (voir podcast.php). */
.podcast-player {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 4px;
}
.podcast-player-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.podcast-play-btn {
    flex: none;
    width: 42px; height: 42px;
    padding: 0;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.podcast-play-btn:hover { background: var(--red-bright); }
.podcast-play-btn .icon-play {
    width: 0; height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}
.podcast-play-btn .icon-pause {
    display: flex;
    align-items: stretch;
    height: 14px;
}
.podcast-play-btn .icon-pause::before,
.podcast-play-btn .icon-pause::after {
    content: '';
    display: block;
    height: 14px;
    border-left: 4px solid #fff;
    margin-right: 4px;
}
.podcast-play-btn [hidden] { display: none; }
.podcast-player-meta { min-width: 0; flex: 1; }
.podcast-player-now {
    font-family: var(--font);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--red-bright);
    margin: 0 0 2px;
}
.podcast-player-track {
    font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.podcast-player-seek {
    display: flex;
    align-items: center;
    gap: 10px;
}
.podcast-player-time {
    font-family: var(--font);
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex: none;
    width: 34px;
}
.podcast-player-time-total { text-align: right; }
/* Barre de progression du podcast : zone cliquable plus haute que le trait
   visible (16px) pour rester facile à viser au doigt sur mobile. */
.podcast-seek-hit {
    flex: 1;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}
.podcast-seek-track {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    position: relative;
}
.podcast-seek-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--red-bright);
    border-radius: 999px;
}
.podcast-seek-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--red-bright);
    border: 2px solid var(--bg-card);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px rgba(226, 20, 26, 0.35);
}
.podcast-skip-btn {
    flex: none;
    width: 32px; height: 32px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.podcast-skip-btn:hover { background: transparent; border-color: var(--red); color: var(--red-bright); }
.podcast-skip-btn .icon-next { display: flex; align-items: center; }
.podcast-skip-btn .icon-next span {
    width: 0; height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent currentColor;
}
.podcast-skip-btn .icon-next span:last-of-type { margin-left: -2px; }
.podcast-skip-btn .icon-next i {
    display: block;
    width: 2px; height: 11px;
    background: currentColor;
    margin-left: 1px;
    font-style: normal;
}
.podcast-skip-btn .icon-prev { display: flex; align-items: center; }
.podcast-skip-btn .icon-prev span {
    width: 0; height: 0;
    border-style: solid;
    border-width: 5px 8px 5px 0;
    border-color: transparent currentColor transparent transparent;
}
.podcast-skip-btn .icon-prev span:first-of-type { margin-right: -2px; }
.podcast-skip-btn .icon-prev i {
    display: block;
    width: 2px; height: 11px;
    background: currentColor;
    margin-right: 1px;
    font-style: normal;
}

.podcast-vol-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding-left: 10px;
    margin-left: 2px;
    border-left: 1px solid var(--border);
}
.podcast-vol-btn {
    flex: none;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}
.podcast-vol-btn:hover { background: none; color: var(--text); }
.podcast-vol-btn [hidden] { display: none; }
.podcast-vol {
    width: 72px;
    accent-color: var(--red);
    cursor: pointer;
}
@media (max-width: 640px) {
    .podcast-vol-wrap { display: none; }
}

.podcast-playlist { display: flex; flex-direction: column; gap: 2px; }
.podcast-playlist-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: inherit;
}
.podcast-playlist-item:hover { background: var(--bg-card); }
.podcast-playlist-item.active {
    background: rgba(226, 20, 26, 0.1);
    border-color: rgba(226, 20, 26, 0.3);
}
.podcast-playlist-idx {
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 18px; flex: none;
    text-align: center;
}
.podcast-playlist-item.active .podcast-playlist-idx { color: var(--red-bright); }
.podcast-playlist-eq {
    width: 18px; height: 14px; flex: none;
    display: flex; align-items: flex-end; gap: 2px;
}
.podcast-playlist-eq span {
    width: 3px;
    background: var(--red-bright);
    border-radius: 1px;
    animation: podcast-eq 0.9s ease-in-out infinite;
}
.podcast-playlist-eq span:nth-child(1) { height: 40%; animation-delay: -0.6s; }
.podcast-playlist-eq span:nth-child(2) { height: 90%; animation-delay: -0.2s; }
.podcast-playlist-eq span:nth-child(3) { height: 60%; animation-delay: -0.9s; }
@keyframes podcast-eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.podcast-playlist-label {
    font-size: 0.92rem;
    flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.podcast-playlist-item.active .podcast-playlist-label { color: var(--text); font-weight: 600; }
.podcast-playlist-item:not(.active) .podcast-playlist-label { color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) {
    .podcast-playlist-eq span { animation: none; }
}

/* Barre de chargement fine en haut de page pendant une navigation "sans
   rechargement" (voir assets/js/pjax.js) — discrète, juste de quoi confirmer
   que le clic a bien été pris en compte pendant le chargement de la page suivante. */
#pjaxBar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: var(--red-bright); z-index: 9999; opacity: 0;
    transition: width .25s ease, opacity .2s ease;
}
#pjaxBar.is-active { width: 78%; opacity: 1; transition: width 2.5s cubic-bezier(0.1,0.6,0.2,1), opacity .2s ease; }
#pjaxBar.is-done { width: 100%; opacity: 0; transition: width .2s ease, opacity .3s ease .1s; }
@media (prefers-reduced-motion: reduce) {
    #pjaxBar { transition: opacity .2s ease; }
    #pjaxBar.is-active, #pjaxBar.is-done { width: 100%; }
}

/* Barre du lecteur : un titre en cours trop long est coupé avec « … »
   au lieu de faire passer « Fenêtre séparée » à la ligne. */
.player-bar-info { flex: 1 1 160px; min-width: 0; }
.player-bar-sub { min-width: 0; }
.player-bar-title,
.player-bar-sub #miniPlayerTrack { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-bar .live-dot { flex: none; }
@media (min-width: 900px) {
    .player-bar-inner { flex-wrap: nowrap; }
}

html { overflow-y: scroll; } /* menu fixe : barre de defilement toujours reservee */

/* footer en bas de l ecran, meme sur les pages courtes */
body:has(> .site-footer) { display: flex; flex-direction: column; min-height: 100vh; }
body:has(> .site-footer) > .site-footer { margin-top: auto; }
