/* =====================================================================
   JM RADIO — PROGRAMME (programme.html uniquement)
   Sélecteur de jours, carte « en ce moment », grille des émissions.
   ===================================================================== */
body.page-programme .container { max-width: 1300px; padding: 30px 36px 150px; }

.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pg-today-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.12); color: var(--gold); font-weight: 800; font-size: 0.85rem; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.pg-today-btn:hover { background: rgba(251, 191, 36, 0.22); transform: translateY(-1px); }

/* ---- En ce moment ---- */
.pg-now { position: relative; display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 22px; overflow: hidden; background: #0B1020; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); margin-bottom: 26px; min-height: 150px; }
.pg-now-bg { position: absolute !important; inset: 0; z-index: 0; overflow: hidden; }
.pg-now-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(26px) brightness(0.45) saturate(1.3); transform: scale(1.2); }
.pg-now-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 16, 0.95) 0%, rgba(5, 8, 16, 0.75) 55%, rgba(5, 8, 16, 0.4) 100%); }
.pg-now > .pg-now-poster, .pg-now > .pg-now-body { position: relative; z-index: 1; }
.pg-now-poster { width: 190px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: #0F172A; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); }
.pg-now-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-now-body { flex: 1; min-width: 0; }
.pg-now-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pg-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; background: var(--jmradio-red); color: #fff; box-shadow: 0 0 0 4px rgba(231, 37, 53, 0.18); }
.pg-live i { font-size: 0.45rem; animation: pgBlink 1.2s infinite; }
.pg-live.off { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: none; }
.pg-live.off i { animation: none; color: #94A3B8; }
@keyframes pgBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.pg-now-time { font-size: 0.8rem; font-weight: 700; color: #CBD5E1; font-variant-numeric: tabular-nums; }
.pg-now h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 900; color: #fff; margin: 0 0 4px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-now-host { color: var(--gold); font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pg-now-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-now-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 800; font-size: 0.88rem; cursor: pointer; font-family: inherit; color: #fff; text-decoration: none; transition: all 0.2s ease; line-height: 1; }
.pg-btn-play { background: linear-gradient(135deg, #FF3B4E, #E72535); box-shadow: 0 10px 22px rgba(231, 37, 53, 0.35); }
.pg-btn-play:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(231, 37, 53, 0.5); }
.pg-btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
.pg-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.pg-btn-gold { background: rgba(251, 191, 36, 0.14); border-color: rgba(251, 191, 36, 0.35); color: var(--gold); }
.pg-btn-gold:hover { background: rgba(251, 191, 36, 0.24); }
.pg-btn.small { padding: 9px 13px; font-size: 0.8rem; }

/* ---- Sélecteur de jours ---- */
.pg-days { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.pg-days-track { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; padding: 4px 2px; scroll-snap-type: x proximity; }
.pg-days-track::-webkit-scrollbar { display: none; }
.pg-day { flex: 0 0 auto; min-width: 86px; padding: 10px 12px 11px; border-radius: 16px; background: rgba(12, 16, 27, 0.78); border: 1px solid rgba(255, 255, 255, 0.07); color: #CBD5E1; cursor: pointer; text-align: center; transition: all 0.2s ease; font-family: inherit; scroll-snap-align: center; position: relative; }
.pg-day:hover { border-color: rgba(251, 191, 36, 0.35); color: #fff; transform: translateY(-2px); }
.pg-day b { display: block; font-size: 1.35rem; font-weight: 900; line-height: 1.1; color: #fff; }
.pg-day small { display: block; font-size: 0.64rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #94A3B8; margin-bottom: 2px; }
.pg-day em { display: block; font-style: normal; font-size: 0.68rem; color: #64748B; margin-top: 2px; }
.pg-day .pg-day-count { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--jmradio-red); color: #fff; font-size: 0.62rem; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #0B0F19; }
.pg-day.today small { color: var(--gold); }
.pg-day.active { background: linear-gradient(145deg, rgba(251, 191, 36, 0.22), rgba(251, 191, 36, 0.08)); border-color: rgba(251, 191, 36, 0.55); box-shadow: 0 10px 24px rgba(251, 191, 36, 0.15); }
.pg-day.active b, .pg-day.active small, .pg-day.active em { color: #fff; }
.pg-day.active small { color: var(--gold); }
.pg-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #E2E8F0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; transition: all 0.2s; }
.pg-arrow:hover { background: rgba(251, 191, 36, 0.18); border-color: rgba(251, 191, 36, 0.45); color: var(--gold); }

.pg-daybar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.pg-daybar h3 { font-size: 1.15rem; font-weight: 900; color: #fff; margin: 0; text-transform: capitalize; }
.pg-daybar span { color: var(--text-secondary); font-size: 0.85rem; }

/* ---- Grille des émissions ---- */
.pg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pg-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(12, 16, 27, 0.78); border: 1px solid rgba(255, 255, 255, 0.07); transition: all 0.25s ease; min-width: 0; position: relative; }
.pg-card:hover { border-color: rgba(251, 191, 36, 0.4); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.pg-card.is-live { border-color: rgba(231, 37, 53, 0.55); box-shadow: 0 0 0 3px rgba(231, 37, 53, 0.12), 0 18px 40px rgba(0, 0, 0, 0.45); }
.pg-card.is-past { opacity: 0.62; }
.pg-card.is-past:hover { opacity: 1; }
.pg-media { position: relative; aspect-ratio: 16 / 8; background: linear-gradient(135deg, #1E293B, #0B1220); overflow: hidden; }
.pg-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.pg-card:hover .pg-media img { transform: scale(1.04); }
.pg-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 7, 18, 0.1) 0%, rgba(3, 7, 18, 0) 50%, rgba(3, 7, 18, 0.7) 100%); pointer-events: none; }
.pg-media .pg-time { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; background: rgba(8, 12, 22, 0.75); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.14); }
.pg-media .pg-time i { color: var(--gold); font-size: 0.72rem; }
.pg-media .pg-live, .pg-media .pg-state { position: absolute; right: 12px; top: 12px; z-index: 2; }
.pg-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: #CBD5E1; background: rgba(8, 12, 22, 0.75); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); }
.pg-state.soon { color: #6EE7B7; border-color: rgba(16, 185, 129, 0.4); }
.pg-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pg-title { font-size: 1.15rem; font-weight: 900; color: #fff; margin: 0; line-height: 1.2; }
.pg-host { display: flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.pg-host-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.15); background: #0F172A; flex-shrink: 0; }
.pg-host-initial { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 900; color: #0B0F19; background: linear-gradient(135deg, #FDE68A, #F59E0B); flex-shrink: 0; }
.pg-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pg-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }

.pg-empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; border-radius: 22px; background: rgba(12, 16, 27, 0.78); border: 1px dashed rgba(255, 255, 255, 0.12); color: var(--text-secondary); }
.pg-empty i { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 12px; }
.pg-empty b { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 6px; }

/* ---- Modale bio (DJ Mat) ---- */
.pg-bio.modal { align-items: center; }
.pg-bio .modal-content { max-width: 480px; text-align: center; padding: 34px 28px 28px; border-radius: 24px; background: linear-gradient(170deg, #111827, #0B1020); border: 1px solid rgba(251, 191, 36, 0.3); }
.pg-bio img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: 0 0 28px rgba(251, 191, 36, 0.3); margin-bottom: 14px; }
.pg-bio h2 { font-size: 1.4rem; margin: 0 0 4px; display: block; }
.pg-bio .pg-bio-role { color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.pg-bio p { color: #CBD5E1; font-size: 0.95rem; line-height: 1.6; margin: 0 0 12px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) { .pg-grid { gap: 14px; } }
@media (max-width: 992px) {
    body.page-programme .container { padding: 10px 14px 40px !important; }
    .pg-head { margin-bottom: 14px; }
    .pg-now { flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
    .pg-now-poster { width: 100%; }
    .pg-now h2 { white-space: normal; }
    .pg-arrow { display: none; }
    .pg-day { min-width: 74px; padding: 9px 10px; }
    .pg-day b { font-size: 1.2rem; }
    .pg-grid { grid-template-columns: 1fr; gap: 14px; }
    .pg-body { padding: 14px; }
}
