/* ============================================================
   KEWAA — Plateforme de streaming
   Feuille de style unique partagée par toutes les pages
   Design : "ink & aurora" — sombre, verre dépoli, cartes fluides
   ============================================================ */

:root {
  --ink: #06060a;
  --ink-2: #0b0b12;
  --ink-3: #11111b;
  --card: #14141f;
  --surface: #1a1a26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f6fa;
  --dim: #9d9db2;
  --faint: #64647a;

  --a1: #ff2d6f;
  --a2: #7b5cff;
  --a3: #22d3ee;
  --grad: linear-gradient(115deg, var(--a1), var(--a2) 55%, var(--a3));
  --grad-soft: linear-gradient(115deg, rgba(255, 45, 111, 0.18), rgba(123, 92, 255, 0.18));
  --glow: 0 18px 60px -18px rgba(255, 45, 111, 0.55);

  --r-xl: 26px;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;

  --header-h: 70px;
  --maxw: 1560px;
  --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(255, 45, 111, 0.16), transparent 60%),
    radial-gradient(1000px 620px at 92% 0%, rgba(123, 92, 255, 0.18), transparent 60%),
    var(--ink);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
::selection { background: var(--a1); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #26263a; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #383852; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 3.4vw, 56px);
}

.page { padding-top: calc(var(--header-h) + 6px); padding-bottom: 90px; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  padding: 0 clamp(16px, 3.4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.scrolled {
  background: rgba(6, 6, 10, 0.72);
  backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--glow);
  animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: 0.72; }
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--dim);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { color: var(--text); background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }

.header-spacer { flex: 1; }

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  min-width: 210px;
  max-width: 340px;
  flex: 0 1 320px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--dim);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header-search:focus-within {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 111, 0.6), 0 0 0 4px rgba(255, 45, 111, 0.12);
  color: var(--text);
}

.header-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.92rem;
}

.header-search input::placeholder { color: var(--faint); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: min(80vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 8px;
}

.hero-bg {
  position: absolute;
  inset: -8% -4% 0 -4%;
  background-size: cover;
  background-position: center 22%;
  filter: saturate(115%);
  transform: scale(1.04);
  animation: heroIn 1.4s var(--ease) both, heroDrift 26s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(6, 6, 10, 0.78) 40%, rgba(6, 6, 10, 0.12) 82%),
    linear-gradient(to right, rgba(6, 6, 10, 0.92) 0%, rgba(6, 6, 10, 0.35) 55%, transparent 100%);
}

@keyframes heroIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.04); } }
@keyframes heroDrift { to { transform: scale(1.1) translate3d(0, -1.6%, 0); } }

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 3.4vw, 56px) clamp(34px, 6vw, 78px);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  animation: rise 0.7s var(--ease) both;
}

.hero-tag svg { color: var(--a1); }

.hero-content h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.2rem, 6.4vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
  max-width: 20ch;
  animation: rise 0.8s 0.06s var(--ease) both;
}

.hero-content p {
  max-width: 62ch;
  color: #cfcfdd;
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  animation: rise 0.85s 0.12s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  animation: rise 0.9s 0.18s var(--ease) both;
}

@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}

.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 26px 70px -18px rgba(255, 45, 111, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.99); }

/* ============================================================
   NAV DE SECTIONS
   ============================================================ */

.section-nav {
  position: sticky;
  top: calc(var(--header-h) - 6px);
  z-index: 60;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0;
  margin-bottom: 6px;
  background: linear-gradient(to bottom, rgba(6, 6, 10, 0.92), rgba(6, 6, 10, 0));
}

.section-nav::-webkit-scrollbar { display: none; }

.section-nav a {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all 0.25s var(--ease);
}

.section-nav a:hover { color: var(--text); }
.section-nav a.active { color: #fff; background: var(--grad); box-shadow: var(--glow); }

/* ============================================================
   SECTIONS & RANGÉES
   ============================================================ */

.section { margin: clamp(26px, 4vw, 46px) 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.12rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2::before {
  content: '';
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: var(--grad);
}

.section-head .count { color: var(--faint); font-size: 0.84rem; font-weight: 600; }

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--dim);
  padding: 7px 12px;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

.see-all:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); gap: 8px; }

