/* ===== Modern UI for LirFlix ===== */
/* Police moderne */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #0f172a;           
  --panel: #111827;        
  --text: #e5e7eb;         
  --muted: #9ca3af;       
  --accent: #22d3ee;       
  --accent-contrast: #0b1220;
  --ring: rgba(34,211,238,.25);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

body.theme-slate-rose {
  --bg: #0b0f19;
  --panel: #111325;
  --text: #f3f4f6;
  --muted: #a1a1aa;
  --accent: #fb7185;          
  --accent-contrast: #180a0d;
  --ring: rgba(251,113,133,.25);
}

/* Thème 3: Onyx Lime */
body.theme-onyx-lime {
  --bg: #0b0b0c;
  --panel: #141417;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #84cc16;          
  --accent-contrast: #0b0b0c;
  --ring: rgba(132,204,22,.28);
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { background: var(--bg); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(90rem 60rem at 10% -10%, rgba(255,255,255,0.03), transparent),
              radial-gradient(60rem 40rem at 110% 10%, rgba(255,255,255,0.03), transparent),
              var(--bg);
  color: var(--text);
}


h1 { text-align: center; margin: 24px 0 10px; font-weight: 700; letter-spacing: .2px; }
a { color: var(--text); text-decoration: none; }

/* ===== Navbar / Filtres ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.15));
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 12px 0;
}
.navbar ul {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; padding: 0 16px; margin: 0;
}
.filter-btn {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 8px 14px; border-radius: 999px;
  cursor: pointer; font-weight: 600; letter-spacing: .2px;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.filter-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.filter-btn.active {
  background: var(--accent); border-color: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 8px 24px var(--ring);
}

.emissions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  padding: 0 20px 28px;
  max-width: 1200px; margin: 0 auto;
}
.card { position: relative; 
  display: flex; flex-direction: column; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, opacity .2s;
}
.epi-badge{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  background: #22d3ee;         
  color: #0b1220;              
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  z-index: 2;
  white-space: nowrap;
  height: auto;
}
.card{ 
  position:relative;
  overflow: hidden; 
  margin-bottom: 15px;
}
.badge-top{
  position:absolute; top:10px; left:10px;
  padding:6px 10px; border-radius:999px;
  background:linear-gradient(90deg,#ff7a7a,#ffb36a);
  color:#1a1a1a; font-weight:800; font-size:.85rem;
  box-shadow:0 8px 20px #ff7a7a33;
}
.card-image {
 position:relative;
 display: inline-block;
 }
.card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  border: none;   
}
.card h2 {
  margin: 10px 8px 4px; font-size: 17px; font-weight: 700;
}
.card p {
  margin: 0 8px 10px; font-size: 13px; color: var(--muted); line-height: 1.45;
  flex-grow: 1; margin-bottom: 20spx;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.card.hide { opacity: 0; transform: scale(.98); pointer-events: none; }

.card:hover, .card h2, .card p { text-decoration: none; }

/* Badge chaîne désactivé */
.card::before {
    display: none;
}

/* ===== Pages d’émission ===== */
.page {
  max-width: 900px; margin: 28px auto; padding: 22px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.page h1 { margin: 0 0 18px; text-align: left; }

/* Bloc image + texte */
.bloc {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap;
}
.affiche {
  width: 260px;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  border: none;   
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.bloc p {
  flex: 1; font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0;
}

/* Titre de section (liste des épisodes) */
.page h2 {
  text-align: center; font-style: italic; text-decoration: underline;
  margin: 20px 0 14px;
}

/* Liste d’épisodes centrée + boutons modernes */
.page ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.page ul li { margin: 10px 0; }
.page ul li a {
  display: inline-block; padding: 9px 16px; border-radius: 10px;
  background: rgba(255,255,255,.06); color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
  font-weight: 600;
}
.page ul li a:hover {
  transform: translateY(-2px);
  background: var(--accent); border-color: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 10px 28px var(--ring);
}

/* Bouton retour */
.retour { text-align: center; margin-top: 24px; }
.btn-retour {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: var(--panel); color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
  font-weight: 700;
}
.btn-retour:hover {
  transform: translateY(-2px);
  background: var(--accent); border-color: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 12px 30px var(--ring);
}

.rating {
  display: flex; flex-direction: row-reverse; justify-content: center;
  gap: 6px; font-size: 28px; cursor: pointer; margin: 6px 0 18px;
}
.rating span { color: rgba(255,255,255,.25); transition: color .2s; }
.rating span.active, .rating span:hover, .rating span:hover ~ span { color: #ffd166; }

/* ===== Mobile tweaks ===== */
@media (max-width: 768px) {
  .emissions { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; padding: 0 14px 24px; }
  .card img { height: 140px; }
  .bloc { gap: 14px; }
  .affiche { width: 100%; max-width: 360px; }
  .page h1 { font-size: 22px; }
  .page ul li a, .btn-retour, .filter-btn { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 480px) {
  .card h2 { font-size: 16px; }
  .card p { font-size: 12px; }
  .page h1 { font-size: 20px; }
  .page ul li a { font-size: 13px; }
}
/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  background: transparent;
  border-top: none;
  box-shadow: none;
}

.footer p {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.social svg {
  width: 24px;
  height: 24px;
}

.social:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
/* Formulaire Tally */
.tally-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.tally-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.tally-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 600px) {
.tally-container iframe {
  height: 300px;
}
}
/* Badge "Le plus regardé" / "Tendance" */
.badge-top{
  position:absolute; top:10px; left:10px;
  overflow: hidden;
  padding:6px 12px; border-radius:999px;
  font-weight:800; font-size:.85rem; line-height:1;
  color:#1a1a1a;
  background:linear-gradient(90deg,#ff7a7a,#ffb36a);
  box-shadow:0 8px 20px #ff7a7a33;
  z-index:3;

  /* Effets animés (pulse + glow + léger tilt) */
  animation:badge-pulse 2.2s ease-in-out infinite, badge-glow 3s ease-in-out infinite;
  transform:translateZ(0); will-change: transform, box-shadow;
}

/* Halo brillant autour (lueur douce) */
.badge-top::before{
  content:""; position:absolute; inset:-6px; border-radius:inherit;
  background:radial-gradient(40% 60% at 30% 40%, #ffc6a855, transparent 70%);
  filter:blur(8px); z-index:-1; pointer-events:none;
}

/* Reflet qui traverse (shimmer) */
.badge-top::after{
  content:""; position:absolute;
  inset: 0;
  border-radius: inherit;
  background:linear-gradient(120deg, transparent 45%, rgba (255,255,255,.85) 50%, transparent 100%);
  background-repeat: no-repeat;
  background-size:200% 100%;
  transform: translateX(-150%);
  animation:badge-shimmer 4s linear infinite;
  pointer-events:none;
  overflow:hidden
}

/* Animations */
@keyframes badge-pulse{
  0%,100% { transform:translateZ(0) scale(1); }
  50%     { transform:translateZ(0) scale(1.05); }
}
@keyframes badge-glow{
  0%,100% { box-shadow:0 8px 20px #ff7a7a33; }
  50%     { box-shadow:0 10px 26px #ff9b6a55; }
}
@keyframes badge-shimmer{
  0%   { transform:translateX(-120% 0); }
  100% { transform:translateX(120% 0); }
}

/* Thème clair éventuel */
:root[data-theme="light"] .badge-top{
  color:#0d0d0d;
  background:linear-gradient(90deg,#ff9b6a,#ffd36a);
  box-shadow:0 8px 20px #ffb36a33;
}

@media (prefers-reduced-motion: reduce){
  .badge-top,
  .badge-top::after{
    animation: none !important;
  }
}
/* commun */
.badge-top-1, .badge-top-2, .badge-top-3 {
  position:absolute; top:10px; left:10px;
  padding:6px 12px; border-radius:999px;
  font-weight:800; font-size:.85rem; line-height:1;
  color:#fff; z-index:3;
}

/* TOP 1  */
.badge-top-1 {
  background:linear-gradient(90deg,#ff7a7a,#ffb36a);
  animation:badge-pulse 2.2s ease-in-out infinite, badge-glow 3s ease-in-out infinite;
}
.badge-top-1::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(
    120deg,
    transparent 45%,
    rgba(255,255,255,.85) 50%,
    transparent 55%
  );
  background-repeat:no-repeat;
  background-size:200% 100%;
  animation:badge-shimmer 3.5s linear infinite;
  pointer-events:none;
}
@keyframes badge-pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.05);}}
@keyframes badge-glow{0%,100%{box-shadow:0 8px 20px #ff7a7a33;}50%{box-shadow:0 10px 26px #ff9b6a55;}}
@keyframes badge-shimmer{0%{background-position:-120% 0;}100%{background-position:120% 0;}}

.badge-nouveau {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ffb347, #ff9800); /* dégradé plus doux */
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-size: 10px; /* plus petit pour mobile */
  padding: 2px 8px; /* plus compact */
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap; /* empêche le retour à la ligne */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
  opacity: 0.95;
}


@keyframes shine {
  0% {background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.card   {
  position: relative;
}

/* TOP 2  */
.badge-top-2 {
  background:linear-gradient(90deg,#9a6aff,#c86aff);
  box-shadow:0 8px 20px #9a6aff44;
  position:absolute
}

/* TOP 3  */
.badge-top-3 {
  background:linear-gradient(90deg,#4caf50,#81c784);
  box-shadow:0 8px 20px #4caf5044;
  position: absolute;
}
.badge-top-custom {
position: absolute;
top: 10px;
left: 10px;
padding: 6px 12px;
border-radius: 999px;
font-size: 0.85rem;
font-weight: 800;
line-height: 1;
color: #1a1a1a;
background: linear-gradient(90deg, #ff7a7a, #ffb36a);
box-shadow: 0 8px 20px rgba(255, 122, 122, 0.2);
z-index: 3;
animation: badge-pulse 2.2s ease-in-out infinite, badge-glow 3s ease-in-out infinite;
}
.badge-new {
  position:absolute; top:8px; right:8px;
  min-width:22px; height:22px; padding:0 6px;
  border-radius:999px; background:#e63946; color:#fff;
  font-size:12px; font-weight:800; display:flex;
  align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  pointer-events:none; animation:new-pop .45s ease;
}
 
@keyframes new-pop{
  0%{transform:scale(0);opacity:0;}
  60%{transform:scale(1.15);opacity:1;}
  100%{transform:scale(1);}}
.next-ep{
  display: inline-block;
  margin-top:10px;
  font-weight:bold;
  font-size:0.85rem;
  background-color:#00c2ff;
  color: white; 
  padding: 4px 10px;
  border-radius: 9999px;
}
.next-ep .small{ font-weight:600; opacity:.8 }
.ad-banner { 
  display:flex;
  justify-content: center;
  margin: 20px auto;
  max-width: 728px;
}
/* Layout 2 colonnes pour les pages émission */
.two-cols{
  display:flex;
  gap:24px;
  align-items:flex-start;
  max-width:1100px;            
  margin:0 auto;               
  padding:0 16px;
}

.ad-rail{
  width:160px;
  min-width:160px;
  position:sticky;
  top:16px;
}

.episodes-col{
  flex:1;                      
}

@media (max-width: 900px){
  .two-cols{ display:block; }
  .ad-rail{ display:none; }
}
.card .badge-dispo {
  position: absolute;
  z-index: 3;
  bottom: 134px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e63946;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  pointer-events: none;
  animation: dispoPop 1s ease-in-out infinite; 
}
@keyframes dispoPop {
  0% { transform: translateX(-50%) scale(1); opacity: .95; }
  50% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: .95; }
  }
.badge-dispo {
  display: none !important;
  }
.telegram-banner {
  background-color: red;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 20px;
  font-weight: bold;
  margin: 30px auto; 
  width: 100%;
  display: flex;
  justify-content: center;/* espace au-dessus */
}
.telegram-banner a {
  color: white;
  text-decoration: none;
  max-width: 1200px;
  display: block;
}

.telegram-banner a:hover {
  text-decoration: underline;
}
.sv-btn{
  appearance:none; border:0; border-radius:12px; padding:14px 16px;
  font-weight:700; cursor:pointer; width:100%;
  background:#22d3ee; color:#0f172a;
  transition:transform .12s ease, box-shadow .12s ease, background .2s ease;
  box-shadow:0 6px 16px rgba(34,211,238,.25);
}
.sv-btn:hover{ transform:translateY(-1px); box-shadow:0 10px 20px rgba(34,211,238,.28); }
.sv-btn:active{ transform:translateY(0); box-shadow:0 4px 12px rgba(34,211,238,.22); }

@media (max-width: 768px) {
  /* 2 cartes fixes par ligne */
  .emissions {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding: 0 10px 20px;
    max-width: 100%;
  }

  /* cartes fluides + vignettes */
  .card img {
    width: 100%;
    height: auto;            /* évite les déformations */
    aspect-ratio: 16/9;      /* garde un ratio propre */
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
  }

  /* petits ajustements de typo */
  .card h2 { font-size: 16px; }
  .card p  { font-size: 12px; }
}
@media (max-width: 768px) {
  html, body { height: auto; }
  body {
    min-height: 100svh;      /* viewport réel mobile */
    display: flex;
    flex-direction: column;
  }
  main { flex: 1; }
}
@supports (height: 100dvh) {
  @media (max-width: 768px) {
    body { min-height: 100dvh; }
  }
}

#go-latest {
  display: inline-block; /* caché par défaut sur PC */
  background: linear-gradient(90deg, #4caf50, #81c784);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px; /* pastille arrondie */
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
  cursor: pointer;
  margin: 16px auto 0;
  width: fit-content;
  transition: all 0.25s ease;
  animation: pulse-green 2.5s ease-in-out infinite;
}

#go-latest:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.45);
}

/* Animation légère */
@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 10px 24px rgba(129, 199, 132, 0.45); }
}

/* Visible uniquement sur téléphone */
@media (min-width: 1024px) {
  .ep-toolbar {
    display: none !important;
  }

  #go-lastest { display: inline-block;}
}

.ep-toolbar {
  display: flex;
justify-content: center;
margin: 12px 0 16px; 
}

a.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: default;
}
.report-container {
  text-align: center;      /* centre horizontalement */
  margin-top: 12px;        /* petit espace au-dessus */
  margin-bottom: 10px;     /* espace avant le bouton “Émission terminée” */
}

.btn-report {
  background-color: #ffb347; /* orange clair */
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s ease, background-color 0.2s ease;
}

.btn-report:hover {
  background-color: #ff9800;
  transform: scale(1.05);
}
/* === POPUP LIRFLIX === */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #0f172a;
  color: #fff;
  border-radius: 15px;
  max-width: 360px;
  padding: 22px 20px;
  text-align: center;
  border: 1px solid rgba(0,255,255,0.3);
  box-shadow: 0 0 15px rgba(0,255,255,0.2);
  animation: fadeInUp 0.4s ease;
}

.popup-content.glow {
  box-shadow: 0 0 25px rgba(0,255,255,0.5), 0 0 50px rgba(0,255,255,0.3);
  animation: neonPulse 2.5s infinite ease-in-out;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.popup-logo {
  font-size: 1.6em;
}

.popup-content h3 {
  margin: 0;
  color: #00eaff;
  font-weight: 600;
  text-shadow: 0 0 10px #00eaff;
}

.popup-content a {
  color: #00eaff;
  font-weight: 600;
  text-decoration: underline;
}

.popup-content a:hover {
  color: #5efcff;
}

.popup-content button {
  margin-top: 18px;
  background: linear-gradient(90deg, #ff4d4d, #ff9900);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,255,128,0.4);
}

.popup-content button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,128,0.6);
}

/* 🔹 Animations */
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(0,255,255,0.5), 0 0 50px rgba(0,255,255,0.3); }
  50% { box-shadow: 0 0 40px rgba(0,255,255,0.8), 0 0 80px rgba(0,255,255,0.4); }
}
/* 1) Make footer stick to bottom only when content is short */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full height */
}

/* main content area (change .page ou .content selon ton html) */
.page {
  flex: 1 0 auto;
}

footer {
  margin-top: 0;
  margin-top: auto;
}

/* 2) clearfix pour les éléments flottants */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}
.card.finale {
    border: 2px solid #ff2b2b;       /* rouge vif */
    border-radius: 14px;
    box-shadow:
        0 0 8px rgba(255, 0, 0, 0.6),   /* halo proche */
        0 0 16px rgba(255, 0, 0, 0.4),  /* halo moyen */
        0 0 28px rgba(255, 0, 0, 0.25); /* halo large */
    transition: .2s ease-in-out;
}
.badge-live {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff2b2b;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255, 50, 50, 0.6);
}
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.show-image {
  display: block;
  width: 100%;
  border-radius: 10px;
}
/* Conteneur de l'image */
.image-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

/* Image de la carte */
.image-wrapper img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* Badge BIENTÔT SUPPRIMÉ */
.badge-soon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: red;
  color: white;
  font-weight: 600;
  text-align: center;
  font-size: 11px;
  padding: 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  opacity: 0.95;
}

.badge-bottom {
  background: linear-gradient(to top, red 80%, rgba(255, 0, 0, 0.6));
}
.badge-nouveau,
.badge-soon {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 153, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 153, 0, 0.6);
  }
}
.badge-soon {
  animation: pulseGlowRed 2s infinite;
}

