:root {
  --primary: 270 90% 65%;
  --primary-rgb: 168, 85, 247;
  --lkz-page-max: 1600px;
  --lkz-page-pad-x: clamp(1.25rem, 3vw, 2rem);
  --stream-channels-w: 260px;
  --stream-channels-w-collapsed: 52px;
  --stream-chat-w: clamp(260px, 20vw, 320px);
  --stream-embed-zoom: 1;
  --lkz-cdm-bg: url("https://images.bfmtv.com/gLHY7AizJooVrHOQVXaPvtlRhaw=/0x33:2048x1185/images/Le-trophee-de-la-Coupe-du-monde-lors-du-tirage-au-sort-des-barrages-du-Mondial-2026-le-20-novembre-2025-2195075.jpg");
  --lkz-stream-bg: url("https://i.eurosport.com/2023/10/04/3797652-77242968-2560-1440.jpg");
  --lkz-page-bg-gradient: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.5) 45%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

*, *::before, *::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  min-height: 100vh;
  color: #fff;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ── Scène d'arrière-plan (canvas particules) ── */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

body.lkz-particles-mono,
body.lkz-particles-mono .scene {
  background: #000;
}

/* Fond noir + étoiles violettes (défaut particules) */
body:has(.scene),
body:has(.scene) .scene {
  background: #000;
}

/* ── Fond photo CDM 2026 (index + programme + iptv + chaînes) ── */
body.lkz-index-page,
body.lkz-programme-page,
body.lkz-iptv-page,
body.lkz-channels-page {
  background-color: #000;
  background-image: var(--lkz-cdm-bg);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.lkz-chaine-watch > .scene,

body.lkz-chaine-watch > .cw-nav,
body.lkz-chaine-watch > .cw-shell {
  position: relative;
  z-index: 1;
}


/* Fond stream uniquement */
body.stream-body {
  background-color: #000;
  background-image: none;
}

body.stream-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--lkz-stream-bg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.lkz-index-page::before,
body.lkz-programme-page::before,
body.lkz-iptv-page::before,
body.lkz-channels-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--lkz-page-bg-gradient);
}

/* Stream : photo CDM seule, sans voile noir */
body.stream-body::before {
  content: none;
  display: none;
}

body.lkz-index-page nav,
body.lkz-index-page main,
body.lkz-index-page footer,
body.stream-body > .site-nav,
body.stream-body > .stream-shell,
body.lkz-programme-page > .site-nav,
body.lkz-programme-page > main,
body.lkz-iptv-page > .site-nav,
body.lkz-iptv-page > main,
body.lkz-channels-page > .site-nav,
body.lkz-channels-page > main {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Tout le contenu doit passer au-dessus du canvas */
nav, main, footer, #playerModal {
  position: relative;
  z-index: 1;
}

main {
  overflow-x: clip;
  max-width: 100%;
}
nav { z-index: 30; }
#playerModal { z-index: 50; }

/* ── Barre de tâche / Header ── */
.site-nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(1.5rem, 5vw, 4rem);
  width: 100%;
  max-width: var(--lkz-page-max);
  margin: 0 auto;
  padding: 1.5rem var(--lkz-page-pad-x) 0.6rem;
  min-height: 56px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
  min-width: 0;
  margin-left: 0;
}

.wordmark-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.wordmark-link:hover .wordmark { opacity: 0.92; }
.wordmark-link:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 4px;
  border-radius: 4px;
}

.wordmark {
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.wordmark .accent {
  color: hsl(var(--primary));
  text-shadow: 0 0 26px hsla(var(--primary) / 0.45);
}

.nav-sep {
  width: 1px;
  height: 1.7rem;
  flex-shrink: 0;
  align-self: center;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 20%,
    hsla(var(--primary) / 0.4) 50%,
    rgba(255, 255, 255, 0.12) 80%,
    transparent 100%
  );
}

.nav-main {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: clamp(1.3rem, 4vw, 2.25rem);
  min-width: 0;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, text-shadow 0.15s;
}
.nav-link:hover { color: hsl(270 100% 80%); }
.nav-link--active {
  color: hsl(var(--primary));
  text-shadow: 0 0 20px hsla(var(--primary) / 0.4);
}
.nav-link:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: end;
  flex-shrink: 0;
  margin-right: 0;
}
.nav-right > .nav-sep { margin-right: 0.3rem; }

.cta-iptv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1.5px solid hsl(var(--primary));
  background: transparent;
  color: hsl(270 100% 80%);
  font-size: clamp(0.625rem, 1.5vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
  font-family: inherit;
  cursor: pointer;
}
.cta-iptv:hover {
  border-color: hsl(270 100% 80%);
  color: #fff;
  background: hsla(var(--primary) / 0.14);
  box-shadow: 0 0 24px hsla(var(--primary) / 0.22);
}
.cta-iptv__short { display: none; }

.social-sq {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(206, 167, 255, 0.2);
  background: rgba(12, 10, 18, 0.85);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.social-sq:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
  background: hsla(var(--primary) / 0.1);
}
.social-sq svg { display: block; }

