:root {
  --bg: #0b0b0f;
  --bg-elev: #141414;
  --red: #e50914;
  --text: #f6f6f6;
  --muted: #a7a7ad;
  --card-w: 260px;
  --radius: 6px;
  --gap: 14px;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}

a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 48px;
  /* La barre reste toujours lisible : fond sombre sur toute sa hauteur,
     puis fondu vers la page (pseudo-élément ci-dessous). */
  background: rgba(8, 8, 12, .78);
  transition: background .25s ease, box-shadow .25s ease;
  backdrop-filter: blur(8px) saturate(1.1);
}

/* Fondu sous la barre (ne couvre pas le texte de la barre) */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 28px;
  background: linear-gradient(to bottom, rgba(8, 8, 12, .78), rgba(8, 8, 12, 0));
  pointer-events: none;
}

.nav.scrolled {
  background: rgba(17, 17, 23, .97);
  box-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.nav.scrolled::after { display: none; }

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--red);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.search { margin-left: auto; }

/* Bouton hamburger (visible uniquement sur petit écran) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  border: none;
  border-radius: 6px;
  background: rgba(0,0,0,.4);
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panneau de navigation mobile */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 49;
  flex-direction: column;
  padding: 10px 18px 18px;
  background: rgba(11,11,15,.97);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-mobile a {
  padding: 14px 4px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--red); }

/* L'attribut hidden doit l'emporter sur display:flex des media queries */
.nav-mobile[hidden] { display: none !important; }

.search input {
  width: 220px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.4);
  color: var(--text);
  font-size: 14px;
  transition: width .2s ease, border-color .2s ease;
}

.search input:focus { outline: none; width: 300px; border-color: rgba(255,255,255,.4); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* Bandeau plein écran : largeur 100 %, hauteur limitée par le ratio 16:9
     de l'affiche. Plus de `max-height` : sur un écran large, l'image HD
     (1920×1080) remplit toute la largeur.
     `min-height` garantit que le contenu du hero (padding 96 px + texte)
     ne remonte jamais sous la barre de navigation, même sur une fenêtre
     basse : le contenu est alors compacté (cf. règles `@media` plus bas). */
  width: 100%;
  height: min(72vh, calc(100vw * 9 / 16));
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 40px;
  overflow: hidden;
  isolation: isolate;
}

/* Fond flouté (remplit les marges sans étirer l'image) */
.hero-bg-blur {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(.45) saturate(1.1);
  transform: scale(1.08);
  z-index: 0;
}

/* Affiche : remplit tout le bandeau (cover). L'image HD est assez grande
   pour ne pas paraître agrandie ; le rognage haut/bas est masqué par les
   dégradés du hero. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #050507;
}

.hero-skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 40%, #1c1c22 0%, #0b0b0f 70%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11,11,15,.92) 0%, rgba(11,11,15,.55) 32%, transparent 58%),
    linear-gradient(to top, var(--bg) 0%, transparent 26%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
  padding: 0 48px 72px;
  /* Le titre ne doit jamais passer sous la barre fixe (70 px de haut) */
  padding-top: 96px;
  /* Sur une fenêtre basse, le contenu reste collé en bas du bandeau */
  max-height: 100%;
  overflow: hidden;
}