@keyframes pulseGlowRed {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
  }
}
/* Par défaut : vue mobile */
.ad-rail {
  display: none; /* pas de pub colonne */
}

.ad-mobile-bottom {
  display: block;
  text-align: center;
  margin: 20px 0;
}

/* Écrans larges (PC) */
@media (min-width: 769px) {
  .ad-rail {
    display: block;      /* pub verticale à gauche */
  }

  .ad-mobile-bottom {
    display: none;       /* pas de pub sous Accueil sur PC */
  }
}
/* --- LAYOUT DES DEUX COLONNES --- */
.page.two-cols {
  display: flex;
  gap: 24px;
}

/* COLONNE PUB PC */
.ad-rail {
  width: 160px;
  flex-shrink: 0;
}

/* COLONNE CONTENU */
.episodes-col {
  flex: 1;
}

/* PUB MOBILE : masquée par défaut sur PC */
.ad-mobile-bottom {
  display: none;
  text-align: center;
  margin-top: 16px;
}

/* --- VERSION MOBILE --- */
@media (max-width: 768px) {
  .page.two-cols {
    flex-direction: column;      /* contenu + pub en colonne */
  }

  .ad-rail {
    display: none;               /* cache la pub verticale */
  }

  .ad-mobile-bottom {
    display: block;              /* affiche la bannière 320x50 */
  }
}
/* Sur mobile : on cache la pub de gauche */
@media (max-width: 768px) {
  .ad-rail {
    display: none !important;
  }
}
/* Recentre la colonne des épisodes sur mobile */
@media screen and (max-width: 768px) {
  .two-cols {
    flex-direction: column !important;
    align-items: center !important;
  }

  .episodes-col {
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box;
  }

  .episodes-list {
    margin: 0 auto !important;
    padding: 0;
    text-align: center;
  }

  .episodes-list li a {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
/* MOBILE — Cache la pub PC */
@media screen and (max-width: 768px) {
  .ad-rail {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Recentre la colonne des épisodes */
  .two-cols {
    flex-direction: column !important;
    align-items: center !important;
  }

  .episodes-col {
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box;
  }

  .episodes-list {
    margin: 0 auto !important;
    text-align: center;
  }

  .episodes-list li a {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
body {
  overflow-x: hidden;
  }
.ad-container {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}
.legal-notice {
max-width: 900px;
margin: 0 auto 2rem auto;
padding: 1.2rem 1.5rem;
border-radius: 14px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #e4e7f5;
font-size: 0.9rem;
line-height: 1.5;
text-align: center;
}

.legal-notice p {
margin: 0;
}
.footer-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  color: #e4e7f5;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Colonne gauche */
.footer-left h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.7rem;
  text-decoration: none;
  color: #e4e7f5;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.footer-social img {
  width: 24px;
  height: 24px;
}

.footer-social:hover {
  opacity: 0.75;
}

/* Colonne droite */
.footer-right {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  max-width: 480px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive mobile */
@media (max-width: 700px) {
  .footer-split {
    flex-direction: column;
  }

  .footer-right {
    width: 100%;
    max-width: none;
  }
}
.footer-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  color: #e4e7f5;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 200, 255, 0.2);
}

/* COLONNE GAUCHE */
.footer-left h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #00c8ff; /* bleu Lirflix */
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.7rem;
  text-decoration: none;
  color: #d1e8ff;
  font-size: 1rem;
  transition: 0.25s;
}

.footer-social img {
  width: 26px;
  height: 26px;
  filter: brightness(0) saturate(100%) invert(71%) sepia(52%) saturate(7484%) hue-rotate(169deg) brightness(102%) contrast(101%);
}

.footer-social:hover {
  color: #00c8ff;
  transform: translateX(4px);
}

/* COLONNE DROITE */
.footer-right {
  background: rgba(0, 200, 255, 0.06); /* fond bleu très léger */
  border: 1px solid rgba(0, 200, 255, 0.25);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  max-width: 480px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d3eaff;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .footer-split {
    flex-direction: column;
    text-align: left;
  }

  .footer-right {
    width: 100%;
    max-width: none;
  }
}
/* CENTRER LE FOOTER SUR MOBILE */
@media screen and (max-width: 768px) {
    .footer-split {
        display: flex;
        flex-direction: column;
        align-items: center;      /* CENTRE TOUT HORIZONTALEMENT */
        text-align: center;       /* CENTRE LE TEXTE */
        gap: 20px;                /* ESPACE ENTRE GAUCHE & DROITE */
    }

    .footer-left,
    .footer-right {
        width: 100%;              /* PREND LA LARGEUR POUR BIEN CENTRER */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}
.alert-banner {
    background: #b91c1c; /* Rouge sombre */
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.4);
    border: 1px solid #7f1d1d;
}
.alert-banner {
    animation: pop 0.25s ease-out;
}

@keyframes pop {
    0% { transform: scale(.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
/* Popup d'information */
.alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.alert-box {
    background: #111827;
    padding: 26px 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 350px;
    color: white;
    border: 1px solid #22d3ee;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    animation: popup .25s ease-out;
}

.alert-btn {
    margin-top: 18px;
    padding: 10px 18px;
    background: #22d3ee;
    color: black;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
}

@keyframes popup {
    0% { transform: scale(.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.header {
  position: relative;
  height: 70px;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: #ffffff;
}
/* ===============================
   PAGE ÉMISSION – LIRFLIX
   =============================== */

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #0e1626 0%, #070b14 60%);
  color: #ffffff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* CONTAINER GLOBAL */
.emission-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px 80px;
}

/* TITRE */
.emission-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
}

/* HEADER (IMAGE + TEXTE) */
.emission-header {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 55px;
}

.emission-poster {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

/* DESCRIPTION */
.emission-description {
  font-size: 17px;
  line-height: 1.6;
  color: #d6e0f0;
  margin-bottom: 20px;
  max-width: 650px;
}

/* PROCHAIN ÉPISODE */
.next-episode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #5eead4, #22d3ee);
  color: #031018;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.35);
  width: fit-content;
}

/* ===============================
   GRID ÉPISODES
   =============================== */

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}

/* CARD ÉPISODE */
.episode-card {
  background: linear-gradient(180deg, #141d2e, #0f1626);
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.episode-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* TITRE ÉPISODE */
.episode-title {
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
}

/* ===============================
   BOUTON ACCUEIL BAS DE PAGE
   =============================== */

.back-home {
  margin: 70px auto 0;
  display: flex;
  justify-content: center;
}

.back-home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.back-home a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ===============================
   MOBILE OPTIMISATION
   =============================== */

@media (max-width: 768px) {
  .emission-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .emission-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .emission-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 18px auto;
  }

  .next-episode {
    font-size: 13px;
    padding: 8px 14px;
    margin: auto;
  }

  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .episode-card img {
    height: 100px;
  }

  .episode-title {
    font-size: 13px;
  }
}
/* ====================================================== */
/*                   STYLES GÉNÉRAUX ET RESET               */
/* ====================================================== */

/* Assure un fond sombre et une police uniforme pour toute la page */
body {
    background-color: #0f172a; /* Noir très sombre, typique des plateformes de streaming */
    color: #e0e0e0; /* Texte gris clair */
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* Conteneur principal qui englobe tout le contenu */
.container {
    max-width: 1200px; /* Limite la largeur du site */
    margin: 0 auto; /* Centre le conteneur */
    padding: 20px;
}

/* Styles pour les titres */
h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-top: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #333; /* Séparateur */
    padding-bottom: 10px;
}

/* Styles pour les images (très important pour éviter les débordements) */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Supprime l'espace sous les images */
}


/* ====================================================== */
/*                PAGE ÉMISSION (ENTÊTE)                 */
/* ====================================================== */

/* Conteneur principal de l'entête (Image + Description) */
.header {
    display: flex; /* Utilise Flexbox */
    gap: 30px; /* Espace entre les éléments */
    margin-bottom: 40px;
    padding: 20px;
    background-color: #0f172a; /* Fond légèrement plus clair que le body */
    border-radius: 10px;
    align-items: flex-start; /* Aligne les éléments en haut */
}

/* Style spécifique pour l'image de couverture */
.header img {
    flex-shrink: 0; /* Empêche l'image de se compresser */
    width: 300px; /* Taille de l'image de couverture comme dans le modèle */
    height: auto;
    border-radius: 8px;
    object-fit: cover; /* Assure que l'image couvre l'espace sans déformation */
}

/* Style pour la description (texte à droite) */
.header-text {
    flex-grow: 1; /* Prend l'espace restant */
    padding: 10px 0;
    line-height: 1.6;
    color: #ccc;
}


/* ====================================================== */
/*                     GRILLE D'ÉPISODES                   */
/* ====================================================== */

.episodes-grid {
    display: grid;
    /* Crée 4 colonnes égales, comme dans ton modèle */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-top: 20px;
}

/* Style de la carte d'épisode (le lien <a>) */
.episode-card {
    background-color: #0f172a; /* Fond de la carte */
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; /* Supprime le soulignement du lien */
    color: inherit;
    display: block; /* Permet à la carte d'occuper tout l'espace */
}

.episode-card:hover {
    transform: translateY(-5px); /* Léger effet de soulèvement */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.episode-card img {
    /* L'image de la vignette prend toute la largeur de la carte */
    width: 100%; 
    height: auto;
    border-bottom: 1px solid #333;
}

.episode-card span {
    display: block;
    padding: 10px 5px;
    font-size: 0.9em;
    font-weight: bold;
    color: #e0e0e0;
}
.player-box {
    position: relative;
    width: 100%;
    /* Ratio 16:9 (9 / 16 * 100 = 56.25%) */
    padding-top: 56.25%; 
    margin-bottom: 30px;
    background-color: black;
}

.player-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Navigation Précédent/Suivant/Retour */
.nav-episodes {
    display: flex;
    justify-content: space-between; /* Espace les boutons */
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 10px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.nav-btn {
    text-decoration: none;
    color: #8ab4f8; /* Couleur bleue claire pour les liens */
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.nav-btn:hover {
    background-color: #282c34;
}

/* Bouton Retour Accueil */
.back-home {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.home-btn {
    text-decoration: none;
    color: white;
    background-color: #3e3e3e;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}

.home-btn:hover {
    background-color: #555;
}

@media (max-width: 1000px) {
    /* Tablette : 3 cartes par ligne */
    .episodes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile/Petite tablette : 2 cartes par ligne */
    .episodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Empile l'image et le texte de l'entête */
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header img {
      width: 100%;
      max-width: 520px;      /* ajuste si tu veux */
      height: auto;          /* IMPORTANT */
      object-fit: contain;   /* affiche l’image entière */
      border-radius: 16px;
      background: #0f1626;   /* évite le blanc autour */
}
}

@media (max-width: 500px) {
    /* Petit mobile : 1 carte par ligne */
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    .nav-episodes {
        flex-direction: column;
        gap: 15px;
    }
}
html {
    /* Assure que l'arrière-plan s'étend à toute la page */
    background-color: #0f1626; 
}

body {
    background-color: #0f1626; /* TA COULEUR DE FOND UNIE */
    color: #e0e0e0; /* Texte gris clair */
    font-family: 'Arial', sans-serif;
    margin: 0; /* SUPPRIME LES MARGES PAR DÉFAUT */
    padding: 0;
    
    /* TRÈS IMPORTANT : ÉLIMINE TOUTE IMAGE OU RÉPÉTITION D'ARRIÈRE-PLAN */
    background-image: none !important; 
    background-repeat: no-repeat;
    background-attachment: fixed; /* Assure que si une image est là, elle ne se décale pas */
}
.header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* IMAGE ÉMISSION */
.emission-cover {
  width: 100%;
  max-width: 520px;
  height: auto;            /* 🔥 IMPORTANT */
  object-fit: contain;     /* 🔥 IMAGE ENTIÈRE */
  border-radius: 14px;
  margin: 0 auto;
  background: #000;
}
/* ===== PAGE ÉMISSION ===== */

.show-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}

/* IMAGE ÉMISSION (NON COUPÉE) */
.show-cover {
  width: 320px;
  max-width: 100%;
  height: auto;              /* 🔑 empêche le crop */
  border-radius: 14px;
  object-fit: contain;       /* 🔑 affiche l’image entière */
  background: #000;
}

/* TEXTE + BADGE */
.show-info {
  flex: 1;
}

/* DESCRIPTION */
.show-description {
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* BADGE PROCHAIN ÉPISODE */
.next-episode-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(34,211,238,0.35);
}

/* MOBILE */
@media (max-width: 768px) {
  .show-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .show-cover {
    width: 100%;
    max-width: 360px;
  }

  .next-episode-badge {
    margin: 10px auto 0;
  }
}
/* MOBILE – 2 épisodes par ligne */
@media (max-width: 768px) {
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 768px) {

  .show-description {
    font-size: 13.5px;
    line-height: 1.45;
    max-height: 6em;
    overflow: hidden;
  }
}
@media (max-width: 768px) {

  .next-episode-badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    gap: 6px;
  }

  .next-episode-badge img,
  .next-episode-badge svg {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 768px) {

  .episode-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 
      0 8px 24px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .episode-card:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  }

  .episodes-grid {
    gap: 16px; /* + d’air entre les cards */
  }

}
/* Desktop uniquement */
@media screen and (min-width: 1024px) {
  .episode-card {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.02)
    );
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .episode-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
  }
}
@media screen and (min-width: 1024px) {
  .episode-card span {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 10px;
    display: block;
  }
}
/* ===== BADGE NOUVEAU ===== */
.episode-card {
  position: relative;
}

.latest-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(34,197,94,0.6);
  text-transform: uppercase;
}
/* ===== DIFFÉRENCE VISUELLE PC ===== */
@media (min-width: 1024px) {
  .episode-card {
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .episode-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  }
}
/* 🎠 CARROUSEL ÉPISODES */
.episodes-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.episodes-carousel::-webkit-scrollbar {
  display: none; /* Chrome */
}

/* Chaque card */
.episode-card {
  flex: 0 0 auto;
  width: 260px; /* PC */
  scroll-snap-align: start;
}
@media (max-width: 768px) {
  .episode-card {
    width: 70%;
  }
}

@media (max-width: 480px) {
  .episode-card {
    width: 80%;
  }
}
.section-title {
  margin: 40px 0 16px;
  font-size: 1.4rem;
  font-weight: 600;
}

.last-added-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.last-added-carousel::-webkit-scrollbar {
  height: 6px;
}
.last-added-carousel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.episode-card.small {
  min-width: 220px;
  scroll-snap-align: start;
}

/* Images derniers ajouts - PC - même taille que les cards d'accueil */
.last-added-carousel .episode-card.small img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}

/* Derniers ajouts – MOBILE ONLY */
@media (max-width: 768px) {

  .last-added-carousel .episode-card.small {
    width: 140px;
    flex: 0 0 140px;
  }

  .last-added-carousel .episode-card.small img {
    height: 85px;
  }

  .last-added-carousel .episode-card.small span {
    font-size: 13px;
  }

  .last-added-carousel .episode-card.small small {
    font-size: 11px;
  }
}
/* Bordure bleue style "Prochain épisode" – Derniers ajouts (PC + mobile) */
.last-added-carousel .episode-card.small {
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.15),
    0 6px 20px rgba(56, 189, 248, 0.15);
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.95),
    rgba(2, 6, 23, 0.95)
  );
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Effet hover PC */
.last-added-carousel .episode-card.small:hover {
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.35),
    0 10px 30px rgba(56, 189, 248, 0.30);
  transform: translateY(-2px);
}
.players-list {
  display: flex;
  gap: 10px;
  margin: 14px 0 24px;
  flex-wrap: wrap;
}

.player-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.player-btn.active {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border-color: transparent;
  color: #001018;
  font-weight: 600;
}

.player-btn:hover {
  background: rgba(255,255,255,0.15);
}
.player-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.player-tab {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #3aa8ff;
  background: transparent;
  color: #3aa8ff;
  cursor: pointer;
}

.player-tab.active {
  background: #3aa8ff;
  color: #000;
}
/* Container vidéo large */
.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid #444;
    border-radius: 4px;
}

/* Boutons de lecteurs arrondis (style Uqload) */
.player-tab-btn {
    background: #222;
    color: white;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 25px; /* Très arrondi comme sur la photo */
    margin-right: 10px;
    cursor: pointer;
}

.player-tab-btn.active {
    background: #00adef; /* Bleu ciel comme sur l'image */
    border-color: #00adef;
}

/* Barre de navigation horizontale */
.episode-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 0.9em;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
}