/* Footer */
.footer-blur {
  background: hsla(0, 0%, 6.7%, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

@media (max-width: 720px) {
  .site-nav {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    min-height: 48px;
  }
  .nav-brand { gap: 0.3rem; flex: 0 1 auto; }
  .nav-brand .nav-sep,
  .nav-right > .nav-sep { display: none; }
  .nav-main {
    flex: 1 1 auto;
    gap: clamp(0.4rem, 2.5vw, 1rem);
  }
  .nav-link {
    font-size: clamp(0.6rem, 2.6vw, 0.74rem);
    letter-spacing: 0.06em;
  }
  .nav-right { gap: 0.3rem; }
  .cta-iptv__long { display: none; }
  .cta-iptv__short { display: inline; }
  .cta-iptv {
    padding: 0.4rem 0.55rem;
    font-size: clamp(0.62rem, 2.6vw, 0.74rem);
  }
  .social-sq { width: 34px; height: 34px; }
  .social-sq svg { width: 15px; height: 15px; }
}

.btn-press { transition: transform 0.15s; }
.btn-press:active { transform: scale(0.96); }

/* ── Animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.animate-fade-up {
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Hero central : gros wordmark ── */
.hero-center {
  text-align: center;
  padding: 0.75rem 0.5rem 1rem;
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-wordmark {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #fff;
}
.hero-wordmark .accent {
  color: hsl(var(--primary));
  text-shadow: 0 0 42px hsla(var(--primary) / 0.55);
}

.hero-sub {
  margin: 1rem 0 0;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: hsl(0 0% 70%);
}

@keyframes pulse-dot { 50% { opacity: 0.5; } }

/* ── Grille de cartes (format référence 350×210) ── */
:root {
  --lkz-card-w: 350px;
  --lkz-card-h: 210px;
}

.lkz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.lkz-grid:has(.lkz-card:only-child) {
  grid-template-columns: minmax(0, min(var(--lkz-card-w), 100%));
  justify-content: start;
}

@media (max-width: 639px) {
  /* Mobile : carrousel horizontal (cartes en ligne, scroll latéral) */
  .lkz-grid,
  .lkz-grid:has(.lkz-card:only-child) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .lkz-grid::-webkit-scrollbar {
    display: none;
  }

  .lkz-grid .lkz-card.card-match {
    flex: 0 0 clamp(220px, 72vw, 300px);
    width: clamp(220px, 72vw, 300px);
    max-width: clamp(220px, 72vw, 300px);
    height: auto;
    aspect-ratio: 350 / 210;
    min-height: 0;
    max-height: none;
    margin: 0;
    scroll-snap-align: start;
    border-radius: 12px;
  }

  .lkz-card .tag-time-text {
    font-size: 12px;
  }

  .lkz-card .match-title {
    font-size: 13px;
    line-height: 1.2;
  }

  .lkz-card .date-kick-row {
    font-size: 11px;
  }

  .lkz-card .info-teams-row .icone,
  .lkz-card .info-teams-row .icone-fallback {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .lkz-card .tag-time,
  .lkz-card .tag-sport {
    font-size: 10px;
    padding: 3px 8px;
  }

  .lkz-grid-shell {
    position: relative;
  }

  .lkz-grid-swipe-hint {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 6px;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding-right: 8px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
      90deg,
      transparent 0%,
      hsl(0 0% 5.1% / 0.55) 42%,
      hsl(0 0% 5.1% / 0.92) 100%
    );
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .lkz-grid-shell--end .lkz-grid-swipe-hint,
  .lkz-grid-shell--single .lkz-grid-swipe-hint {
    opacity: 0;
    visibility: hidden;
  }

  .lkz-grid-swipe-hint__chev {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    color: hsl(270 90% 72%);
    text-shadow: 0 0 12px hsl(270 90% 65% / 0.45);
    animation: lkz-swipe-nudge 1.35s ease-in-out infinite;
  }

  .lkz-grid-swipe-hint__chev--2 {
    margin-left: -5px;
    opacity: 0.55;
    animation-delay: 0.12s;
  }
}

@keyframes lkz-swipe-nudge {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.35;
  }
  50% {
    transform: translateX(5px);
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .lkz-grid-swipe-hint {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .lkz-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 1rem);
  }

  .lkz-grid:has(.lkz-card:only-child) {
    grid-template-columns: minmax(0, min(var(--lkz-card-w), 100%));
  }

  .lkz-card.card-match {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 350 / 210;
    min-height: 0;
    max-height: none;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .lkz-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.1vw, 1.25rem);
  }
}

/* ── Cartes match (format Empire Sport 350×210) ── */
.lkz-card.card-match {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  height: var(--lkz-card-h);
  min-height: var(--lkz-card-h);
  max-height: var(--lkz-card-h);
  margin: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #2f2f2f;
  border: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
  --card-tint-left-rgb: 28, 32, 38;
  --card-tint-right-rgb: 20, 24, 30;
  --card-tint-deep-rgb: 10, 10, 12;
}

.lkz-card.card-match:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 44px hsla(var(--primary) / 0.22),
    0 0 48px hsla(var(--primary) / 0.14);
}

.lkz-card .img-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  filter: brightness(1.06) saturate(1.04);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.lkz-card .img-banner-fallback {
  background: linear-gradient(135deg, #1a1228 0%, #0a0a0a 55%, #101820 100%);
}

.lkz-card:hover .img-banner:not(.img-banner-fallback) {
  transform: scale(1.03);
}

.lkz-card .overlay-opacity {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.lkz-card .overlay-down {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 72%,
    rgba(0, 0, 0, 0.78) 100%
  );
  z-index: 0;
}

.lkz-card .tags-card {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 3px;
  padding: 4px;
  box-sizing: border-box;
  pointer-events: none;
}

.lkz-card .tag-time,
.lkz-card .tag-sport {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 30px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lkz-card .tag-time {
  background: hsla(0, 0%, 68%, 0.2);
  padding: 4px 8px;
}

.lkz-card .tag-sport {
  background: hsla(0, 0%, 48%, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 6px 12px;
}

.lkz-card .tag-time-text {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.lkz-card .tag-sport-text {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  text-transform: capitalize;
}

.lkz-card .tag-bullet {
  display: block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
}

.lkz-card .tag-bullet.green {
  background-color: #1ab338;
  animation: pulse-dot 1s linear infinite alternate;
}

.lkz-card .tag-bullet.violet {
  background-color: hsl(var(--primary));
  box-shadow: 0 0 8px hsla(var(--primary) / 0.55);
  animation: pulse-dot 1s linear infinite alternate;
}

.lkz-card .tag-bullet.gray {
  background-color: hsl(0 0% 55%);
}

.lkz-card .info {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  pointer-events: none;
}

.lkz-card .info-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.lkz-card .info-teams-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.lkz-card .info-teams-row .icone {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
}

.lkz-card .info-teams-row .icone-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
}

.lkz-card .vs-label {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.lkz-card .info-meta-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.lkz-card .icone-min {
  width: 35px;
  height: 35px;
  min-width: 20px;
  margin-right: 8px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.85));
}

.lkz-card .date-match {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.lkz-card .match-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.lkz-card .date-kick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.lkz-card .date-kick-row p {
  margin: 0;
  white-space: nowrap;
}

.lkz-card .info-simple {
  position: relative;
  z-index: 1;
  max-width: 70%;
}

.lkz-card .event-title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lkz-card .event-sub {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lkz-card[data-phase="finished"] .img-banner:not(.img-banner-fallback) {
  filter: grayscale(0.5) brightness(0.72);
}

.lkz-card[data-phase="finished"]:hover {
  transform: none;
  box-shadow: none;
}

.lkz-card[data-phase="finished"]:hover .img-banner:not(.img-banner-fallback) {
  transform: none;
}

/* Status dot (hors cartes) */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot--live     { background: hsl(140 80% 50%); animation: pulse-dot 1.2s ease infinite; box-shadow: 0 0 8px hsl(140 80% 50% / 0.6); }
.status-dot--soon     { background: #f59e0b; animation: pulse-dot 1.2s ease infinite; box-shadow: 0 0 8px rgba(245, 158, 11, 0.55); }
.status-dot--finished { background: hsl(0 0% 55%); }
.status-dot--white    { background: #fff; }
.status-dot--primary  { background: hsl(var(--primary)); }

/* ── Page stream (layout annecy-mont : lecteur + barre noire | chat long) ── */
.stream-body {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stream-body > .site-nav,
.stream-body > .stream-shell {
  position: relative;
  z-index: 1;
  background: transparent;
  min-height: 0;
}

.stream-body > .site-nav {
  flex: 0 0 auto;
}

.stream-body > .stream-shell {
  flex: 1 1 auto;
}

/* Fond CDM unique — sur body.stream-body (fixed), pas de couche séparée chat/shell */
.stream-body > .stream-shell::before {
  content: none;
  display: none;
}

.stream-body > .stream-shell > * {
  position: relative;
  z-index: 1;
  background: transparent;
}

.stream-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stream-chat-w);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "stream chat"
    "footer chat";
  column-gap: 0;
  row-gap: 0;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

/* Panneau chaînes — desktop uniquement (≥1101px) */
@media (min-width: 1101px) {
  .stream-shell {
    grid-template-columns: var(--stream-channels-w) minmax(0, 1fr) var(--stream-chat-w);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "channels stream chat"
      "channels footer chat";
  }
  .stream-shell.is-channels-collapsed {
    grid-template-columns: var(--stream-channels-w-collapsed) minmax(0, 1fr) var(--stream-chat-w);
  }

  .stream-col-chat.lkz-live-chat {
    grid-row: 1 / -1;
  }

  .stream-body--tv-channel .stream-shell {
    grid-template-columns: 272px minmax(0, 1fr) var(--stream-chat-w);
  }
}

.stream-col-channels {
  display: none;
}

@media (min-width: 1101px) {
  .stream-col-channels {
    grid-area: channels;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
}

.stream-channels-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px 12px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-channels-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: hsl(0 0% 96%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.stream-channels-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: hsl(0 0% 75%);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.stream-channels-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.stream-channels-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 0 10px;
  scrollbar-width: thin;
  scrollbar-color: hsl(0 0% 22%) transparent;
}

.stream-channels-empty {
  margin: 0;
  padding: 20px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: hsl(0 0% 48%);
  text-align: center;
}

.stream-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.stream-channel-item:hover {
  background: rgba(255, 255, 255, 0.07);
}
.stream-channel-item.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.stream-channel-item__logo {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

.stream-channel-item__logo--cover {
  object-fit: cover;
  border-radius: 6px;
  padding: 0;
}

.stream-channel-item__logo--transparent {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0;
  object-fit: contain;
}

.stream-channel-item__logo--placeholder {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
}

.stream-channel-item__body {
  min-width: 0;
  flex: 1;
}

.stream-channel-item__teams {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-channel-item__sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  color: hsl(0 0% 78%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-channel-item__stats {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
}

.stream-channel-item__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
}

.stream-channel-item__viewers {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: hsl(0 0% 96%);
  min-width: 1.2em;
  text-align: right;
}

@media (min-width: 1101px) {
  .stream-shell.is-channels-collapsed .stream-channels-title,
  .stream-shell.is-channels-collapsed .stream-channels-list {
    display: none;
  }
  .stream-shell.is-channels-collapsed .stream-channels-head {
    justify-content: center;
    padding: 14px 8px;
  }
  .stream-shell.is-channels-collapsed .stream-channels-toggle svg {
    transform: rotate(180deg);
  }
}

.stream-col-center {
  grid-area: stream;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  align-self: stretch;
  background: transparent;
}

.stream-player-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  border-radius: 0;
}


.stream-jw-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000;
}
.stream-jw-player[hidden] {
  display: none !important;
}
#jwplayer-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stream-player-wrap .jwplayer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  padding-top: 0 !important;
}

.stream-player-wrap .jwplayer.jw-flag-aspect-mode {
  height: 100% !important;
  padding-top: 0 !important;
}

.stream-player-wrap .jwplayer .jw-aspect {
  display: none !important;
}

.stream-player-wrap .jwplayer video,
.stream-player-wrap .jwplayer .jw-media {
  object-fit: cover !important;
}

.stream-iframe-embed {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  touch-action: manipulation;
}
.stream-iframe-embed[hidden] {
  display: none !important;
}

.stream-hls-player {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: #000;
}
.stream-hls-player[hidden] {
  display: none !important;
}
.stream-hls-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.stream-upcoming[hidden] {
  display: none !important;
}

.stream-upcoming {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

.stream-upcoming__bg {
  position: absolute;
  inset: -24px;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(32px) brightness(0.38) saturate(0.85);
  transform: scale(1.06);
}

.stream-upcoming__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.72) 55%,
    rgba(0, 0, 0, 0.82) 100%
  );
  pointer-events: none;
}

.stream-upcoming__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.stream-upcoming__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.stream-upcoming__title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.stream-upcoming__hint {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
}

.stream-upcoming--text {
  background: #0c0c0c;
}

.stream-upcoming--text .stream-upcoming__bg {
  background-image: none !important;
  filter: none;
  transform: none;
}

.stream-upcoming--text .stream-upcoming__shade {
  background: radial-gradient(
    ellipse 80% 60% at 88% 8%,
    rgba(34, 197, 94, 0.12) 0%,
    transparent 55%
  ),
  #0c0c0c;
}

.stream-upcoming--banner-only .stream-upcoming__shade {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.72) 55%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.stream-upcoming--banner-only .stream-upcoming__bg {
  filter: blur(36px) brightness(0.28) saturate(0.75);
  transform: scale(1.08);
}

.stream-upcoming--banner-only .stream-upcoming__content {
  display: block;
}

.stream-placeholder[hidden] {
  display: none !important;
}

.stream-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: #0a0a0a;
}
.stream-placeholder__main {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.stream-player-footer {
  grid-area: footer;
  flex-shrink: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto;
  align-items: center;
  gap: 12px 16px;
  min-height: 96px;
  padding: 14px 20px 16px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}

.stream-footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  min-width: 0;
  width: 100%;
  max-width: min(520px, 52vw);
}

.stream-footer-crests {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.stream-footer-crests[hidden] {
  display: none !important;
}

.stream-footer-crest {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
}

.stream-channel-item__crests {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.stream-channel-item__logo--comp {
  width: 34px;
  height: 34px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.stream-channel-item__logo--crest {
  width: 22px;
  height: 22px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.stream-footer-viewers {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: hsl(0 0% 92%);
}

.stream-footer-viewers[hidden] {
  display: none !important;
}

.stream-footer-viewers__icon {
  display: none;
  flex-shrink: 0;
}

.stream-match-title {
  margin: 0;
  grid-column: auto;
  grid-row: auto;
  justify-self: start;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  word-break: break-word;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.95),
    0 1px 4px rgba(0, 0, 0, 0.9);
  color: #fff;
}

.stream-footer-comp {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stream-footer-comp[hidden] {
  display: none !important;
}

.stream-footer-comp__logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.stream-footer-toolbar,
.stream-footer-toolbar.stream-btn-group {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
  visibility: visible;
  opacity: 1;
}

.stream-footer-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 8px;
}

.stream-footer-sources[hidden] {
  display: none !important;
}

.stream-source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.stream-source-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.stream-source-btn.is-active {
  background: linear-gradient(135deg, hsl(270 90% 62%), hsl(285 85% 52%));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px hsl(270 90% 45% / 0.35);
}

.stream-footer-social-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.stream-footer-toolbar .stream-btn.btn-iptv {
  width: auto;
  min-width: 0;
  justify-content: center;
}

.stream-footer-user {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  flex-shrink: 0;
}
.stream-footer-user svg {
  width: 22px;
  height: 22px;
}

.stream-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-weight: 800;
  border: 1px solid transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s,
    filter 0.2s;
}
.stream-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
  z-index: 1;
  pointer-events: none;
}
.stream-btn:hover::before {
  left: 100%;
}
.stream-btn > svg,
.stream-btn > .btn-label,
.stream-btn > .stream-btn-text {
  position: relative;
  z-index: 2;
}
.stream-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px currentColor;
}
.stream-btn:active {
  transform: translateY(-1px) scale(0.98);
}
.stream-btn.stream-btn--sq {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
}
.stream-btn.stream-btn--sq svg {
  width: 18px;
  height: 18px;
}
.stream-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.stream-btn .btn-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.stream-btn-text {
  display: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.btn-discord-sm {
  background: #5865f2;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.btn-x-sm {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.btn-telegram-sm {
  background: #289cd8;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.btn-iptv-discord,
.btn-iptv-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-iptv {
  background: #12bb57;
  border-color: rgba(255, 255, 255, 0.08);
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: #ffffff;
  gap: 8px;
}
.stream-btn.btn-iptv:hover {
  background: #0fa84d;
}
.btn-iptv .btn-label {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.02em;
}
/* Chat — pleine hauteur (fond opaque seulement si pas lkz-live-chat) */
.stream-col-chat {
  grid-area: chat;
  display: flex;
  flex-direction: column;
  width: var(--stream-chat-w);
  max-width: var(--stream-chat-w);
  min-height: 0;
  min-width: 0;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
  color-scheme: dark;
  border: none;
  padding: 0;
  margin: 0;
}

.stream-col-chat:not(.lkz-live-chat) {
  background: #0a0a0c;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1100px) {
  .stream-player-wrap .stream-iframe-embed:not([hidden]) {
    z-index: 10;
    pointer-events: auto;
  }
}

@media (min-width: 1101px) {
  .stream-player-wrap .stream-iframe-embed:not([hidden]) {
    width: calc(100% * var(--stream-embed-zoom));
    height: calc(100% * var(--stream-embed-zoom));
    left: calc((100% - 100% * var(--stream-embed-zoom)) / 2);
    top: calc((100% - 100% * var(--stream-embed-zoom)) / 2);
  }
}

.stream-chat-mobile-banner,
.stream-mobile-banner {
  display: none;
}

.stream-mobile-banner__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  vertical-align: top;
}

.stream-chat-embed {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  background: #0a0a0c !important;
  color-scheme: dark;
}

/* Chat live — style carte (comme fcikz / KXO) */
.stream-col-chat.lkz-live-chat {
  margin: 0 0.65rem 0.65rem 0;
  border-radius: 0.75rem !important;
  border: 1px solid hsl(0 0% 100% / 0.08) !important;
  background: hsl(0 0% 0% / 0.32) !important;
  background-color: hsl(0 0% 0% / 0.32) !important;
  background-image: none !important;
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.2);
  position: relative;
  color-scheme: dark;
  overflow: hidden;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.stream-col-chat.lkz-live-chat::after {
  content: none !important;
  display: none !important;
}

.stream-col-chat.lkz-live-chat > * {
  position: relative;
  z-index: 1;
}

.lkz-live-chat {
  --lkz-chat-size: 14px;
  --lkz-chat-reply-size: 12px;
  --lkz-chat-line: 1.45;
}

.lkz-live-chat .lkz-chat-head,
.lkz-live-chat .lkz-chat-body,
.lkz-live-chat .lkz-chat-compose {
  background: transparent !important;
}

.lkz-live-chat.lkz-chat-closed > .lkz-chat-head,
.lkz-live-chat.lkz-chat-closed > .lkz-chat-body,
.lkz-live-chat.lkz-chat-closed > .lkz-chat-compose {
  display: none !important;
}

.lkz-chat-closed-panel {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.lkz-live-chat.lkz-chat-closed .lkz-chat-closed-panel {
  display: flex;
}

.lkz-chat-closed-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 1.1rem 1.5rem;
  text-align: center;
}

.lkz-chat-closed-lead {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(0 0% 100% / 0.92);
}

.lkz-chat-closed-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: hsl(0 0% 100% / 0.62);
}

.lkz-chat-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(0 0% 100% / 0.08);
  background: transparent;
}

.lkz-chat-head__right {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.lkz-chat-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lkz-chat-state__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: hsl(0 100% 59%);
  flex-shrink: 0;
}

.lkz-chat-state.is-connected {
  color: hsl(var(--primary));
}

.lkz-chat-state.is-connected .lkz-chat-state__dot {
  background: hsl(var(--primary));
  box-shadow: 0 0 8px hsla(var(--primary) / 0.55);
}

.lkz-chat-state.is-offline {
  color: hsl(0 100% 59%);
}

.lkz-chat-state.is-connecting {
  color: hsl(0 0% 62%);
}

.lkz-chat-state.is-connecting .lkz-chat-state__dot {
  animation: pulse-dot 1.2s ease infinite;
}

.lkz-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.lkz-chat-send-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  --chat-flash-a: 270 90% 65%;
  --chat-flash-b: 285 85% 52%;
  background: radial-gradient(
    ellipse 90% 70% at 50% 100%,
    hsl(var(--chat-flash-a) / 0.42) 0%,
    hsl(var(--chat-flash-b) / 0.16) 42%,
    transparent 72%
  );
  box-shadow: inset 0 0 40px hsl(var(--chat-flash-a) / 0.12);
}

.lkz-chat-send-overlay.hue-0 {
  --chat-flash-a: 270 90% 65%;
  --chat-flash-b: 285 85% 52%;
}

.lkz-chat-send-overlay.hue-1 {
  --chat-flash-a: 200 92% 62%;
  --chat-flash-b: 220 88% 50%;
}

.lkz-chat-send-overlay.hue-2 {
  --chat-flash-a: 155 75% 52%;
  --chat-flash-b: 175 70% 45%;
}

.lkz-chat-send-overlay.hue-3 {
  --chat-flash-a: 45 95% 58%;
  --chat-flash-b: 28 90% 52%;
}

.lkz-chat-send-overlay.hue-4 {
  --chat-flash-a: 350 82% 62%;
  --chat-flash-b: 10 88% 55%;
}

.lkz-chat-send-overlay.hue-5 {
  --chat-flash-a: 310 85% 65%;
  --chat-flash-b: 330 80% 58%;
}

.lkz-chat-send-overlay.hue-6 {
  --chat-flash-a: 120 70% 52%;
  --chat-flash-b: 95 75% 48%;
}

.lkz-chat-send-overlay.hue-7 {
  --chat-flash-a: 260 88% 68%;
  --chat-flash-b: 190 80% 55%;
}

.lkz-chat-send-overlay.is-active {
  animation: lkz-chat-send-flash 0.65s ease-out forwards;
}

.lkz-chat-send.is-sending {
  animation: lkz-chat-send-btn 0.65s ease-out;
}

@keyframes lkz-chat-send-flash {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes lkz-chat-send-btn {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

.lkz-chat-head__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  cursor: default;
  user-select: none;
}

.lkz-chat-mod-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(45 95% 72%);
  background: hsl(45 70% 20% / 0.45);
  border: 1px solid hsl(45 80% 50% / 0.28);
}

.lkz-chat-mod-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: 6px;
  background: hsl(0 0% 100% / 0.03);
  color: hsl(0 0% 100% / 0.55);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lkz-chat-mod-btn[hidden] {
  display: none !important;
}

.lkz-chat-mod-btn:hover {
  background: hsl(0 0% 100% / 0.08);
  color: #fff;
}

.lkz-chat-mod-btn.is-active {
  color: hsl(45 95% 72%);
  border-color: hsl(45 80% 50% / 0.35);
  background: hsl(45 70% 18% / 0.35);
}

.lkz-chat-pinned {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.lkz-chat-pinned[hidden] {
  display: none !important;
}

.lkz-chat-pinned__body {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(
    90deg,
    hsl(30 28% 14% / 0.55) 0%,
    hsl(0 0% 0% / 0.18) 100%
  );
  border-bottom: 1px solid hsl(0 0% 100% / 0.06);
  border-left: 3px solid hsl(45 92% 55%);
}

.lkz-chat-pinned__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: hsl(45 92% 58%);
}

.lkz-chat-pinned__content {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.lkz-chat-pinned__name {
  display: block;
  margin: 0;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lkz-chat-pinned__text {
  display: block;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: hsl(0 0% 100% / 0.72);
  word-break: break-word;
}

.lkz-chat-pinned__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 0.05rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: hsl(0 0% 100% / 0.45);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.lkz-chat-pinned__close:hover {
  color: #fff;
  background: hsl(0 0% 100% / 0.08);
}

.lkz-chat-pinned__card {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid hsl(45 85% 58% / 0.22);
  background: linear-gradient(
    145deg,
    hsl(45 55% 14% / 0.72) 0%,
    hsl(270 38% 12% / 0.68) 52%,
    hsl(0 0% 8% / 0.75) 100%
  );
  box-shadow:
    0 4px 18px hsl(0 0% 0% / 0.28),
    inset 0 1px 0 hsl(45 95% 72% / 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lkz-chat-pinned__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    hsl(45 95% 68%) 0%,
    hsl(35 90% 55%) 45%,
    hsl(270 85% 68%) 100%
  );
  box-shadow: 0 0 12px hsl(45 90% 60% / 0.45);
}

.lkz-chat-pinned__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    hsl(45 100% 85% / 0.06) 42%,
    transparent 68%
  );
}

.lkz-chat-pinned__inner {
  position: relative;
  z-index: 1;
  padding: 0.45rem 0.55rem 0.5rem 0.65rem;
}

.lkz-chat-pinned__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.28rem;
}

.lkz-chat-pinned__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.1rem 0.42rem 0.1rem 0.32rem;
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: hsl(45 96% 78%);
  background: hsl(45 70% 18% / 0.55);
  border: 1px solid hsl(45 85% 55% / 0.32);
  box-shadow: 0 0 10px hsl(45 90% 50% / 0.12);
}

