/* ══════════════════════════════════════
   PLANNING — styles propres à la page planning
   LMP Radio
══════════════════════════════════════ */

:root {
  --acc: #a238ff; --grn: #2ecc71; --blu: #3498db;
  --org: #f5a623; --cyn: #00d4ff; --pk: #ff6b9d;
}

body {
  background-image:
    radial-gradient(ellipse 80% 60% at 5% -5%, rgba(204,0,0,.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 95% 100%, rgba(162,56,255,.07) 0%, transparent 50%);
  background-attachment: fixed;
}

@keyframes onair-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(204,0,0,.3); } 70% { box-shadow: 0 0 0 10px rgba(204,0,0,0); } }
@keyframes live-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes avatar-in  { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slide-in   { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn     { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── HERO ── */
.hero {
  position: relative; width: 100%;
  aspect-ratio: 1140/475; max-height: 75vh;
  overflow: hidden; background: #050008;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 8px; }
.hero-dot { width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); cursor: pointer; transition: all .3s; }
.hero-dot.active { background: var(--red); width: 48px; }
@media (max-width: 600px) { .hero { max-height: 50vh; } }

/* ── STATS ── */
.stats-row {
  max-width: 1140px; margin: 0 auto; padding: 24px 20px 0;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: 1fr 1fr; } }
.scard {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 18px 16px;
  display: flex; align-items: center; gap: 14px;
  position: relative; overflow: hidden; transition: all .2s;
}
.scard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent, rgba(204,0,0,.5)), transparent); }
.scard:hover { border-color: rgba(255,255,255,.14); transform: translateY(-1px); }
.sc-icon { font-size: 1.4rem; flex-shrink: 0; }
.sc-val { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.sc-lbl { font-size: .68rem; color: var(--t2); margin-top: 4px; letter-spacing: .2px; }

/* ── LIVE PILL ── */
.live-pill {
  display: none; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 30px;
  font-size: .75rem; font-weight: 800; letter-spacing: .8px;
  background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.3); color: var(--grn);
}
.live-pill.show { display: flex; }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grn); animation: live-blink 1.2s infinite; }

/* ── FILTRES ── */
.filters {
  max-width: 1140px; margin: 0 auto; padding: 20px 20px 0;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.filter-btn {
  padding: 7px 16px; border-radius: 30px; border: 1px solid rgba(255,255,255,.08);
  background: transparent; color: var(--t2); font-size: .76rem; font-weight: 600;
  cursor: pointer; transition: all .2s; letter-spacing: .3px; font-family: inherit;
}
.filter-btn:hover { background: rgba(255,255,255,.06); color: var(--t1); }
.filter-btn.active { background: rgba(204,0,0,.15); border-color: rgba(204,0,0,.4); color: #ff8888; }
.filter-sep { width: 1px; height: 24px; background: rgba(255,255,255,.08); }

/* ── CONTAINER PLANNING ── */
.planning-wrap { max-width: 1140px; margin: 0 auto; padding: 28px 20px 0; }

/* ── JOUR ── */
.day-section { margin-bottom: 40px; animation: fadeIn .35s ease both; }
.day-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  padding: 16px 20px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  backdrop-filter: blur(16px);
}
.day-header.today { background: rgba(204,0,0,.05); border-color: rgba(204,0,0,.2); }
.day-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(204,0,0,.1); border: 1px solid rgba(204,0,0,.2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.day-label { font-size: 1.05rem; font-weight: 800; }
.day-sublabel { font-size: .75rem; color: var(--t2); margin-top: 1px; }
.day-tag { padding: 4px 12px; border-radius: 20px; font-size: .65rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.day-tag.today    { background: rgba(204,0,0,.15); border: 1px solid rgba(204,0,0,.3); color: #ff7777; }
.day-tag.tomorrow { background: rgba(0,212,255,.1); border: 1px solid rgba(0,212,255,.25); color: var(--cyn); }
.day-count-badge { margin-left: auto; font-size: .72rem; color: var(--t3); background: rgba(255,255,255,.04); padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,.08); }

/* ── CARTE ÉMISSION ── */
.em-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 20px 22px 20px 0; margin-bottom: 12px;
  display: flex; align-items: center; gap: 0;
  transition: all .25s; position: relative; overflow: hidden;
  animation: slide-in .3s ease both;
}
.em-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--p); border-radius: 16px 0 0 16px; }
.em-card:hover { border-color: rgba(204,0,0,.22); background: rgba(255,255,255,.06); transform: translateX(3px); }
.em-card.onair { border-color: rgba(204,0,0,.3); background: rgba(204,0,0,.04); animation: onair-glow 2.8s infinite; }
.em-card.onair::after { background: linear-gradient(180deg, var(--grn), var(--cyn)); }
.em-card.next::after  { background: var(--cyn); }
.em-card.past { opacity: .38; }
.em-card.past::after  { background: rgba(255,255,255,.12); }

