/* ====== Global ====== */
:root{
  --bg:#1f1f1f;
  --panel:#2a2a2a;
  --muted:rgba(255,255,255,.75);
  --muted2:rgba(255,255,255,.55);

  --card-prog:#2f3474;   /* violet */
  --card-run:#1f5f33;    /* vert */
  --card-done:#3a3a3a;   /* gris */
}

body{ background: linear-gradient(#202020,#1b1b1b); }
.muted{ color: var(--muted2); }

/* ====== Topbar (comme screenshot ancien) ====== */
.tm-topbar{
  display:grid;
  grid-template-columns: 1.2fr 1.2fr .7fr 1fr .9fr;
  gap: 26px;
  align-items:start;
  padding: 0px 22px;
  background: #232323;
  border-radius: 14px;
}

.tm-col{ min-width: 240px; }
.tm-center{ text-align:center; }
.tm-right{ text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }

.tm-h{
  font-weight: 700;
  text-transform: uppercase;
  /* letter-spacing: .04em; */
  font-size: 16px;
  color: #fff;
}

.tm-big{
  /* margin-top: 10px; */
  font-size: 16px;
  font-weight: 800;
}
.tm-sub{
  margin-top: 0px;
  font-size: 16px;
  color: var(--muted);
}

.btn-xl{
  padding: 18px 28px;
  font-weight: 900;
  font-size: 18px;
  border-radius: 10px;
}

/* ====== List ====== */
.tm-list{
  margin-top: 18px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

/* ====== Timer card (comme screenshot ancien) ====== */
.timer-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius: 16px;
  padding: 2px 22px;
}

.state-programmed{ background: var(--card-prog); }
.state-running{ background: var(--card-run); }
.state-finished{ background: var(--card-done); opacity:.85; }

/* left */
.timer-left{ width: 420px; }
.speaker-name{ font-size: 40px; font-weight: 900; line-height:1; }
.speaker-time{ margin-top: 10px; font-size: 22px; font-weight: 800; opacity:.95; color: #4caf50de; }


/* center big time */
.timer-center{ flex:1; text-align:center; }
.bigtime{ font-size: 80px; font-weight: 900; line-height:1; letter-spacing:1px; }
.status{ font-size: 18px; font-weight: 800; opacity:.95; }

/* controls right */
.timer-controls{
  width: 760px;
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content:flex-end;
}

.stack{ width: 80px; display:flex; flex-direction:column; gap: 10px; }
.stack.wide{ width: 100px; }

.btn-mini{
  font-weight: 900;
  border-radius: 8px;
  padding: 10px 10px;
}

.btn-play{
  width: 210px;
  height: 90px;
  font-size: 42px;
  font-weight: 900;
  border-radius: 12px;
}

/* small responsive */
@media (max-width: 1400px){
  .timer-controls{ width: 640px; }
  .bigtime{ font-size: 96px; }
}
@media (max-width: 1200px){
  .tm-topbar{ grid-template-columns: 1fr; }
  .tm-right{ align-items:flex-start; text-align:left; }
  .timer-card{ flex-direction:column; align-items:stretch; gap:16px; }
  .timer-controls{ width: 100%; justify-content:space-between; flex-wrap:wrap; }
  .timer-left{ width:auto; }
  .btn-play{ width: 200px; height: 96px; font-size: 34px; }
}


.btn {
    margin-bottom: 0rem !important;
    letter-spacing: 0;
    background-size: 150%;
    background-position-x: 25%;
    position: relative;
    overflow: hidden;
    -webkit-appearance: none
}

/* ===== ON AIR button (outline rouge fixe) ===== */
/* ===== ON AIR (UNIQUEMENT le bouton onair) ===== */
button[data-act="onair"].btn-onair{
  border: 2px solid #ff1744 !important;
  color: #ff1744 !important;
  background: transparent !important;
  font-weight: 900;
}


/* ===== Message ON AIR clignotant ===== */
.onair-message{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ff1744;
  font-weight: 900;
  animation: onair-text-blink 1.2s infinite;
}

/* voyant rouge */
.onair-dot{
  width: 14px;
  height: 14px;
  background: #ff1744;
  border-radius: 50%;
  animation: onair-dot-blink 1.2s infinite;
}

/* clignotement doux */
@keyframes onair-text-blink{
  0%{ opacity:1 }
  50%{ opacity:.4 }
  100%{ opacity:1 }
}

@keyframes onair-dot-blink{
  0%{ opacity:1 }
  50%{ opacity:.2 }
  100%{ opacity:1 }
}

#btnOnAir.btn-onair{
  border: 2px solid #ff1744 !important;
  color: #ff1744 !important;
  background: transparent !important;
  font-weight: 900;
}

.speaker-role{
  font-size: 16px !important;
  opacity: .75;
  margin-top: 2px;
}

.speaker-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
}

.btn-edit{
  border-radius:8px;
  padding:4px 8px;
}