/* Gros bouton accueil */
.big-home-btn {
    display: inline-block;
    background: #3e3e3e;
    color: white;
    text-align: center;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 40px;
    transition: background-color 0.3s;
}
/* Container de la page */
.episode-page {
    text-align: center;
    color: white;
}

/* Style des lecteurs (boutons arrondis) */
.player-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.player-tab-btn {
    background: #2a2a3a;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

.player-tab-btn.active {
    background: #00adef; /* Le bleu de ta capture */
}

/* Container vidéo (Embed plus grand) */
.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: 1px solid #333;
}

/* Pile de boutons verticale */
.vertical-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Espace entre les boutons */
    margin: 30px 0;
}

.nav-stack-link {
    color: #a0b0ff; /* Bleu clair pour les liens */
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-stack-link:hover {
    text-decoration: underline;
}
/* ==============================
   BOUTON ACCUEIL
============================== */

.back-home {
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 28px;
  border-radius: 999px;

  font-size: 16px;
  font-weight: 600;
  text-decoration: none;

  color: #cfefff;
  background: rgba(20, 90, 160, 0.15);

  border: 1px solid rgba(80, 160, 255, 0.35);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 0 0 rgba(80, 160, 255, 0),
    inset 0 0 20px rgba(80, 160, 255, 0.15);

  transition: all 0.25s ease;
}

/* Hover PC */
.home-btn:hover {
  color: #ffffff;
  background: rgba(40, 120, 220, 0.25);

  box-shadow:
    0 0 25px rgba(80, 160, 255, 0.45),
    inset 0 0 25px rgba(80, 160, 255, 0.25);

  transform: translateY(-1px);
}

/* Click */
.home-btn:active {
  transform: translateY(0);
  box-shadow:
    0 0 15px rgba(80, 160, 255, 0.35),
    inset 0 0 30px rgba(80, 160, 255, 0.35);
}

/* Mobile */
@media (max-width: 768px) {
  .home-btn {
    font-size: 15px;
    padding: 12px 24px;
  }
}
@media screen and (max-width: 768px) {
  #episode-content h1 {
    font-size: 1.55rem;
    line-height: 1.3;
    padding: 0 14px;
    margin-bottom: 14px;
  }

  /* Navigation boutons sur mobile - 3 lignes */
  .vertical-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 14px;
    margin: 30px 0;
  }

  .nav-row {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  .nav-row-single {
    justify-content: center;
  }

  .nav-row-single .nav-btn {
    flex: 0 1 auto;
    min-width: 180px;
  }

  /* Boutons épisodes plus petits sur mobile */
  .episode-nav-btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
    min-height: 36px !important;
    background: #22d3ee !important;
    color: #ffffff !important;
    border: 1px solid #22d3ee !important;
  }

  /* Boutons action (retour à l'émission et accueil) - plus petits et transparents */
  .action-nav-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
    min-height: 36px !important;
    background: transparent !important;
    color: #22d3ee !important;
    border: 1px solid #22d3ee !important;
  }

  .nav-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    min-height: 44px;
  }

  .nav-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 15px rgba(80, 160, 255, 0.35), inset 0 0 30px rgba(80, 160, 255, 0.35);
  }

  .nav-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }

}
@media screen and (min-width: 1024px) {
  .vertical-nav {
    max-width: 900px;
    margin: 45px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .nav-row {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
  }

  .nav-row-single {
    justify-content: center;
  }

  .nav-row-single .nav-btn {
    flex: 0 1 auto;
    min-width: 200px;
  }

  /* Boutons épisodes sur PC */
  .episode-nav-btn {
    background: #22d3ee !important;
    color: #ffffff !important;
    border: 1px solid #22d3ee !important;
  }

  .episode-nav-btn:hover {
    background: #22d3ee !important;
    color: #ffffff !important;
    opacity: 0.9;
    transform: translateY(-1px);
  }

  /* Boutons action (retour à l'émission et accueil) - plus petits et transparents sur PC */
  .action-nav-btn {
    padding: 10px 18px !important;
    font-size: 13px !important;
    background: transparent !important;
    color: #22d3ee !important;
    border: 1px solid #22d3ee !important;
    min-width: 180px;
  }

  .action-nav-btn:hover {
    background: rgba(34, 211, 238, 0.1) !important;
    color: #22d3ee !important;
    transform: translateY(-1px);
  }

  .nav-btn {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    min-width: 200px;
  }

  .nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(80, 160, 255, 0.35), inset 0 0 30px rgba(80, 160, 255, 0.35);
  }

  .nav-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }
}
.nav-stack-link,
.nav-stack-link:visited,
.nav-stack-link:hover,
.nav-stack-link:active {
  text-decoration: none;
}
nav-stack-link {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
@media (max-width: 768px) {
  .episode-page {
    padding-top: 10px;
  }
}
/* ===== Ajustement titre épisode - MOBILE ===== */
@media (max-width: 768px) {
  .show-main-title {
    margin-top: 24px;        /* le descend un peu */
    margin-bottom: 18px;     /* respire avec le reste */
    padding: 0 14px;         /* évite qu’il touche les bords */
    line-height: 1.35;       /* moins compressé */
    font-size: 1.45rem;     /* taille équilibrée */
    text-align: center;
  }
}
@media (max-width: 768px) {
  .player-section {
    margin-top: 14px;
  }
}
@media (max-width: 768px) {
  .show-main-title {
    letter-spacing: 0.3px;
  }
}
.back-home {
  display: flex;
  justify-content: center;
  margin: 24px 0 10px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 12px 22px;
  min-width: 170px;

  font-size: 0.95rem;
  font-weight: 500;

  color: #e5f7ff;
  text-decoration: none;

  background: rgba(15, 23, 42, 0.6);

  border-radius: 14px;

  border: 1px solid rgba(34, 211, 238, 0.45);
}
/* 🔥 Derniers ajouts – liste clean */
.last-added-list {
  margin: 16px 0 24px;
  padding: 14px 16px;
  list-style: none;
  background: rgba(15, 25, 40, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12),
              0 8px 25px rgba(0, 0, 0, 0.35);
}

/* chaque ligne */
.last-added-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 0.85rem; /* 👈 texte plus petit */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.last-added-list li:last-child {
  border-bottom: none;
}

/* lien */
.last-added-list li a {
  color: #e5f4ff;
  text-decoration: none;
  line-height: 1.4;
}

.last-added-list li a:hover {
  color: #38bdf8;
}
/* 🔥 Derniers ajouts – section dédiée */
.last-added-section {
  margin-top: 10px;
}

/* Titre centré uniquement ici */
.last-added-section .section-title {
  text-align: center;
  margin: 10px 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e6f7ff;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}
.last-added-header {
  text-align: center;
  margin-bottom: 4px;
  margin-top: 18px;
}
.last-added-header .section-title {
  margin: 0;
}
@media (min-width: 768px) {
  .last-added-list {
    max-width: 620px;
    margin: 0 auto;
    background: rgba(15, 30, 45, 0.6);
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
}
/* Bloc global */
.last-added-side {
  max-width: 420px;
  background: linear-gradient(180deg, #0b1622, #0f2233);
  border-radius: 14px;
  padding: 14px;
  margin: 24px auto;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.15),
              0 10px 30px rgba(0,0,0,0.35);
}

/* Titre */
.last-added-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #e6f7ff;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 8px;
}

/* Liste */
.last-added-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card épisode */
.last-added-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  transition: background .2s, transform .2s;
}

