/* Site public Radio IA */
:root {
    --bg: #0a0a0f;
    --bg-card: rgba(24, 22, 30, 0.9);
    --bg-elev: rgba(255, 255, 255, 0.04);
    --text: #f0f0f5;
    --text-2: #a0aec0;
    --accent: #f43f5e;
    --accent-2: #fb7185;
    --accent-dim: rgba(244, 63, 94, 0.14);
    --border: rgba(255, 255, 255, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #12121a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border: 2px solid #12121a; }
::-webkit-scrollbar-button { display: none !important; }

a { color: var(--accent-2); }

.top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 28px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(8px); z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.3px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hls-link { font-size: 13px; color: var(--text-2); text-decoration: none; border: 1px solid var(--border); padding: 6px 12px; border-radius: 20px; }
.hls-link:hover { color: var(--text); border-color: var(--accent); }

main { max-width: 980px; margin: 0 auto; padding: 28px 20px 60px; }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5);} 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }

/* Lecteur */
.player-card {
    display: flex; gap: 24px; align-items: center;
    background: linear-gradient(135deg, var(--accent-dim), rgba(255,255,255,0.02));
    border: 1px solid var(--border); border-radius: 20px; padding: 26px; margin-bottom: 34px;
}
.pc-cover {
    width: 190px; height: 190px; flex-shrink: 0; border-radius: 16px; overflow: hidden;
    background: var(--bg-elev); display: flex; align-items: center; justify-content: center; color: var(--accent);
    box-shadow: 0 14px 34px rgba(0,0,0,0.4);
}
.pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.pc-cover svg { width: 72px; height: 72px; }
.pc-body { flex: 1; min-width: 0; }
.pc-live {
    display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 1px;
    color: #fff; background: var(--accent); padding: 4px 11px; border-radius: 20px; margin-bottom: 12px;
}
.pc-program { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-2); }
.pc-title { font-size: 28px; margin: 4px 0 6px; line-height: 1.12; }
.pc-sub { color: var(--text-2); font-size: 14px; min-height: 20px; }
.pc-progress { margin: 18px 0 16px; }
.pc-bar { height: 6px; background: var(--bg-elev); border-radius: 4px; overflow: hidden; }
.pc-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.5s linear; }
.pc-time { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.pc-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.play-btn {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none;
    background: var(--accent); color: #fff; border: none; padding: 11px 22px; border-radius: 30px;
    font-size: 15px; font-weight: 600;
}
.play-btn:hover { background: var(--accent-2); }
.play-btn svg { width: 18px; height: 18px; }
.vol { display: flex; align-items: center; }
.vol input[type=range] { width: 110px; accent-color: var(--accent); }

.block { margin-bottom: 38px; }
.block h2 { font-size: 18px; margin: 0 0 16px; }
.muted { color: var(--text-2); font-size: 13px; }

/* À suivre */
.upnext { display: flex; flex-direction: column; gap: 8px; }
.un-item { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.un-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: var(--bg-elev); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.un-ic svg { width: 16px; height: 16px; }
.un-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.un-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-prog { font-size: 12px; color: var(--text-2); }
.un-when { font-size: 12px; color: var(--accent-2); flex-shrink: 0; }

/* Grille */
.grid-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.day-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.day-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-2); margin-bottom: 12px; }
.slot { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.slot:first-of-type { border-top: none; }
.slot-time { font-size: 14px; font-weight: 700; color: var(--text); width: 46px; flex-shrink: 0; }
.slot-main { min-width: 0; }
.slot-label { font-size: 14px; }
.slot-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* Émissions */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.card-tag { display: inline-block; font-size: 11px; color: var(--accent); background: var(--accent-dim); padding: 2px 9px; border-radius: 20px; margin-bottom: 10px; }
.card-title { font-size: 16px; font-weight: 600; }
.card-theme { font-size: 13px; color: var(--accent-2); margin-top: 4px; }
.card-desc { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-link { font-size: 13px; text-decoration: none; color: #fff; background: var(--accent, #f43f5e); padding: 7px 12px; border-radius: 8px; }
.card-link.alt { background: transparent; color: var(--text-2); border: 1px solid rgba(255,255,255,0.18); }
.card-host { font-size: 12px; color: var(--text-2); margin-top: 10px; font-style: italic; }

/* Équipe */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.member { text-align: center; }
.member-photo {
    width: 110px; height: 110px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px;
    background: var(--bg-elev); display: flex; align-items: center; justify-content: center; color: var(--text-2);
    border: 2px solid var(--border);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo svg { width: 44px; height: 44px; }
.member-name { font-size: 15px; font-weight: 600; }
.member-style { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.member-bio {
    font-size: 12.5px; color: var(--text-2); margin-top: 8px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.member-shows { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.member-show {
    font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
    background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
}

.foot { border-top: 1px solid var(--border); padding: 24px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-2); font-size: 13px; }

@media (max-width: 640px) {
    .player-card { flex-direction: column; text-align: center; }
    .pc-cover { width: 150px; height: 150px; }
    .pc-controls { justify-content: center; }
    .pc-live { margin-left: auto; margin-right: auto; }
}
