/* ==========================================================================
   MBH SHORT — thème sombre façon plateforme de dramas verticaux
   Palette: noir #0b0708, rouge profond #7a1220 -> orange #f2711c (accent CTA)
   ========================================================================== */

:root{
  --bg:#0b0708;
  --bg-soft:#160b0d;
  --surface:#1c1113;
  --surface-2:#26161a;
  --border:#3a2226;
  --text:#f5eeee;
  --text-dim:#c9b9ba;
  --text-mute:#8f7c7d;
  --accent:#ffb300;
  --accent-2:#ffce59;
  --accent-gradient:linear-gradient(90deg,#ffb300,#ffce59);
  --red-deep:#7a1220;
  --pink:#e91e63;
  --logo-gradient:linear-gradient(135deg,#ff4a00 0%,#ff0064 35%,#c2008f 70%,#8400a2 100%);

  --radius-sm:5px;
  --radius-md:5px;
  --radius-lg:5px;

  --container:1180px;
  --gutter:clamp(16px,4vw,40px);

  --font:"Noto Sans",Roboto,Arial,sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html,body,h1,h2,h3,h4,p,ul{ margin:0; padding:0; }
ul{ list-style:none; }
a{ text-decoration:none; color:inherit; }
button{ font:inherit; cursor:pointer; }
img{ max-width:100%; display:block; }

/* Garde-fou : seul le defilement vertical est autorise sur la page ; tout element qui deborderait
   (icone, chip, texte non coupe...) est coupe ici plutot que d'elargir la fenetre. Les zones qui ont
   volontairement besoin d'un scroll horizontal (ex: .genre-pills) le declarent elles-memes via overflow-x:auto. */
html{ overflow-x:hidden; max-width:100%; }
body.app-dark{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  line-height:1.5;
  padding-bottom:71px; /* place pour la barre de nav mobile fixe */
  overflow-x:hidden;
  max-width:100%;
}

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.app-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(11,7,8,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.app-header-row{
  display:flex;
  align-items:center;
  gap:22px;
  min-height:66px;
}
.app-logo{ display:flex; align-items:center; gap:9px; flex:none; }
.app-logo img{ width:34px;height:34px;border-radius:9px; }
.app-logo span{ font-weight:800; font-size:17px; letter-spacing:.2px; }

.app-nav-pills{ display:flex; align-items:center; gap:22px; flex:none; }
.app-nav-pills a{
  font-size:14px; font-weight:700; color:var(--text-mute);
  padding:8px 2px; border-bottom:2px solid transparent; white-space:nowrap;
}
.app-nav-pills a.active,.app-nav-pills a:hover{ color:var(--text); border-bottom-color:var(--accent); }

.app-header-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; flex:none; }
.lang-chip{
  display:flex; align-items:center; gap:6px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:5px; padding:8px 12px;
  font-weight:700; font-size:13px; color:var(--text);
  white-space:nowrap;
}
.lang-chip svg{ width:16px;height:16px; color:var(--text-dim); flex:none; }
.lang-chip:hover{ border-color:var(--accent); }
.lang-chip:hover svg{ color:var(--accent-2); }
.icon-btn-circle{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; flex:none;
  background:var(--surface); border:1px solid var(--border); border-radius:50%;
  color:var(--text-dim);
}
.icon-btn-circle:hover{ color:var(--text); border-color:var(--accent); }
.icon-btn-circle svg{ width:16px;height:16px; }
.coin-chip{
  display:flex; align-items:center; gap:6px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:5px; padding:8px 12px;
  font-weight:700; font-size:13px; color:#ffd54a;
  white-space:nowrap;
}
.coin-chip .coin-dot{ width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#ffe27a,#f2a71c); flex:none; }
.account-icon-link{
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; flex:none;
  border-radius:50%; background:var(--surface); border:1px solid var(--border);
  color:var(--text);
}
.account-icon-link:hover{ border-color:var(--accent); color:var(--accent-2); }
.account-icon-link svg{ width:22px;height:22px; }

/* ==========================================================================
   BARRE DE CHARGEMENT MOBILE
   ========================================================================== */
.mobile-loadbar{
  display:none;
  height:10px;
  background:var(--bg);
  position:sticky; top:0; z-index:101;
}
.mobile-loadbar span{
  display:block; height:100%; width:0%;
  background:var(--logo-gradient);
  transition:width .3s ease, opacity .25s ease .1s;
}
.mobile-loadbar.is-done span{ width:100%; }

/* ==========================================================================
   HERO — diaporama d'ouverture (une affiche par serie, swipe + auto)
   ========================================================================== */
.hero-slider{ position:relative; }
.hero-track{
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  /* Le doigt fait defiler le diaporama horizontalement, la page verticalement. */
  touch-action:pan-y pinch-zoom;
}
.hero-track::-webkit-scrollbar{ display:none; }

.hero-slide{
  position:relative;
  flex:0 0 100%;
  scroll-snap-align:start;
  min-height:340px;
  display:flex;
  align-items:flex-end;
  border-radius:0 0 var(--radius-lg) var(--radius-lg);
  overflow:hidden;
}
.hero-slide-bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; object-position:center 20%;
}
.hero-slide::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(11,7,8,.15) 0%,rgba(11,7,8,.6) 50%,rgba(11,7,8,.97) 100%);
}

.hero-dots{
  position:absolute; left:0; right:0; bottom:10px; z-index:3;
  display:flex; justify-content:center; align-items:center; gap:6px;
  pointer-events:none;
}
.hero-dot{
  pointer-events:auto;
  width:7px; height:7px; padding:0; border:none; border-radius:99px;
  background:rgba(255,255,255,.35);
  transition:width .25s ease, background .25s ease;
}
.hero-dot.is-active{ width:20px; background:#fff; }

.hero-banner-content{
  position:relative; z-index:2;
  padding:30px var(--gutter) 30px;
  width:100%;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--accent-gradient); color:#1a0d02;
  font-weight:800; font-size:10px; letter-spacing:.3px;
  padding:4px 8px; border-radius:5px; margin-bottom:10px;
}
.subtitled-badge{
  display:inline-flex; align-items:center; gap:5px;
  background:var(--surface-2); border:1px solid var(--border); color:var(--text-dim);
  font-weight:700; font-size:11px; letter-spacing:.3px;
  padding:4px 9px; border-radius:6px; margin:0 0 12px 8px;
}
.subtitled-badge svg{ width:13px;height:13px; color:var(--accent-2); }
.player-bottom-info .subtitled-badge{ margin:0 0 6px; align-self:flex-start; }
.hero-slide h1{
  font-size:clamp(24px,4vw,36px);
  font-weight:800;
  max-width:640px;
  letter-spacing:-.3px;
}
.hero-slide p{
  color:var(--text-dim);
  margin-top:10px;
  max-width:560px;
  font-size:14px;
}
.hero-actions{ display:flex; gap:12px; margin-top:18px; }

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; padding:0 20px; border-radius:5px;
  font-weight:700; font-size:14px; border:1.5px solid transparent;
  white-space:nowrap;
}
.btn-accent{ background:var(--accent-gradient); color:#1a0d02; box-shadow:0 8px 20px rgba(255,179,0,.28); }
.btn-outline{ background:rgba(255,255,255,.06); color:var(--text); border-color:var(--border); }
.btn-outline:hover{ background:rgba(255,255,255,.1); }
.btn-sm{ height:34px; padding:0 14px; font-size:12.5px; }

/* ==========================================================================
   SECTIONS + GRILLES DE CARTES
   ========================================================================== */
.section{ padding-block:34px; }
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:16px;
}
.section-head h2{ font-size:19px; font-weight:800; }
.section-head .sub{ font-size:12.5px; color:var(--text-mute); }
.section-head a.more{ font-size:12.5px; font-weight:700; color:var(--accent); }