.last-added-card:hover {
  background: rgba(56,189,248,0.12);
  transform: translateX(3px);
}

/* Image */
.last-added-card img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Texte */
.last-added-info {
  font-size: .85rem;
  line-height: 1.25;
}

.last-added-info strong {
  display: block;
  color: #e6f7ff;
  font-weight: 600;
}

.last-added-info span {
  color: #9fb7cc;
}
.emissions {
    display: flex;          /* Active le mode Flexbox */
    flex-wrap: wrap;      /* Permet aux cartes de passer à la ligne si pas assez de place */
    justify-content: center; /* Centre les cartes horizontalement */
    gap: 20px;              /* Ajoute de l'espace entre les cartes sans marges complexes */
    padding: 20px;          /* Un peu d'espace sur les côtés */
}
.main-layout {
    max-width: 1200px;     /* Empêche le site de devenir trop large sur grand écran */
    margin: 0 auto;        /* Centre le bloc entier dans la page */
    text-align: center;    /* Centre les titres h2 par exemple */
}

.channel-section {
    width: 100%;
    margin-bottom: 40px;
}.card {
    width: 250px; /* Ou la taille qui te convient */
    text-decoration: none; /* Enlever le souligné du lien */
    color: white; /* Pour que le texte soit lisible sur ton fond sombre */
    display: block;
}
.channel-title {
    color: transparent;           /* Intérieur transparent */
    -webkit-text-stroke: 1.5px #22d3ee; /* Contour bleu turquoise de 1.5px */
    text-decoration-thickness: 2px; /* Optionnel : pour l'épaisseur du trait */
    text-underline-offset: 5px;     /* Optionnel : pour décoller un peu le trait du texte */
    margin-bottom: 0px !important;
    font-weight: bold;
    font-size: 42px;              /* Plus imposant */
    text-align: left;              /* Aligné à gauche */
    position: relative;            /* Pour le pseudo-élément */
    display: block;                /* Pour que la ligne prenne toute la largeur */
    padding-bottom: 0px !important;           /* Pas d'espace entre le titre et la ligne */
}

