/* =========================================================
   LIVE — A | player | B en haut, C pleine largeur, D footer
   ========================================================= */

body.mab-live-page {
  --live-cyan: #22d3ee;
  --live-purple: #a855f7;
  --live-violet: #7c3aed;
  --live-border: rgba(168, 85, 247, 0.42);
  --live-panel: rgba(12, 12, 22, 0.72);
}

/* ========== HEADER ========== */
body.mab-live-page .v2-nav {
  padding: 10px clamp(10px, 2vw, 20px) !important;
  min-height: 0 !important;
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
body.mab-live-page .v2-nav-inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 8px 14px !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.mab-live-page .mab-nav-left,
body.mab-live-page .mab-nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  min-width: 0;
}
body.mab-live-page .mab-nav-left { justify-content: flex-end !important; }
body.mab-live-page .mab-nav-right { justify-content: flex-start !important; }
body.mab-live-page .mab-nav-logo {
  display: grid !important;
  place-items: center !important;
  width: clamp(64px, 7.5vw, 84px) !important;
  height: clamp(64px, 7.5vw, 84px) !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid rgba(34, 211, 238, 0.45) !important;
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.35) !important;
  background: radial-gradient(circle at 30% 30%, rgba(124,58,237,0.3), rgba(0,0,0,0.5)) !important;
  flex-shrink: 0 !important;
}
body.mab-live-page .mab-nav-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
body.mab-live-page .v2-nav-inner.mab-nav-rebuilt > .v2-nav-left,
body.mab-live-page .v2-nav-inner.mab-nav-rebuilt > .v2-nav-links-wrap,
body.mab-live-page .v2-nav-inner.mab-nav-rebuilt > .v2-nav-actions,
body.mab-live-page .v2-nav-inner.mab-nav-rebuilt > .v2-nav-mobile,
body.mab-live-page .v2-nav-mobile-btn {
  display: none !important;
}
body.mab-live-page .mab-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  font-size: clamp(0.68rem, 1vw, 0.8rem) !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
body.mab-live-page .mab-nav-btn:hover {
  border-color: rgba(168, 85, 247, 0.45) !important;
  background: rgba(168, 85, 247, 0.12) !important;
}
body.mab-live-page .mab-nav-contact {
  border-color: rgba(34, 211, 238, 0.28) !important;
}
/* Donation retirée du header LIVE */
body.mab-live-page .mab-nav-cta--donate { display: none !important; }
body.mab-live-page .mab-nav-cta--discord {
  position: relative;
  border-color: rgba(88, 101, 242, 0.45) !important;
}
body.mab-live-page .mab-discord-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(88, 101, 242, 0.45);
  background: rgba(12, 12, 24, 0.96);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5), 0 0 24px rgba(88,101,242,0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 120;
}
body.mab-live-page .mab-nav-cta--discord:hover .mab-discord-tip,
body.mab-live-page .mab-nav-cta--discord:focus-within .mab-discord-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
body.mab-live-page .mab-discord-tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #c4b5fd;
}
body.mab-live-page .mab-discord-tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: rgba(255,255,255,0.85);
}
body.mab-live-page .mab-discord-tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.7);
}
body.mab-live-page .mab-discord-tip b {
  font-weight: 800;
  color: #fff;
}

/* ========== TITRE ========== */
body.mab-live-page .mab-live-title {
  text-align: center;
  max-width: 1480px;
  margin: 4px auto 10px;
  padding: 0 clamp(12px, 2vw, 28px);
}
body.mab-live-page .mab-live-title .mab-tb-live {
  font-family: var(--font-title, Audiowide, sans-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--live-cyan);
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 0 22px rgba(6, 182, 212, 0.35);
}
body.mab-live-page .mab-live-title .mab-tb-sub {
  font-family: var(--font-title, Audiowide, sans-serif);
  font-size: clamp(0.58rem, 1vw, 0.72rem);
  letter-spacing: 0.14em;
  color: rgba(34, 211, 238, 0.72);
  margin-top: 3px;
}