.lkz-chat-pinned__badge svg {
  flex-shrink: 0;
  color: hsl(45 100% 72%);
  filter: drop-shadow(0 0 4px hsl(45 100% 60% / 0.45));
  animation: lkz-pin-pulse 2.4s ease-in-out infinite;
}

@keyframes lkz-pin-pulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-1px); opacity: 0.82; }
}

.lkz-chat-pinned__meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.18rem;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .lkz-chat-pinned__badge svg {
    animation: none;
  }
}

@keyframes lkz-chat-msg-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lkz-chat-msg-self {
  0% {
    background: hsl(var(--primary) / 0.14);
    border-radius: 0.35rem;
  }
  100% {
    background: transparent;
    border-radius: 0;
  }
}

@keyframes lkz-chat-send-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.lkz-chat-msg--fresh {
  animation: lkz-chat-msg-in 0.3s ease-out both;
}

.lkz-chat-msg--just-sent {
  animation: lkz-chat-msg-in 0.3s ease-out both, lkz-chat-msg-self 0.65s ease-out both;
}

.lkz-chat-send.is-pushed {
  animation: lkz-chat-send-pop 0.35s ease-out;
}

.lkz-chat-gif-wrap,
.lkz-chat-gif-panel,
.lkz-chat-msg__gif-wrap {
  display: none !important;
}