/* Le hero utilise l'image HD de la fiche (`thumb-hd.webp`) en « cover ».
   Le dégradé du haut, renforcé (160 px), garantit que la barre de navigation
   reste lisible même sur une image claire ; un voile radial assombrit le
   côté gauche où se trouve le texte. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* bande sombre sous la barre fixe : garantit la lisibilité du menu
       même si l'image HD est claire en haut */
    linear-gradient(to bottom, rgba(8, 8, 12, .95) 0px, rgba(8, 8, 12, .88) 90px, rgba(8, 8, 12, 0) 160px),
    radial-gradient(ellipse at 22% 60%, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 52%, transparent 78%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-title {
  /* Sur une fenêtre basse, le titre rétrécit (vh) au lieu de déborder */
  font-size: clamp(26px, min(4.5vw, 7vh), 58px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 16px;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
  /* Un titre de 3 lignes maximum ; au-delà, ellipse */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.55;
  color: #ddd;
  margin: 0 0 22px;
  display: -webkit-box;
  /* 2 lignes sur fenêtre basse, 3 sinon */
  -webkit-line-clamp: var(--hero-desc-lines, 3);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.hero-actions { display: flex; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: filter .15s ease, transform .1s ease;
}

.btn:hover { filter: brightness(1.1); }

.btn-primary { background: var(--text); color: #000; }
.btn-secondary { background: rgba(109,109,110,.55); color: var(--text); }
.btn svg { flex: none; }

/* ---------- Rangées ---------- */

.rows { padding: 0 0 80px; }

.loading { padding: 40px 48px; color: var(--muted); }

.row { margin-bottom: 34px; }

.row-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 0 48px;
}

.row-viewport { position: relative; }

.row-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 6px 48px 40px;
  margin-top: -6px;
  scrollbar-width: none;
}

.row-track::-webkit-scrollbar { display: none; }

.row-nav {
  position: absolute;
  top: 6px;
  bottom: 40px;
  width: 44px;
  z-index: 5;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease;
}

.row-viewport:hover .row-nav { opacity: 1; }
.row-nav:hover { background: rgba(0,0,0,.8); }
.row-nav.prev { left: 0; border-radius: 0 4px 4px 0; }
.row-nav.next { right: 0; border-radius: 4px 0 0 4px; }

.card {
  flex: 0 0 var(--card-w);
  /* Largeur fixe : le contenu ne doit jamais l'élargir (titres longs, etc.) */
  width: var(--card-w);
  min-width: 0;
  max-width: var(--card-w);
  scroll-snap-align: start;
  transition: transform .22s ease, box-shadow .22s ease;
  position: relative;
}

.card:hover {
  transform: scale(1.07);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,.7);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1d1d22;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent 55%);
  opacity: 0;
  transition: opacity .2s ease;
}

.card:hover .card-overlay { opacity: 1; }

.card-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-meta { padding: 8px 2px 0; min-width: 0; }

/* Durée de la vidéo, en bas à droite de la vignette (masquée si inconnue) */
.card-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .02em;
  pointer-events: none;
}

.card-duration:empty { display: none; }

.card-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  min-width: 0;
  /* Chaîne + auteur : jusqu'à deux lignes, puis ellipse */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: rgba(255,255,255,.5);
  background: linear-gradient(135deg, #1f1f26, #2a2a33);
}

/* ---------- Recherche ---------- */

.search-results {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11,11,15,.97);
  overflow-y: auto;
  padding: 110px 48px 60px;
}

.search-results h2 { font-size: 20px; margin: 0 0 24px; padding: 0; }

.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.search-grid .card { flex: none; width: auto; }

/* ---------- Page lecture ---------- */

.watch { padding: 0 0 60px; }

.watch-back {
  position: fixed;
  top: 18px;
  left: 24px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(0,0,0,.6);
  font-size: 14px;
}

.watch-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.watch video {
  width: 100%;
  max-height: 78vh;
  background: #000;
  border-radius: 6px;
  margin-top: 64px;
}

.watch-info { padding: 24px 0; }

.watch-info h1 { font-size: 30px; margin: 0 0 10px; }

.watch-sub { color: var(--muted); font-size: 14px; display: flex; gap: 8px; margin-bottom: 18px; }