.row { position: relative; }

.row-scroll {
  display: flex;
  gap: clamp(10px, 1.2vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 6px 2px 14px;
  scroll-padding-left: 2px;
}

.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }

.row-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 20;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 16, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.row:hover .row-arrow { opacity: 1; }
.row-arrow:hover { transform: translateY(-60%) scale(1.1); background: var(--a1); }
.row-arrow.left { left: -6px; }
.row-arrow.right { right: -6px; }
@media (hover: none) { .row-arrow { display: none; } }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  flex: 0 0 auto;
  width: clamp(136px, 15.5vw, 202px);
  cursor: pointer;
  animation: pop 0.6s var(--ease) both;
}

@keyframes pop { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.97); } to { opacity: 1; transform: none; } }

.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}

.card-poster .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 10, 0.86), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.card:hover .card-poster { transform: translateY(-8px); box-shadow: 0 26px 60px -22px rgba(255, 45, 111, 0.5), inset 0 0 0 1px var(--line-strong); }
.card:hover .card-poster img { transform: scale(1.08); }
.card:hover .card-poster .overlay { opacity: 1; }

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow);
  opacity: 0;
  transition: all 0.38s var(--ease);
}

.card:hover .play-badge { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.card-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 20px);
}

.tag {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(6, 6, 10, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.tag.accent { background: var(--grad); box-shadow: none; }

.card-title {
  margin-top: 11px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-sub { margin-top: 3px; font-size: 0.76rem; color: var(--faint); font-weight: 600; }

/* Grille de cartes (pages listes / recherche) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 16vw, 190px), 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}

.card-grid .card { width: 100%; }

/* Cartes de chaînes TV */
.channel-card {
  flex: 0 0 auto;
  width: clamp(160px, 19vw, 250px);
  cursor: pointer;
  animation: pop 0.6s var(--ease) both;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 18vw, 220px), 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.channel-grid .channel-card { width: 100%; }

.channel-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface), var(--ink-3));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.channel-thumb img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); transition: transform 0.5s var(--ease); }
.channel-card:hover .channel-thumb { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 22px 50px -24px rgba(123, 92, 255, 0.7); }
.channel-card:hover .channel-thumb img { transform: scale(1.07); }

.live-dot {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--a1);
  color: #fff;
}

.live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s infinite;
}

.channel-name { margin-top: 10px; font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-cat { font-size: 0.76rem; color: var(--faint); font-weight: 600; }

/* ============================================================
   CHIPS / FILTRES
   ============================================================ */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 16px;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all 0.25s var(--ease);
}

.chip:hover { color: var(--text); transform: translateY(-2px); }
.chip.active { color: #fff; background: var(--grad); box-shadow: var(--glow); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--dim);
  flex: 1 1 240px;
  max-width: 420px;
}

.field input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 0.92rem; }
.field input::placeholder { color: var(--faint); }

/* ============================================================
   DÉTAIL
   ============================================================ */

.detail-hero { position: relative; padding-top: var(--header-h); overflow: hidden; }

.detail-hero .hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 78%;
  background-size: cover;
  background-position: center 18%;
  filter: blur(2px) saturate(120%);
  transform: scale(1.08);
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 6%, rgba(6, 6, 10, 0.86) 46%, rgba(6, 6, 10, 0.4));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 3.4vw, 56px) clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 46px);
  align-items: end;
}

.detail-poster {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--card);
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, 0.95), inset 0 0 0 1px var(--line-strong);
  animation: rise 0.8s var(--ease) both;
}