.lkz-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--lkz-chat-size, 14px);
  line-height: var(--lkz-chat-line, 1.45);
  -webkit-font-smoothing: antialiased;
  user-select: text;
  -webkit-user-select: text;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: hsl(0 0% 100% / 0.2) transparent;
}

.lkz-chat-messages::-webkit-scrollbar {
  width: 5px;
}

.lkz-chat-messages::-webkit-scrollbar-thumb {
  background: hsl(270 60% 45% / 0.45);
  border-radius: 999px;
}

.lkz-chat-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
  color: hsl(0 0% 100% / 0.72);
  text-shadow: 0 1px 6px hsl(0 0% 0% / 0.9);
  pointer-events: none;
}

.lkz-chat-empty[hidden] {
  display: none !important;
}

.lkz-chat-status {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.45rem;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.35;
  color: hsl(200 90% 78%);
  background: hsl(200 50% 18% / 0.55);
  border: 1px solid hsl(200 70% 45% / 0.35);
  z-index: 5;
}

.lkz-chat-status.is-error {
  color: hsl(350 90% 78%);
  background: hsl(350 45% 16% / 0.65);
  border-color: hsl(350 70% 45% / 0.4);
}

.lkz-chat-status[hidden] {
  display: none !important;
}

.lkz-chat-msg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  flex-shrink: 0;
  margin: 0;
  padding: 0 2rem 0 0;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  user-select: text;
  -webkit-user-select: text;
}

