@import url("https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&display=swap");

/* Canal+ brand title (player dive fonts) */
@font-face {
  font-display: swap;
  font-family: Canal;
  font-style: italic;
  font-weight: 700;
  src: url("https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-Latin.4825ae.woff2")
      format("woff2"),
    url("https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-Latin.b56a5a.woff")
      format("woff");
}

body.empire-match-page {
  background: #000 !important;
  background-color: #000 !important;
  background-image: none !important;
  overflow-x: hidden;
  overflow-y: auto;
  --empire-sidebar-w: 360px;
  --empire-nav-h: 68px;
  --empire-clappr-blue: #2563eb;
  --empire-clappr-blue-light: #3b82f6;
  --stream-chat-w: 100%;
  --empire-match-banner: none;
  --rv-blue: #3b82f6;
  --rv-blue-2: #2563eb;
  --rv-bg: #0a0a0c;
  --rv-panel: #121214;
  --rv-border: rgba(255, 255, 255, 0.08);
  --background-color: #000;
  padding-top: 0 !important;
}

html:has(body.empire-match-page),
html:has(body.empire-match-immersive) {
  background: #000 !important;
  background-color: #000 !important;
}

/* —— Layout style Reneveo (bleu LMDS+) — navbar LMDS+ conservée —— */
body.empire-match-rv {
  --rv-blue: #3b82f6;
  --rv-blue-2: #2563eb;
  --rv-bg: #0a0a0a;
  --rv-card: #161616;
  --rv-border: rgba(255, 255, 255, 0.08);
  --rv-muted: #a0a0a0;
  background: var(--rv-bg) !important;
  overflow: hidden !important;
}

body.empire-match-rv .footer {
  display: none !important;
}

body.empire-match-rv .topbar,
body.empire-match-rv .topbar.full-topbar {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
}

body.empire-match-rv #empire-match-root {
  padding: 0 !important;
  margin-top: var(--empire-nav-h, 68px);
  min-height: calc(100vh - var(--empire-nav-h, 68px));
  height: calc(100vh - var(--empire-nav-h, 68px));
  background: var(--rv-bg);
}

.empire-stream--rv {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--rv-bg);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
}

.rv-back {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--rv-border);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.rv-back svg {
  color: var(--rv-blue);
}

.rv-back:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.rv-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 20px;
  box-sizing: border-box;
  height: 100%;
}

.rv-main--side-collapsed .rv-sidebar {
  width: 0 !important;
  padding: 0 !important;
  opacity: 0;
  overflow: hidden;
  border: 0 !important;
}

.rv-main--side-collapsed .rv-player-outer {
  margin-right: 0 !important;
}

.rv-player-outer {
  flex: 1 1 0%;
  min-width: 0;
  height: 100%;
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.empire-stream--rv .rv-player.empire-stream__player {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - var(--empire-nav-h, 68px) - 140px);
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--rv-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.rv-now {
  padding: 0 4px;
  flex-shrink: 0;
}

.rv-now__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8f8fb;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.rv-now__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.14), 0 0 12px rgba(255, 77, 109, 0.42);
  animation: yt-live-pulse 2s ease-in-out infinite;
}

.rv-now__title {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  text-transform: none;
}

.rv-now__comp {
  color: var(--rv-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.rv-sidebar {
  width: 380px;
  flex-shrink: 0;
  background: var(--rv-card);
  border: 1px solid var(--rv-border);
  border-radius: 12px;
  padding: 15px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s, padding 0.35s;
}

.rv-tabs {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--rv-border);
  flex-shrink: 0;
  gap: 0;
}

.rv-tab {
  position: relative;
  height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--rv-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rv-tab:hover {
  color: #fff;
}

.rv-tab.is-active {
  color: #fff;
}

.rv-tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--rv-blue);
}

.rv-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rv-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.rv-tabs .rv-icon-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--rv-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--rv-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rv-tabs .rv-icon-btn + .rv-icon-btn {
  margin-left: 6px;
}

.rv-tabs .rv-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.rv-tabs__share {
  margin-left: auto !important;
}

.rv-panels {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  margin-bottom: 52px;
}

.rv-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rv-panel[hidden] {
  display: none !important;
}

.rv-panel__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
}

.rv-panel__scroll--cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rv-empty {
  margin: 28px 8px;
  text-align: center;
  color: #6b7280;
  font-size: 0.88rem;
}

/* Cartes Programme = même design index « En direct » */
.rv-live-card-wrap {
  width: 100%;
  flex: 0 0 auto;
}

.rv-live-card-wrap .regular-card,
.rv-live-card-wrap .card-wrapper,
.rv-live-card-wrap .card-base,
.rv-live-card-wrap .card-base a {
  width: 100%;
  display: block;
}

.rv-live-card-wrap .card-base,
.rv-live-card-wrap .card-base--live {
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}

.rv-live-card-wrap .card-background {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 10px;
}

.rv-live-card-wrap .card-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rv-live-card-wrap .card-title {
  margin-top: 8px;
}

.rv-live-card-wrap .card-title__title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.rv-live-card-wrap .badge-live,
.rv-live-card-wrap .card-meta__live {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e00;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

.rv-live-card-wrap .l1-dual-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.rv-live-card-wrap .l1-dual-banner__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.rv-live-card-wrap .l1-dual-banner__vs {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 0.85rem;
}

.rv-chan__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 4px;
  border: 1px solid transparent;
}

.rv-chan__row:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.rv-chan__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rv-border);
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}

.rv-chan__logo-ph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1f2937;
  flex-shrink: 0;
}

.rv-chan__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-chan__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.45);
  flex-shrink: 0;
}

.rv-chat-wrap {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rv-chat-wrap > .stream-col-chat {
  flex: 1 1 auto;
  height: 100% !important;
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.rv-channel-pill {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--rv-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 99, 246, 0.35);
  overflow: hidden;
  z-index: 5;
}

.rv-channel-pill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.rv-channel-pill__ph {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.rv-channel-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.empire-match-rv .empire-osd__close:not(.rv-back) {
  display: none !important;
}

@media (max-width: 1100px) {
  body.empire-match-rv {
    overflow: auto !important;
  }

  body.empire-match-rv #empire-match-root {
    height: auto;
    min-height: calc(100vh - var(--empire-nav-h, 68px));
  }

  .rv-main {
    flex-direction: column;
    padding: 12px;
    height: auto;
  }

  .rv-player-outer {
    margin-right: 0;
    height: auto;
  }

  .empire-stream--rv .rv-player.empire-stream__player {
    max-height: none;
  }

  .rv-sidebar {
    width: 100%;
    height: min(58vh, 540px);
  }

  .rv-back {
    top: 10px;
    left: 12px;
  }
}

/* Ancien header rv (désactivé — navbar LMDS+) */
.rv-header {
  display: none !important;
}

/* Bannière match = UN seul calque plein écran (nav + chat + derrière le flux) */
.empire-match-bg {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-color: #000;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.empire-match-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

body.empire-match-page,
body.empire-match-immersive {
  background: #000 !important;
}

.empire-match-bg.empire-match-bg--bein,
body.empire-match-page--bein .empire-match-bg {
  display: block !important;
}

body.empire-match-page #lmds-particles,
body.empire-match-immersive #lmds-particles {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.empire-match-page .section-custom-background,
body.empire-match-page .section-custom-background__image,
body.empire-match-page .section-custom-background__gradients,
body.empire-match-immersive .section-custom-background,
body.empire-match-immersive .section-custom-background__image,
body.empire-match-immersive .section-custom-background__gradients {
  display: none !important;
  background: #000 !important;
  background-image: none !important;
}

body.empire-match-page .app-container,
body.empire-match-page #main-content-wrapper,
body.empire-match-page #empire-match-root,
body.empire-match-page .chrome {
  position: relative;
  z-index: 1;
  background: transparent !important;
  background-color: transparent !important;
}

/* Le player vit sur <body>, frère de #rootMountPoint. Un z-index sur le chrome
   emprisonne la topbar : le root (même z-index, plus tard dans le DOM) mange
   les clics logo / accueil / réseaux. On laisse la nav sortir de ce contexte. */
body.empire-match-page #rootMountPoint,
body.empire-match-page .chrome,
body.empire-match-page .app-container,
body.empire-match-page .page,
body.empire-match-page .page--home,
body.empire-match-immersive #rootMountPoint,
body.empire-match-immersive .chrome,
body.empire-match-immersive .app-container,
body.empire-match-immersive .page,
body.empire-match-immersive .page--home {
  z-index: auto !important;
}

body.empire-match-page .topbar,
body.empire-match-page .topbar.full-topbar,
body.empire-match-page .lmds-ppv-header,
body.empire-match-immersive .topbar,
body.empire-match-immersive .topbar.full-topbar,
body.empire-match-immersive .lmds-ppv-header {
  z-index: 2147483000 !important;
  pointer-events: auto !important;
}

body.empire-match-page .topbar a,
body.empire-match-page .topbar button,
body.empire-match-page .l1-social-links,
body.empire-match-page .l1-social-links__item,
body.empire-match-page .lmds-ppv-header a,
body.empire-match-page .lmds-ppv-header button,
body.empire-match-immersive .topbar a,
body.empire-match-immersive .topbar button,
body.empire-match-immersive .l1-social-links__item,
body.empire-match-immersive .lmds-ppv-header a,
body.empire-match-immersive .lmds-ppv-header button {
  pointer-events: auto !important;
}

/* Bande du haut du root (padding nav) : les clics traversent jusqu’à la nav. */
body.empire-match-page #empire-match-root,
body.empire-match-immersive #empire-match-root {
  pointer-events: none;
}

body.empire-match-page #empire-match-root .empire-stream__player,
body.empire-match-page #empire-match-root .empire-stream__iframe,
body.empire-match-page #empire-match-root .empire-stream__jw,
body.empire-match-page #empire-match-root .empire-stream__clappr,
body.empire-match-page #empire-match-root .stream-player-footer,
body.empire-match-page #empire-match-root .stream-footer-social-row,
body.empire-match-page #empire-match-root .stream-col-channels,
body.empire-match-page #empire-match-root .stream-col-chat-stack,
body.empire-match-page #empire-match-root a,
body.empire-match-page #empire-match-root button,
body.empire-match-page #empire-match-root input,
body.empire-match-page #empire-match-root textarea,
body.empire-match-immersive #empire-match-root .empire-stream__player,
body.empire-match-immersive #empire-match-root .empire-stream__iframe,
body.empire-match-immersive #empire-match-root .empire-stream__jw,
body.empire-match-immersive #empire-match-root .empire-stream__clappr,
body.empire-match-immersive #empire-match-root .stream-player-footer,
body.empire-match-immersive #empire-match-root .stream-footer-social-row,
body.empire-match-immersive #empire-match-root .stream-col-channels,
body.empire-match-immersive #empire-match-root .stream-col-chat-stack,
body.empire-match-immersive #empire-match-root a,
body.empire-match-immersive #empire-match-root button,
body.empire-match-immersive #empire-match-root input,
body.empire-match-immersive #empire-match-root textarea {
  pointer-events: auto;
}

body.empire-match-page .lmds-ppv-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
}

body.empire-match-page .topbar,
body.empire-match-page .topbar.full-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

body.empire-match-page .topbar__bg {
  background: transparent !important;
  opacity: 0 !important;
}

body.empire-match-page .app-container,
body.empire-match-page #main-content-wrapper {
  padding-top: 0 !important;
}

#empire-match-root {
  width: 100%;
  margin: 0;
  padding: var(--empire-nav-h) 0 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: transparent;
}

/* Après croix : root vide ne doit jamais laisser un faux plein écran noir */
#empire-match-root:empty {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.empire-stream__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--empire-sidebar-w);
  gap: 16px;
  align-items: start;
  min-height: calc(100vh - var(--empire-nav-h));
  padding: 12px 24px 28px;
  box-sizing: border-box;
  background: transparent;
  max-width: 1850px;
  margin: 0 auto;
}

/* —— Player —— */

.empire-stream__player-col {
  min-width: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empire-stream__player {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--empire-nav-h) - 12px);
  min-height: 280px;
  background: #000;
  overflow: hidden;
  border-radius: 10px;
}

/* Bug LMDS+ — plus gros, fond noir un peu vertical (masque + FOOT DIRECT) */
/* —— YouTube watch layout —— */
.empire-stream--yt .empire-stream__player {
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: min(78vh, calc(100vh - var(--empire-nav-h) - 220px));
  min-height: 220px;
  border-radius: 12px;
}