/* Masquer chrome SPA / ancien player footer */
body.mab-live-page .v2-page-header,
body.mab-live-page .v2-live-tabs-block,
body.mab-live-page .v2-live-tabs,
body.mab-live-page .v2-live-tabs-meta,
body.mab-live-page .v2-live-copy,
body.mab-live-page .v2-live-onair-state,
body.mab-live-page .v2-live-onair,
body.mab-live-page .v2-live-badge,
body.mab-live-page .v2-live-donate-slot,
body.mab-live-page .v2-live-donate-wrap,
body.mab-live-page .mab-live-don-slot,
body.mab-live-page .mab-live-toolbar,
body.mab-live-page .mab-live-radio-dock,
body.mab-live-page footer:not(.mab-zone-d),
body.mab-live-page .fixed-footer {
  display: none !important;
}

body.mab-live-page .v2-live-section {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}
body.mab-live-page .v2-live-section .v2-live-screen:not(:has(.v2-live-video-wrap)):not(:has(.v2-live-offline)),
body.mab-live-page .v2-live-section .v2-live-player:not(:has(.v2-live-video-wrap)):not(:has(.v2-live-offline)),
body.mab-live-page .v2-live-section .v2-live-stage:not(:has(.v2-live-video-wrap)):not(:has(.v2-live-offline)) {
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
body.mab-live-page .v2-live-rail { display: none !important; }
body.mab-live-page .v2-main-content,
body.mab-live-page main { padding-bottom: 24px !important; }

/* Player React source : gardé pour audio/handlers, invisible */
body.mab-live-page .mab-rp-source-host {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.mab-live-page .v2-radio-player.mab-radio-source {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ========== LAYOUT : top A|player|B puis C full width ========== */
body.mab-live-page .mab-live-layout {
  max-width: 1480px;
  margin: 0 auto 24px;
  padding: 0 clamp(12px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.mab-live-page .mab-live-top {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(280px, 1.4fr) minmax(180px, 0.85fr);
  gap: 12px;
  align-items: stretch;
}

body.mab-live-page .mab-zone {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: var(--live-panel);
  min-height: 0;
}
body.mab-live-page .mab-zone-title {
  margin: 0;
  padding: 10px 12px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.mab-live-page .mab-zone-body {
  padding: 10px 12px 12px;
}
body.mab-live-page .mab-zone-empty {
  display: grid;
  place-items: center;
  min-height: 110px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* A / B concentrés en haut + même néon que le player */
body.mab-live-page .mab-zone-a,
body.mab-live-page .mab-zone-b {
  max-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 0 !important;
  background: transparent !important;
  padding: 2px;
  border-radius: 18px;
  background-image: linear-gradient(120deg, #22d3ee, #a855f7, #f472b6, #22d3ee) !important;
  background-size: 300% 300%;
  animation: mabPlayerBorder 8s ease infinite;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 14px 36px rgba(88, 28, 135, 0.35),
    0 0 40px rgba(34, 211, 238, 0.1);
}
body.mab-live-page .mab-zone-a .mab-zone-title,
body.mab-live-page .mab-zone-b .mab-zone-title,
body.mab-live-page .mab-zone-a .mab-zone-body,
body.mab-live-page .mab-zone-b .mab-zone-body {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(34,211,238,0.12), transparent 55%),
    radial-gradient(100% 90% at 100% 100%, rgba(168,85,247,0.16), transparent 50%),
    linear-gradient(160deg, rgba(18, 12, 36, 0.98), rgba(8, 6, 18, 0.98));
}
body.mab-live-page .mab-zone-a .mab-zone-title,
body.mab-live-page .mab-zone-b .mab-zone-title {
  border-radius: 16px 16px 0 0;
  text-align: center;
}
body.mab-live-page .mab-zone-a .mab-zone-body,
body.mab-live-page .mab-zone-b .mab-zone-body {
  overflow: hidden;
  flex: 1;
  min-height: 0;
  border-radius: 0 0 16px 16px;
  text-align: center;
}

/* ========== NOUVEAU PLAYER (centre top) ========== */
body.mab-live-page .mab-zone-player {
  position: relative;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(120deg, #22d3ee, #a855f7, #f472b6, #22d3ee);
  background-size: 300% 300%;
  animation: mabPlayerBorder 8s ease infinite;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 18px 44px rgba(88, 28, 135, 0.45),
    0 0 50px rgba(34, 211, 238, 0.12);
  min-height: 0;
  overflow: hidden;
}
@keyframes mabPlayerBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
body.mab-live-page .mab-np {
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(34,211,238,0.18), transparent 55%),
    radial-gradient(100% 90% at 100% 100%, rgba(168,85,247,0.22), transparent 50%),
    linear-gradient(160deg, rgba(18, 12, 36, 0.98), rgba(8, 6, 18, 0.98));
  height: 100%;
  position: relative;
}
body.mab-live-page .mab-np::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 35%);
}
body.mab-live-page .mab-np-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 12px;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
body.mab-live-page .mab-np-onair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
}
body.mab-live-page .mab-np-onair[hidden] { display: none !important; }
body.mab-live-page .mab-np-onair-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
}
body.mab-live-page .mab-np-onair-name {
  font-size: 0.9rem;
  color: #fff;
  margin-right: 4px;
}
body.mab-live-page .mab-np-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}
body.mab-live-page .mab-np-chip i { color: var(--live-cyan); }
body.mab-live-page .mab-np-chip em {
  font-style: normal;
  font-weight: 600;
}
body.mab-live-page .mab-np.is-dj-live .mab-np-cover,
body.mab-live-page #mabNewPlayer.is-dj-live .mab-np-cover,
body.mab-live-page .mab-np.is-dj-live .mab-np-title,
body.mab-live-page .mab-np.is-dj-live .mab-np-artist,
body.mab-live-page .mab-np.is-dj-live .mab-np-like,
body.mab-live-page .mab-np.is-dj-live .mab-np-skip {
  display: none !important;
}
body.mab-live-page .mab-np.is-dj-live .mab-np-meta {
  display: flex;
  align-items: center;
}
body.mab-live-page .mab-np.is-dj-live .mab-np-genre {
  margin-top: 0;
  padding: 8px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #fff;
  border-width: 1.5px;
  animation: mabOnAirPulse 1.6s ease-in-out infinite;
}
@keyframes mabOnAirPulse {
  0%, 100% {
    background: rgba(239, 68, 68, 0.28);
    border-color: rgba(239, 68, 68, 0.85);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45), 0 0 18px rgba(239, 68, 68, 0.35);
  }
  50% {
    background: rgba(34, 197, 94, 0.28);
    border-color: rgba(34, 197, 94, 0.9);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12), 0 0 22px rgba(34, 197, 94, 0.4);
  }
}
body.mab-live-page .mab-np-progress[hidden],
body.mab-live-page .mab-np-like[hidden],
body.mab-live-page .mab-np-skip[hidden] {
  display: none !important;
}