.lkz-chat-msg--highlight {
  background: hsl(0 0% 100% / 0.1) !important;
  border-radius: 0.35rem;
}

.stream-col-chat.lkz-live-chat.is-mod .lkz-chat-msg {
  padding-bottom: 1.6rem;
}

.stream-col-chat.lkz-live-chat.is-mod .lkz-chat-msg__mod {
  display: flex;
}

@media (hover: hover) and (pointer: fine) {
  .lkz-chat-msg:hover .lkz-chat-msg__reply-btn {
    opacity: 1;
    visibility: visible;
  }

  .lkz-chat-msg:hover .lkz-chat-msg__mod {
    display: flex;
  }
}

.lkz-chat-messages.is-selecting .lkz-chat-msg,
.lkz-chat-messages.is-selecting .lkz-chat-msg:hover {
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}

.lkz-chat-messages.is-selecting .lkz-chat-msg__reply-btn,
.lkz-chat-messages.is-selecting .lkz-chat-msg__mod,
.lkz-chat-messages.is-selecting .lkz-chat-msg:hover .lkz-chat-msg__reply-btn,
.lkz-chat-messages.is-selecting .lkz-chat-msg:hover .lkz-chat-msg__mod {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.lkz-chat-msg + .lkz-chat-msg {
  margin-top: 0;
}

.lkz-chat-msg__name {
  display: block;
  width: 100%;
  margin: 0 0 0.12rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  color: var(--lkz-name-color, hsl(0 0% 100% / 0.92));
  cursor: pointer;
}

.lkz-chat-msg__text {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  color: hsl(0 0% 100% / 0.92);
  word-break: break-word;
}

.lkz-chat-msg__mod,
.lkz-chat-msg__reply-btn {
  user-select: none;
  -webkit-user-select: none;
}

.lkz-chat-msg__mod {
  display: none;
  margin-top: 0.35rem;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.lkz-chat-mod-link {
  padding: 0;
  border: none;
  background: none;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  color: hsl(0 0% 100% / 0.45);
  cursor: pointer;
}

.lkz-chat-mod-link:hover {
  color: hsl(0 0% 100% / 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lkz-chat-mod-link--danger {
  color: hsl(0 100% 65% / 0.75);
}

.lkz-chat-mod-link--danger:hover {
  color: hsl(0 100% 65%);
}

.lkz-chat-mod-link--pin:hover {
  color: hsl(45 95% 65%);
}

.lkz-chat-mod-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0.15rem 0.35rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: hsl(0 100% 65% / 0.7);
  cursor: pointer;
}

.lkz-chat-mod-act svg {
  width: 14px;
  height: 14px;
}

.lkz-chat-mod-act:hover {
  color: hsl(0 100% 65%);
  background: hsl(0 100% 59% / 0.1);
}

.lkz-chat-mod-act--danger:hover {
  background: hsl(0 100% 59% / 0.12);
  color: hsl(0 100% 65%);
}

.lkz-chat-mod-act--pin:hover {
  color: hsl(45 95% 65%);
  background: hsl(45 90% 50% / 0.12);
}

.lkz-chat-msg--is-pinned {
  opacity: 0.55;
}

@media (hover: none), (max-width: 1100px) {
  .lkz-chat-msg__reply-btn {
    opacity: 0.72;
    visibility: visible;
    pointer-events: auto;
  }

  .lkz-chat-msg__reply-btn:active {
    opacity: 1;
    background: hsl(0 0% 100% / 0.14);
  }
}

.lkz-chat-msg__reply-btn {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0.2rem 0.35rem;
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: 0.35rem;
  background: hsl(0 0% 12%);
  color: hsl(0 0% 100% / 0.5);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.lkz-chat-msg__reply-btn svg {
  width: 14px;
  height: 14px;
}

.lkz-chat-msg__reply-btn:hover {
  color: #fff;
  opacity: 1;
}

.lkz-chat-msg__reply {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0 0 0.3rem;
  padding: 0.1rem 0 0.1rem 0.5rem;
  border-left: 2px solid hsl(0 0% 100% / 0.22);
  font-size: 0.72rem;
  line-height: 1.35;
  color: hsl(0 0% 100% / 0.42);
  cursor: pointer;
  overflow: hidden;
}

.lkz-chat-msg__reply:hover {
  color: hsl(0 0% 100% / 0.8);
}

.lkz-chat-msg__reply-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.lkz-chat-msg__reply-name {
  flex-shrink: 0;
  font-weight: 700;
}

.lkz-chat-msg__reply-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lkz-chat-msg__name-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: var(--lkz-name-color, #efeff1) !important;
  -webkit-text-fill-color: var(--lkz-name-color, #efeff1);
  text-shadow: none;
  vertical-align: baseline;
  user-select: text;
  -webkit-user-select: text;
}

.lkz-chat-mention {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: var(--lkz-name-color, #efeff1) !important;
  -webkit-text-fill-color: var(--lkz-name-color, #efeff1);
  text-shadow: none;
  vertical-align: baseline;
  user-select: text;
  -webkit-user-select: text;
}

.lkz-chat-mention--you {
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .lkz-chat-msg__name:hover,
  .lkz-chat-msg__name-btn:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .lkz-chat-mention:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

.lkz-chat-messages.is-selecting .lkz-chat-msg__name-btn:hover,
.lkz-chat-messages.is-selecting .lkz-chat-mention:hover {
  text-decoration: none;
}

.lkz-chat-reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-left: 2px solid hsl(var(--primary));
  background: hsl(0 0% 13%);
  font-size: 0.72rem;
  color: hsl(0 0% 62%);
}

.lkz-chat-reply-bar[hidden] {
  display: none !important;
}

.lkz-chat-reply-bar__content {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.lkz-chat-reply-bar__icon {
  flex-shrink: 0;
  opacity: 0.65;
}

.lkz-chat-reply-bar__label {
  flex-shrink: 0;
  white-space: nowrap;
}

.lkz-chat-reply-bar__label strong {
  font-weight: 700;
}

.lkz-chat-reply-bar__preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.75;
}

.lkz-chat-hint {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: hsl(0 0% 62%);
}

.lkz-chat-hint[hidden] {
  display: none !important;
}

.stream-col-chat.lkz-live-chat.is-banned .lkz-chat-hint {
  color: hsl(0 100% 68%);
}

.lkz-chat-reply-bar__cancel {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: hsl(0 0% 100% / 0.88);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.lkz-chat-reply-bar__cancel:hover {
  background: hsl(0 0% 100% / 0.1);
  color: #fff;
}

.lkz-chat-msg--self .lkz-chat-msg__name {
  filter: none;
}

.lkz-chat-msg__meta {
  display: none;
}

.lkz-chat-msg__time {
  display: none;
}

.lkz-chat-compose {
  flex: 0 0 auto;
  padding: 0.75rem;
  border-top: 1px solid hsl(0 0% 100% / 0.08);
  background: transparent;
  position: relative;
  z-index: 6;
}

.lkz-chat-name-wrap {
  display: none;
}

.lkz-chat-name-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(270 50% 75% / 0.65);
  white-space: nowrap;
}

.lkz-chat-name {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  padding: 0 0.55rem;
  border-radius: 8px;
  border: 1px solid hsl(0 0% 100% / 0.12);
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
}

.lkz-chat-name:focus {
  border-color: hsl(270 85% 65% / 0.65);
  box-shadow: 0 0 0 2px hsl(270 85% 55% / 0.18);
}

.lkz-chat-send-row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.lkz-chat-gif-wrap {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
}

.lkz-chat-gif-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid hsl(0 0% 100% / 0.12);
  border-radius: 10px;
  background: hsl(0 0% 100% / 0.04);
  color: hsl(0 0% 100% / 0.78);
  cursor: pointer;
  flex-shrink: 0;
}

.lkz-chat-gif-btn__icon {
  display: block;
  opacity: 0.92;
}

@media (hover: hover) and (pointer: fine) {
  .lkz-chat-gif-btn:hover {
    color: #fff;
    border-color: hsl(270 85% 65% / 0.45);
    background: hsl(270 45% 18% / 0.35);
  }
}

.lkz-chat-gif-btn[aria-expanded="true"] {
  color: #fff;
  border-color: hsl(270 85% 65% / 0.65);
  background: hsl(270 50% 24% / 0.55);
  box-shadow: 0 0 0 2px hsl(270 85% 55% / 0.18);
}

.lkz-chat-gif-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 30;
  width: min(19rem, calc(100vw - 2rem));
  max-height: 17rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid hsl(270 50% 40% / 0.25);
  border-radius: 14px;
  background: hsl(240 8% 8% / 0.98);
  box-shadow:
    0 16px 40px hsl(0 0% 0% / 0.5),
    0 0 0 1px hsl(0 0% 100% / 0.04) inset;
}

.lkz-chat-gif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.1rem;
}

.lkz-chat-gif-panel__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(270 80% 82%);
}

.lkz-chat-gif-panel__brand {
  font-size: 0.62rem;
  font-weight: 600;
  color: hsl(0 0% 100% / 0.35);
}

.lkz-chat-gif-panel[hidden] {
  display: none !important;
}

.lkz-chat-gif-search {
  width: 100%;
  height: 34px;
  padding: 0 0.6rem;
  border: 1px solid hsl(0 0% 100% / 0.12);
  border-radius: 8px;
  background: hsl(0 0% 100% / 0.05);
  color: #fff;
  font-size: 0.82rem;
  outline: none;
}

.lkz-chat-gif-search:focus {
  border-color: hsl(270 85% 65% / 0.55);
}

.lkz-chat-gif-status {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: hsl(0 0% 100% / 0.55);
}

.lkz-chat-gif-status.is-error {
  color: hsl(350 90% 78%);
}

.lkz-chat-gif-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  overflow-y: auto;
  min-height: 6rem;
  max-height: 11.5rem;
}

.lkz-chat-gif-grid.is-loading {
  opacity: 0.55;
}

.lkz-chat-gif-item {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: hsl(0 0% 100% / 0.05);
}

@media (hover: hover) and (pointer: fine) {
  .lkz-chat-gif-item:hover {
    border-color: hsl(270 85% 65% / 0.55);
  }
}

.lkz-chat-gif-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lkz-chat-msg__gif-wrap {
  display: block;
  max-width: 100%;
  margin-top: 0.25rem;
}

.lkz-chat-msg__gif {
  display: block;
  max-width: min(120px, 100%);
  max-height: 120px;
  border-radius: 6px;
  object-fit: contain;
}

.lkz-chat-msg--gif .lkz-chat-msg__line {
  display: block;
}

.lkz-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: 0.4rem;
  border: none;
  background: hsl(0 0% 0% / 0.35);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
}

.lkz-chat-input::placeholder {
  color: hsl(0 0% 62%);
}

.lkz-chat-input:focus {
  box-shadow: 0 0 0 1px hsl(var(--primary));
}

.lkz-chat-send {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  color: #000;
  background: hsl(var(--primary));
  box-shadow: none;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.lkz-chat-send:hover:not(:disabled) {
  filter: brightness(1.08);
}

.lkz-chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .stream-body {
    height: 100dvh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .stream-body > .site-nav {
    flex-shrink: 0;
  }

  .stream-shell,
  .stream-shell.is-channels-collapsed {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .stream-col-chat.lkz-live-chat .lkz-chat-head {
    grid-row: 1;
  }

  .stream-col-chat.lkz-live-chat .lkz-chat-body {
    grid-row: 2;
    min-height: 0;
    overflow: hidden;
  }
  .stream-col-center {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    height: auto !important;
    max-height: none;
    align-self: stretch;
    grid-area: unset;
    overflow: hidden;
  }
  .stream-player-wrap {
    width: 100%;
    height: auto !important;
    max-height: 32dvh;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
  }
  .stream-col-chat {
    grid-area: unset;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    align-self: stretch;
    overflow: hidden;
    position: static;
  }

  .stream-col-chat.lkz-live-chat {
    order: 3;
    grid-area: unset;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    max-height: none;
    background: hsl(0 0% 0% / 0.32) !important;
    background-image: none !important;
    color-scheme: dark;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    border-top: 1px solid hsl(0 0% 100% / 0.08);
    box-shadow: 0 -8px 28px hsl(0 0% 0% / 0.2);
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-columns: 1fr;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 1;
  }

  .stream-col-chat.lkz-live-chat .lkz-chat-head {
    background: transparent;
  }

  .stream-col-chat.lkz-live-chat .lkz-chat-compose {
    grid-row: 3;
    flex-shrink: 0;
    background: transparent;
    position: relative;
    z-index: 10;
  }

  .stream-col-chat.lkz-live-chat .lkz-chat-messages {
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stream-player-footer {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    grid-area: unset;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-top: 0;
    margin-bottom: 0;
    isolation: isolate;
    padding: 10px 14px 12px;
  }
  .stream-chat-embed {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: 100%;
    border: 0;
    background: #0a0a0c !important;
  }
}

.stream-footer-viewers__icon {
  display: none;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .stream-player-footer {
    display: block;
    padding: 8px 12px 10px;
    min-height: 0;
    background: linear-gradient(
      180deg,
      hsl(0 0% 6% / 0.98) 0%,
      hsl(0 0% 3% / 1) 100%
    );
    background-image: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    position: relative;
    overflow: visible;
    --stream-footer-pad: 14px;
    --stream-footer-title-gap: 12px;
    --stream-footer-sm-h: 46px;
  }
  .stream-player-footer::before {
    content: none;
    display: none;
  }
  .stream-player-footer > * {
    position: relative;
    z-index: 1;
  }
  .stream-footer-top-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding-right: 54px;
    min-height: 0;
    max-width: none;
  }

  .stream-footer-crest {
    width: 44px;
    height: 44px;
  }
  .stream-match-title {
    display: block;
    grid-column: auto;
    justify-self: start;
    max-width: 100%;
    margin: 0;
    padding-right: 0;
    text-align: left;
    font-size: clamp(21px, 5.8vw, 26px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-shadow:
      0 0 12px rgba(0, 0, 0, 0.95),
      0 1px 4px rgba(0, 0, 0, 0.9);
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .stream-footer-toolbar,
  .stream-footer-toolbar.stream-btn-group {
    --stream-footer-sm-h: 46px;
    --stream-footer-sm-gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    grid-column: auto;
    justify-self: start;
  }
  .stream-footer-social-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--stream-footer-sm-gap);
    width: 100%;
    flex-shrink: 0;
    margin: 0;
  }
  .stream-footer-social-row .stream-btn.btn-discord-sm,
  .stream-footer-social-row .stream-btn.btn-x-sm {
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: var(--stream-footer-sm-h);
    height: var(--stream-footer-sm-h);
    padding: 0 14px;
    border-radius: 11px;
    gap: 8px;
    flex-shrink: 0;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  .stream-footer-social-row .stream-btn-text {
    display: inline !important;
    font-size: 12px;
    font-weight: 700;
  }
  .stream-footer-toolbar .stream-btn.btn-iptv {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    align-self: stretch;
    min-height: var(--stream-footer-sm-h);
    height: var(--stream-footer-sm-h);
    padding: 0 12px;
    border-radius: 10px;
    gap: 6px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  .stream-btn::before {
    display: none;
  }
  .stream-footer-social-row .stream-btn.btn-x-sm svg,
  .stream-footer-social-row .stream-btn.btn-discord-sm svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .btn-iptv .btn-label {
    font-size: clamp(10px, 2.9vw, 12px);
    font-weight: 800;
    letter-spacing: 0;
  }
  .btn-iptv-discord,
  .btn-iptv-icon {
    width: 16px;
    height: 16px;
  }
  .stream-btn:hover,
  .stream-btn:active {
    transform: none;
    box-shadow: none;
  }
  .stream-footer-viewers {
    position: absolute;
    top: auto;
    bottom: 22px;
    right: 14px;
    left: auto;
    margin: 0;
    z-index: 2;
    color: #ef4444;
    font-size: 22px;
    font-weight: 700;
    gap: 7px;
  }
  .stream-footer-viewers:not([hidden]) {
    display: inline-flex !important;
  }
  .stream-footer-viewers__icon {
    display: block;
    width: 24px;
    height: 24px;
    color: #ef4444;
  }
  .stream-footer-comp {
    position: absolute;
    top: 0;
    right: 0;
    flex-shrink: 0;
    display: flex;
    z-index: 3;
  }
  .stream-footer-comp:not([hidden]) {
    display: flex !important;
  }
  .stream-footer-comp__logo {
    width: 48px;
    height: 48px;
  }
  .stream-footer-user {
    display: none;
  }
}

@media (max-width: 760px) {
  .stream-body > .site-nav {
    padding: 0.5rem 0.7rem 0.45rem;
    min-height: 48px;
  }

  .stream-col-chat.lkz-live-chat {
    min-height: 0;
  }

  .lkz-chat-compose {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 10;
  }

  .lkz-chat-name,
  .lkz-chat-input {
    font-size: 16px;
  }
}

@media (min-width: 1101px) {
  .stream-footer-viewers {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin: 0;
    color: #ef4444;
    font-size: 16px;
    font-weight: 700;
    gap: 8px;
  }
  .stream-footer-viewers:not([hidden]) {
    display: inline-flex !important;
  }
  .stream-footer-viewers__icon {
    display: block;
    width: 22px;
    height: 22px;
    color: #ef4444;
  }
  .stream-footer-user {
    display: none !important;
  }
  .stream-footer-toolbar,
  .stream-footer-toolbar.stream-btn-group {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    max-width: 100%;
  }
  .stream-footer-social-row {
    justify-content: center;
    width: auto;
  }
  .stream-footer-social-row .stream-btn.btn-x-sm,
  .stream-footer-social-row .stream-btn.btn-discord-sm {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    padding: 0;
    gap: 0;
  }
  .stream-footer-social-row .stream-btn-text {
    display: none !important;
  }
  .stream-footer-toolbar .stream-btn.btn-iptv {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 40px;
  }
}

@media (min-width: 761px) {
  .btn-iptv {
    padding: 0 18px;
  }
  .btn-iptv .btn-label {
    font-size: 12px;
  }
}

/* ── Page match (stream centré — legacy) ── */
.match-page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.match-header {
  width: 100%;
  text-align: center;
}

.match-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(0 0% 55%);
  text-decoration: none;
  transition: color 0.15s;
}
.match-back:hover { color: hsl(var(--primary)); }

.match-title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.match-sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: hsl(0 0% 55%);
}

.match-stream-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.match-stream {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: hsl(270 8% 6%);
  border: 1px solid hsl(270 10% 14%);
  box-shadow: 0 20px 60px hsla(0 0% 0% / 0.45);
}

.match-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.match-stream-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem;
  text-align: center;
  color: hsl(0 0% 60%);
  font-size: 0.9rem;
  background: linear-gradient(145deg, hsl(270 12% 8%), hsl(270 8% 5%));
}
.match-stream-placeholder__hint {
  font-size: 0.78rem;
  color: hsl(0 0% 45%);
}

.match-tips {
  width: 100%;
  max-width: 960px;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: hsl(270 10% 7%);
  border: 1px solid hsl(270 12% 14%);
}
.match-tips__title {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(270 90% 72%);
}
.match-tips__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(0 0% 78%);
}
.match-tips__list strong { color: #fff; font-weight: 700; }
.match-tips__link {
  color: hsl(270 90% 72%);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.match-tips__link:hover { color: hsl(270 100% 82%); }

@media (max-width: 639px) {
  .match-page { padding: 0.75rem 0.85rem 2rem; gap: 1.1rem; }
  .match-stream { border-radius: 10px; }
  .match-tips { padding: 1rem 1.1rem; }
}

/* ── Programme TV (mode chaîne) ── */
.stream-col-programme {
  grid-area: chat;
  display: none;
  flex-direction: column;
  width: var(--stream-chat-w);
  max-width: var(--stream-chat-w);
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
  background: hsl(0 0% 8% / 0.42);
  border-left: 1px solid hsla(var(--primary) / 0.12);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.stream-body--tv-channel .stream-col-chat {
  display: none !important;
}

.stream-body--tv-channel .stream-col-programme {
  display: flex;
}

@media (min-width: 1101px) {
  .stream-body--tv-channel .stream-col-programme {
    grid-row: 1 / -1;
  }
}

/* Header */
.stream-prog-head {
  position: relative;
  flex-shrink: 0;
  padding: 0.85rem 0.9rem 0.75rem;
  background: transparent;
  border-bottom: 1px solid hsl(0 0% 100% / 0.08);
  overflow: hidden;
}

.stream-prog-head__glow {
  position: absolute;
  top: -30px;
  left: -10px;
  width: 120px;
  height: 70px;
  background: radial-gradient(ellipse, hsla(var(--primary) / 0.12) 0%, transparent 72%);
  pointer-events: none;
}

.stream-prog-head__kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.2rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(270 45% 68%);
}

.stream-prog-head__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: 0 0 8px hsla(var(--primary) / 0.45);
  animation: progLivePulse 1.8s ease-in-out infinite;
}

.stream-prog-head__title {
  position: relative;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.stream-prog-head__title::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-top: 0.45rem;
  border-radius: 2px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsla(var(--primary) / 0.15));
  box-shadow: 0 0 10px hsla(var(--primary) / 0.35);
}

/* Panel */
.stream-prog-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0.8rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: hsla(var(--primary) / 0.28) transparent;
}