.empire-stream--yt .empire-stream__player-col {
  gap: 14px;
}

.empire-stream--yt .empire-stream__sidebar {
  position: sticky;
  top: calc(var(--empire-nav-h) + 12px);
  height: calc(100vh - var(--empire-nav-h) - 24px);
  max-height: calc(100vh - var(--empire-nav-h) - 24px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.empire-stream--yt .empire-stream__sidebar.yt-side-live {
  overflow: hidden;
}

.yt-watch-chat {
  flex: 1 1 58%;
  min-height: 220px;
  margin-top: 0;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0f0f0f;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.yt-watch-chat .empire-sidebar__chat {
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

.yt-watch-chat .empire-sidebar__chat-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.yt-watch-chat .empire-sidebar__chat-wrap > .stream-col-chat,
.yt-watch-chat .empire-sidebar__chat-wrap > .empire-ppv-chat {
  flex: 1 1 auto;
  height: 100% !important;
  max-height: none !important;
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0f0f0f !important;
}

.yt-watch-related {
  flex: 0 1 42%;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  max-height: 46%;
  height: auto;
  margin: 0;
  padding: 0;
}

.yt-watch-related__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.yt-watch-related__rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 2px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  scrollbar-width: thin;
}

.yt-side-live__item {
  width: 100%;
  flex: 0 0 auto;
}

.yt-side-live__item .regular-card,
.yt-side-live__item .card-wrapper,
.yt-side-live__item .card-base,
.yt-side-live__item .card-base a {
  width: 100%;
  display: block;
}

.yt-side-live__item .card-base,
.yt-side-live__item .card-base--live {
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.yt-side-live__item .card-background {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.yt-side-live__item .card-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-side-live__item .card-title {
  margin-top: 8px;
}

.yt-side-live__item .card-title__title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  text-transform: uppercase;
}

.yt-side-live__item .badge-live,
.yt-side-live__item .card-meta__live {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e00;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

.yt-side-live__item .l1-dual-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.yt-side-live__item .l1-dual-banner__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.yt-side-live__item .l1-dual-banner__vs {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 0.85rem;
}

.yt-watch-meta__title {
  margin: 0 0 12px;
  color: #fff;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.yt-watch-meta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.yt-watch-meta__channel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.yt-watch-meta__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #272727;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.yt-watch-meta__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-watch-meta__avatar-fallback {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.yt-watch-meta__channel-text {
  min-width: 0;
}

.yt-watch-meta__comp {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.yt-watch-meta__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: #aaa;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.yt-watch-meta__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f1f1f1;
  font-weight: 600;
}

.yt-watch-meta__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e00;
  animation: yt-live-pulse 1.6s ease-out infinite;
}

@keyframes yt-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(238, 0, 0, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(238, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(238, 0, 0, 0);
  }
}

.yt-watch-meta__dot {
  opacity: 0.55;
}

.yt-watch-meta .empire-stream__counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.yt-watch-meta .empire-stream__counter-eye {
  font-size: 0.75rem;
  opacity: 0.85;
}

.yt-watch-meta__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-watch-meta__share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: #272727;
  color: #f1f1f1;
  font-size: 0.875rem;
  font-weight: 560;
  cursor: pointer;
}

.yt-watch-meta__share:hover {
  background: #3f3f3f;
}

.yt-watch-meta {
  padding: 4px 2px 0;
}

/* ========== Player chrome = clone Canal+ live ========== */
.empire-osd,
.empire-osd--canal,
.empire-osd--moon {
  --cplus-red: #b91c2c;
  --cplus-live: #d80c2e;
  --cplus-green: #008142;
  --cplus-ui: Hind, Arial, Helvetica, sans-serif;
  --cplus-title: Canal, Arial, Helvetica, sans-serif;
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease-out;
  font-family: var(--cplus-ui);
  -webkit-font-smoothing: antialiased;
}

/* OSD ne vole plus les clics JW (play / pause / son) — seuls titre, compteur, flèches */
.empire-osd.is-idle,
.empire-osd.is-controls {
  pointer-events: none !important;
  cursor: default;
}
.empire-osd.is-idle .empire-osd__top {
  opacity: 0;
  pointer-events: none !important;
}

/* Téléphone / tactile : croix + bandeau haut toujours visibles */
@media (max-width: 1100px), (pointer: coarse) {
  .empire-osd.is-idle .empire-osd__top,
  .empire-osd.is-controls .empire-osd__top {
    opacity: 1 !important;
    pointer-events: none !important;
    visibility: visible !important;
  }
  .empire-osd.is-idle .empire-osd__top-left,
  .empire-osd.is-idle .empire-osd__top-center,
  .empire-osd.is-idle .empire-osd__top-right,
  .empire-osd.is-idle .empire-osd__close,
  .empire-osd.is-idle .empire-osd__cbtn,
  .empire-osd.is-idle .empire-osd__banner,
  .empire-osd.is-idle .empire-osd__vol,
  .empire-osd.is-controls .empire-osd__top-left,
  .empire-osd.is-controls .empire-osd__top-center,
  .empire-osd.is-controls .empire-osd__top-right,
  .empire-osd.is-controls .empire-osd__close,
  .empire-osd.is-controls .empire-osd__cbtn,
  .empire-osd.is-controls .empire-osd__banner,
  .empire-osd.is-controls .empire-osd__vol {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .empire-osd.is-idle,
  .empire-osd.is-controls {
    /* laisse passer les clics vidéo sauf sur les contrôles haut */
    pointer-events: none !important;
  }
}
.empire-osd.is-idle .empire-osd__bottom {
  opacity: 1;
  pointer-events: none !important;
}
.empire-osd.is-idle .empire-osd__btns:not(.empire-osd__btns--right),
.empire-osd.is-idle .empire-osd__scrubber,
.empire-osd.is-idle .empire-osd__live {
  opacity: 0;
  pointer-events: none !important;
}
.empire-osd.is-idle .empire-osd__viewers,
.empire-osd.is-idle .empire-stream__counter--live-slot,
.empire-osd.is-idle .empire-stream__zap {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.empire-osd.is-controls .empire-osd__top,
.empire-osd.is-controls .empire-osd__bottom {
  opacity: 1;
  pointer-events: none !important;
}

.empire-osd__wake {
  position: absolute;
  inset: 0;
  z-index: 21;
  pointer-events: none !important;
}
.empire-osd.is-idle .empire-osd__wake {
  pointer-events: none !important;
}

/* TOP — Canal+ live: padding 24px 32px, gradient */
.empire-osd__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 22;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 32px 80px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 10%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.empire-osd__top-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
  pointer-events: auto;
  margin-left: 0;
}

.empire-osd__ch-badge {
  display: none !important;
}

.empire-osd__comp-logo,
.empire-osd__ch-logo--side {
  display: none !important;
}
.empire-osd__ch-logo--side[hidden] {
  display: none !important;
}

.empire-osd__prog,
.empire-osd__top-center {
  min-width: 0;
  max-width: min(590px, 58vw);
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}

/* Titre Canal + flèche — masqués */
.empire-osd__banner {
  display: none !important;
}
.empire-osd__banner-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.empire-osd__banner-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: #fff;
  color: #fff;
  display: block;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.33, 0, 0.67, 1);
  transform: translateX(0);
}
.empire-osd__banner:hover .empire-osd__banner-arrow,
.empire-osd__banner:focus-visible .empire-osd__banner-arrow {
  transform: translateX(4px);
}
.empire-osd__banner::after {
  content: none;
  display: none;
}

/* Sous-titre Canal — masqué */
.empire-osd__meta,
.empire-osd__prog,
.empire-osd__top-center {
  display: none !important;
}

@media (max-width: 699px) {
  .empire-osd__top {
    padding: 24px 24px 80px;
  }
}

.empire-osd__top-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  pointer-events: auto;
  margin-top: -2px;
}

/* Volume : icône mute (slider volume natif JW masqué) */
.empire-osd__vol {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  pointer-events: auto;
}
.empire-osd__vol-rail,
.empire-osd__vol-range,
.empire-osd__vol-tip {
  display: none !important;
}

.empire-osd__chip,
.empire-osd__chat-btn {
  display: none !important;
}

/* ControlButton Canal+ = xFqFQ7wQGRe2dNfVmgIu */
.empire-osd__cbtn {
  pointer-events: auto;
  align-items: center;
  justify-content: center;
  display: flex;
  width: fit-content;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--cplus-ui);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.empire-osd__cbtn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
.empire-osd__cbtn svg[hidden],
.empire-osd__cbtn svg.is-hidden {
  display: none !important;
}
.empire-osd__cbtn--label svg {
  width: 24px;
  height: 24px;
}
.empire-osd__cbtn span {
  margin-left: 10px;
  pointer-events: none;
  color: inherit;
}
.empire-osd__cbtn:hover {
  color: #c7c7c7;
}
.empire-osd__cbtn:hover svg {
  fill: #c7c7c7;
}

body.empire-match-immersive .empire-match-close--float,
.empire-match-close--float {
  display: none !important;
}

/* BOTTOM — barre rouge Canal OSD (plus de barre blanche JW) */
.empire-osd__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  padding: 0 16px max(10px, env(safe-area-inset-bottom, 0px));
  background: transparent !important;
  transition: opacity 0.25s ease;
  pointer-events: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-end;
  min-height: 0;
}

/* f79ZCa_buttonsWrapper + rightAlignedControl */
.empire-osd__controls {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 4px;
  gap: 24px;
  transform: translateY(-4px);
}
.empire-osd__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.empire-osd__btns--right {
  margin-left: auto;
  pointer-events: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  z-index: 24;
  /* Au-dessus de PiP + plein écran JW — un peu plus bas */
  transform: translateY(-36px);
}
.empire-osd--jw .empire-osd__btns--right {
  transform: translateY(-40px);
}

