/* AGP Stream Manager — Frontend CSS */
/* Styles pour les shortcodes [agp_player], [agp_schedule], [agp_en_direct] */

:root {
  --agp-rouge: #D0102E;
  --agp-or:    #F5A800;
  --agp-vert:  #009A44;
  --agp-dark:  #0e0e0e;
  --agp-card:  #1a1a1a;
  --agp-border:#2a2a2a;
  --agp-text:  #e8e8e8;
  --agp-muted: #888;
}

/* ================================================================
   LECTEUR [agp_player]
================================================================ */
.agp-player-wrap {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.agp-player-wrap::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 */
}
.agp-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.agp-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--agp-rouge);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  pointer-events: none;
}
.agp-live-badge.agp-video-badge {
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.2);
}
.agp-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 4px;
  font-family: 'Montserrat', sans-serif;
}
.agp-player-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--agp-rouge);
}
.agp-player-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--agp-text);
}
.agp-player-wrap .agp-player-off {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--agp-dark);
  color: var(--agp-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}
.agp-player-wrap .agp-player-off svg {
  opacity: .4;
}

/* ================================================================
   BADGE EN DIRECT [agp_en_direct]
================================================================ */
.agp-en-direct-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--agp-card);
  border: 1px solid var(--agp-border);
  border-left: 4px solid var(--agp-rouge);
  border-radius: 4px;
  padding: 12px 18px;
  font-family: 'Montserrat', sans-serif;
}
.agp-en-direct-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--agp-rouge);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.agp-en-direct-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: agpPulsePub 1.2s ease-in-out infinite;
}
@keyframes agpPulsePub {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .35; transform: scale(.65); }
}
.agp-en-direct-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.agp-en-direct-title {
  color: var(--agp-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.agp-en-direct-time {
  color: var(--agp-muted);
  font-size: 12px;
}
.agp-en-direct-off {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--agp-card);
  border: 1px solid var(--agp-border);
  border-radius: 4px;
  padding: 10px 16px;
  color: var(--agp-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}

/* ================================================================
   GRILLE DE PROGRAMMATION [agp_schedule]
================================================================ */
.agp-schedule-wrap {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
}
.agp-schedule-day-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: #1d2327;
  padding: 7px 14px;
  margin: 0 0 2px;
  border-radius: 3px 3px 0 0;
}
.agp-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--agp-card);
  border: 1px solid var(--agp-border);
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.agp-schedule-table th {
  background: #111;
  color: var(--agp-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 14px;
  text-align: left;
  border-bottom: 1px solid var(--agp-border);
}
.agp-schedule-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--agp-border);
  color: var(--agp-text);
  vertical-align: middle;
}
.agp-schedule-table tr:last-child td {
  border-bottom: none;
}
.agp-schedule-table tr.agp-row-now {
  background: rgba(208, 16, 46, .08);
}
.agp-schedule-time {
  white-space: nowrap;
  font-weight: 700;
  color: var(--agp-or);
  font-size: 13px;
}
.agp-schedule-title {
  font-weight: 700;
  color: #fff;
}
.agp-schedule-cat {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  color: #fff;
}
.agp-schedule-status {
  white-space: nowrap;
}
.agp-schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.agp-schedule-badge-live    { background: var(--agp-rouge); color: #fff; }
.agp-schedule-badge-done    { background: #333; color: #888; }
.agp-schedule-badge-pending { background: var(--agp-or); color: #000; }

.agp-schedule-empty {
  color: var(--agp-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  padding: 16px 0;
}

/* Responsive */
@media (max-width: 600px) {
  .agp-schedule-table th:last-child,
  .agp-schedule-table td:last-child {
    display: none;
  }
  .agp-en-direct-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