.stream-prog-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stream-prog-block {
  opacity: 1;
  transform: translateY(0);
}

.stream-prog-card.is-refreshing .stream-prog-block {
  animation: progFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.stream-prog-card.is-refreshing .stream-prog-hero {
  animation: progFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.stream-prog-card.is-refreshing .stream-prog-channel {
  animation-delay: 0.07s;
}

.stream-prog-card.is-refreshing .stream-prog-now {
  animation-delay: 0.14s;
}

.stream-prog-card.is-refreshing .stream-prog-upnext {
  animation-delay: 0.22s;
}

@keyframes progFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.stream-prog-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: hsl(0 0% 12%);
  box-shadow:
    0 8px 28px hsl(0 0% 0% / 0.45),
    0 0 0 1px hsla(var(--primary) / 0.1);
}

.stream-prog-card.is-channel-switch .stream-prog-hero__img {
  animation: progHeroKen 7s ease-out forwards;
}

@keyframes progHeroKen {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

.stream-prog-hero__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.35s ease;
}

.stream-prog-hero__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    transparent 30%,
    hsl(0 0% 100% / 0.06) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: progHeroShine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes progHeroShine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.stream-prog-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.stream-prog-hero__live,
.stream-prog-hero__type {
  position: absolute;
  top: 0.5rem;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.24rem 0.5rem;
  border-radius: 7px;
  background: hsl(0 0% 0% / 0.55);
  border: 1px solid hsl(0 0% 100% / 0.14);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.stream-prog-hero__live {
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border-color: hsl(0 72% 55% / 0.35);
  box-shadow: 0 0 16px hsl(0 72% 45% / 0.2);
}

.stream-prog-hero__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: progLivePulse 1.6s ease-in-out infinite;
}

@keyframes progLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.stream-prog-hero__type {
  right: 0.5rem;
  border-color: hsla(var(--primary) / 0.28);
  color: hsl(270 55% 88%);
}

.stream-prog-hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: hsl(0 0% 100% / 0.1);
  z-index: 2;
  overflow: hidden;
}