/* Popup historique lives */
body.mab-lives-modal-open { overflow: hidden; }
body.mab-live-page .mab-lives-modal,
.mab-lives-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 16px;
}
body.mab-live-page .mab-lives-modal[hidden],
.mab-lives-modal[hidden] {
  display: none !important;
}
.mab-lives-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 12, 0.72);
  backdrop-filter: blur(4px);
}
.mab-lives-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(72vh, 560px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(34,211,238,0.14), transparent 55%),
    linear-gradient(160deg, rgba(18, 12, 36, 0.98), rgba(8, 6, 18, 0.98));
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  padding: 16px 16px 14px;
}
.mab-lives-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.mab-lives-modal-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
}
.mab-lives-modal-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  line-height: 1.3;
}
.mab-lives-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.mab-lives-modal-session {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: #e0f2fe;
  font-size: 0.84rem;
  line-height: 1.4;
}
.mab-lives-modal-session i { color: var(--live-cyan, #22d3ee); margin-top: 2px; }
.mab-lives-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mab-lives-modal-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.84rem;
  color: rgba(255,255,255,0.88);
}
.mab-lives-modal-list i { color: #c4b5fd; width: 14px; text-align: center; }
.mab-lives-modal-empty {
  justify-content: center;
  color: rgba(255,255,255,0.55) !important;
}
body.mab-live-page .mab-np-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.1fr);
  align-items: center;
  gap: 12px 16px;
}
body.mab-live-page .mab-np-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
body.mab-live-page .mab-np-cover {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 22px rgba(0,0,0,0.45),
    0 0 0 4px rgba(168, 85, 247, 0.18);
}
body.mab-live-page .mab-np-meta {
  min-width: 0;
  flex: 1;
  text-align: left;
}
body.mab-live-page .mab-np-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
}
body.mab-live-page .mab-np-artist {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.82);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.mab-live-page .mab-np-genre {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e0f2fe;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

body.mab-live-page .mab-np-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
body.mab-live-page .mab-np-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
body.mab-live-page .mab-np-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, #67e8f9, #a855f7 48%, #db2777);
  box-shadow:
    0 0 0 4px rgba(168, 85, 247, 0.22),
    0 12px 28px rgba(124, 58, 237, 0.55),
    0 0 28px rgba(34, 211, 238, 0.25);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.mab-live-page .mab-np-play:hover {
  transform: scale(1.06);
}
body.mab-live-page .mab-np-play.is-playing {
  animation: mabPlayPulse 1.8s ease-in-out infinite;
}
@keyframes mabPlayPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,211,238,0.22), 0 12px 28px rgba(124,58,237,0.55); }
  50% { box-shadow: 0 0 0 7px rgba(244,114,182,0.28), 0 14px 34px rgba(34,211,238,0.35); }
}
body.mab-live-page .mab-np-skip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
body.mab-live-page .mab-np-skip:hover:not(:disabled) {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.16);
}
body.mab-live-page .mab-np-skip:disabled {
  opacity: 0.35;
  cursor: default;
}
body.mab-live-page .mab-np-vol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  flex: 1 1 140px;
  max-width: 220px;
  min-width: 120px;
}
body.mab-live-page .mab-np-vol-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}
body.mab-live-page .mab-np-volume {
  width: 100%;
  min-width: 110px;
  height: 28px;
  accent-color: #a855f7;
  cursor: pointer;
}
body.mab-live-page .mab-np.is-dj-live .mab-np-right {
  gap: 10px;
}
body.mab-live-page .mab-np.is-dj-live .mab-np-vol {
  flex: 1 1 160px;
  max-width: 240px;
}
body.mab-live-page .mab-np-like,
body.mab-live-page .mab-np-hist {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .12s, background .12s;
}
body.mab-live-page .mab-np-like:hover,
body.mab-live-page .mab-np-hist:hover {
  transform: translateY(-1px);
  background: rgba(168, 85, 247, 0.18);
}
body.mab-live-page .mab-np-like i { color: #fb7185; }
body.mab-live-page .mab-np-like.is-voted {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(251, 113, 133, 0.16);
}
body.mab-live-page .mab-np-like.is-disabled {
  opacity: 0.45;
}
body.mab-live-page .mab-np-like-count {
  font-size: 0.72rem;
  font-weight: 700;
}

body.mab-live-page .mab-np-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}
body.mab-live-page .mab-np-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
body.mab-live-page .mab-np-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #a855f7, #f472b6);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.55);
}
body.mab-live-page .mab-np-listeners {
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: #e0f2fe;
  font-size: 0.72rem;
}
body.mab-live-page .mab-np-listeners b { font-weight: 700; }

