@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;
}

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, Futura, "Arial Black", Arial, 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;
}

.empire-osd.is-idle {
  pointer-events: auto;
  cursor: none;
}
.empire-osd.is-idle .empire-osd__top,
.empire-osd.is-idle .empire-osd__bottom {
  opacity: 0;
  pointer-events: none;
}
.empire-osd.is-controls {
  pointer-events: none;
}
.empire-osd.is-controls .empire-osd__top,
.empire-osd.is-controls .empire-osd__bottom {
  opacity: 1;
  pointer-events: auto;
}

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

/* 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 {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  object-fit: contain;
  margin-top: 0;
  margin-right: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}
.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 italic 700 + flèche */
.empire-osd__banner {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  max-width: 100%;
  color: #fff;
  font-family: var(--cplus-title);
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 22px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
  pointer-events: auto;
}
.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 = Hind 16 / #bdbdbd */
.empire-osd__meta {
  display: block !important;
  color: #bdbdbd;
  font-family: var(--cplus-ui);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20px;
  margin-top: 4px;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 699px) {
  .empire-osd__top {
    padding: 24px 24px 80px;
  }
  .empire-osd__comp-logo,
  .empire-osd__ch-logo--side {
    width: 60px;
    height: 45px;
  }
  .empire-osd__banner {
    font-size: 16px;
    line-height: 20px;
  }
  .empire-osd__meta {
    font-size: 14px;
    line-height: 18px;
  }
}

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

/* Volume : icône mute seule (plus de barre grise à côté) */
.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 — f79ZCa_controlsWrapBottom */
.empire-osd__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  /* padding-bottom fixe = position de la barre de progression */
  padding: 90px 28px 32px;
  background: linear-gradient(
    transparent 8%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7)
  );
  transition: opacity 0.25s ease;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  /* gap = boutons / barre (barre reste en bas via padding) */
  gap: 22px;
  justify-content: flex-end;
}

/* 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;
}

/* LIVE Canal+ — à côté de play / ±10s */
.empire-osd__live {
  pointer-events: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  font-family: var(--cplus-ui);
  opacity: 1 !important;
  visibility: visible !important;
}
.empire-osd__live span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 22px;
  padding: 0 8px;
  background: var(--cplus-live, #d80c2e);
  border-radius: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empire-osd__scrubber {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 0;
}

.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;
  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: 70px 16px 24px;
    gap: 18px;
  }
  .empire-osd__controls {
    transform: translateY(-3px);
  }

/* 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;
  }
}

.empire-osd__loader {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.empire-osd__spinner {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  border-radius: 50%;
  animation: empire-osd-spin 0.75s linear infinite;
}

@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: 400 !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: 400 !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;
}

/* 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;
  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__top,
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;
}

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 : flux plein écran, chat transparent collé par-dessus à droite */
body.empire-chat-open.empire-match-immersive .empire-stream__player {
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  transition: none !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: transparent;
}

.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: transparent;
  background-color: transparent;
  background-image: none;
  border: 0;
  border-left: 0;
  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: transparent;
}

.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: transparent !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;
}

/* Contenu chat transparent */
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: transparent !important;
  background-color: transparent !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: rgba(0, 0, 0, 0.28) !important;
  background-color: rgba(0, 0, 0, 0.28) !important;
  background-image: none !important;
  border: 0 !important;
  border-left: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.05) !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 */
.empire-chat-drawer .lkz-chat-compose-footer__left,
.empire-chat-drawer .lkz-chat-compose-footer__meta,
.empire-chat-drawer .lkz-chat-settings,
.empire-chat-drawer .lkz-chat-gif-wrap {
  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: 9999px !important;
  min-width: 52px !important;
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 0 !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;
}

/* Pas de chrome Clappr/JW / volume natif (barre grise à côté du son) */
.empire-stream__clappr .media-control,
.empire-stream__clappr .media-control-layer,
.empire-stream__clappr .media-control-background,
.empire-stream__clappr .drawer-container,
.empire-stream__jw .jw-controls,
.empire-stream__jw .jw-controlbar,
.empire-stream__jw .jw-display,
.empire-stream__jw .jw-slider-volume,
.empire-stream__jw .jw-overlay,
.empire-stream__jw .jw-icon-volume,
.empire-stream__player .jw-slider-volume,
.empire-stream__player .media-control,
.empire-osd__vol-rail,
.empire-osd__vol-range,
.empire-osd__vol-tip,
.empire-osd input[data-osd="volume"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* 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);
}

.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;
}

.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: 42px !important;
  min-width: 42px !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: #3b82f6 !important;
  color: #061018 !important;
  font-size: 0 !important;
  box-shadow: none !important;
}

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

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

body.empire-match-page .empire-ppv-chat:not(.empire-drawer-chat) .lkz-chat-gif-wrap,
body.empire-match-page .empire-ppv-chat:not(.empire-drawer-chat) .lkz-chat-gif-btn,
body.empire-match-page .empire-ppv-chat:not(.empire-drawer-chat) .lkz-chat-gif-panel {
  display: none !important;
}

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;
}