.stream-prog-hero__bar-fill {
  position: relative;
  display: block;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(285 80% 58%));
  box-shadow: 0 0 10px hsla(var(--primary) / 0.4);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stream-prog-hero__bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsl(0 0% 100% / 0.45) 50%,
    transparent 100%
  );
  animation: progBarShimmer 2.4s ease-in-out infinite;
}

@keyframes progBarShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Channel row */
.stream-prog-channel {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.stream-prog-channel__logo-wrap {
  flex-shrink: 0;
  width: 42px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stream-prog-channel__logo {
  width: 34px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
}

.stream-prog-channel__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.stream-prog-channel__text strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.stream-prog-channel__text span {
  font-size: 0.66rem;
  color: hsl(0 0% 55%);
}

/* Now playing */
.stream-prog-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #fff;
}

.stream-prog-time {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(270 35% 72%);
  letter-spacing: 0.02em;
}

.stream-prog-desc {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  line-height: 1.58;
  color: hsl(0 0% 76%);
}

/* Up next */
.stream-prog-upnext {
  margin-top: 0.15rem;
  padding: 0.75rem 0 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-top: 1px solid hsl(0 0% 100% / 0.1);
  transition: border-color 0.25s;
}

.stream-prog-upnext:hover {
  border-top-color: hsla(var(--primary) / 0.22);
}

.stream-prog-upnext__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(0 0% 50%);
}