.watch-desc { font-size: 16px; line-height: 1.6; color: #ddd; }
/* Description d'origine (éditable dans l'éditeur) : dépliant fermé par défaut,
   les textes importés pouvant dépasser plusieurs milliers de caractères. */
.watch-desc-origine { margin: 8px 0 16px; font-size: 14px; color: #bbb; max-width: 780px; }
.watch-desc-origine > summary {
  cursor: pointer;
  color: #ddd;
  font-weight: 600;
  padding: 4px 0;
  list-style: none;
}
.watch-desc-origine > summary::before { content: "▸ "; color: #888; }
.watch-desc-origine[open] > summary::before { content: "▾ "; }
/* Mise en forme de l'original conservée : `pre-wrap` garde les retours à la ligne
   et les suites d'espaces, tout en repliant les lignes trop longues.
   Le texte n'est PAS dans un <p> : un <p> écraserait les sauts de ligne (HTML). */
.watch-desc-origine-texte {
  margin: 6px 0 0;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere; /* longues URL de l'original sans casser la page */
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.25);
  font-size: 12px;
  color: var(--muted);
  margin: 0 6px 6px 0;
}

/* ---------- Explorateur de taxonomie ---------- */

.explore-roots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1100px;
  margin: 0 0 28px;
}

.explore-root-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.explore-root-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
}

.root-title { font-weight: 600; }

.root-count {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 0 7px;
  line-height: 1.6;
}

.explore-tree { display: flex; flex-direction: column; gap: 2px; max-width: 720px; }

.tree-node { display: flex; flex-direction: column; }

.tree-link {
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 15px;
  color: #ddd;
}
.tree-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.tree-bullet { color: var(--muted); margin-right: 8px; }

.tree-count {
  margin-left: 10px;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 0 7px;
}

/* Sur la page /explorer, on masque les sous-arbres des branches non survolées
   pour garder une lecture lisible, tout en permettant le dépliage. */
.explore-tree-page .tree-node.has-children > .tree-children {
  border-left: 1px solid rgba(255,255,255,.08);
  margin-left: 12px;
}

/* ---------- Page catégorie ---------- */

.category-page { padding: 100px 48px 80px; }

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb .current { color: var(--text); font-weight: 600; }
.breadcrumb .sep { opacity: .5; }

.category-title { font-size: clamp(26px, 3vw, 40px); margin: 0 0 8px; }

.category-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.category-children { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}
.chip:hover { background: rgba(255,255,255,.16); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr));
  gap: 26px 16px;
}

.grid .card { flex: none; }

/* ---------- Page lecture : sources et ressources ---------- */

.player-wrap { margin-top: 64px; }

.audio-player { width: 100%; margin-top: 40px; }

.sources-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.sources-label { font-size: 13px; color: var(--muted); margin-right: 4px; }

.source-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.source-btn:hover { background: rgba(255,255,255,.1); }
.source-btn.active { background: var(--text); color: #000; font-weight: 700; border-color: var(--text); }

.watch-placement { margin: 22px 0; }
.watch-placement h2, .ressources h2 { font-size: 16px; margin: 0 0 10px; }
.placement-line { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.placement-line a:hover { color: var(--text); text-decoration: underline; }
.placement-line .current { color: var(--text); }

.ressources { margin-top: 24px; }

.ressources-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.ressource-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  font-size: 14px;
}
.ressource-link:hover { background: rgba(255,255,255,.12); }
.res-icon { font-size: 16px; width: 22px; text-align: center; }
.res-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 1px 8px;
}

/* ---------- Responsive ---------- */

/* Fenêtre basse (ordinateur portable, 13–15") : le contenu du hero est
   compacté pour ne jamais passer sous la barre de navigation. */