/* Time */
.em-time { display: flex; flex-direction: column; align-items: center; min-width: 76px; flex-shrink: 0; padding: 0 14px 0 20px; gap: 2px; }
.em-start { font-size: 1.3rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.em-arrow { color: var(--t3); font-size: .6rem; }
.em-end   { font-size: .8rem; color: var(--t2); font-variant-numeric: tabular-nums; }
.em-dur   { font-size: .6rem; color: var(--t3); background: rgba(255,255,255,.05); padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(255,255,255,.06); margin-top: 4px; }

/* Divider */
.em-sep { width: 1px; background: rgba(255,255,255,.08); align-self: stretch; flex-shrink: 0; margin: 0 4px; }

/* Avatar */
.em-avatar { position: relative; flex-shrink: 0; padding: 0 16px 0 12px; }
.av-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.1); background: #0d0d1a; display: block; animation: avatar-in .3s ease both; transition: border-color .25s; }
.em-card:hover .av-img { border-color: rgba(204,0,0,.35); }
.em-card.onair .av-img { border-color: rgba(46,204,113,.4); box-shadow: 0 0 14px rgba(46,204,113,.2); }
.av-badge { position: absolute; bottom: -1px; right: 13px; width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .58rem; border: 2px solid var(--bg); }
.av-badge.discord { background: #5865f2; }
.av-badge.irc     { background: #cc0000; }

/* Body */
.em-body { flex: 1; min-width: 0; }
.em-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; word-break: break-word; line-height: 1.25; }
.em-meta  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.em-dj    { font-size: .8rem; color: var(--t2); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.em-dj i  { color: var(--red-l); font-size: .75rem; }
.src-pill { font-size: .62rem; font-weight: 700; padding: 2px 9px; border-radius: 20px; letter-spacing: .4px; display: flex; align-items: center; gap: 4px; }
.src-pill.discord { background: rgba(88,101,242,.15); border: 1px solid rgba(88,101,242,.25); color: #7289da; }
.src-pill.irc     { background: rgba(204,0,0,.08);   border: 1px solid rgba(204,0,0,.2);   color: #ff8888; }

/* Progress */
.em-prog      { height: 3px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.em-prog-fill { height: 100%; background: linear-gradient(90deg, var(--grn), var(--cyn)); border-radius: 2px; transition: width .5s; }

/* Badges droite */
.em-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; padding-right: 20px; min-width: 110px; }
.badge-onair { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: .68rem; font-weight: 800; letter-spacing: .8px; background: rgba(204,0,0,.12); border: 1px solid rgba(204,0,0,.3); color: var(--grn); animation: live-blink 1.5s infinite; }
.badge-onair .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grn); }
.badge-next  { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: .68rem; font-weight: 700; background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.2); color: var(--cyn); }
.badge-soon  { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: .68rem; font-weight: 700; background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.2); color: var(--org); }

/* Empty */
.empty { text-align: center; padding: 80px 20px; color: var(--t3); }
.empty i { font-size: 3rem; display: block; margin-bottom: 16px; opacity: .2; }
.empty p { font-size: .95rem; font-weight: 600; color: var(--t2); margin-bottom: 6px; }
.empty span { font-size: .8rem; }

/* Responsive */
@media (max-width: 768px) {
  .planning-wrap { padding: 16px 12px 0; }
  .filters, .stats-row { padding-left: 12px; padding-right: 12px; }
  .em-card  { padding: 14px 14px 14px 0; }
  .em-time  { min-width: 62px; padding: 0 10px 0 14px; }
  .em-start { font-size: 1.1rem; }
  .em-avatar { padding: 0 10px; }
  .av-img   { width: 42px; height: 42px; }
  .em-badges { min-width: 80px; padding-right: 12px; }
  .em-title { font-size: .92rem; }
}
@media (max-width: 540px) {
  .em-sep { display: none; }
  .em-badges { flex-direction: row; flex-wrap: wrap; min-width: unset; justify-content: flex-start; width: 100%; padding-right: 0; padding-left: 14px; }
}