/* ========== ZONE A artiste ========== */
body.mab-live-page .mab-artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
body.mab-live-page .mab-artist-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(168, 85, 247, 0.45);
}
body.mab-live-page .mab-artist-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
body.mab-live-page .mab-artist-bio {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.mab-live-page .mab-artist-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
body.mab-live-page .mab-artist-social {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
}

/* ========== ZONE B podcasts + pagination ========== */
body.mab-live-page .mab-podcast-card {
  margin-bottom: 8px;
}
body.mab-live-page .mab-podcast-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  text-align: left;
}
body.mab-live-page .mab-ep-list {
  text-align: left;
}
body.mab-live-page .mab-podcast-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
body.mab-live-page .mab-podcast-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
}
body.mab-live-page .mab-podcast-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
}
body.mab-live-page .mab-ep-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
body.mab-live-page .mab-ep-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 3px 2px;
}
body.mab-live-page .mab-ep-item i {
  margin-top: 2px;
  color: var(--live-cyan);
  font-size: 0.65rem;
}
body.mab-live-page .mab-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}
body.mab-live-page .mab-pager button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}
body.mab-live-page .mab-pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ========== Barre d’actions (sans conteneur Discord) ========== */
body.mab-live-page .mab-discord-slot {
  width: 100%;
}
body.mab-live-page .v2-live-discord {
  display: none !important;
}
body.mab-live-page .mab-discord-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
body.mab-live-page .mab-dact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
body.mab-live-page .mab-dact:hover {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.14);
}
body.mab-live-page .mab-dact--donate {
  border-color: rgba(251, 191, 36, 0.4) !important;
  background: linear-gradient(135deg, rgba(251,191,36,0.14), rgba(124,58,237,0.16)) !important;
}
body.mab-live-page .mab-dact--donate i { color: #fbbf24; }
body.mab-live-page .mab-dact--chat {
  border-color: rgba(168, 85, 247, 0.5) !important;
  background: linear-gradient(160deg, rgba(88, 28, 135, 0.85), rgba(30, 64, 175, 0.45)) !important;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  flex-direction: row;
  padding: 8px 12px;
  font-size: 0.78rem;
}
body.mab-live-page .mab-dact--social {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
body.mab-live-page .mab-dact-sync-host {
  display: inline-flex;
  align-items: center;
}
body.mab-live-page .mab-dact-sync-host .v2-live-video-bar {
  position: static !important;
  display: flex !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  width: auto !important;
}
body.mab-live-page .mab-dact-sync-host .v2-live-sync-btn,
body.mab-live-page .v2-live-sync-btn {
  position: static !important;
  backdrop-filter: blur(8px);
  background: rgba(8, 8, 16, 0.82) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
}

body.mab-live-page .mab-chat-fab {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
body.mab-live-page .mab-chat-fab .mab-chat-count,
body.mab-live-page .mab-chat-fab em.mab-chat-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fb7185;
  font-size: 0.65rem;
  font-style: normal;
  display: inline-grid;
  place-items: center;
}
body.mab-live-page .mab-chat-fab .mab-chat-count:empty,
body.mab-live-page .mab-chat-fab .mab-chat-count[data-n="0"],
body.mab-live-page .mab-chat-fab em.mab-chat-count:empty,
body.mab-live-page .mab-chat-fab em.mab-chat-count[data-n="0"] {
  display: none;
}

/* ========== ZONE C pleine largeur (= extrémités A/B) ========== */
body.mab-live-page .mab-zone-c {
  border: 0;
  background: transparent;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.mab-live-page .mab-zone-c-video {
  width: 100%;
}
body.mab-live-page .mab-zone-c-video .v2-live-video-wrap,
body.mab-live-page .v2-live-video-wrap {
  position: relative !important;
  width: 100% !important;
  height: min(74vh, 900px) !important;
  min-height: 440px !important;
  border-radius: 16px !important;
  border: 1px solid var(--live-border) !important;
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
  background: #000 !important;
}
body.mab-live-page .v2-live-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Résidus SPA MAPPING / offline : jamais sous le footer */
body.mab-live-page .v2-live-section .v2-live-offline,
body.mab-live-page .v2-live-section .v2-live-visual,
body.mab-live-page .v2-live-section [class*="v2-live-visual"],
body.mab-live-page .mab-mapping-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Empty state hors antenne (zone C) */
body.mab-live-page .mab-video-offline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(42vh, 420px);
  min-height: 220px;
  border-radius: 16px;
  border: 1px solid var(--live-border);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(6, 182, 212, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(12, 14, 28, 0.95), rgba(6, 7, 14, 0.98));
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.08);
}
body.mab-live-page .mab-video-offline-inner {
  text-align: center;
  padding: 24px 20px;
  max-width: 420px;
}
body.mab-live-page .mab-video-offline-title {
  margin: 0 0 8px;
  font-family: var(--font-title, "Audiowide", sans-serif);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
}
body.mab-live-page .mab-video-offline-text {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.65);
  line-height: 1.45;
}

