/* Programme de la chaîne Cinezox (/accueil/live/) */

:root {
  --lv-bg: #050505;
  --lv-card: rgba(255, 255, 255, 0.03);
  --lv-card-hover: rgba(255, 255, 255, 0.05);
  --lv-line: rgba(255, 255, 255, 0.07);
  --lv-line-strong: rgba(255, 255, 255, 0.14);
  --lv-text: #fff;
  --lv-dim: rgba(255, 255, 255, 0.55);
  --lv-faint: rgba(255, 255, 255, 0.32);
  --lv-live: #e50914;
  --lv-warn: #ff9f1c;
  --lv-max: 920px;
  --lv-px: 24px;
  --lv-nav-h: 80px;
  --lv-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html, body { min-height: 100%; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--lv-bg);
  color: var(--lv-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lv {
  width: 100%;
  max-width: var(--lv-max);
  margin: 0 auto;
  padding: calc(var(--lv-nav-h) + 48px) var(--lv-px) 80px;
}

/* Bandeaux d'annonce de la navbar (1 ou 2 lignes) au-dessus du menu */
html.cx-has-announce .lv { padding-top: calc(var(--lv-nav-h) + var(--cx-announce-h, 38px) + 48px); }

.lv-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; flex-shrink: 0; color: var(--lv-dim); }
.lv-ico svg { width: 100%; height: 100%; }

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.lv-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 26px; }

.lv-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--lv-live);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
}

.lv-tag__dot, .lv-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: lvBlink 1.2s ease-in-out infinite;
}
.lv-tag__dot { background: #fff; }
.lv-pulse { color: var(--lv-live); }

@keyframes lvBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.lv-head__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.lv-head__sub { color: var(--lv-dim); font-size: 0.92rem; line-height: 1.5; }

/* ── En ce moment ────────────────────────────────────────────────────────── */
.lv-now {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.1), rgba(229, 9, 20, 0.02));
  border: 1px solid rgba(229, 9, 20, 0.28);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lv-now[hidden] { display: none; }