@media (max-height: 820px) and (min-width: 901px) {
  .hero { --hero-desc-lines: 2; }
  .hero-content { padding-top: 88px; padding-bottom: 44px; }
  .hero-badge { margin-bottom: 6px; }
  .hero-title { margin-bottom: 10px; }
  .hero-meta { margin-bottom: 12px; }
  .hero-desc { margin-bottom: 16px; font-size: 15px; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .hero { --hero-desc-lines: 2; }
  .hero-content { padding-top: 82px; padding-bottom: 28px; }
  .hero-title { font-size: clamp(24px, min(4vw, 6.2vh), 44px); margin-bottom: 8px; }
  .hero-desc { margin-bottom: 14px; }
  .btn { padding: 10px 18px; }
}

@media (max-width: 900px) {
  :root { --card-w: 200px; }
  .nav { padding: 14px 18px; gap: 12px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .search { margin-left: auto; }
  .search input { width: 140px; }
  .search input:focus { width: 170px; }
  .hero {
    height: min(60vh, calc(100vw * 9 / 16 + 150px));
    /* Le contenu ne doit jamais passer sous la barre (68 px sur mobile) */
    min-height: calc(68px + 300px);
  }
  .hero-content { padding: 72px 18px 56px; }
  /* Affiche étroite : le texte est compacté (2 lignes de description) */
  .hero { --hero-desc-lines: 2; }
  .hero-title { font-size: clamp(24px, 7vw, 40px); margin-bottom: 10px; }
  .hero-desc { margin-bottom: 16px; }
  /* Petit écran : l'affiche est étroite, on assombrit davantage pour le texte */
  .hero::before {
    background: linear-gradient(to bottom,
                rgba(8, 8, 12, .92) 0%, rgba(8, 8, 12, .72) 45%, rgba(8, 8, 12, .55) 100%);
  }
  .row-title { padding: 0 18px; font-size: 17px; }
  .row-track { padding: 6px 18px 30px; }
  .row-nav { display: none; }
  .search-results { padding: 90px 18px 40px; }
  .category-page { padding: 84px 18px 60px; }
}

@media (max-width: 520px) {
  :root { --card-w: 160px; }
  .hero {
    height: min(62vh, calc(100vw * 9 / 16 + 190px));
    min-height: calc(68px + 280px);
  }
  .hero-content { padding: 68px 16px 40px; }
  .hero-actions .btn { padding: 10px 16px; font-size: 14px; }
  .search input { width: 120px; }
  .search input:focus { width: 140px; }
}

/* Très petit écran (téléphone à fenêtre basse) : contenu du hero minimal */
@media (max-width: 520px) and (max-height: 700px) {
  .hero {
    height: min(64vh, calc(100vw * 9 / 16 + 230px));
    min-height: calc(68px + 260px);
  }
  .hero { --hero-desc-lines: 1; }
  .hero-content { padding: 64px 14px 22px; }
  .hero-title { margin-bottom: 6px; }
  .hero-meta { margin-bottom: 8px; font-size: 12px; }
  .hero-desc { margin-bottom: 12px; font-size: 14px; }
  .hero-actions .btn { padding: 8px 14px; font-size: 13px; }
}

/* ---------- Origine éditoriale : cartes source (bas de la fiche vidéo) ---------- */

.watch-sources {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  gap: 16px;
}

.source-card {
  background: var(--surface, #181818);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 16px 18px;
}

.source-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}
.source-card-head:hover { text-decoration: none; }
.source-card-head:hover .source-card-name { text-decoration: underline; }

.source-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.source-avatar-none {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--muted);
}

.source-card-titles { display: flex; flex-direction: column; min-width: 0; }
.source-card-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.source-card-name { font-size: 17px; font-weight: 600; }

.source-card-more {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.source-card-head:hover .source-card-more { color: var(--text); }

.source-card-desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
  white-space: pre-line;
}

.source-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.source-link {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
}
.source-link:hover { background: rgba(255,255,255,.16); text-decoration: none; }

/* ---------- Page source ---------- */

.source-hero { padding: 88px 24px 8px; }
.source-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.source-hero .source-avatar { width: 96px; height: 96px; }
.source-hero-title { font-size: clamp(26px, 3vw, 38px); margin: 0 0 4px; }
.source-hero-role { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.source-hero-desc { margin: 14px 0 0; line-height: 1.6; color: rgba(255,255,255,.85); white-space: pre-line; }
.source-section-title { font-size: 18px; margin: 34px 0 14px; }
.source-empty { color: var(--muted); }

@media (max-width: 900px) {
  .source-hero { padding: 84px 18px 8px; }
  .source-hero-inner { flex-direction: column; }
  .watch-sources { padding: 0 18px; }
  .source-card-more { display: none; }
}