/* Contrôles vidéo live DVR */
body.mab-live-page .mab-vctrl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72) 35%);
  pointer-events: auto;
}
body.mab-live-page .mab-vctrl-play,
body.mab-live-page .mab-vctrl-live {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 10, 22, 0.75);
  color: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
body.mab-live-page .mab-vctrl-play {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  font-size: 0.95rem;
}
body.mab-live-page .mab-vctrl-live {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
body.mab-live-page .mab-vctrl-play:hover,
body.mab-live-page .mab-vctrl-live:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: rgba(6, 182, 212, 0.55);
}
body.mab-live-page .mab-vctrl-seek-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
body.mab-live-page .mab-vctrl-seek {
  width: 100%;
  height: 6px;
  accent-color: #06b6d4;
  cursor: pointer;
}
body.mab-live-page .mab-vctrl-lag {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: rgba(248, 250, 252, 0.75);
  min-width: 2.5em;
  text-align: right;
}
body.mab-live-page .mab-vctrl-badge {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.45);
}
body.mab-live-page .mab-vctrl-badge.is-behind {
  background: rgba(100, 116, 139, 0.9);
  box-shadow: none;
}
body.mab-live-page .mab-rail { display: none !important; }
/* Tchat docké : reste visible sans bloquer la page */
body.mab-live-page .v2-live-chat,
.v2-live-chat.mab-chat-open {
  position: fixed !important;
  right: 16px !important;
  bottom: 24px !important;
  left: auto !important;
  top: auto !important;
  width: min(360px, calc(100vw - 24px)) !important;
  max-height: min(420px, 50vh) !important;
  z-index: 40 !important;
  flex-direction: column !important;
  border-radius: 16px !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}