.lv-now__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lv-now__comp { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--lv-dim); font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-now__main .lv-team__name, .lv-now__main .lv-session__title { font-size: 1.05rem; font-weight: 700; color: #fff; }
.lv-now__main .lv-team .lv-logo { width: 24px; height: 24px; }
.lv-now__main .lv-score { font-size: 1.05rem; }
.lv-now__main .lv-match { gap: 8px; }
.lv-now__bar { height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.lv-now__bar i { display: block; height: 100%; background: var(--lv-live); border-radius: inherit; transition: width 0.6s var(--lv-ease); }
.lv-now__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 0.78rem; color: var(--lv-dim); font-variant-numeric: tabular-nums; }
.lv-now__next strong { color: #fff; font-weight: 600; }

/* ── Barre collante : jours ──────────────────────────────────────────────── */
.lv-bar {
  position: sticky;
  top: var(--lv-nav-h);
  z-index: 50;
  margin: 0 calc(var(--lv-px) * -1);
  padding: 10px var(--lv-px);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lv-line);
}
html.cx-has-announce .lv-bar { top: calc(var(--lv-nav-h) + var(--cx-announce-h, 38px)); }

/* Fond sous la navbar (transparente) quand la barre est collée */
.lv-bar::before {
  content: '';
  opacity: 0;
  transition: opacity 0.2s;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: var(--lv-nav-h);
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}
.lv-bar.is-stuck::before { opacity: 1; }
html.cx-has-announce .lv-bar::before { height: calc(var(--lv-nav-h) + var(--cx-announce-h, 38px)); }

.lv-bar { display: flex; flex-direction: column; gap: 10px; }

/* Filtre par sport */
.lv-sports { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.lv-sports::-webkit-scrollbar { display: none; }
.lv-sport {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--lv-line);
  background: var(--lv-card);
  color: var(--lv-dim);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.25s var(--lv-ease), color 0.25s, border-color 0.25s;
}
.lv-sport:hover { color: #fff; border-color: var(--lv-line-strong); }
.lv-sport.is-active { background: #fff; color: #000; border-color: #fff; }
.lv-sport__ico { display: inline-grid; width: 15px; height: 15px; color: currentColor; }
.lv-sport__ico svg { width: 100%; height: 100%; }
.lv-sport__n { font-size: 0.72rem; font-weight: 700; opacity: 0.55; font-variant-numeric: tabular-nums; }
.lv-sport__live { width: 6px; height: 6px; border-radius: 50%; background: var(--lv-live); animation: lvBlink 1.2s ease-in-out infinite; }

.lv-days-wrap { display: flex; align-items: center; gap: 6px; }

.lv-days {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.lv-days::-webkit-scrollbar { display: none; }

.lv-day {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--lv-dim);
  scroll-snap-align: center;
  transition: background 0.25s var(--lv-ease), color 0.25s;
}
.lv-day:hover { background: var(--lv-card-hover); color: #fff; }
.lv-day__wd { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.lv-day__n { font-size: 1.1rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.lv-day.is-past .lv-day__n { color: var(--lv-dim); }
.lv-day.is-today .lv-day__wd { color: #fff; }
.lv-day.is-active { background: #fff; color: #000; }
.lv-day.is-active .lv-day__n { color: #000; }

.lv-days-arrow, .lv-cal {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lv-dim);
  transition: background 0.2s, color 0.2s;
}
.lv-days-arrow:hover, .lv-cal:hover { background: var(--lv-card-hover); color: #fff; }
.lv-days-arrow svg, .lv-cal svg { width: 18px; height: 18px; }
.lv-cal { position: relative; cursor: pointer; border: 1px solid var(--lv-line); }
.lv-cal input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.lv-cal input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* ── Recherche ───────────────────────────────────────────────────────────── */
.lv-filters { display: flex; gap: 10px; margin: 18px 0 16px; }

.lv-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--lv-card);
  border: 1px solid var(--lv-line);
  color: var(--lv-faint);
  transition: border-color 0.2s;
}
.lv-search:focus-within { border-color: var(--lv-line-strong); color: var(--lv-dim); }
.lv-search svg { width: 17px; height: 17px; flex-shrink: 0; }
.lv-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; font-size: 0.9rem; }
.lv-search input::placeholder { color: var(--lv-faint); }
.lv-search input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.5; }

/* ── Grille ──────────────────────────────────────────────────────────────── */
.lv-timeline { display: flex; flex-direction: column; gap: 8px; }

.lv-past {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--lv-dim);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--lv-line);
}
.lv-past:hover { color: #fff; background: var(--lv-card-hover); }
.lv-past__chev { width: 14px; height: 14px; transition: transform 0.3s var(--lv-ease); }
.lv-past.is-open .lv-past__chev { transform: rotate(180deg); }

.lv-prog { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: stretch; }

.lv-prog__time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  font-variant-numeric: tabular-nums;
}
.lv-prog__time strong { font-size: 0.95rem; font-weight: 800; }
.lv-prog__time small { font-size: 0.72rem; font-weight: 600; color: var(--lv-faint); }

.lv-prog__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 14px;
  border-radius: 14px;
  background: var(--lv-card);
  border: 1px solid var(--lv-line);
  transition: border-color 0.2s, background 0.2s;
}

.lv-prog__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lv-prog__comp { flex: 1; min-width: 0; font-size: 0.78rem; font-weight: 600; color: var(--lv-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lv-prog__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.74rem; font-weight: 600; }
.lv-prog__foot:empty { display: none; }

.lv-now-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--lv-live); font-weight: 800; font-variant-numeric: tabular-nums; }
.lv-muted { color: var(--lv-faint); }
.lv-warn { color: var(--lv-warn); }
.lv-note { color: var(--lv-faint); font-weight: 500; }

.lv-prog.is-live .lv-prog__card { border-color: rgba(229, 9, 20, 0.45); background: rgba(229, 9, 20, 0.05); }
.lv-prog.is-live .lv-prog__time strong { color: var(--lv-live); }
.lv-prog.is-next .lv-prog__card { border-color: var(--lv-line-strong); }
.lv-prog.is-past { opacity: 0.5; }
.lv-prog.is-big .lv-session__title, .lv-prog.is-big .lv-team__name { color: #fff; font-weight: 700; }

.lv-prog--break { align-items: center; }
.lv-prog--break .lv-prog__time { padding-top: 0; font-size: 0.78rem; color: var(--lv-faint); font-weight: 600; }
.lv-prog__break {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px dashed var(--lv-line-strong);
  color: var(--lv-faint);
  font-size: 0.8rem;
  font-weight: 600;
}

.lv-chip {
  flex-shrink: 0;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lv-dim);
}
.lv-chip--live { background: var(--lv-live); color: #fff; }
.lv-chip--next { background: rgba(255, 255, 255, 0.92); color: #000; }
.lv-chip--replay { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); }
.lv-prog.is-live .lv-chip--replay, .lv-now .lv-chip--replay { background: rgba(255, 255, 255, 0.14); color: #fff; }
.lv-chip--big { background: rgba(255, 255, 255, 0.08); color: #fff; letter-spacing: 0; }

/* Équipes / joueurs */
.lv-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: contain;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lv-dim);
  font-size: 0.55rem;
  font-weight: 800;
}
img.lv-logo { background: none; }

.lv-match { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lv-match__label { font-size: 0.7rem; color: var(--lv-faint); font-weight: 600; }

.lv-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lv-team__name { flex: 1; min-width: 0; font-size: 0.92rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, 0.9); }
.lv-team.is-win .lv-team__name { font-weight: 700; color: #fff; }

.lv-score { display: flex; gap: 10px; font-size: 0.92rem; font-weight: 700; font-variant-numeric: tabular-nums; justify-content: flex-end; }
.lv-score span { min-width: 12px; text-align: center; }
.lv-prog.is-live .lv-score, .lv-now .lv-score { color: var(--lv-live); }
.lv-team:not(.is-win) .lv-score .lost { color: var(--lv-faint); }

.lv-session__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-session__title { font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.lv-session__cat { font-size: 0.74rem; color: var(--lv-faint); font-weight: 600; }

/* États vides / chargement */
.lv-empty {
  padding: 56px 20px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed var(--lv-line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lv-empty__title { font-size: 1rem; font-weight: 700; }
.lv-empty__text { color: var(--lv-dim); font-size: 0.86rem; max-width: 380px; line-height: 1.5; }
.lv-btn {
  margin-top: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  font-size: 0.82rem;
  font-weight: 700;
}
.lv-btn:hover { background: #fff; }

.lv-skel { border-radius: 14px; background: var(--lv-card); border: 1px solid var(--lv-line); overflow: hidden; }
.lv-skel__row { height: 76px; margin: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); position: relative; }
.lv-skel__row::before, .lv-skel__row::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  background-size: 200% 100%;
  animation: lvShimmer 1.4s linear infinite;
}
.lv-skel__row::before { left: 0; width: 40px; transform: translateY(-50%); }
.lv-skel__row::after { left: 76px; width: min(260px, 50%); transform: translateY(-50%); }
@keyframes lvShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --lv-nav-h: 70px; --lv-px: 16px; }
  .lv { padding-top: calc(var(--lv-nav-h) + 28px); }
  html.cx-has-announce .lv { padding-top: calc(var(--lv-nav-h) + var(--cx-announce-h, 38px) + 28px); }
  .lv-head { margin-bottom: 18px; }
  .lv-head__sub { font-size: 0.84rem; }
  .lv-days-arrow { display: none; }
  .lv-day { width: 52px; height: 54px; }
  .lv-prog { grid-template-columns: 48px 1fr; gap: 10px; }
  .lv-prog__card { padding: 12px 14px 13px; }
  .lv-now { padding: 16px; }
}

@media (max-width: 480px) {
  :root { --lv-nav-h: 64px; --lv-px: 14px; }
  .lv-chip--big { display: none; }
  .lv-sport { height: 34px; padding: 0 12px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lv-sport__live, .lv-tag__dot, .lv-pulse, .lv-skel__row::before, .lv-skel__row::after { animation: none; }
}

/* ── Défilement continu : un bloc par jour ───────────────────────────────── */
.lv-list { display: flex; flex-direction: column; gap: 34px; }
.lv-dayblock { display: flex; flex-direction: column; gap: 12px; }
.lv-dayhead {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lv-dayhead::after { content: ''; flex: 1; height: 1px; background: var(--lv-line); }
.lv-dayempty {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--lv-line-strong);
  color: var(--lv-dim);
  font-size: 0.84rem;
  line-height: 1.5;
}
.lv-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lv-more { min-height: 1px; display: flex; justify-content: center; color: var(--lv-faint); font-size: 0.8rem; }

/* Diffuseur en France */
.lv-tv {
  flex-shrink: 0;
  max-width: 45%;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--lv-dim);
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--lv-line-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lv-now__head .lv-tv { margin-left: auto; }

/* ── Direct regardable (clic → /accueil/live/regarder/) ───────────────────── */
.lv-now.is-watchable, .lv-prog.is-watchable { cursor: pointer; }
.lv-prog.is-watchable:hover .lv-prog__card { background: var(--lv-card-hover); }
.lv-now__actions { display: flex; }
.lv-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--lv-live);
  text-decoration: none;
  transition: transform 0.2s var(--lv-ease), filter 0.2s;
}
.lv-watch:hover { transform: translateY(-1px); filter: brightness(1.1); }
.lv-watch__ico { display: inline-flex; width: 14px; height: 14px; }
.lv-watch__ico svg { width: 100%; height: 100%; }
.lv-prog__foot .lv-watch { margin-left: auto; padding: 6px 12px; font-size: 0.74rem; }