/* Ligne bleue horizontale sous chaque titre de chaîne */
.channel-header {
  width: 100%;
  max-width: 1200px;
  margin: 10px auto 6px;
  position: relative;
}

.channel-header::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0 !important;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  box-shadow: 0 0 8px rgba(34,211,238,0.5);
}

/* ALIGNEMENT PARFAIT DES CARTES SUR PC */
.emissions .card {
    display: flex !important;
    flex-direction: column !important;
    width: 270px !important; /* Ta largeur actuelle */
    height: 295px !important; /* Hauteur augmentée */
    justify-content: flex-start !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

/* On s'assure que l'image ne bouge pas */
.emissions .card img {
    height: 150px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important; /* L'image ne doit pas se compresser */
}



/* 1. On réduit l'espace interne de chaque section de chaîne */
.channel-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important; /* Supprime le gros vide sous les cartes */
}

/* 2. On réduit l'espace autour du conteneur de cartes */
.emissions {
    margin-top: 5px !important;    /* Rapproche les cartes de leur titre (W9, TF1) */
    margin-bottom: 10px !important; /* Rapproche la fin des cartes du titre suivant */
    padding-bottom: 0 !important;
}

.channel-title {
    margin-top: 15px !important;  /* Espace au-dessus du titre (ex: TF1) */
    margin-bottom: 5px !important; /* Espace entre le titre et ses cartes */
    line-height: 1 !important;
}