body.mab-live-page .v2-live-chat { display: none !important; }
body.mab-live-page .v2-live-chat.mab-chat-open,
.v2-live-chat.mab-chat-open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.mab-live-page .mab-chat-backdrop,
.mab-chat-backdrop {
  display: none !important;
}
body.mab-live-page .mab-dact--chat.is-open {
  border-color: rgba(34, 211, 238, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25);
}
body.mab-live-page .mab-chat-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
}

/* ========== ZONE D : texte seul ========== */
body.mab-live-page .mab-zone-d {
  padding: 8px 4px 4px;
  text-align: center;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.mab-live-page .mab-zone-d-socials { display: none !important; }
body.mab-live-page .mab-zone-d-copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
body.mab-live-page .mab-zone-d-copy a {
  color: rgba(34, 211, 238, 0.9);
  text-decoration: none;
}

@media (max-width: 1100px) {
  body.mab-live-page .mab-live-top {
    grid-template-columns: 1fr 1fr;
  }
  body.mab-live-page .mab-zone-player {
    grid-column: 1 / -1;
    order: -1;
  }
  body.mab-live-page .mab-np-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  body.mab-live-page .mab-np-right {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  body.mab-live-page .mab-np-vol {
    flex: 1 1 180px;
    max-width: none;
  }
  body.mab-live-page .mab-zone-a,
  body.mab-live-page .mab-zone-b {
    max-height: 320px;
  }
  body.mab-live-page .mab-discord-tip {
    left: auto;
    right: 0;
    transform: translateY(4px);
    max-width: min(260px, calc(100vw - 24px));
  }
  body.mab-live-page .mab-nav-cta--discord:hover .mab-discord-tip,
  body.mab-live-page .mab-nav-cta--discord:focus-within .mab-discord-tip {
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  body.mab-live-page .v2-nav-inner {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 10px !important;
  }
  body.mab-live-page .mab-nav-left,
  body.mab-live-page .mab-nav-right {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  body.mab-live-page .mab-nav-logo { order: -1; }
  body.mab-live-page .mab-nav-btn {
    font-size: 0.72rem !important;
    padding: 7px 10px !important;
  }
  body.mab-live-page .mab-live-layout {
    padding: 0 12px;
    gap: 12px;
  }
  body.mab-live-page .mab-discord-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  body.mab-live-page .mab-zone-c-video .v2-live-video-wrap {
    height: min(56vh, 520px) !important;
    min-height: 280px !important;
  }
  body.mab-live-page .mab-video-offline {
    height: min(36vh, 300px);
    min-height: 180px;
  }
  body.mab-live-page .mab-vctrl {
    gap: 8px;
    padding: 8px 10px 10px;
  }
  body.mab-live-page .mab-vctrl-live span {
    display: none;
  }
  body.mab-live-page .mab-vctrl-live {
    width: 34px;
    padding: 0;
  }
  body.mab-live-page .v2-live-chat.mab-chat-open,
  .v2-live-chat.mab-chat-open {
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    bottom: 12px !important;
  }
  .mab-lives-modal-card {
    width: min(400px, calc(100vw - 24px));
  }
}

@media (max-width: 720px) {
  body.mab-live-page .mab-live-top {
    grid-template-columns: 1fr;
  }
  body.mab-live-page .mab-zone-player {
    order: 0;
  }
  body.mab-live-page .mab-zone-a { order: -1; }
  body.mab-live-page .mab-live-layout {
    gap: 10px;
    padding: 0 10px;
  }
  body.mab-live-page .mab-live-title {
    margin-bottom: 6px;
  }
  body.mab-live-page .mab-discord-actions {
    justify-content: center;
  }
  body.mab-live-page .mab-dact span {
    display: inline;
  }
  body.mab-live-page .mab-np-inner {
    padding: 12px;
    gap: 10px;
  }
  body.mab-live-page .mab-np-onair {
    gap: 6px 8px;
  }
  body.mab-live-page .mab-np-onair-name {
    flex: 1 1 100%;
    font-size: 0.86rem;
  }
  body.mab-live-page .mab-np-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
  }
  body.mab-live-page .mab-np-left {
    width: 100%;
    justify-content: flex-start;
  }
  body.mab-live-page .mab-np.is-dj-live .mab-np-left {
    justify-content: center;
  }
  body.mab-live-page .mab-np-center {
    width: 100%;
  }
  body.mab-live-page .mab-np-right {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }
  body.mab-live-page .mab-np-vol {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    width: 100%;
    order: -1;
  }
  body.mab-live-page .mab-np-volume {
    min-width: 0;
    height: 32px;
  }
  body.mab-live-page .mab-np-hist,
  body.mab-live-page .mab-np-like,
  body.mab-live-page .mab-np-listeners {
    flex: 0 0 auto;
  }
  body.mab-live-page .mab-zone-a,
  body.mab-live-page .mab-zone-b {
    max-height: none;
  }
  body.mab-live-page .mab-zone-c-video .v2-live-video-wrap {
    height: min(42vh, 360px) !important;
    min-height: 200px !important;
  }
  body.mab-live-page .mab-zone-d-copy {
    text-align: center;
    font-size: 0.76rem;
  }
  body.mab-live-page .v2-live-chat.mab-chat-open,
  .v2-live-chat.mab-chat-open {
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    bottom: 0 !important;
    max-height: 46vh !important;
    border-radius: 14px 14px 0 0 !important;
  }
}

@media (max-width: 420px) {
  body.mab-live-page .mab-nav-btn span {
    display: none;
  }
  body.mab-live-page .mab-nav-btn {
    padding: 8px 10px !important;
  }
  body.mab-live-page .mab-np-play {
    width: 48px;
    height: 48px;
  }
  body.mab-live-page .mab-discord-tip {
    min-width: 180px;
    font-size: 0.72rem;
  }
}