/* PiP OSD off ; FS OSD haut-droite OK ; FS bas = barre JW */
.empire-osd [data-osd="pip"],
.empire-osd__btns--right > [data-osd="fs"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.empire-osd__vol,
.empire-osd [data-osd="mute"] {
  display: inline-flex !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.empire-osd__viewers,
.empire-osd__btns--right .empire-stream__zap,
.empire-osd__banner,
.empire-osd__close {
  pointer-events: auto !important;
}
.empire-osd [data-osd="back"],
.empire-osd [data-osd="play"],
.empire-osd [data-osd="fwd"],
.empire-osd__live {
  display: none !important;
  pointer-events: none !important;
}
.empire-stream__iframe {
  pointer-events: auto !important;
  z-index: 1;
  touch-action: manipulation;
}
/* OSD chrome au-dessus, mais zone vidéo = JW (clic droit / barre JW passent) */
.empire-osd,
.empire-osd__wake,
.empire-osd__loader {
  pointer-events: none !important;
}
.empire-osd__bottom {
  pointer-events: none !important;
  background: transparent !important;
  padding: 0 16px max(12px, env(safe-area-inset-bottom, 0px)) !important;
}

/* Plus de barre Canal — JW gère (sauf boutons cachés dans l’iframe) */
.empire-osd__scrubber,
.empire-osd.is-controls .empire-osd__scrubber,
.empire-osd.is-idle .empire-osd__scrubber,
.empire-osd__progress,
.empire-osd__progress-bar,
.empire-osd__progress-thumb,
.empire-osd__times,
.empire-osd--canal .empire-osd__scrubber,
.empire-osd--jw .empire-osd__scrubber {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
/* Titre / logo Canal off ; barre Canal toujours off */
.empire-osd--jw .empire-osd__banner,
.empire-osd--jw .empire-osd__prog,
.empire-osd--jw .empire-osd__meta,
.empire-osd--jw .empire-osd__top-center,
.empire-osd--jw .empire-osd__comp-logo,
.empire-osd--jw .empire-osd__ch-logo--side {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Son / PiP OSD off (barre JW). FS OSD visible à côté de la croix. */
.empire-osd--jw .empire-osd__vol,
.empire-osd--jw [data-osd="mute"],
.empire-osd--jw [data-osd="pip"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.empire-osd--jw .empire-osd__top-right [data-osd="fs"],
.empire-osd__top-right [data-osd="fs"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* L’OSD ne bloque pas PiP / plein écran JW en bas à droite */
.empire-osd--jw,
.empire-osd--jw .empire-osd__wake,
.empire-osd--jw .empire-osd__bottom {
  pointer-events: none !important;
}
.empire-osd--jw .empire-osd__close,
.empire-osd--jw .empire-stream__zap,
.empire-osd--jw .empire-osd__viewers,
.empire-osd--jw .empire-osd__banner,
.empire-osd--jw .empire-osd__top-center,
.empire-osd--jw .empire-osd__top-right,
.empire-osd--jw .empire-osd__btns--right {
  pointer-events: auto !important;
}

.empire-osd__progress {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 0;
  background: hsla(0, 0%, 100%, 0.2);
  overflow: visible;
}
.empire-osd__progress-bar {
  display: block !important;
  width: 68%;
  height: 100%;
  background: var(--cplus-red, #b91c2c);
  border-radius: 0;
  box-shadow: none;
}
.empire-osd__progress-thumb {
  position: absolute;
  top: 50%;
  left: 68%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: var(--cplus-red, #b91c2c);
  pointer-events: none;
  box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.5);
  outline: none;
  transition: width 0.3s cubic-bezier(0.6, 0, 0.8, 1),
    height 0.3s cubic-bezier(0.6, 0, 0.8, 1), margin 0.3s;
}
.empire-osd__scrubber:hover .empire-osd__progress-thumb {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
}

.empire-osd__times {
  display: flex;
  justify-content: space-between;
  color: hsla(0, 0%, 100%, 0.7);
  font-family: var(--cplus-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.empire-osd__viewers[hidden] {
  display: none !important;
}

/* Compteur à la place de « Toutes les chaînes » — même style qu’avant */
.empire-stream__counter--osd,
.empire-osd__viewers.empire-stream__counter--osd,
.empire-stream__counter--live-slot {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 0;
  margin-right: 6px;
  padding: 0;
  pointer-events: none;
  filter: none;
  transform: none !important;
}

.empire-stream__counter--live-slot .empire-stream__counter-eye {
  width: auto;
  height: auto;
  color: #3d8bff;
}

.empire-stream__counter--live-slot .empire-stream__counter-eye svg {
  width: 28px;
  height: 28px;
}

.empire-stream__counter--live-slot .empire-stream__counter-num {
  color: #3d8bff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  min-width: 0;
  height: auto;
  top: 0;
}

@media (max-width: 768px) {
  .empire-osd__cbtn--label span {
    display: none;
  }
  .empire-osd__controls,
  .empire-osd__btns {
    gap: 11.5px;
  }
  .empire-osd__bottom {
    padding: 0 12px max(60px, calc(48px + env(safe-area-inset-bottom, 0px))) !important;
    gap: 0 !important;
    background: transparent !important;
  }
  .empire-osd__btns--right {
    transform: translateY(-34px);
  }
  .empire-osd--jw .empire-osd__btns--right {
    transform: translateY(-38px);
  }
  .empire-osd__controls {
    transform: none;
  }

/* Flèches zap dans la barre OSD (même style que les autres cbtn) */
.empire-osd__btns--right .empire-stream__zap {
  opacity: 1;
}
.empire-osd__btns--right .empire-stream__zap.is-off,
.empire-osd__btns--right .empire-stream__zap:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}
  .empire-osd__cbtn svg {
    width: 24px;
    height: 24px;
  }
}

/* Pas de moulinage au boot stream — poster seul jusqu’au flux */
.empire-osd__loader,
.empire-osd__spinner,
.empire-stream__preroll-loader,
.empire-stream__preroll-wait {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}

.empire-osd__loader.is-done {
  opacity: 0;
  visibility: hidden;
}

@keyframes empire-osd-spin {
  to {
    transform: rotate(360deg);
  }
}

.empire-osd__stack {
  display: none;
}

.empire-osd__live-dot {
  display: none !important;
}

@keyframes empire-osd-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 139, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(61, 139, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 139, 255, 0);
  }
}

html.lmds-spa-loading #main-content-wrapper {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
body.empire-match-immersive {
  overflow: hidden !important;
  background: #000 !important;
  background-color: #000 !important;
  background-image: none !important;
}

body.empire-match-immersive .footer,
body.empire-match-immersive .empire-stream__sidebar,
body.empire-match-immersive .lmds-offers,
body.empire-match-immersive .empire-offers,
body.empire-match-immersive .slides-wrapper,
body.empire-match-immersive .section-wrapper,
body.empire-match-immersive .carousel-container {
  display: none !important;
}

/* Compteur viewers — place du LIVE (barre du bas) */
body.empire-match-immersive .empire-stream__counter--live-slot,
.empire-stream__counter--live-slot {
  display: inline-flex !important;
}

/* Plus de fond site derrière le player */
body.empire-match-immersive #lmds-particles {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Nav desktop — transparente → une seule bannière #empire-match-bg */
body.empire-match-immersive .topbar,
body.empire-match-immersive .topbar.full-topbar,
body.empire-match-immersive.empire-nav-has-banner .topbar,
body.empire-match-immersive.empire-nav-has-banner .topbar.full-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2147483000 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.empire-match-immersive .topbar__bg {
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

/* Logo : même alignement que l’accueil (pas display:block sur .logo) */
body.empire-match-immersive .topbar .logo {
  display: flex !important;
  align-items: center !important;
  margin-top: -8px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.empire-match-immersive .topbar .logo a {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 0 !important;
}

body.empire-match-immersive .topbar .logo img,
body.empire-match-immersive .topbar .logo .lmds-logo-img,
body.empire-match-immersive .lmds-ppv-logo,
body.empire-match-immersive .lmds-logo-img {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  display: block !important;
}

body.empire-match-immersive .topbar__main-menu,
body.empire-match-immersive .topbar__functionalities,
body.empire-match-immersive [data-test-id="sign-up-btn"].l1-iptv-btn {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.empire-match-immersive [data-test-id="sign-up-btn"].l1-iptv-btn {
  border-color: #3d8bff !important;
  color: #3d8bff !important;
  background: transparent !important;
}

/* Nav mobile PPV — transparente → #empire-match-bg */
body.empire-match-immersive .lmds-ppv-header,
body.empire-match-immersive.empire-nav-has-banner .lmds-ppv-header {
  z-index: 2147483000 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.empire-match-immersive #empire-match-root,
body.empire-match-immersive #main-content-wrapper,
body.empire-match-immersive .app-container,
body.empire-match-immersive .chrome {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  min-height: 100vh !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Popup Discord / plein écran : fond plein viewport. Pendant un stream il
   recouvrait logo, accueil et réseaux (z-index au-dessus de l’ancienne nav). */
body.empire-match-page .lmds-welcome-modal,
body.empire-match-immersive .lmds-welcome-modal,
body.empire-match-dazn .lmds-welcome-modal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Stream : barre de nav visible, player juste en dessous */
body.empire-match-immersive .topbar,
body.empire-match-immersive .topbar.full-topbar {
  display: flex !important;
  z-index: 2147483000 !important;
}

body.empire-match-immersive .lmds-ppv-header {
  display: none !important;
}

/* Logo déjà dans la nav — pas de doublon dans l’OSD */
body.empire-match-immersive .empire-osd__logo {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.empire-match-immersive .empire-stream--immersive,
body.empire-match-immersive .empire-stream__player {
  position: fixed !important;
  top: var(--empire-nav-h, 68px) !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - var(--empire-nav-h, 68px)) !important;
  height: calc(100dvh - var(--empire-nav-h, 68px)) !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 0 !important;
  z-index: 2147482000 !important;
  background: #000 !important;
  background-color: #000 !important;
  overflow: hidden !important;
  transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Plein écran : iframe / JW remplissent le cadre ; le contain évite le zoom */
body.empire-match-immersive .empire-stream__iframe,
body.empire-match-immersive .empire-stream__jw,
body.empire-match-immersive .empire-stream__clappr {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

body.empire-match-immersive .empire-stream__player video,
body.empire-match-immersive .empire-stream__jw video,
body.empire-match-immersive .empire-stream__jw .jw-media video {
  object-fit: contain !important;
  object-position: center center !important;
  width: 100% !important;
  height: 100% !important;
}

/* Plein écran : fill total, pas de bande nav / noir après rotation */
.empire-stream__player:fullscreen,
.empire-stream__player:-webkit-full-screen,
.empire-stream__player video:fullscreen,
.empire-stream__player video:-webkit-full-screen {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  background: #000 !important;
  object-fit: contain !important;
}

/* Plein écran mobile CSS (survit à la rotation, pas d’API Fullscreen) */
html.empire-mobile-fs,
html.empire-mobile-fs body {
  overflow: hidden !important;
  background: #000 !important;
  height: 100% !important;
  width: 100% !important;
}

body.empire-mobile-fs .lmds-ppv-header,
body.empire-mobile-fs .topbar,
body.empire-mobile-fs .topbar.full-topbar,
body.empire-mobile-fs .empire-osd__bottom,
body.empire-mobile-fs .empire-chat-drawer,
body.empire-mobile-fs .empire-stream__sidebar,
body.empire-mobile-fs .lmds-welcome-modal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Mobile FS : garder croix + infos haut pour pouvoir quitter */
body.empire-mobile-fs .empire-osd,
body.empire-mobile-fs .empire-osd.is-idle,
body.empire-mobile-fs .empire-osd.is-controls {
  pointer-events: none !important;
}
body.empire-mobile-fs .empire-osd__top {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 2147483647 !important;
  padding-top: max(12px, env(safe-area-inset-top, 0px)) !important;
}
body.empire-mobile-fs .empire-osd__top-left,
body.empire-mobile-fs .empire-osd__top-center,
body.empire-mobile-fs .empire-osd__top-right,
body.empire-mobile-fs .empire-osd__close,
body.empire-mobile-fs .empire-osd__cbtn,
body.empire-mobile-fs .empire-osd__banner,
body.empire-mobile-fs .empire-osd__vol {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.empire-mobile-fs.empire-match-immersive .empire-stream--immersive,
body.empire-mobile-fs.empire-match-immersive .empire-stream__player,
body.empire-mobile-fs .empire-stream__player {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  z-index: 2147483646 !important;
  background: #000 !important;
  border-radius: 0 !important;
}

body.empire-mobile-fs .empire-stream__iframe,
body.empire-mobile-fs .empire-stream__jw,
body.empire-mobile-fs .empire-stream__clappr {
  position: absolute !important;
  inset: 0 !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  background: #000 !important;
}

body.empire-mobile-fs .empire-stream__player video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

/* ——— Chat drawer = clone UI Twitch LKZ+ ——— */
:root {
  --empire-chat-w: 340px;
  --twitch-bg: #000;
  --twitch-body: #000;
  --twitch-text: #efeff1;
  --twitch-muted: #adadb8;
  --twitch-purple: #3b82f6;
  --twitch-purple-hover: #2563eb;
  --twitch-border: rgba(255, 255, 255, 0.08);
}

body.empire-match-page {
  --twitch-bg: #000;
  --twitch-body: #000;
}

/* Chat ouvert : player à gauche, chat à droite, fonds opaques */
body.empire-chat-open.empire-match-immersive .empire-stream--immersive,
body.empire-chat-open.empire-match-immersive .empire-stream__player {
  left: 0 !important;
  right: var(--empire-chat-w, 340px) !important;
  width: auto !important;
  max-width: none !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: #000 !important;
  background-color: #000 !important;
}

body.empire-chat-open.empire-match-immersive .empire-stream__iframe,
body.empire-chat-open.empire-match-immersive .empire-stream__jw,
body.empire-chat-open.empire-match-immersive .empire-stream__clappr {
  background: #000 !important;
  pointer-events: auto !important;
}

.empire-chat-drawer {
  position: fixed;
  top: var(--empire-nav-h, 68px);
  right: 0;
  bottom: 0;
  z-index: 2147482500;
  width: 0;
  pointer-events: none;
  border: 0;
  outline: none;
  overflow: hidden;
  background: #0e0e10;
}

.empire-chat-drawer.is-open {
  width: var(--empire-chat-w);
  pointer-events: auto;
}

.empire-chat-drawer__backdrop {
  display: none;
}

.empire-chat-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #0e0e10;
  background-color: #0e0e10;
  background-image: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  box-shadow: none;
  transform: none;
  transition: none;
  overflow: hidden;
  font-family: Inter, Roobert, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--twitch-text);
}

.empire-chat-drawer.is-open .empire-chat-drawer__panel {
  transform: none;
}

/* Chrome custom masqué — header Stream Chat natif LKZ */
.empire-chat-drawer__chrome {
  display: none !important;
}

.empire-chat-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #0e0e10;
}

.empire-chat-drawer__body > .stream-col-chat,
.empire-chat-drawer__body > .lkz-live-chat {
  flex: 1 1 auto;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0;
  border: 0 !important;
  background: #0e0e10 !important;
  display: flex !important;
  flex-direction: column !important;
}

.empire-chat-drawer .lkz-live-chat > .lkz-chat-head {
  display: flex !important;
}

.empire-chat-drawer .lkz-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  background: transparent !important;
}

/* Chat opaque (plus de flou / transparence sur le flux) */
body.empire-match-page .empire-chat-drawer .lkz-chat-head,
body.empire-match-page .empire-chat-drawer .lkz-chat-body,
body.empire-match-page .empire-chat-drawer .lkz-chat-compose,
body.empire-match-page .empire-chat-drawer .lkz-chat-messages,
body.empire-match-page .empire-chat-drawer .stream-col-chat.lkz-live-chat,
body.empire-match-page .empire-chat-drawer .lkz-chat-closed-panel,
body.empire-match-page .empire-chat-drawer .empire-chat-drawer__body {
  background: #0e0e10 !important;
  background-color: #0e0e10 !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.empire-match-page .empire-chat-drawer .lkz-chat-pinned,
body.empire-match-page .empire-chat-drawer .lkz-chat-pinned__card,
body.empire-match-page .empire-chat-drawer .lkz-chat-pinned__body,
body.empire-match-page .empire-chat-drawer .lkz-chat-pinned__toggle,
body.empire-match-page .empire-chat-drawer .lkz-chat-pinned__card-main {
  display: none !important;
}

body.empire-match-page .empire-chat-drawer .empire-chat-drawer__panel {
  background: #0e0e10 !important;
  background-color: #0e0e10 !important;
  background-image: none !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  outline: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}

/* Pas de trait / scrollbar colorée entre player et chat */
body.empire-chat-open.empire-match-immersive .empire-stream--immersive,
body.empire-chat-open.empire-match-immersive .empire-stream__player,
body.empire-chat-open.empire-match-immersive .empire-stream__player *,
body.empire-chat-open.empire-match-immersive .empire-osd {
  border-right: 0 !important;
  outline: none !important;
}

.empire-chat-drawer,
.empire-chat-drawer * {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.empire-chat-drawer::-webkit-scrollbar,
.empire-chat-drawer *::-webkit-scrollbar {
  width: 6px;
  height: 0;
  background: transparent;
}

.empire-chat-drawer::-webkit-scrollbar-thumb,
.empire-chat-drawer *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}

.empire-chat-drawer::-webkit-scrollbar-track,
.empire-chat-drawer *::-webkit-scrollbar-track {
  background: transparent;
}

/* Fond chat Kayou opaque — plus de text-shadow « sur bannière » */
.empire-chat-drawer .lkz-chat-msg,
.empire-chat-drawer .lkz-chat-empty,
.empire-chat-drawer .lkz-chat-hint,
.empire-chat-drawer .lkz-chat-head__title,
.empire-chat-drawer .lkz-chat-pinned__text,
.empire-chat-drawer .lkz-chat-pinned__label,
.empire-chat-drawer .lkz-chat-pinned__pinner {
  text-shadow: none !important;
}

/* Collapse Kayou à gauche — visible */
.empire-chat-drawer .lkz-chat-head__icon--left {
  display: inline-flex !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 6;
}

.empire-chat-drawer .lkz-chat-head__close {
  display: none !important;
}

.empire-chat-drawer .lkz-chat-head__close:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.empire-chat-drawer__close--float {
  display: none !important;
}

.empire-chat-drawer .lkz-chat-compose {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 10px 10px 12px !important;
}

/* Input + bouton Envoyer sur la même ligne */
.empire-chat-drawer .lkz-chat-send-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.empire-chat-drawer .lkz-chat-input-wrap {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

.empire-chat-drawer .lkz-chat-compose-footer {
  display: contents !important;
}

/* Retire étoile / horloge / settings — garde le bouton GIF */
.empire-chat-drawer .lkz-chat-compose-footer__left {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

.empire-chat-drawer .lkz-chat-gif-wrap {
  display: inline-flex !important;
  position: relative !important;
}

.empire-chat-drawer .lkz-chat-compose-footer__meta,
.empire-chat-drawer .lkz-chat-settings {
  display: none !important;
}

.empire-chat-drawer .lkz-chat-send,
.empire-chat-drawer .empire-drawer-chat .lkz-chat-send {
  flex: 0 0 auto !important;
  align-self: center !important;
  background: #006fee !important;
  border: 0 !important;
  border-color: #006fee !important;
  color: #fff !important;
  border-radius: 10px !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  font-size: 0 !important;
  font-weight: 600 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.empire-chat-drawer .lkz-chat-send:hover:not(:disabled),
.empire-chat-drawer .empire-drawer-chat .lkz-chat-send:hover:not(:disabled) {
  background: #005bc4 !important;
}

.empire-chat-drawer .lkz-chat-input,
.empire-chat-drawer .empire-drawer-chat .lkz-chat-input {
  border: 2px solid #27272a !important;
  background: transparent !important;
  color: #efefef !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 40px !important;
}

/* Petite croix flottante (ferme le drawer) sans casser le header Twitch */
.empire-chat-drawer__close--float {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--twitch-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.empire-chat-drawer__close--float:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--twitch-text);
}

@media (max-width: 820px) {
  :root {
    --empire-chat-w: 100vw;
  }

  /* Mobile : masquer UNIQUEMENT le player — le chat est enfant de .empire-stream--immersive */
  body.empire-chat-open.empire-match-immersive .empire-stream--immersive {
    visibility: visible !important;
    pointer-events: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
  }

  body.empire-chat-open.empire-match-immersive .empire-stream__player {
    visibility: hidden !important;
    pointer-events: none !important;
    right: 0 !important;
    width: 100vw !important;
  }

  .empire-chat-drawer__backdrop {
    display: none !important;
  }

  .empire-chat-drawer.is-open .empire-chat-drawer__backdrop {
    display: none !important;
  }

  .empire-chat-drawer.is-open {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    top: var(--empire-nav-h, 58px) !important;
    bottom: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2147483600 !important;
    overflow: hidden;
  }

  /* Pas de slide translateX sur mobile (restait coincé hors écran) */
  .empire-chat-drawer__panel,
  .empire-chat-drawer.is-open .empire-chat-drawer__panel {
    transform: none !important;
    transition: none !important;
    z-index: 2 !important;
    width: 100% !important;
    border-left: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 980px) {
  body.empire-match-immersive {
    --empire-nav-h: 58px;
  }

  /* Sur mobile la vraie nav = header PPV (logo bleu), pas la topbar L1 */
  body.empire-match-immersive .topbar,
  body.empire-match-immersive .topbar.full-topbar {
    display: none !important;
  }

  body.empire-match-immersive .lmds-ppv-header {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 58px !important;
    z-index: 2147483000 !important;
  }
}

@media (max-width: 720px) {
  .empire-osd__top,
  .empire-osd__bottom {
    padding-left: 12px;
    padding-right: 12px;
  }

  .empire-osd__logo-img {
    height: 64px !important;
    max-width: 230px !important;
  }

  .empire-osd__banner {
    font-size: clamp(0.95rem, 4.2vw, 1.25rem);
    white-space: normal;
    max-width: 56vw;
  }

  .empire-osd__btn {
    width: 36px;
    height: 36px;
  }

  .empire-osd__chip {
    display: none;
  }
}

.empire-stream__jw,
.empire-stream__clappr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.empire-stream__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  z-index: 1;
  display: block;
}

.empire-stream__jw--ready,
.empire-stream__clappr--ready {
  opacity: 1;
}

/*
 * iOS / Android WebKit : opacity sur un ancêtre de <video> = son OK, image noire.
 * Sur mobile on n'anime jamais l'opacité du mount.
 */
@media (max-width: 1100px), (pointer: coarse) {
  .empire-stream__jw,
  .empire-stream__clappr {
    opacity: 1 !important;
    transition: none !important;
    /* Pas de translateZ : image noire sur WebKit mobile (son OK) */
    -webkit-transform: none !important;
    transform: none !important;
  }

  .empire-stream__player video,
  .empire-stream__jw > video,
  .empire-stream__clappr video {
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-transform: none !important;
    transform: none !important;
  }
}

.empire-stream__jw .jwplayer,
.empire-stream__jw .jw-reset,
.empire-stream__jw .jw-wrapper,
.empire-stream__clappr .clappr-container,
.empire-stream__clappr [data-player] {
  width: 100% !important;
  height: 100% !important;
}

/* Clappr chrome off. JW parent : barre OK, boutons cachés */
.empire-stream__clappr .media-control,
.empire-stream__clappr .media-control-layer,
.empire-stream__clappr .media-control-background,
.empire-stream__clappr .drawer-container,
.empire-stream__player .media-control {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Infos JW : barre + boutons (stop / son / LIVE / PiP / FS) */
.empire-stream__jw .jw-controls,
.empire-stream__jw .jw-controlbar,
.empire-stream__player .jw-controls,
.empire-stream__player .jw-controlbar {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.empire-stream__jw .jw-slider-time,
.empire-stream__player .jw-slider-time {
  display: none !important;
}
.empire-stream__jw .jw-icon-playback,
.empire-stream__jw .jw-icon-volume,
.empire-stream__jw .jw-icon-pip,
.empire-stream__jw .jw-text-live,
.empire-stream__jw .jw-icon-live,
.empire-stream__player .jw-icon-playback,
.empire-stream__player .jw-icon-volume,
.empire-stream__player .jw-icon-pip,
.empire-stream__player .jw-text-live {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* FS JW visible à côté de Cast / PiP */
.empire-stream__jw .jw-icon-fullscreen,
.empire-stream__jw .jw-icon-fullscreen-exit,
.empire-stream__player .jw-icon-fullscreen,
.empire-stream__player .jw-icon-fullscreen-exit {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}
/* Compteur + flèches un peu plus bas (toujours au-dessus PiP / FS JW) */
.empire-osd--jw .empire-osd__bottom {
  padding-bottom: max(48px, calc(40px + env(safe-area-inset-bottom, 0px))) !important;
}
.empire-osd--jw .empire-osd__controls {
  transform: none;
}

/* Zapping : à gauche du compteur spectateurs + tip au survol */
.empire-osd__controls-right .empire-stream__zap {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  opacity: 1;
  transform: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.empire-osd__controls-right .empire-stream__zap:hover:not(.is-off):not(:disabled) {
  opacity: 0.85;
  background: transparent;
  transform: scale(1.06);
}

.empire-osd__controls-right .empire-stream__zap.is-off,
.empire-osd__controls-right .empire-stream__zap:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.empire-osd__controls-right .empire-stream__zap[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(12, 12, 12, 0.92);
  color: #fff;
  font: 600 0.72rem/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 5;
}

.empire-osd__controls-right .empire-stream__zap:hover:not(.is-off):not(:disabled)[data-tip]::after,
.empire-osd__controls-right .empire-stream__zap:focus-visible:not(.is-off):not(:disabled)[data-tip]::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Bannière intro désactivée — lancement stream direct */
.empire-stream__preroll,
.empire-stream__preroll--intro,
.empire-stream__preroll--loading {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.empire-stream__preroll {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #000 center/cover no-repeat;
  transform: none;
  filter: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.empire-stream__preroll--intro {
  z-index: 15;
}

.empire-stream__preroll-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 40%, transparent 65%, rgba(0, 0, 0, 0.5) 100%),
    rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.empire-stream__preroll.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/*
 * Jamais opacity:0 sur l’iframe : WebKit (iOS/Android) = son OK + image noire
 * pour toujours, même après is-live. Le preroll couvre déjà le player.
 */
.empire-stream__player.is-intro .empire-stream__iframe {
  opacity: 1 !important;
  visibility: visible !important;
}

.empire-stream__player.is-intro .empire-stream__jw,
.empire-stream__player.is-intro .empire-stream__clappr {
  opacity: 0;
}

.empire-stream__player.is-live .empire-stream__iframe,
.empire-stream__player.is-live .empire-stream__jw,
.empire-stream__player.is-live .empire-stream__clappr {
  opacity: 1 !important;
  visibility: visible !important;
  /* Court : le crossfade est porté par le fade de la bannière */
  transition: opacity 0.2s ease;
}

@media (max-width: 1100px), (pointer: coarse) {
  .empire-stream__iframe,
  .empire-stream__player.is-intro .empire-stream__iframe,
  .empire-stream__player.is-live .empire-stream__iframe {
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-transform: none !important;
    transform: none !important;
  }
}

.empire-osd__loader.is-hold {
  opacity: 0 !important;
  visibility: hidden !important;
}

.empire-stream__preroll-wait {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.empire-stream__preroll-wait-txt {
  display: none !important;
}

.empire-stream__preroll--loading {
  background: #050505;
}

.empire-stream__preroll--loading .empire-stream__preroll-wait {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.empire-stream__preroll-loader {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #3d8bff;
  border-radius: 50%;
  animation: empire-spin 0.75s linear infinite;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

@keyframes empire-spin {
  to {
    transform: rotate(360deg);
  }
}

.empire-stream__poster-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #111;
  z-index: 3;
  font: 600 15px/1.35 system-ui, sans-serif;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.empire-stream__preroll--idle .empire-stream__poster-msg {
  background: transparent;
}

.empire-stream__counter {
  position: absolute;
  top: auto;
  bottom: 58px;
  left: auto;
  right: 14px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  overflow: visible;
  transform: none !important;
}

.empire-stream__counter-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 0;
  color: #3b82f6;
  background: none;
  box-shadow: none;
  line-height: 0;
  opacity: 1;
}

.empire-stream__counter-num {
  position: relative;
  top: 0.5px;
  display: inline-block;
  overflow: visible;
  height: 1.2em;
  min-width: 1.2ch;
  color: #3b82f6;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss01" 1;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.empire-stream__counter-num-track {
  position: relative;
  display: block;
  height: 100%;
  min-width: 1.2ch;
}

.empire-stream__counter-num-val {
  display: block;
  white-space: nowrap;
}

.empire-stream__counter-label {
  display: none !important;
}

.empire-stream__counter-pop-host {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

/* +1 qui remonte et disparaît — le compteur reste fixe */
.empire-stream__counter-float {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(0);
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  animation: empire-viewer-float-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.empire-stream__counter-float--down {
  color: #f87171;
  animation-name: empire-viewer-float-down;
}

@keyframes empire-viewer-float-up {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-24px);
  }
}

@keyframes empire-viewer-float-down {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
  }
}

@media (max-width: 720px) {
  .empire-stream__counter {
    top: auto;
    left: auto;
    right: 10px;
    bottom: 52px;
    gap: 6px;
  }

  .empire-stream__counter-eye svg {
    width: 18px;
    height: 18px;
  }

  .empire-stream__counter-num {
    font-size: 1.05rem;
  }
}

/* —— Sidebar IKZ —— */

.empire-stream__sidebar {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--empire-nav-h) - 12px);
  max-height: calc(100vh - var(--empire-nav-h) - 12px);
  background: transparent;
  border-left: none;
  overflow: hidden;
  border-radius: 10px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

.empire-sidebar__scroll {
  flex: 0 0 auto;
  overflow: visible;
}

.empire-sidebar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 10px;
}

.empire-sidebar__title {
  margin: 0;
  color: #fff;
  font-family: resident-primary-font, Roboto-Bold, arial, Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.empire-sidebar__share {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.empire-sidebar__share:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.empire-sidebar__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.empire-sidebar__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.55);
}

.empire-sidebar__live--off .empire-sidebar__live-dot {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.empire-sidebar__live--off {
  color: rgba(255, 255, 255, 0.55);
}

.empire-sidebar__section {
  padding: 0 16px 16px;
}

.empire-sidebar__label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 500;
}

.empire-sidebar__player-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.empire-sidebar__player-btn {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.empire-sidebar__player-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.empire-sidebar__player-btn[data-empire-player="clappr"].empire-sidebar__player-btn--active,
.empire-sidebar__player-btn[data-empire-player="jw"].empire-sidebar__player-btn--active {
  border-color: transparent;
  background: linear-gradient(
    135deg,
    var(--empire-clappr-blue) 0%,
    var(--empire-clappr-blue-light) 100%
  );
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.empire-sidebar__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px 8px;
}

.empire-sidebar__stat {
  min-width: 0;
  padding: 12px 8px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.empire-sidebar__stat-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empire-sidebar__stat-value {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empire-sidebar__iptv-slot {
  margin: 0 16px 14px;
}

.empire-sidebar__iptv-slot:not([hidden]) {
  min-height: 120px;
}

.empire-sidebar__help {
  flex: 0 0 auto;
  margin-top: auto;
  border-top: none;
  background: transparent;
}

.empire-sidebar__chat {
  flex: 1 1 auto;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  padding: 0 8px;
  overflow: hidden;
  border-top: none;
}

.empire-sidebar__chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 8px;
  flex-shrink: 0;
}

.empire-sidebar__chat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
}

.empire-sidebar__chat-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.empire-sidebar__chat-wrap > .stream-col-chat,
.empire-sidebar__chat-wrap > .empire-ppv-chat {
  flex: 1 1 auto;
  min-height: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  background: transparent !important;
  border: 0 !important;
}

body.empire-match-page .empire-ppv-chat > .lkz-chat-head {
  display: flex !important;
}

body.empire-match-page .empire-sidebar__chat-head {
  display: none !important;
}

body.empire-match-page .empire-ppv-chat .lkz-chat-body,
body.empire-match-page .empire-ppv-chat .lkz-chat-compose,
body.empire-match-page .empire-ppv-chat .lkz-chat-messages {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

body.empire-match-page .empire-ppv-chat .lkz-chat-messages {
  padding: 8px 10px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

body.empire-match-page .empire-ppv-chat .lkz-chat-compose {
  padding: 8px 10px 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
}

body.empire-match-page .empire-sidebar__chat-wrap .stream-col-chat,
body.empire-match-page .empire-sidebar__chat-wrap .stream-col-chat.lkz-live-chat {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

body.empire-match-page .empire-ppv-chat .lkz-chat-hint {
  display: block !important;
}

body.empire-match-page .empire-ppv-chat .lkz-chat-hint[hidden] {
  display: none !important;
}

body.empire-match-page .empire-ppv-chat .lkz-chat-input {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

body.empire-match-page .empire-ppv-chat:not(.empire-drawer-chat) .lkz-chat-send {
  width: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: #006fee !important;
  color: #fff !important;
  font-size: 0 !important;
  box-shadow: none !important;
}

body.empire-match-page .empire-ppv-chat .lkz-chat-send--confirm {
  width: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  font-size: 0 !important;
}

body.empire-match-page .empire-ppv-chat .lkz-chat-send svg {
  display: block !important;
}

/* GIF chat autorisé (bouton + panneau) */

body.empire-match-page .empire-ppv-chat .lkz-chat-msg {
  padding: 3px 8px 3px 6px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

body.empire-match-page .empire-ppv-chat .lkz-chat-msg:hover,
body.empire-match-page .empire-ppv-chat .lkz-chat-msg--highlight {
  background: rgba(255, 255, 255, 0.06) !important;
}

.empire-sidebar__promo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 64px 12px 20px;
  flex: 1 1 auto;
  min-height: 0;
}

.empire-iptv-card {
  position: relative;
  display: block;
  margin-top: 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a1a33;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: empire-iptv-float 3.6s ease-in-out infinite;
}

.empire-iptv-card:hover,
.empire-iptv-card:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 36px rgba(37, 99, 246, 0.35);
  outline: none;
}

.empire-iptv-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0b2a55;
}

.empire-iptv-card__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: empire-iptv-shine 4.2s ease-in-out infinite;
}

@keyframes empire-iptv-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes empire-iptv-shine {
  0%,
  35% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

.empire-sidebar__help {
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  box-shadow: none;
  overflow: visible;
  margin-top: 4px;
}

.empire-sidebar__help-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}

.empire-sidebar__help-toggle:hover {
  background: transparent;
  color: #fff;
}

.empire-sidebar__help-play {
  display: inline;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #60a5fa;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.empire-sidebar__help-chevron {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, color 0.15s ease;
  font-size: 1.05rem;
}

.empire-sidebar__help.is-open .empire-sidebar__help-chevron {
  transform: rotate(90deg);
  color: rgba(255, 255, 255, 0.65);
}

.empire-sidebar__help-body {
  display: none;
  padding: 0 4px 8px;
  flex-direction: column;
  gap: 8px;
  border-top: 0;
}

.empire-sidebar__help.is-open .empire-sidebar__help-body {
  display: flex;
  padding-top: 2px;
}

.empire-sidebar__help-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.5;
}

.empire-sidebar__help-line--muted {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
}

.empire-sidebar__help-link {
  display: inline;
  width: auto;
  max-width: none;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #93c5fd;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.empire-sidebar__help-link:hover {
  color: #fff;
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
}

/* Chat YouTube — visible dans la colonne droite */
.empire-stream--yt .empire-sidebar__chat {
  display: flex !important;
}

body.empire-match-page #empire-match-root .empire-sidebar__help-line {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.card-lock,
.card-content__locked,
.card-lock--visible {
  display: none !important;
}

@media (max-width: 1100px) {
  .empire-stream__layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 12px 24px;
    min-height: 0;
    height: auto;
    align-content: start;
    overflow-x: hidden;
  }

  .empire-stream--yt .empire-stream__player {
    max-height: none;
    border-radius: 0;
    aspect-ratio: 16 / 9;
  }

  .empire-stream--yt .empire-stream__sidebar {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    border-radius: 0;
    order: 3;
  }

  .yt-watch-chat {
    height: min(380px, 55vh);
    min-height: 260px;
  }

  .yt-watch-related {
    max-height: none;
    height: auto;
  }

  .yt-watch-related__rail {
    overflow: visible;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 12px;
  }

  .yt-side-live__item {
    width: min(260px, 78vw);
    flex: 0 0 auto;
  }

  .yt-watch-meta {
    padding: 8px 2px 0;
  }

  .yt-watch-meta__title {
    font-size: 1.05rem;
  }

  .empire-stream__player-col {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Fond noir pur derrière le stream (pas de bleu / flou) */
  .empire-stream__player-col::before {
    display: none !important;
  }

  .empire-stream__player-col,
  .empire-stream__player,
  .empire-stream__player .empire-stream__jw,
  .empire-stream__player .empire-stream__clappr,
  .empire-stream__player .jwplayer,
  .empire-stream__player .jw-wrapper,
  .empire-stream__player .jw-media,
  .empire-stream__player .clappr-container,
  .empire-stream__player [data-player],
  .empire-stream__player video {
    background: #000 !important;
  }

  .empire-stream__player {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 56.25vw;
    min-height: 200px;
    max-height: none;
    border-radius: 0 !important;
    overflow: hidden;
    background: #000 !important;
  }

  /* Remplir le cadre SANS casser la barre JW (son / plein écran) */
  .empire-stream__player .empire-stream__jw,
  .empire-stream__player .empire-stream__clappr,
  .empire-stream__player .jwplayer,
  .empire-stream__player .jw-reset,
  .empire-stream__player .jw-wrapper,
  .empire-stream__player .clappr-container,
  .empire-stream__player [data-player] {
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .empire-stream__player .jwplayer,
  .empire-stream__player .jw-wrapper {
    position: absolute !important;
    inset: 0 !important;
  }

  .empire-stream__player .jw-media {
    position: absolute !important;
    inset: 0 !important;
  }

  .empire-stream__player .jw-controls,
  .empire-stream__player .jw-controlbar,
  .empire-stream__player .jw-display,
  .empire-stream__player .jw-overlays {
    border-radius: 0 !important;
    pointer-events: auto !important;
    z-index: 30 !important;
  }

  .empire-stream__player .jw-controls {
    height: auto !important;
    max-height: none !important;
  }

  .empire-stream__player video,
  .empire-stream__player .jw-video,
  .empire-stream__player .jw-media video {
    /* contain = lecture stable sur tel (cover cassait JW / iOS) */
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 0 !important;
  }

  /* Micro-espace : forcer le player bord à bord (pas de gap sous/à droite) */
  .empire-stream__player,
  .empire-stream__player-col {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  html,
  body.empire-match-page {
    overflow-x: hidden;
  }

  .empire-stream__sidebar {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0;
    overflow: visible;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .empire-sidebar__head {
    padding: 6px 4px 4px;
    gap: 8px;
  }

  .empire-sidebar__title {
    font-size: 1rem;
    line-height: 1.2;
  }

  .empire-sidebar__share {
    width: 30px;
    height: 30px;
  }

  .empire-sidebar__section {
    padding: 0 4px 6px;
  }

  .empire-sidebar__label {
    margin: 0 0 5px;
    font-size: 0.75rem;
  }

  .empire-sidebar__player-btn {
    height: 36px;
    font-size: 0.8rem;
  }

  .empire-sidebar__iptv-slot {
    margin: 0 4px 6px;
  }

  .empire-sidebar__iptv-slot[hidden] {
    display: none !important;
    margin: 0 !important;
    min-height: 0 !important;
  }

  .empire-sidebar__chat {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0;
    overflow: visible;
  }

  .empire-sidebar__chat-head {
    display: none !important;
  }

  .empire-sidebar__chat-wrap,
  .empire-sidebar__chat-wrap > .stream-col-chat,
  .empire-sidebar__chat-wrap > .empire-ppv-chat {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.empire-match-page .empire-ppv-chat.lkz-live-chat,
  body.empire-match-page .stream-col-chat.lkz-live-chat {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.empire-match-page .empire-ppv-chat .lkz-chat-body {
    flex: 0 1 auto !important;
    min-height: 72px !important;
    max-height: 42vh !important;
    overflow-y: auto !important;
  }

  body.empire-match-page .empire-ppv-chat .lkz-chat-compose {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  body.empire-match-page {
    --empire-sidebar-w: 100%;
    /* Même hauteur que .lmds-ppv-header mobile (58px) */
    --empire-nav-h: 58px;
  }

  /* Navbar fixe : ne plus coller le stream sous/derrière la barre */
  body.empire-match-page #empire-match-root {
    padding-top: calc(
      var(--lmds-ppv-header-h, var(--empire-nav-h, 58px)) +
        env(safe-area-inset-top, 0px)
    ) !important;
  }

  body.empire-match-page .app-container,
  body.empire-match-page #main-content-wrapper {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .empire-stream__layout {
    gap: 10px;
    padding: 0 0 10px;
    min-height: 0;
    height: auto;
    align-content: start;
    overflow-x: hidden;
  }

  .empire-stream__player-col {
    margin: 0;
    padding: 0;
  }

  .empire-stream__player {
    height: 56.25vw;
    min-height: 200px;
    max-height: none;
    border-radius: 0 !important;
  }

  .empire-stream__sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .empire-sidebar__scroll {
    flex: 0 0 auto;
  }

  /* Titre match comme sur PC, collé sous le stream */
  .empire-sidebar__head {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 2px;
    margin: 0;
  }

  .empire-sidebar__title {
    display: block !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    color: #fff !important;
  }

  .empire-sidebar__share {
    display: grid !important;
    width: 32px;
    height: 32px;
  }

  .empire-sidebar__section {
    padding: 8px 2px 4px;
  }

  .empire-sidebar__label {
    display: block !important;
    margin: 0 0 8px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }

  .empire-sidebar__player-btns {
    gap: 10px;
  }

  .empire-sidebar__player-btn {
    height: 40px;
    font-size: 0.86rem;
  }

  .empire-sidebar__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 12px;
    padding: 10px 2px 8px;
  }

  .empire-sidebar__iptv-slot[hidden] {
    display: none !important;
    margin: 0 !important;
    min-height: 0 !important;
  }

  .empire-sidebar__chat {
    display: none !important;
  }

  .empire-sidebar__promo {
    padding: 14px 2px 18px;
    gap: 14px;
  }

  .empire-iptv-card {
    margin-top: 4px;
    border-radius: 12px;
  }

  .empire-sidebar__help-toggle {
    padding: 14px 14px;
  }

  body.empire-match-page .lkz-chat-head {
    min-height: 36px !important;
    height: 36px !important;
    margin-top: 0 !important;
    flex: 0 0 auto !important;
  }

  body.empire-match-page .empire-ppv-chat .lkz-chat-body {
    flex: 1 1 auto !important;
    min-height: 36vh !important;
    max-height: none !important;
    overflow-y: auto !important;
  }

  body.empire-match-page .empire-ppv-chat .lkz-chat-messages {
    padding: 4px 6px !important;
  }

  body.empire-match-page .empire-ppv-chat .lkz-chat-compose {
    padding: 8px 6px 10px !important;
    margin-top: auto !important;
    flex: 0 0 auto !important;
  }

  body.empire-match-page .lkz-chat-pinned {
    padding: 2px 4px 4px !important;
  }

  body.empire-match-page .lkz-chat-pinned__toggle {
    padding: 4px 0 !important;
  }

  body.empire-match-page .lkz-chat-pinned__text {
    font-size: 13px !important;
  }

  body.empire-match-page .lkz-chat-hint {
    margin: 0 0 6px !important;
  }

  body.empire-match-page .lkz-chat-name-gate {
    margin: 0 0 6px !important;
    padding: 8px !important;
  }

  body.empire-match-page .lkz-chat-send-row {
    gap: 8px !important;
  }
}

/* CTA IPTV compact sous le lecteur */
.lmds-home-offers--cta {
  padding: 0.55rem 0 0.15rem !important;
  margin: 0 !important;
  font-family: inherit !important;
}

.lmds-home-offers--cta,
.lmds-home-offers--cta * {
  font-family: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.lmds-stream-iptv-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(
    90deg,
    rgba(61, 139, 255, 0.18),
    rgba(61, 139, 255, 0.06)
  );
  border: 1px solid rgba(61, 139, 255, 0.35);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.lmds-stream-iptv-cta:hover {
  border-color: rgba(61, 139, 255, 0.65);
  background: linear-gradient(
    90deg,
    rgba(61, 139, 255, 0.28),
    rgba(61, 139, 255, 0.1)
  );
  transform: translateY(-1px);
}

.lmds-stream-iptv-cta__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f4f7ff;
}

.lmds-stream-iptv-cta__price {
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6cb0ff;
  font-variant-numeric: tabular-nums;
}

.lmds-stream-iptv-cta__go {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.lmds-stream-iptv-cta__go::after {
  content: " →";
}

body.empire-match-page .lmds-home-offers--cta {
  padding: 0.45rem 0 0.1rem !important;
}

/* Offres IPTV — grille legacy */
.lmds-home-offers {
  --offer-blue: #3d8bff;
  --offer-blue-hot: #5ba3ff;
  --offer-blue-dim: rgba(61, 139, 255, 0.15);
  position: relative;
  z-index: 1;
  padding: 1.25rem 1rem 2.25rem;
  flex-shrink: 0;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lmds-home-offers:not(.lmds-home-offers--cta),
.lmds-home-offers:not(.lmds-home-offers--cta) * {
  font-family: inherit;
}

.lmds-offers-head {
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition: none;
}

.lmds-home-offers.is-visible .lmds-offers-head {
  animation: lmds-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lmds-offers-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f4f7ff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  animation: none;
}

.lmds-offers-sub {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
}

.lmds-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.lmds-pricing-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 375px;
  padding: 22px 18px 18px;
  border-radius: 16px;
  background-color: #050507;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.016) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  filter: blur(6px);
  transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.22s, box-shadow 0.22s;
}

.lmds-home-offers.is-visible .lmds-pricing-card {
  animation: lmds-card-in 0.75s cubic-bezier(0.16, 1, 0.3, 1)
    calc(var(--delay, 0) * 0.12s + 0.12s) both;
}

.lmds-home-offers.is-visible .lmds-pricing-pop {
  animation: lmds-card-in 0.75s cubic-bezier(0.16, 1, 0.3, 1)
      calc(var(--delay, 0) * 0.12s + 0.12s) both,
    lmds-pop-glow 2.8s ease-in-out 1s infinite;
}

.lmds-pricing-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(61, 139, 255, 0.35);
  box-shadow: 0 16px 40px rgba(61, 139, 255, 0.18);
}

.lmds-pricing-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: skewX(-18deg);
  pointer-events: none;
}

.lmds-pricing-card:hover::after {
  animation: lmds-shine-sweep 0.85s ease;
}

.lmds-pricing-card > a {
  margin-top: auto;
}

.lmds-pricing-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(39, 39, 42, 0.8);
  color: #71717a;
  animation: lmds-icon-float 3.2s ease-in-out infinite;
}

.lmds-pricing-icon svg {
  width: 20px;
  height: 20px;
}

.lmds-pricing-icon--hot {
  background: var(--offer-blue-dim);
  color: var(--offer-blue);
  box-shadow: 0 0 18px rgba(61, 139, 255, 0.25);
  animation: lmds-icon-pulse 2.2s ease-in-out infinite;
}

.lmds-pricing-badge {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4d4d8;
  background: rgba(39, 39, 42, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.lmds-pricing-badge--hot {
  color: var(--offer-blue-hot);
  background: var(--offer-blue-dim);
  box-shadow: inset 0 0 0 1px rgba(61, 139, 255, 0.3);
}

.lmds-pricing-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 650;
  color: #f8fafc;
}

.lmds-pricing-desc {
  margin: 0 0 1.15rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  color: #71717a;
}

.lmds-pricing-pop .lmds-pricing-desc {
  color: #a1a1aa;
}

.lmds-pricing-price {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.lmds-pricing-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.lmds-pricing-euro {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.lmds-pricing-pop .lmds-pricing-euro {
  color: rgba(255, 255, 255, 0.8);
}

.lmds-pricing-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  font-size: 0.875rem;
}

.lmds-pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #d4d4d8;
  opacity: 0;
  transform: translateX(-8px);
}

.lmds-home-offers.is-visible .lmds-pricing-features li {
  animation: lmds-feat-in 0.45s ease calc(var(--delay, 0) * 0.12s + var(--i) * 0.05s + 0.35s) both;
}

.lmds-pricing-pop .lmds-pricing-features li {
  color: #fff;
}

.lmds-check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--offer-blue);
  filter: drop-shadow(0 0 4px rgba(61, 139, 255, 0.45));
}

.lmds-btn-soft {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lmds-btn-soft:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.lmds-btn-soft:active {
  transform: scale(0.97);
}

/* Carte populaire */
.lmds-pricing-pop {
  padding: 0;
  border: 1.5px solid var(--offer-blue);
  background-image: linear-gradient(
    rgba(61, 139, 255, 0.08) 0%,
    rgba(61, 139, 255, 0.025) 40%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.2),
    0 0 28px rgba(61, 139, 255, 0.22);
}

.lmds-pricing-pop:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.45),
    0 20px 48px rgba(61, 139, 255, 0.28);
}

.lmds-pricing-ribbon {
  display: block;
  width: 100%;
  height: 26px;
  line-height: 16px;
  box-sizing: border-box;
  text-align: center;
  color: #061018;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 14.5px 14.5px 0 0;
  background: linear-gradient(90deg, #2f74e8, var(--offer-blue), #7ab4ff, var(--offer-blue));
  background-size: 220% 100%;
  animation: lmds-ribbon-flow 2.8s linear infinite;
}

.lmds-pricing-pop-inner {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.lmds-btn-glow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  color: #061018 !important;
  background: var(--offer-blue);
  overflow: hidden;
  box-shadow: 0 0 18px rgba(61, 139, 255, 0.45);
  animation: lmds-cta-pulse 2.4s ease-in-out infinite;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lmds-btn-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: lmds-cta-shine 2.6s ease-in-out infinite;
}

.lmds-btn-glow:hover {
  background: var(--offer-blue-hot);
  color: #061018 !important;
  box-shadow: 0 0 28px rgba(61, 139, 255, 0.65);
  transform: translateY(-1px);
}

.lmds-btn-glow:active {
  transform: scale(0.96);
}

@keyframes lmds-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lmds-card-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes lmds-feat-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes lmds-shine-sweep {
  from {
    left: -120%;
  }
  to {
    left: 140%;
  }
}

@keyframes lmds-icon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes lmds-icon-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(61, 139, 255, 0.2);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 22px rgba(61, 139, 255, 0.45);
  }
}

@keyframes lmds-pop-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.2),
      0 0 22px rgba(61, 139, 255, 0.18);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.45),
      0 0 36px rgba(61, 139, 255, 0.35);
  }
}

@keyframes lmds-ribbon-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes lmds-cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(61, 139, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 28px rgba(61, 139, 255, 0.7);
  }
}

@keyframes lmds-cta-shine {
  0%,
  55% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes lmds-title-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 1280px) {
  .lmds-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lmds-pricing-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .lmds-pricing-grid::-webkit-scrollbar {
    display: none;
  }
  .lmds-pricing-card {
    flex: 0 0 min(82vw, 300px);
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmds-home-offers *,
  .lmds-home-offers *::before,
  .lmds-home-offers *::after {
    animation: none !important;
    transition: none !important;
  }
  .lmds-pricing-card,
  .lmds-offers-head,
  .lmds-pricing-features li {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}


/* Placement sous le lecteur — largeur = colonne stream uniquement */
body.empire-match-page .lmds-home-offers {
  margin: 0;
  padding: 0.35rem 0 0.4rem;
  font-size: 14px;
  transform: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.empire-match-page .lmds-offers-head {
  margin-bottom: 1.15rem;
}

body.empire-match-page .lmds-offers-heading {
  font-size: 1.05rem;
  font-weight: 650;
  color: #f4f7ff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  animation: none;
}

body.empire-match-page .lmds-offers-sub {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

body.empire-match-page .lmds-pricing-grid {
  gap: 12px;
  max-width: none;
  width: 100%;
}

body.empire-match-page .lmds-pricing-card {
  min-height: 0;
  padding: 16px 14px 14px;
  border-radius: 12px;
}

body.empire-match-page .lmds-pricing-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}

body.empire-match-page .lmds-pricing-icon svg {
  width: 15px;
  height: 15px;
}

body.empire-match-page .lmds-pricing-badge {
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.5rem;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.empire-match-page .lmds-pricing-card h3 {
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 0.15rem;
}

body.empire-match-page .lmds-pricing-desc {
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
}

body.empire-match-page .lmds-pricing-price {
  margin-bottom: 0.85rem;
}

body.empire-match-page .lmds-pricing-amount {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.empire-match-page .lmds-pricing-euro {
  font-size: 0.9rem;
  font-weight: 600;
}

body.empire-match-page .lmds-pricing-features {
  gap: 0.55rem;
  margin-bottom: 1.05rem;
  font-size: 0.8rem;
}

body.empire-match-page .lmds-check-icon {
  width: 14px;
  height: 14px;
}

body.empire-match-page .lmds-pricing-ribbon {
  height: 24px;
  line-height: 14px;
  padding: 5px 12px;
  font-size: 9px;
  border-radius: 13px 13px 0 0;
}

body.empire-match-page .lmds-pricing-pop-inner {
  padding: 14px 16px 16px;
}

body.empire-match-page .lmds-btn-soft,
body.empire-match-page .lmds-btn-glow {
  min-height: 40px;
  padding: 11px 12px;
  font-size: 0.82rem;
  border-radius: 10px;
}

body.empire-match-page .lmds-pricing-card:hover {
  transform: translateY(-4px) scale(1.01);
}

body.empire-match-page .lmds-pricing-pop:hover {
  transform: translateY(-5px) scale(1.015);
}

@media (max-width: 1023px) {
  body.empire-match-page .lmds-home-offers {
    display: none !important;
  }
}

/* Bannière fallback logos domicile / extérieur */
.l1-live-card .card-background.l1-dual-banner,
.l1-dual-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, #0b1f3a 0%, #132a4a 45%, #1a1030 100%);
  box-sizing: border-box;
  padding: 18px;
}
.l1-dual-banner__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.l1-dual-banner__vs {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.l1-dual-banner__ph {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.l1-dual-banner--overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(135deg, #0b1f3a 0%, #132a4a 45%, #1a1030 100%);
}
.l1-dual-banner--overlay .l1-dual-banner__logo {
  width: 88px;
  height: 88px;
}

/* —— Layout PPV (ppvs.pk live page) —— */
html:has(body.empire-match-ppv),
body.empire-match-ppv {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.empire-match-ppv {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  --ppv-chat-w: min(460px, 36vw);
  --ppv-header-h: 56px;
  --ppv-meta-h: 88px;
  --background-color: transparent;
}

/* UNE seule bannière plein écran — nav / chat / barre collent dessus */
body.empire-match-ppv .empire-match-bg,
body.empire-match-ppv #empire-match-bg {
  display: block !important;
  z-index: 0 !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body.empire-match-ppv .empire-match-bg::after,
body.empire-match-ppv #empire-match-bg::after {
  background: rgba(0, 0, 0, 0.62) !important;
}

body.empire-match-ppv,
body.empire-match-ppv.empire-match-page {
  background: transparent !important;
  background-color: transparent !important;
}

body.empire-match-ppv .footer {
  display: none !important;
}

body.empire-match-ppv .topbar,
body.empire-match-ppv .topbar.full-topbar {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: var(--ppv-header-h);
  height: var(--ppv-header-h);
}

body.empire-match-ppv.empire-nav-has-banner .topbar,
body.empire-match-ppv.empire-nav-has-banner .topbar.full-topbar {
  background: transparent !important;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Viewport lock : tout tient sans molette */
body.empire-match-ppv #empire-match-root {
  position: fixed !important;
  top: var(--ppv-header-h) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  z-index: 40 !important;
}

body.empire-match-ppv .app-container,
body.empire-match-ppv #main-content-wrapper,
body.empire-match-ppv .chrome {
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

body.empire-match-ppv .empire-float-close {
  display: none !important;
}

.empire-stream--ppv {
  background: transparent;
  color: #fff;
  height: 100%;
  min-height: 0;
}

.ppv-live {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ppv-chat-w);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "main chat";
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 0;
  background: transparent;
  gap: 0;
  column-gap: 0;
  row-gap: 0;
}

/* Colonne flux : player 16:9 + barre Kayou dessous */
.ppv-live__main {
  grid-area: main;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

.ppv-live__stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: stretch;
  overflow: hidden;
  background: transparent;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
}

/*
 * 16:9 pleine largeur (colle au chat) — pas de zoom.
 * Bandes noires éventuelles = haut/bas du stage, pas entre flux et chat.
 */
.empire-stream--ppv .empire-stream__player {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: #000;
  overflow: hidden;
  flex: 0 1 auto;
}

.empire-stream--ppv .empire-stream__iframe,
.empire-stream--ppv .empire-stream__jw,
.empire-stream--ppv .empire-stream__clappr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  transform: none;
}

body.empire-match-ppv .empire-stream__iframe {
  pointer-events: auto !important;
  z-index: 2;
}

.empire-stream--ppv .empire-stream__player video,
.empire-stream--ppv .empire-stream__jw video {
  object-fit: contain !important;
  background: #000 !important;
}

/* Pas d’OSD LMDS — les contrôles JW viennent de l’iframe player */
body.empire-match-ppv .empire-osd {
  display: none !important;
  pointer-events: none !important;
}

/* Barre Kayou — transparente, même fond global (pas de 2e bannière) */
.ppv-live__meta.live-social-row,
.ppv-live__meta {
  position: relative;
  flex: 0 0 auto;
  left: auto;
  right: auto;
  bottom: auto;
  box-sizing: border-box;
  width: 100%;
  height: var(--ppv-meta-h);
  min-height: var(--ppv-meta-h);
  padding: 0 32px;
  margin: 0;
  background: transparent !important;
  background-color: transparent !important;
  border-top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: visible;
  font-family: Arial, Helvetica, sans-serif;
  color: #ecedee;
  z-index: 8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.ppv-live__meta::before,
.ppv-live__meta::after {
  content: none !important;
  display: none !important;
}

.ppv-live__meta > * {
  position: relative;
  z-index: 1;
}

.ppv-live__title {
  margin: 0;
  flex: 0 0 auto;
  width: min(260px, 20vw);
  min-width: 0;
  font-family: resident-primary-font, Roboto-Bold, Arial, Helvetica, sans-serif !important;
  font-size: 22px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.25;
  color: #ecedee;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase !important;
  text-shadow: none !important;
}

.ppv-live__status {
  display: none !important;
}

.ppv-live__social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 0 1 auto;
  overflow: visible;
  animation: ppv-fade-in 0.5s ease both;
}

.ppv-live__btn-wrap {
  display: inline-flex;
  overflow: visible;
  animation: ppv-slide-up 0.3s ease both;
  transition: transform 0.2s ease;
}

.ppv-live__btn-wrap:nth-child(1) {
  animation-delay: 0ms;
}
.ppv-live__btn-wrap:nth-child(2) {
  animation-delay: 60ms;
}
.ppv-live__btn-wrap:nth-child(3) {
  animation-delay: 120ms;
}

.ppv-live__btn-wrap:hover {
  transform: scale(1.08) translateY(-2px);
}

.ppv-live__btn-wrap:active {
  transform: scale(0.95);
}

.ppv-live__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 80px;
  height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.35);
  transition: all 0.5s cubic-bezier(0, 0, 0.2, 1);
  cursor: pointer;
}

.ppv-live__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ppv-live__btn-label--short {
  display: none;
}

.ppv-live__btn-label--full {
  display: inline;
}

.ppv-live__btn--discord {
  background: linear-gradient(to bottom right, #5865f2, #7289da);
}

.ppv-live__btn--discord:hover {
  background: linear-gradient(to bottom right, #4752c4, #5865f2);
  box-shadow: 0 25px 50px -12px rgba(88, 101, 242, 0.4);
}

.ppv-live__btn--x {
  background: linear-gradient(to bottom right, #171717, #404040);
}

.ppv-live__btn--x:hover {
  background: linear-gradient(to bottom right, #262626, #525252);
  box-shadow: 0 25px 50px -12px rgba(115, 115, 115, 0.4);
}

.ppv-live__btn--iptv {
  background: linear-gradient(to bottom right, #10b981, #22c55e);
}

.ppv-live__btn--iptv:hover {
  background: linear-gradient(to bottom right, #059669, #16a34a);
  box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.35);
}

/* Compteur Kayou (icône user + chiffre) — bleu, plus grand */
.ppv-live__viewers-slot {
  flex: 0 0 auto;
  width: min(260px, 20vw);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ppv-live__viewers {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: #3d8bff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  position: static !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ppv-live__viewers-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: inherit;
  fill: currentColor;
}

.ppv-live__viewers-num,
.ppv-live__viewers .empire-stream__counter-num-val,
body.empire-match-ppv #empireViewerCount,
body.empire-match-ppv #empireViewerCountTrack {
  color: #3d8bff !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1 !important;
}

@keyframes ppv-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ppv-slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ppv-live__chat {
  grid-area: chat;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow: hidden;
  box-shadow: none;
}

.ppv-live__chat::before,
.ppv-live__chat::after {
  content: none !important;
  display: none !important;
}

.ppv-live__chat > * {
  position: relative;
  z-index: 1;
}

.ppv-live__chat-body {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ppv-live__chat-body > .stream-col-chat,
.ppv-live__chat-body > .lkz-live-chat,
.ppv-live__chat-body > #streamChat,
.ppv-live__chat-body .empire-ppv-chat,
body.empire-match-ppv .ppv-live__chat .stream-col-chat,
body.empire-match-ppv .ppv-live__chat .lkz-live-chat,
body.empire-match-ppv .ppv-live__chat #streamChat,
body.empire-match-ppv .ppv-live__chat .lkz-kayou-chat {
  flex: 1 1 auto !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  align-self: stretch !important;
}

body.empire-match-ppv,
body.empire-match-ppv.empire-match-page {
  --stream-chat-w: 100% !important;
}

body.empire-match-ppv .ppv-live__chat .stream-col-chat.lkz-live-chat,
body.empire-match-ppv .ppv-live__chat .stream-col-chat.lkz-kayou-chat {
  width: 100% !important;
  max-width: none !important;
}

/* Chat nu : pas de bannière Stream Chat / promo / warn */
body.empire-match-ppv .ppv-live__chat .lkz-chat-head,
body.empire-match-ppv .ppv-live__chat .lkz-kayou-chat .lkz-chat-head,
body.empire-match-ppv .ppv-live__chat .stream-col-chat .lkz-chat-head,
body.empire-match-ppv .ppv-live__chat .lkz-chat-promo,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-head,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-kayou-chat .lkz-chat-head,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-promo,
body.empire-match-ppv .ppv-live__chat-head,
body.empire-match-ppv .ppv-live__chat-warn,
body.empire-match-ppv .ppv-live__chat .lkz-chat-compose-footer__meta,
body.empire-match-page.empire-match-ppv .lkz-kayou-chat > .lkz-chat-head,
body.empire-match-page.empire-match-ppv .stream-col-chat.lkz-live-chat > .lkz-chat-head {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* GIF visible dans le compose PPV (desktop + mobile) */
body.empire-match-ppv .ppv-live__chat .lkz-chat-compose-footer__left,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-compose-footer__left,
body.empire-match-ppv .ppv-live__chat .lkz-chat-gif-wrap,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-gif-wrap {
  display: inline-flex !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: auto !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  position: relative !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-gif-btn,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-gif-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  height: 40px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ecedee !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  pointer-events: auto !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-gif-panel:not([hidden]),
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-gif-panel:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-messages {
  background: transparent !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-compose,
body.empire-match-ppv .ppv-live__chat .lkz-kayou-chat .lkz-chat-compose {
  position: relative !important;
  margin: 0 !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding: 10px 12px !important;
  flex: 0 0 auto !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  z-index: 2;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-compose::before,
body.empire-match-ppv .ppv-live__chat .lkz-chat-compose::after {
  content: none !important;
  display: none !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-compose > * {
  position: relative;
  z-index: 1;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-send-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-input-wrap {
  position: relative !important;
  flex: 1 1 auto !important;
  background: transparent !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-input,
body.empire-match-ppv .ppv-live__chat .lkz-chat-name,
body.empire-match-ppv .ppv-live__chat .lkz-kayou-chat .lkz-chat-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  min-height: 46px !important;
  padding: 12px 14px !important;
  color: #f4f4f5 !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-input:focus,
body.empire-match-ppv .ppv-live__chat .lkz-chat-name:focus,
body.empire-match-ppv .ppv-live__chat .lkz-kayou-chat .lkz-chat-input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.7) !important;
}

/* Bouton Envoyer — simple */
body.empire-match-ppv .ppv-live__chat .lkz-chat-send,
body.empire-match-ppv .ppv-live__chat .lkz-kayou-chat .lkz-chat-send,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-send,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-kayou-chat .lkz-chat-send {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #006fee !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 0 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background 0.12s ease !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-send::before,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-send::before {
  content: "" !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  background: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3.4 20.6 20.85 12.4a.6.6 0 0 0 0-1.08L3.4 3.12a.6.6 0 0 0-.86.67l2.2 7.36a.6.6 0 0 0 .46.42l8.1 1.25-8.1 1.25a.6.6 0 0 0-.46.42l-2.2 7.36a.6.6 0 0 0 .86.67Z'/%3E%3C/svg%3E")
    center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3.4 20.6 20.85 12.4a.6.6 0 0 0 0-1.08L3.4 3.12a.6.6 0 0 0-.86.67l2.2 7.36a.6.6 0 0 0 .46.42l8.1 1.25-8.1 1.25a.6.6 0 0 0-.46.42l-2.2 7.36a.6.6 0 0 0 .86.67Z'/%3E%3C/svg%3E")
    center / contain no-repeat !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-send:hover:not(:disabled),
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-send:hover:not(:disabled) {
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
  background: #005bc4 !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-send:active:not(:disabled),
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-send:active:not(:disabled) {
  transform: none !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-send:disabled,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-send:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-send svg,
body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-send svg {
  display: none !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-messages {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  background: transparent !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-chat-hint {
  margin: 0 0 6px !important;
  padding: 0 2px !important;
}

body.empire-match-ppv .ppv-live__chat .lkz-live-chat,
body.empire-match-ppv .ppv-live__chat #streamChat {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

/* Aucun trou noir sous le chat / la page */
body.empire-match-ppv .empire-stream--ppv,
body.empire-match-ppv .ppv-live {
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
}

.ppv-live__chat-mobile {
  display: none;
}

@media (max-width: 1023px) {
  body.empire-match-ppv {
    --ppv-header-h: 52px;
    --ppv-meta-h: auto;
    overflow: hidden !important;
  }

  body.empire-match-ppv #empire-match-root {
    top: var(--ppv-header-h) !important;
    height: calc(100vh - var(--ppv-header-h)) !important;
    height: calc(100dvh - var(--ppv-header-h)) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.empire-match-ppv .app-container,
  body.empire-match-ppv #main-content-wrapper,
  body.empire-match-ppv .chrome,
  body.empire-match-ppv .empire-stream--ppv,
  body.empire-match-ppv .ppv-live {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .ppv-live {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-template-areas: none;
    min-height: 0;
    overflow: hidden;
  }

  /* Player 16:9 plein largeur — sans écraser la barre / le chat */
  .ppv-live__main {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    background: transparent;
  }

  .ppv-live__stage {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(56vh, calc(100dvh - var(--ppv-header-h) - 170px));
    background: #000;
  }

  .empire-stream--ppv .empire-stream__player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }

  .empire-stream--ppv .empire-stream__iframe {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: none;
  }

  .ppv-live__chat {
    display: none !important;
  }

  /* Barre Kayou mobile : uniquement les 3 réseaux, alignés */
  .ppv-live__meta.live-social-row,
  .ppv-live__meta {
    position: static !important;
    flex: 0 0 auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: stretch;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 12px !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  .ppv-live__title {
    display: none !important;
  }

  /* Compteur flottant haut-gauche du flux (transparent, mobile only) */
  .ppv-live__viewers-slot {
    display: flex !important;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 40;
    width: auto !important;
    margin: 0 !important;
    justify-content: flex-start;
    align-items: center;
    pointer-events: none;
  }

  .ppv-live__viewers {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 5px 10px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, 0.48) !important;
    background-color: rgba(0, 0, 0, 0.48) !important;
    box-shadow: none !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: none !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .ppv-live__viewers-ico {
    width: 14px !important;
    height: 14px !important;
    filter: none !important;
    color: #3d8bff !important;
  }

  .ppv-live__viewers-ico path {
    fill: #3d8bff !important;
  }

  .ppv-live__viewers-num,
  .ppv-live__viewers .empire-stream__counter-num-val {
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .ppv-live__social {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
    flex: 1 1 auto !important;
    overflow: visible;
    margin: 0 !important;
  }

  .ppv-live__btn-wrap {
    width: 100%;
    display: block;
    animation: none !important;
  }

  .ppv-live__btn-wrap:hover {
    transform: none;
  }

  .ppv-live__btn {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 6px;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  }

  .ppv-live__btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  .ppv-live__btn-label--full {
    display: none !important;
  }

  .ppv-live__btn-label--short {
    display: inline !important;
  }

  .ppv-live__btn--discord span:not(.ppv-live__btn-label),
  .ppv-live__btn--x span:not(.ppv-live__btn-label) {
    display: inline !important;
    font-size: 11px;
  }

  /* Chat = reste de l’écran, scroll interne, même bannière */
  .ppv-live__chat-mobile {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent !important;
    overflow: hidden;
  }

  .ppv-live__chat-mobile.is-ready {
    display: flex;
    flex-direction: column;
  }

  body.empire-match-ppv .ppv-live__chat-mobile .lkz-live-chat,
  body.empire-match-ppv .ppv-live__chat-mobile .lkz-kayou-chat,
  body.empire-match-ppv .ppv-live__chat-mobile #streamChat,
  body.empire-match-ppv .ppv-live__chat-mobile .stream-col-chat {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: transparent !important;
    padding: 8px 10px !important;
  }

  body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-compose {
    flex: 0 0 auto !important;
    padding: 8px 10px !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    background: transparent !important;
  }

  body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-input,
  body.empire-match-ppv .ppv-live__chat-mobile .lkz-kayou-chat .lkz-chat-input {
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 16px !important; /* anti-zoom iOS */
  }

  body.empire-match-ppv .ppv-live__chat-mobile .lkz-chat-send,
  body.empire-match-ppv .ppv-live__chat-mobile .lkz-kayou-chat .lkz-chat-send {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  body.empire-match-ppv .topbar,
  body.empire-match-ppv .topbar.full-topbar {
    min-height: var(--ppv-header-h);
    height: var(--ppv-header-h);
  }
}
/* ========== DAZN watch page (fond noir, nav inchangée) ========== */
body.empire-match-dazn {
  background: #000 !important;
  background-color: #000 !important;
  background-image: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
}

body.empire-match-dazn .topbar,
body.empire-match-dazn .topbar.full-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2147483000 !important;
  background: #000 !important;
  background-color: #000 !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.empire-match-dazn .topbar__bg {
  display: block !important;
  opacity: 1 !important;
  background: #000 !important;
}

body.empire-match-dazn #lmds-particles,
body.empire-match-dazn .section-custom-background,
body.empire-match-dazn .section-custom-background__image,
body.empire-match-dazn .section-custom-background__gradients,
body.empire-match-dazn .footer,
body.empire-match-dazn .lmds-offers,
body.empire-match-dazn .empire-offers {
  display: none !important;
}

body.empire-match-dazn #empire-match-root {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  padding: var(--empire-nav-h, 68px) 0 48px;
  margin: 0;
  background: #000;
  color: #fff;
}

.empire-stream--dazn {
  width: 100%;
  background: #000;
}

.dazn-watch {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 20px 32px;
  box-sizing: border-box;
}

.dazn-watch__player-wrap {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.empire-stream--dazn .dazn-watch__player.empire-stream__player {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #000;
}

.empire-stream--dazn .empire-stream__iframe,
.empire-stream--dazn .empire-stream__jw,
.empire-stream--dazn .empire-stream__clappr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.empire-osd--dazn .empire-osd__scrubber,
.empire-osd--dazn [data-osd="back"],
.empire-osd--dazn [data-osd="play"],
.empire-osd--dazn [data-osd="fwd"],
.empire-osd--dazn [data-osd="pip"] {
  display: none !important;
}

.dazn-watch__body {
  padding-top: 18px;
}

.dazn-watch__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dazn-watch__meta-main {
  min-width: 0;
  flex: 1 1 280px;
}

.dazn-watch__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dazn-watch__live {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 2px;
  background: #e10600;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dazn-watch__eyebrow-sep {
  opacity: 0.5;
}

.dazn-watch__title {
  margin: 0 0 10px;
  color: #fff;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.dazn-watch__sub {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.dazn-watch__viewers {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75) !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.dazn-watch__comp {
  color: rgba(255, 255, 255, 0.55);
}

.dazn-watch__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dazn-watch__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dazn-watch__btn:hover {
  background: #2a2a2a;
}

.dazn-watch__btn--like.is-liked {
  background: rgba(225, 6, 0, 0.18);
  color: #ff4d4d;
}

.dazn-watch__btn--share.is-copied span::after {
  content: " ?";
}

.dazn-watch__comments {
  margin: 0 0 36px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0a0a0a;
}

.dazn-watch__comments h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.dazn-watch__comments-soon {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
}

.dazn-watch__rail {
  margin: 0;
}

.dazn-watch__rail-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.dazn-watch__rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dazn-watch__rail-track .dazn-rail__item,
.dazn-watch__rail-track .content-pager__item {
  flex: 0 0 auto;
  width: min(280px, 72vw);
  scroll-snap-align: start;
}

.dazn-watch__rail-track .regular-card,
.dazn-watch__rail-track .card-wrapper,
.dazn-watch__rail-track .card-base,
.dazn-watch__rail-track .card-base a {
  width: 100%;
  display: block;
}

.dazn-watch__rail-track .card-base,
.dazn-watch__rail-track .card-base--live {
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
}

.dazn-watch__rail-track .card-background,
.dazn-watch__rail-track .l1-dual-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-radius: 4px;
}

.dazn-watch__rail-track .card-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dazn-watch__rail-track .card-title {
  margin-top: 8px;
}

.dazn-watch__rail-track .card-title__title {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.dazn-watch__rail-track .badge-live,
.dazn-watch__rail-track .card-meta__live {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 2px;
  background: #e10600;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dazn-watch__empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .dazn-watch {
    padding: 0 12px 28px;
  }
  .dazn-watch__meta {
    gap: 14px;
  }
  .dazn-watch__actions {
    width: 100%;
  }
  .dazn-watch__btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