#app, main, body {
    display: flex;
    flex-direction: column;
    gap: 0 !important; /* Supprime l'espace automatique entre les éléments enfants */
}
/* ALIGNEMENT PARFAIT TITRE ET CARTES (PC) */

.channel-section {
    padding-left: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Force tout à gauche */
}

.channel-title {
    margin-left: 0 !important; /* Aligne le titre sur le bord gauche */
    padding-left: 0 !important;
    display: inline-block !important;
}

.emissions {
    margin-left: auto !important; /* Centre le bloc de cartes */
    margin-right: auto !important;
    padding-left: 0 !important;
    justify-content: center !important; /* Centre les cartes */
    gap: 20px !important; /* L'espace entre les cartes uniquement */
}

.card:first-child {
    margin-left: 0 !important; /* S'assure que la toute première carte ne bouge pas */
}
/* COLLER LES TITRES AUX ÉMISSIONS (PC) */

.channel-title {
    margin-top: 8px !important;    /* Espace au-dessus du titre pour respirer */
    margin-bottom: 5px !important; /* MARGE NÉGATIVE : Aspire les cartes vers le haut */
    position: relative !important;
    z-index: 10 !important;         /* Garde le titre au-dessus des cartes si ça se chevauche */
}

.emissions {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.telegram-box {
  max-width: 1200px;
  margin: 25px auto 40px auto;
  padding: 18px 22px;
  border: 2px solid #22d3ee;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.05);
  text-align: center;
  margin-bottom: 10px !important;
}

.telegram-box p {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.5;
}

.telegram-box strong {
  color: #22d3ee;
}
@media (max-width: 768px) {
  .telegram-box {
    margin: 20px 12px 30px 12px;
    padding: 16px;
  }
}
@media (min-width: 1024px) {
  .telegram-box {
    max-width: 1700px;
  }
}
@media (min-width: 1024px) {
  .telegram-box p {
    white-space: nowrap;
    font-size: 15px;
  }
}
.telegram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid #22d3ee;
  color: #22d3ee;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: transparent;
  transition: all 0.25s ease;
}