.detail-poster img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { animation: rise 0.9s 0.08s var(--ease) both; }
.detail-info h1 { font-size: clamp(1.7rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }

.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

.badge {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #dcdcea;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}

.badge.accent { background: var(--grad); color: #fff; box-shadow: none; }

.detail-info .desc { color: #c8c8d8; max-width: 78ch; line-height: 1.72; font-size: 0.98rem; }

.lang-toggle, .season-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.lang-toggle .label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint); font-weight: 800; margin-right: 4px; }

.lang-btn, .season-tab, .source-btn {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all 0.25s var(--ease);
}

.lang-btn:hover, .season-tab:hover, .source-btn:hover { color: var(--text); transform: translateY(-2px); }
.lang-btn.active, .season-tab.active, .source-btn.active { color: #fff; background: var(--grad); box-shadow: var(--glow); }

/* Épisodes */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.ep-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: linear-gradient(150deg, var(--card), var(--ink-3));
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  animation: pop 0.5s var(--ease) both;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.ep-item:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 40px -22px rgba(123, 92, 255, 0.8); }

.ep-num {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.ep-label { font-size: 0.92rem; font-weight: 700; }
.ep-sub { font-size: 0.74rem; color: var(--faint); font-weight: 700; letter-spacing: 0.08em; }

/* ============================================================
   LECTEUR
   ============================================================ */

.player-page { padding-top: calc(var(--header-h) + 18px); padding-bottom: 96px; }

.player-wrap {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 110px -40px rgba(123, 92, 255, 0.6), inset 0 0 0 1px var(--line);
  animation: rise 0.7s var(--ease) both;
}

.player-frame iframe, .player-frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; }

.player-head { margin: 22px 0 6px; animation: rise 0.8s 0.06s var(--ease) both; }
.player-head h1 { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.035em; }
.player-head .sub { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: var(--dim); font-size: 0.9rem; font-weight: 600; }
.player-head .sub svg { color: var(--a1); }

.source-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
}

.source-bar .label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint); font-weight: 800; margin-right: 6px; }

.ep-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 14px; padding-bottom: 6px; }
.ep-strip::-webkit-scrollbar { display: none; }

.ep-pill {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all 0.25s var(--ease);
}

.ep-pill:hover { color: var(--text); transform: translateY(-2px); }
.ep-pill.active { color: #fff; background: var(--grad); box-shadow: var(--glow); }

/* ============================================================
   ÉTATS : squelettes, vide, erreurs
   ============================================================ */

.skeleton-row { display: flex; gap: clamp(10px, 1.2vw, 18px); overflow: hidden; }

.skel {
  flex: 0 0 auto;
  width: clamp(136px, 15.5vw, 202px);
  aspect-ratio: 2 / 3;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--ink-3) 20%, var(--surface) 40%, var(--ink-3) 62%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.skel.wide { aspect-ratio: 16 / 9; width: clamp(200px, 24vw, 320px); }

@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -60% 0; } }

.state {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: clamp(38px, 7vw, 80px) 22px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--dim);
  animation: rise 0.6s var(--ease) both;
}

.state svg { color: var(--faint); }
.state h3 { color: var(--text); font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; }
.state p { max-width: 46ch; font-size: 0.93rem; line-height: 1.6; }

/* ============================================================
   FOOTER + BOTTOM NAV
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 34px;
  margin-top: 40px;
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 600;
}

.site-footer .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

.bottom-nav { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-search { flex: 1 1 auto; min-width: 0; max-width: none; }
  .brand span.dot { width: 10px; height: 10px; }

  .bottom-nav {
    position: fixed;
    z-index: 130;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(12, 12, 20, 0.82);
    backdrop-filter: blur(20px) saturate(170%);
    box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.95), inset 0 0 0 1px var(--line-strong);
  }

  .bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--dim);
    transition: all 0.28s var(--ease);
  }

  .bottom-nav a svg { width: 21px; height: 21px; }
  .bottom-nav a.active { color: #fff; background: var(--grad); box-shadow: var(--glow); }

  .page, .player-page { padding-bottom: 116px; }

  .detail-wrap { grid-template-columns: minmax(0, 1fr); }
  .detail-poster { width: min(180px, 44vw); }
  .hero { min-height: 74vh; }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .player-frame { border-radius: var(--r-lg); }
}

@media (max-width: 560px) {
  .site-footer .container { justify-content: center; text-align: center; }
  .hero-content h1 { max-width: none; }
  .btn { height: 46px; padding: 0 18px; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