.card-row{
  display:flex; gap:3px; overflow-x:auto; padding-bottom:6px;
  scrollbar-width:none;
}
.card-row::-webkit-scrollbar{ display:none; }

.series-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:3px;
}

.series-card{ position:relative; flex:none; width:150px; }
.card-row .series-card{ width:150px; }
.series-card-poster{
  position:relative;
  aspect-ratio:2/3;
  border-radius:var(--radius-md);
  overflow:hidden;
  background:var(--surface-2);
  border:1px solid var(--border);
}
.series-card-poster img{ width:100%;height:100%;object-fit:cover; }
.series-card-badge{
  position:absolute; top:8px; left:8px; z-index:2;
  font-size:8.5px; font-weight:800; letter-spacing:.2px;
  padding:3px 6px; border-radius:4px; color:#fff;
}
.series-card-badge.nouveau{ background:#e74c3c; }
.series-card-badge.tendance{ background:var(--accent); }
.series-card-badge.exclusif{ background:#9b27b0; }
.series-card-views{
  position:absolute; bottom:8px; left:8px; z-index:2;
  display:flex; align-items:center; gap:4px;
  font-size:10.5px; font-weight:700; color:#fff;
  text-shadow:0 1px 4px rgba(0,0,0,.6);
}
.series-card-views svg{ width:11px;height:11px; }
.series-card-cc{
  position:absolute; bottom:8px; right:8px; z-index:2;
  width:22px; height:22px; border-radius:5px;
  background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center;
}
.series-card-cc svg{ width:13px;height:13px; color:#fff; }
.series-card h3{
  font-size:12.5px; font-weight:700; margin-top:8px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.series-card .genre-tag{ font-size:10.5px; color:var(--text-mute); margin-top:2px; }

/* --------------------------------------------------------------------------
   Mobile : les rangees horizontales deviennent des grilles de 3 colonnes.
   Avec le diaporama raccourci, six affiches tiennent a l'ecran d'un seul coup.
   -------------------------------------------------------------------------- */
@media (max-width:600px){
  .hero-slide{ min-height:237px; }
  .hero-banner-content{ padding:14px var(--gutter) 24px; }
  .hero-badge{ font-size:8.5px; padding:3px 7px; margin-bottom:6px; }
  .hero-slide h1{ font-size:19px; }
  .hero-actions{ gap:8px; margin-top:12px; }
  .hero-actions .btn{ height:38px; padding:0 16px; font-size:13px; }

  .section{ padding-block:16px; }
  .section-head{ margin-bottom:8px; }
  .section-head h2{ font-size:16px; }

  /* Gouttiere unique de 3px : les affiches se lisent comme une seule planche. */
  .card-row,
  .series-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:3px;
    overflow:visible;
  }
  .series-card,
  .card-row .series-card{ width:100%; }

  .series-card h3{ font-size:11px; margin-top:5px; }
  .series-card .genre-tag{ font-size:9.5px; }
  .series-card-badge{ font-size:7.5px; padding:2px 5px; border-radius:4px; top:4px; left:4px; }
  .series-card-views{ font-size:9.5px; bottom:5px; left:5px; }
  .series-card-cc{ width:18px; height:18px; bottom:5px; right:5px; }

  .genre-chips{ gap:7px; }
  .genre-chip{ padding:7px 12px; font-size:12px; }
}

/* ==========================================================================
   GENRES (chips)
   ========================================================================== */
.genre-chips{ display:flex; flex-wrap:wrap; gap:10px; }
.genre-chip{
  padding:9px 16px; border-radius:5px;
  font-size:13px; font-weight:700; color:#fff;
  border:1px solid rgba(255,255,255,.12);
}
.genre-chip.is-active{ outline:2px solid #fff; outline-offset:1px; }

/* ==========================================================================
   ETAT VIDE
   ========================================================================== */
.empty-state{
  text-align:center; padding:50px 20px;
  border:1px dashed var(--border); border-radius:var(--radius-md);
  color:var(--text-mute);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination{
  display:flex; align-items:center; justify-content:center; gap:16px;
  margin-top:24px;
}
.pagination-link{
  background:var(--surface); border:1px solid var(--border); border-radius:5px;
  padding:9px 16px; font-size:13px; font-weight:700; color:var(--text);
}
.pagination-link:hover{ border-color:var(--accent); color:var(--accent-2); }
.pagination-info{ font-size:12.5px; color:var(--text-mute); font-weight:600; }

/* ==========================================================================
   BOUTIQUE — VIP + packs de pieces
   ========================================================================== */
.shop-intro{ text-align:center; padding-bottom:6px; }
.shop-intro h1{ font-size:26px; font-weight:900; }
.shop-intro p{ color:var(--text-mute); margin-top:8px; max-width:520px; margin-inline:auto; font-size:14px; }

.shop-grid{ display:grid; gap:18px; align-items:stretch; }
.shop-grid-vip{ grid-template-columns:repeat(3,1fr); }
.shop-grid-coins{ grid-template-columns:repeat(3,1fr); }

.shop-card{
  position:relative;
  display:flex; flex-direction:column;
  background:var(--surface); border:1px solid var(--border); border-radius:5px;
  padding:28px 20px 24px; text-align:center;
  height:100%;
}
.shop-card.is-featured{ border-color:var(--accent); box-shadow:0 0 0 1px var(--accent), 0 12px 30px rgba(255,179,0,.16); }
.shop-card-badge{
  position:absolute; top:0; right:18px;
  transform:translateY(-50%);
  background:var(--accent-gradient); color:#1a0d02;
  font-size:11px; font-weight:800; letter-spacing:.3px;
  padding:5px 12px; border-radius:5px;
  box-shadow:0 4px 10px rgba(255,179,0,.3);
}

.shop-card-title{ font-size:16px; font-weight:800; }

.shop-card-price{ margin:16px 0; }
.price-main{ font-size:27px; font-weight:900; color:var(--text); }
.price-main small{ font-size:13px; font-weight:700; margin-left:3px; color:var(--text-mute); }
.price-unit{ display:block; font-size:11.5px; color:var(--text-mute); margin-top:6px; line-height:1.4; }

.shop-card-features{
  list-style:none; margin:0 0 22px; padding:0; text-align:left;
  display:flex; flex-direction:column; gap:10px; flex:1;
}
.shop-card-features li{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-dim); }
.shop-card-features li svg{ width:16px;height:16px; color:var(--accent-2); flex:none; }

.shop-card-cta{ margin-top:auto; }

.coin-card-icon{
  width:44px; height:44px; margin:0 auto 10px; border-radius:50%;
  background:var(--surface-2); display:flex; align-items:center; justify-content:center; color:#ffd54a;
}
.coin-card-icon svg{ width:22px;height:22px; }
.coin-card-total{ font-size:25px; font-weight:900; }
.coin-card-total::after{ content:" pieces"; font-size:12px; font-weight:600; color:var(--text-mute); }
.coin-card-breakdown{ font-size:11.5px; color:var(--text-mute); margin-top:4px; margin-bottom:auto; padding-bottom:14px; }

.vip-card.is-lifetime{ border-color:#ffd54a; box-shadow:0 0 0 1px #ffd54a, 0 12px 30px rgba(255,213,74,.16); }
.vip-card.is-lifetime .shop-card-badge{ background:#ffd54a; color:#1a0d02; }

.shop-tabs{
  display:flex; gap:8px; justify-content:center; margin:0 0 22px;
  border-bottom:1px solid var(--border);
}
.shop-tab{
  background:none; border:none; color:var(--text-mute); font-weight:800; font-size:14px;
  padding:12px 18px; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px;
}
.shop-tab:hover{ color:var(--text-dim); }
.shop-tab.active{ color:var(--text); border-bottom-color:var(--accent); }

.reward-list{ display:flex; flex-direction:column; gap:10px; }
.reward-card{
  display:flex; align-items:center; gap:14px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:14px 16px;
}
.reward-card-icon{
  width:40px; height:40px; border-radius:50%; flex:none;
  background:var(--surface-2); display:flex; align-items:center; justify-content:center;
  color:var(--accent-2); font-size:17px;
}
.reward-card-icon svg{ width:20px;height:20px; }
.reward-card-body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.reward-card-body strong{ font-size:13.5px; font-weight:800; }
.reward-card-body .sub{ font-size:11.5px; color:var(--text-mute); }
.reward-progress{ height:5px; border-radius:3px; background:var(--surface-2); margin-top:6px; overflow:hidden; }
.reward-progress-bar{ height:100%; background:var(--accent-gradient); border-radius:3px; }
.reward-card-action{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.reward-pieces{ font-size:12px; font-weight:800; color:#ffd54a; }
.reward-status{ font-size:11px; font-weight:700; color:var(--text-mute); white-space:nowrap; }
.reward-status.is-done{ color:#4caf50; display:flex; align-items:center; gap:4px; }
.reward-status.is-done svg{ width:13px;height:13px; }

@media (max-width:600px){
  .shop-tabs{ gap:0; }
  .shop-tab{ flex:1; padding:12px 6px; font-size:12.5px; }
  .reward-card{ padding:12px; gap:10px; }
  .reward-card-body strong{ font-size:13px; }
  .reward-card-body .sub{ display:none; }
}

.payment-methods{ display:flex; gap:12px; flex-wrap:wrap; }
.payment-badge{
  display:flex; align-items:center; gap:8px;
  background:var(--surface); border:1px solid var(--border); border-radius:5px;
  padding:10px 16px; font-size:13px; font-weight:700; color:var(--text-dim);
}
.payment-badge i{ font-size:18px; }

.currency-float-btn{
  position:fixed; left:20px; bottom:87px; z-index:150;
  display:flex; align-items:center; gap:8px;
  background:var(--accent-gradient); border:1px solid transparent; border-radius:5px;
  padding:12px 16px; color:#1a0d02; font-weight:800; font-size:13px;
  box-shadow:0 10px 26px rgba(255,179,0,.4);
}
.currency-float-btn:hover{ filter:brightness(1.08); }
.currency-float-btn svg{ width:18px;height:18px; color:#1a0d02; flex:none; }
.currency-modal-symbol{ font-size:17px; font-weight:900; width:26px; text-align:center; flex:none; color:var(--accent-2); }

/* Fenetre "Choisir une devise" : titre plus discret, lignes plus compactes pour voir plus de devises d'un coup */
.currency-modal-popup .swal2-title{ font-size:17px !important; padding-top:14px !important; }
.currency-modal-popup .lang-modal-list{ max-height:280px; overflow-y:auto; gap:6px; }
.currency-modal-popup .lang-modal-item{ padding:8px 12px; font-size:13px; }
.currency-modal-popup .currency-modal-symbol{ font-size:14px; width:40px; }

@media (min-width:900px){
  .currency-float-btn{ bottom:26px; }
}

@media (max-width:900px){
  .shop-grid-vip{ grid-template-columns:repeat(2,1fr); }
  .shop-grid-coins{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .shop-grid-vip{ grid-template-columns:1fr; }
  .shop-grid-coins{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .shop-card{ padding:22px 14px 18px; }
}
@media (max-width:420px){
  .shop-grid-coins{ grid-template-columns:1fr 1fr; }
}

/* ==========================================================================
   BARRE DE NAVIGATION MOBILE FIXE (façon app)
   ========================================================================== */
.mobile-tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:200;
  display:flex; justify-content:space-around; align-items:center;
  height:61px;
  background:rgba(15,9,10,.97);
  border-top:1px solid var(--border);
  backdrop-filter:blur(10px);
}
.mobile-tabbar a{
  display:flex; flex-direction:column; align-items:center; gap:3px;
  font-size:10.5px; font-weight:700; color:var(--text-mute);
  flex:1; margin:6px 4px; padding:6px 2px; border-radius:5px;
  transition:background .15s ease, color .15s ease;
}
.mobile-tabbar a svg{ width:20px;height:20px; }
.mobile-tabbar a:hover,
.mobile-tabbar a.active{
  background:var(--logo-gradient);
  color:#fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer{
  background:var(--bg-soft);
  border-top:1px solid var(--border);
  padding-block:34px 87px;
  margin-top:20px;
}
.app-footer .footer-top{
  display:flex; flex-wrap:wrap; gap:30px; justify-content:space-between;
}
.footer-brand{ display:flex; align-items:center; gap:10px; }
.footer-brand img{ width:32px;height:32px;border-radius:8px; }
.footer-brand span{ font-weight:800; font-size:16px; }
.footer-links{ display:flex; flex-wrap:wrap; gap:18px; }
.footer-links a{ font-size:13px; color:var(--text-dim); }
.footer-links a:hover{ color:var(--accent); }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{
  width:34px;height:34px;border-radius:5px;
  background:var(--surface); border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
}
.footer-social a:hover{ background:var(--accent); border-color:var(--accent); }
.footer-bottom{
  margin-top:26px; padding-top:18px; border-top:1px solid var(--border);
  font-size:12px; color:var(--text-mute); text-align:center;
}

/* ==========================================================================
   PAGE SERIE (detail)
   ========================================================================== */
.serie-hero{
  position:relative; min-height:280px; display:flex; align-items:flex-end;
  background-size:cover; background-position:center top;
}
.serie-hero::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(11,7,8,.1),rgba(11,7,8,.98));
}
.serie-hero-content{ position:relative; z-index:2; padding:26px var(--gutter); display:flex; gap:22px; align-items:flex-end; width:100%; }
.serie-poster{ width:130px; flex:none; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border); box-shadow:0 12px 30px rgba(0,0,0,.5); }
.serie-poster img{ width:100%; display:block; }
.serie-meta h1{ font-size:clamp(20px,3vw,28px); font-weight:800; }
.serie-meta .genre-tag{ font-size:12.5px; color:var(--accent-2); font-weight:700; margin-top:6px; display:inline-block; }
.serie-meta p{ font-size:13.5px; color:var(--text-dim); margin-top:10px; max-width:640px; }

.episodes-list{ display:flex; flex-direction:column; gap:8px; }
button.episode-row{ width:100%; text-align:left; font:inherit; cursor:pointer; }
button.episode-row:disabled{ opacity:.6; cursor:not-allowed; }
.episode-row{
  display:flex; align-items:center; gap:14px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:12px 14px;
}
.episode-num{
  width:34px;height:34px; border-radius:50%;
  background:var(--surface-2); display:flex;align-items:center;justify-content:center;
  font-weight:800; font-size:13px; flex:none;
}
.episode-info{ flex:1; }
.episode-info h4{ font-size:13.5px; font-weight:700; }
.episode-info span{ font-size:11.5px; color:var(--text-mute); }
.episode-lock{
  display:flex; align-items:center; gap:6px;
  font-size:12px; font-weight:800; color:#ffd54a;
  background:rgba(255,213,74,.1); border:1px solid rgba(255,213,74,.35);
  padding:7px 12px; border-radius:5px; flex:none;
}
.episode-lock svg{ width:13px;height:13px; }
.episode-play{
  width:38px;height:38px; border-radius:5px; flex:none;
  background:var(--accent-gradient); color:#1a0d02;
  display:flex;align-items:center;justify-content:center;
}
.episode-play svg{ width:15px;height:15px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width:900px){
  .mobile-tabbar{ display:none; }
  body.app-dark{ padding-bottom:0; }
}
@media (max-width:900px){
  .app-nav-pills{ display:none; }
  .lang-chip{ display:none; }
  .mobile-loadbar{ display:block; }
  /* Redondant avec l'onglet "Profil" de la barre mobile fixe ; sa presence forçait un debordement horizontal sur les petits ecrans. */
  .account-icon-link{ display:none; }
}
@media (max-width:600px){
  .serie-hero-content{ flex-direction:column; align-items:flex-start; }
  .serie-poster{ width:110px; }
}

/* ==========================================================================
   ESPACE COMPTE (connexion / inscription / mot de passe oublie)
   ========================================================================== */
.auth-solo-card{
  max-width:440px; margin:0 auto;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:34px;
}
.auth-tabs{ display:flex; gap:22px; border-bottom:1px solid var(--border); margin-bottom:22px; }
.auth-tab{
  background:none; border:none; padding:0 0 12px;
  font-size:14px; font-weight:700; color:var(--text-mute);
  border-bottom:2.5px solid transparent; margin-bottom:-1px;
}
.auth-tab.active{ color:var(--text); border-bottom-color:var(--accent); }
.auth-panel-title{ font-size:22px; font-weight:800; }
.auth-panel-subtitle{ font-size:13px; color:var(--text-mute); margin-top:4px; margin-bottom:20px; }

.auth-field{ display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; color:var(--text-dim); margin-bottom:14px; }
.auth-field-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.auth-field-grid .auth-field{ margin-bottom:0; }
.auth-field-grid + .auth-field{ margin-top:14px; }

.auth-input-icon{
  display:flex; align-items:stretch;
  border:1px solid var(--border); border-radius:5px; overflow:hidden;
  background:var(--surface-2);
}
.auth-input-icon:focus-within{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(255,179,0,.18); }
.auth-input-icon > i:first-child{
  display:flex; align-items:center; justify-content:center;
  width:42px; flex:none;
  background:var(--surface); color:var(--accent-2);
  font-size:15px; border-right:1px solid var(--border);
}
.auth-input-icon input{ flex:1; min-width:0; border:none; background:none; padding:11px 12px; font-size:14px; color:var(--text); width:100%; }
.auth-input-icon input:focus{ outline:none; }
.auth-toggle-pass{ flex:none; background:none; border:none; padding:0 12px; color:var(--text-mute); display:flex; align-items:center; }
.auth-toggle-pass:hover{ color:var(--accent-2); }

.auth-row-between{ display:flex; align-items:center; justify-content:space-between; margin:0 0 18px; font-size:12.5px; }
.auth-row-between a{ color:var(--accent-2); font-weight:600; }
.auth-checkbox{ display:flex; align-items:flex-start; gap:8px; font-size:12.5px; color:var(--text-mute); margin:4px 0 18px; }
.auth-checkbox input{ margin-top:3px; accent-color:var(--accent); }
.auth-checkbox a{ color:var(--accent-2); font-weight:600; }
.auth-switch{ text-align:center; font-size:12.5px; color:var(--text-mute); margin-top:16px; }
.auth-switch-link{ background:none; border:none; padding:0; color:var(--accent-2); font-weight:700; font-size:12.5px; }
.btn-block{ width:100%; }
.hp-field{ position:absolute; left:-9999px; top:-9999px; }

/* ==========================================================================
   MODALE DE RECHERCHE (SweetAlert2)
   ========================================================================== */
.swal-mbh-popup{ border-radius:5px !important; border:1px solid var(--border); }
.swal-mbh-input{
  border-radius:5px !important;
  background:var(--surface-2) !important;
  border:1px solid var(--border) !important;
  color:var(--text) !important;
  box-shadow:none !important;
}
.swal-mbh-input:focus{ border-color:var(--accent) !important; box-shadow:0 0 0 3px rgba(255,179,0,.18) !important; }
.swal-mbh-confirm,.swal-mbh-cancel{ border-radius:5px !important; }

.lang-modal-list{ display:flex; flex-direction:column; gap:8px; margin-top:6px; }
.lang-modal-item{
  display:flex; align-items:center; gap:10px;
  width:100%; background:var(--surface-2); border:1px solid var(--border); border-radius:5px;
  padding:12px 14px; color:var(--text); font-size:14px; font-weight:600; cursor:pointer;
}
.lang-modal-item:hover{ border-color:var(--accent); }
.lang-modal-item.is-active{ border-color:var(--accent); background:rgba(255,179,0,.1); }
.lang-modal-flag{ width:26px; height:18px; object-fit:cover; border-radius:3px; flex:none; box-shadow:0 0 0 1px rgba(255,255,255,.12); }
.lang-modal-name{ flex:1; text-align:left; }
.lang-modal-check{ color:var(--accent-2); font-weight:800; flex:none; }

@media (max-width:600px){
  .auth-solo-card{ padding:20px 16px; }
  .auth-field-grid{ grid-template-columns:1fr; gap:0; }
  .auth-field-grid .auth-field{ margin-bottom:14px; }
  .auth-field-grid + .auth-field{ margin-top:0; }
}

/* Tableau de bord compte (connecte) */
.account-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:26px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
}
.account-coin{ display:flex; align-items:center; gap:10px; }
.account-coin .coin-dot{ width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#ffe27a,#f2a71c); }
.account-coin strong{ font-size:24px; font-weight:800; }
.account-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-top:20px; }
.account-tile{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:18px; text-align:center;
}
.account-tile strong{ display:block; font-size:20px; font-weight:800; margin-bottom:4px; }
.account-tile span{ font-size:12px; color:var(--text-mute); }

.account-panels{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.account-panel{
  background:var(--surface); border:1px solid var(--border); border-radius:5px; padding:20px;
}
.account-panel-title{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:800; margin-bottom:14px; }
.account-panel-title svg{ width:17px;height:17px; color:var(--accent-2); }
.notif-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; max-height:320px; overflow-y:auto; }
.notif-item{ display:flex; flex-direction:column; gap:3px; padding-bottom:10px; border-bottom:1px solid var(--border); font-size:13px; }
.notif-item:last-child{ border-bottom:none; padding-bottom:0; }
.notif-item strong{ font-size:13px; }
.notif-item span{ color:var(--text-dim); font-size:12.5px; }
.notif-item small{ color:var(--text-mute); font-size:11px; }
.notif-item.is-unread strong::before{ content:"● "; color:var(--accent); }
.notif-item span.is-positive{ color:#4caf50; font-weight:700; }
.notif-item span.is-negative{ color:#e57373; font-weight:700; }

@media (max-width:700px){
  .account-panels{ grid-template-columns:1fr; }
}

/* Profil compte : verif email + photo */
.profile-verif-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:var(--surface-2); border:1px solid var(--border); border-radius:5px;
  padding:10px 14px; margin-bottom:16px; font-size:13px; font-weight:700;
}
.profile-verif-row svg{ width:16px;height:16px; margin-right:4px; vertical-align:-3px; color:#ffd54a; }
.profile-verif-row.is-verified{ color:#4caf50; }
.profile-verif-row.is-verified svg{ color:#4caf50; }
.profile-photo-row{ display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.profile-photo-row img{ width:64px;height:64px;border-radius:50%; object-fit:cover; border:1px solid var(--border); background:var(--surface-2); }
.btn-sm{ padding:8px 14px; font-size:12.5px; }

.profile-lang-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:var(--surface-2); border:1px solid var(--border); border-radius:5px;
  padding:10px 14px; margin-bottom:18px; font-size:13px; font-weight:700;
}
.profile-lang-row svg{ width:16px;height:16px; margin-right:4px; vertical-align:-3px; color:var(--accent-2); }
.profile-lang-select{
  background:var(--surface); border:1px solid var(--border); border-radius:5px;
  color:var(--text); font-weight:700; font-size:13px; padding:6px 10px; cursor:pointer;
}

/* ==========================================================================
   LECTEUR IMMERSIF (plein écran mobile 9:16, façon Reels/TikTok)
   ========================================================================== */
body.player-immersive{ padding-bottom:0; height:100vh; overflow:hidden; }
body.player-immersive .app-header,
body.player-immersive .mobile-tabbar,
body.player-immersive .mobile-loadbar,
body.player-immersive .app-footer{ display:none !important; }

.player-stage{
  position:relative; height:100vh; width:100%; background:#000;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.player-empty{ color:var(--text); text-align:center; padding:24px; }
.player-empty svg{ width:36px;height:36px; color:var(--text-mute); }

.player-video-wrap{
  position:relative; height:100%; width:100%;
  max-width:calc(100vh * 9 / 16); margin-inline:auto; background:#000;
}
.player-video{ width:100%; height:100%; object-fit:cover; display:block; background:#000; }
.player-tap-layer{ position:absolute; inset:0; background:none; border:none; padding:0; cursor:pointer; }
.player-play-indicator{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:64px; height:64px; border-radius:50%; background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center; color:#fff; pointer-events:none;
}
.player-play-indicator svg{ width:26px;height:26px; }

.player-top-bar{ position:absolute; top:16px; left:16px; z-index:20; }
.player-icon-circle{
  width:40px; height:40px; border-radius:50%; background:rgba(0,0,0,.4);
  display:flex; align-items:center; justify-content:center; color:#fff;
  border:1px solid rgba(255,255,255,.15);
}
.player-icon-circle svg{ width:19px;height:19px; }

.player-side-rail{
  position:absolute; right:14px; bottom:120px; z-index:20;
  display:flex; flex-direction:column; align-items:center; gap:20px;
}
.player-rail-btn{ background:none; border:none; padding:0; display:flex; flex-direction:column; align-items:center; gap:5px; color:#fff; }
.player-rail-btn small{ font-size:11px; font-weight:800; text-shadow:0 1px 4px rgba(0,0,0,.6); }
.player-rail-btn.is-active .player-icon-circle{ background:var(--accent); border-color:var(--accent); }
.player-rail-btn.is-active svg{ color:#1a0d02; }

.player-bottom-info{
  position:absolute; left:16px; right:78px; bottom:28px; z-index:20; color:#fff;
  display:flex; flex-direction:column; gap:4px; text-shadow:0 1px 6px rgba(0,0,0,.65);
}
.player-bottom-info strong{ font-size:14.5px; font-weight:800; }
.player-bottom-info span{ font-size:12.5px; opacity:.9; }

.player-nav-arrow{
  position:absolute; right:14px; z-index:20; color:rgba(255,255,255,.85);
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
}
.player-nav-up{ top:16px; right:64px; }
.player-nav-down{ bottom:280px; }
.player-nav-arrow-icon-up{ transform:rotate(180deg); }

.player-locked{
  position:absolute; inset:0; z-index:25; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:12px; text-align:center; padding:28px;
  color:#fff; background-size:cover; background-position:center;
}
.player-locked svg{ width:34px;height:34px; color:#ffd54a; }
.player-locked h3{ font-size:17px; font-weight:800; }
.player-locked p{ font-size:13px; opacity:.9; max-width:280px; }
.player-locked[hidden]{ display:none; }

.player-coin-meter{
  display:flex; align-items:center; gap:5px; padding:5px 10px; margin-bottom:4px;
  border-radius:999px; background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.18);
  color:#ffd54a; font-size:12px; font-weight:800; font-variant-numeric:tabular-nums;
}
.player-coin-meter svg{ width:14px; height:14px; }
.player-coin-meter[hidden]{ display:none; }

.player-sheet{ position:fixed; inset:0; z-index:400; display:flex; align-items:flex-end; }
.player-sheet[hidden]{ display:none; }
.player-sheet-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6); }
.player-sheet-panel{
  position:relative; z-index:2; width:100%; max-width:480px; margin-inline:auto;
  background:var(--surface); border:1px solid var(--border); border-bottom:none;
  border-radius:18px 18px 0 0; padding:12px 20px 22px;
}
.player-sheet-handle{ width:40px; height:4px; border-radius:2px; background:var(--border); margin:6px auto 16px; }
.player-sheet-item{
  width:100%; display:flex; align-items:center; gap:12px; background:none; border:none;
  color:var(--text); font-size:14px; font-weight:700; padding:12px 0; text-align:left; cursor:pointer;
}
.player-sheet-item svg{ width:19px;height:19px; color:var(--accent-2); flex:none; }
.player-sheet-state{ margin-left:auto; font-size:11.5px; font-weight:700; color:var(--text-mute); }
.player-sheet-speed{ cursor:default; padding-bottom:6px; }
.player-speed-options{ display:flex; gap:8px; padding-bottom:10px; flex-wrap:wrap; }
.player-speed-options button{
  flex:1; min-width:52px; padding:8px 0; border-radius:5px; border:1px solid var(--border);
  background:var(--surface-2); color:var(--text-dim); font-weight:800; font-size:12.5px; cursor:pointer;
}
.player-speed-options button.is-active{ background:var(--accent-gradient); color:#1a0d02; border-color:transparent; }

@media (min-width:700px){
  .player-video-wrap{ box-shadow:0 0 60px rgba(0,0,0,.6); }
}

/* ==========================================================================
   PAGES STATIQUES (a propos, CGU, confidentialite, contact) — contenu CMS
   ========================================================================== */
.static-page-title{ font-size:24px; font-weight:900; margin-bottom:20px; text-wrap:balance; }

.article-content{ max-width:720px; color:var(--text-dim); font-size:14.5px; line-height:1.75; }
.article-content h2{
  font-size:17px; font-weight:800; color:var(--text); margin:28px 0 10px;
  padding-top:16px; border-top:1px solid var(--border);
}
.article-content h2:first-child{ margin-top:0; padding-top:0; border-top:none; }
.article-content p{ margin-bottom:14px; }
.article-content ul{ margin:0 0 14px; padding-left:20px; }
.article-content li{ margin-bottom:6px; }
.article-content a{ color:var(--accent-2); text-decoration:underline; }
.article-content em{ color:var(--text-mute); font-size:13px; }

.faq-content .faq-item{
  border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface);
  margin-bottom:10px; padding:14px 16px; cursor:pointer;
}
.faq-content .faq-item h2{ display:none; } /* le "Questions frequentes" h2 reste visible hors des items */
.faq-content .faq-item h3{
  font-size:14px; font-weight:700; color:var(--text); margin:0;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.faq-content .faq-item h3::after{ content:"+"; color:var(--accent-2); font-size:18px; font-weight:400; flex:none; }
.faq-content .faq-item.is-open h3::after{ content:"\2212"; }
.faq-content .faq-item p{ max-height:0; overflow:hidden; margin:0; opacity:0; transition:max-height .25s ease, opacity .2s ease, margin .25s ease; }
.faq-content .faq-item.is-open p{ max-height:240px; opacity:1; margin-top:10px; }

.contact-form-card{
  max-width:640px; margin-top:32px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:22px 24px;
}
.contact-form-card h2{ font-size:16px; font-weight:800; margin-bottom:16px; }
.contact-textarea{
  width:100%; background:var(--surface-2); border:1px solid var(--border); border-radius:5px;
  padding:12px 14px; color:var(--text); font-family:inherit; font-size:14px; resize:vertical;
}
.text-muted-inline{ color:var(--text-mute); font-weight:400; }

.legal-modal-popup{
  max-height:90vh !important; overflow:hidden;
  margin-top:5vh !important; margin-bottom:5vh !important;
}
.legal-modal-popup .swal2-html-container{
  text-align:left;
  max-height:60vh; overflow-y:auto;
  margin:1em 1.6em 0;
}
.legal-modal-content{ font-size:13.5px; line-height:1.7; color:var(--text-dim); }
.legal-modal-content h2{ font-size:15px; font-weight:800; color:var(--text); margin:18px 0 8px; }
.legal-modal-content h2:first-child{ margin-top:0; }
.legal-modal-content p{ margin-bottom:10px; }
.legal-modal-content ul{ margin:0 0 10px; padding-left:18px; }
.legal-modal-content a{ color:var(--accent-2); }

@media (max-width:600px){
  .static-page-title{ font-size:20px; }
  .contact-form-card{ padding:18px; }
}