.stream-prog-upnext__label {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: hsl(270 45% 72%);
}

.stream-prog-upnext__label svg {
  color: hsl(var(--primary));
}

.stream-prog-upnext__remain {
  color: hsl(0 0% 50%);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.62rem;
}

.stream-prog-upnext__item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.stream-prog-upnext__time {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: hsl(270 50% 82%);
}
  min-width: 0;
}

.stream-prog-upnext__body strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.18rem;
  color: #fff;
}

.stream-prog-upnext__body p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.48;
  color: hsl(0 0% 58%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-tv-channel-item .stream-channel-item__teams {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-tv-channel-item .stream-channel-item__sub {
  font-size: 10px;
  color: hsl(0 0% 50%);
  letter-spacing: 0.06em;
}

.stream-tv-channel-item .stream-channel-item__stats {
  display: none;
}

@keyframes streamChWaveReveal {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stream-tv-channel-item.stream-wave-reveal {
  opacity: 0;
  animation: streamChWaveReveal 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.04s + var(--wave-i, 0) * 0.034s);
}

@media (prefers-reduced-motion: reduce) {
  .stream-tv-channel-item.stream-wave-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Sidebar chaînes TV — logos entiers (desktop) */
@media (min-width: 1101px) {
  .stream-body--tv-channel .stream-col-channels {
    background: transparent;
  }

  .stream-body--tv-channel .stream-channels-head {
    padding: 14px 12px 12px;
    background: transparent;
  }

  .stream-body--tv-channel .stream-channels-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    color: hsl(0 0% 96%);
  }

  .stream-body--tv-channel .stream-channels-list {
    padding: 4px 0 10px;
  }

  .stream-body--tv-channel .stream-tv-channel-item {
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 0;
    border-radius: 0;
    border: none;
  }

  .stream-body--tv-channel .stream-tv-channel-item:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .stream-body--tv-channel .stream-tv-channel-item.is-active {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  .stream-tv-channel-item__logo-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .stream-tv-channel-item__logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border: none;
    border-radius: 0;
    background: transparent;
  }
}

@media (max-width: 1100px) {
  .stream-body--tv-channel .stream-col-programme {
    order: 3;
    grid-area: unset;
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 280px;
    max-height: none;
    flex: 0 0 auto;
    border-left: none;
    border-top: 1px solid hsl(0 0% 100% / 0.08);
  }

  .stream-prog-panel {
    max-height: 48dvh;
  }
}

/* ── Modal ── */
#playerModal.hidden { display: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: rgba(120, 120, 120, 0.35);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(120, 120, 120, 0.55); }
* { scrollbar-width: thin; scrollbar-color: rgba(120, 120, 120, 0.35) transparent; }

::selection { background-color: hsla(var(--primary) / 0.35); }

/* ── Invite follow X ── */
@keyframes lkz-follow-backdrop-in {
  from {
    opacity: 0;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@keyframes lkz-follow-card-in {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.8) rotate(-2.5deg);
    filter: blur(16px);
  }
  58% {
    opacity: 1;
    transform: translateY(-10px) scale(1.04) rotate(0.6deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
    filter: blur(0);
  }
}

@keyframes lkz-follow-card-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(22px) scale(0.88);
    filter: blur(10px);
  }
}

@keyframes lkz-follow-piece {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lkz-follow-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lkz-follow-glow-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.08);
  }
}

body.lkz-follow-prompt-open {
  overflow: hidden;
}

.lkz-follow-prompt {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: hsl(0 0% 0% / 0.55);
  opacity: 0;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}

.lkz-follow-prompt[hidden] {
  display: none !important;
}

.lkz-follow-prompt.is-open {
  animation: lkz-follow-backdrop-in 0.48s ease forwards;
}

.lkz-follow-prompt.is-closing {
  animation: lkz-follow-backdrop-in 0.4s ease reverse forwards;
}

.lkz-follow-prompt__card {
  position: relative;
  width: min(100%, 420px);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid hsla(var(--primary) / 0.28);
  background: linear-gradient(
    165deg,
    hsl(0 0% 15%) 0%,
    hsl(0 0% 7%) 55%,
    hsl(270 22% 9%) 100%
  );
  box-shadow:
    0 32px 80px hsl(0 0% 0% / 0.65),
    0 0 0 1px hsl(0 0% 100% / 0.05) inset,
    0 0 56px hsla(var(--primary) / 0.16);
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.8);
}

.lkz-follow-prompt__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    hsla(var(--primary) / 0.85),
    transparent
  );
  opacity: 0.9;
  pointer-events: none;
}

.lkz-follow-prompt.is-open .lkz-follow-prompt__card {
  animation: lkz-follow-card-in 0.74s cubic-bezier(0.34, 1.38, 0.64, 1) forwards;
}

.lkz-follow-prompt.is-closing .lkz-follow-prompt__card {
  animation: lkz-follow-card-out 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lkz-follow-prompt__glow {
  position: absolute;
  inset: -45%;
  background: radial-gradient(
    circle at 50% 40%,
    hsla(var(--primary) / 0.38) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.lkz-follow-prompt.is-open .lkz-follow-prompt__glow {
  opacity: 1;
  animation: lkz-follow-glow-pulse 3.2s ease-in-out 0.55s infinite;
}

.lkz-follow-prompt__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: hsl(0 0% 100% / 0.55);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.lkz-follow-prompt__close:hover {
  background: hsl(0 0% 100% / 0.08);
  color: #fff;
  transform: rotate(90deg);
}

.lkz-follow-prompt__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.08);
  color: #fff;
  box-shadow: 0 0 24px hsla(var(--primary) / 0.25);
}

.lkz-follow-prompt__icon::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    hsl(var(--primary)),
    transparent 35%,
    hsl(270 95% 75%),
    transparent 72%
  );
  animation: lkz-follow-ring 3.5s linear infinite;
  opacity: 0.75;
  z-index: -1;
}

.lkz-follow-prompt__piece {
  position: relative;
  z-index: 1;
  opacity: 0;
}

.lkz-follow-prompt.is-open .lkz-follow-prompt__piece {
  animation: lkz-follow-piece 0.54s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.24s + var(--fp-i, 0) * 0.075s);
}

.lkz-follow-prompt__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.lkz-follow-prompt__text {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: hsl(0 0% 100% / 0.72);
}

.lkz-follow-prompt__text strong {
  color: #fff;
  font-weight: 700;
}

.lkz-follow-prompt__handle {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(270 90% 72%);
  text-shadow: 0 0 20px hsla(var(--primary) / 0.35);
}

.lkz-follow-prompt__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lkz-follow-prompt__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.lkz-follow-prompt__btn--primary {
  border: none;
  background: #fff;
  color: #000;
  box-shadow: 0 8px 24px hsl(0 0% 100% / 0.12);
}

.lkz-follow-prompt__btn--primary:hover {
  background: hsl(0 0% 92%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px hsl(0 0% 100% / 0.18);
}

.lkz-follow-prompt__btn--ghost {
  border: 1px solid hsl(0 0% 100% / 0.14);
  background: transparent;
  color: hsl(0 0% 100% / 0.72);
}

.lkz-follow-prompt__btn--ghost:hover {
  background: hsl(0 0% 100% / 0.06);
  color: #fff;
  transform: translateY(-1px);
}

@media (min-width: 480px) {
  .lkz-follow-prompt__actions {
    flex-direction: row;
  }

  .lkz-follow-prompt__btn {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lkz-follow-prompt,
  .lkz-follow-prompt__card,
  .lkz-follow-prompt__piece,
  .lkz-follow-prompt__glow,
  .lkz-follow-prompt__icon::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