.telegram-btn:hover {
  background: rgba(34, 211, 238, 0.15);
}
@media (min-width: 1024px) {
  .telegram-box {
    width: 100vw;              /* largeur écran */
    max-width: none;           /* enlève toute limite */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-radius: 0;
  }
}
/* ============================= */
/* MOBILE – CARTES COMME L'IMAGE */
/* ============================= */
@media (max-width: 768px) {
  .channel-section, .main-layout {
    max-width: 100% !important;
    }
 /* ============================= */
/* MOBILE – CARTES PROPRES */
/* ============================= */
@media (max-width: 768px) {
  /* Conteneur des cartes */
  .emissions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 10px 20px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Carte compacte - surcharge .emissions .card - dimensions identiques à lirflix.net */
  .emissions .card {
    width: 100% !important;
    height: 225px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }
  
  .card {
    width: 100% !important;
    height: 225px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  /* Wrapper image */
  .card .image-wrapper,
  .image-wrapper {
    height: 90px !important;
    width: 100% !important;
    position: relative !important;
  }

  /* Image - légèrement plus grande que lirflix.net */
  .emissions .card img {
    height: 90px !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  
  .card img {
    height: 90px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  /* Titre - aligné à gauche comme lirflix.net */
  .emissions .card h2 {
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin: 10px 8px 4px !important;
    text-align: left !important;
  }
  
  .card h2 {
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin: 10px 8px 4px !important;
    text-align: left !important;
  }

  /* Description - alignée à gauche comme lirflix.net - 3 lignes */
  .emissions .card p {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin: 0 8px 10px !important;
    max-height: 4.35em !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    text-align: left !important;
  }
  
  .card p {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin: 0 8px 10px !important;
    max-height: 4.35em !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    text-align: left !important;
  }

  /* Badge nouveau - identique à lirflix.net mobile */
  .badge-nouveau {
    position: absolute !important;
    bottom: 6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(90deg, rgb(255, 179, 71), rgb(255, 152, 0)) !important;
    color: rgb(255, 255, 255) !important;
    font-weight: 600 !important;
    text-align: center !important;
    font-size: 10px !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    box-shadow: rgba(255, 153, 0, 0.57) 0px 0px 11.272px 0px !important;
    z-index: 2 !important;
    line-height: 1 !important;
  }

  /* Titres de sections (W9, TF1, M6) - mobile */
  .channel-title {
    color: transparent !important;           /* Intérieur transparent */
    -webkit-text-stroke: 1.5px #22d3ee !important; /* Contour bleu turquoise de 1.5px */
    font-size: 34px !important;
    text-align: center !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-bottom: 1px !important;
    margin-bottom: 0px !important;
    position: relative !important;
    display: block !important;
  }

  /* Ligne bleue - mobile - petite ligne dégradé avec glow */
  .channel-header::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 0 !important;
    width: 100px !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #22d3ee, transparent) !important;
    box-shadow: 0 0 8px rgba(34,211,238,0.5) !important;
  }

  /* Badge épisodes - mobile - même taille que lirflix.net */
  .epi-badge {
    position: absolute !important;
    left: auto !important;
    right: 4px !important;
    bottom: 8px !important;
    transform: none !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: normal !important;
    background: #22d3ee !important;
    color: #0b1220 !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.35) !important;
    z-index: 2 !important;
    white-space: nowrap !important;
    height: auto !important;
  }
}
}
.badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-trending {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
}

.badge-top2 {
  background: #cfd8dc;
  color: #111;
}

.badge-top3 {
  background: #d7a86e;
  color: #111;
}