/* ── Variables — mirror LNN exactly ── */
:root {
  --navy:      #0d1b2e;
  --navy2:     #152238;
  --navy3:     #1c2d44;
  --red:       #cc1a1a;
  --red2:      #e02020;
  --white:     #ffffff;
  --grey-bg:   #f4f6f9;
  --grey-mid:  #8a9bb0;
  --grey-text: #4a5568;
  --border:    #dde3ec;
  --player-h:  84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--white); color: #1a1a2e;
  padding-bottom: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; }

/* ── Ticker ── */
#top-bar {
  background: var(--red); color: var(--white);
  font-family: Arial, sans-serif; font-size: 13px;
  display: flex; align-items: center; overflow: hidden; height: 34px;
}
.ticker-label {
  background: #8b0000; padding: 0 16px;
  font-weight: bold; letter-spacing: 1.5px; font-size: 11px;
  white-space: nowrap; height: 100%;
  display: flex; align-items: center; flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-track {
  display: inline-block; white-space: nowrap;
  padding-left: 100%; animation: ticker 55s linear infinite;
}
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-100%)} }

/* ── Header ── */
header { background: var(--navy); border-bottom: 3px solid var(--red); position: relative; }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { height: 52px; width: auto; border-radius: 10px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; }
nav ul li a {
  display: block; color: #c8d8f0;
  font-family: Arial, sans-serif; font-size: 13px;
  padding: 7px 13px; border-radius: 3px;
  transition: background .2s, color .2s; white-space: nowrap;
}
nav ul li a:hover,
nav ul li a.active { background: var(--red); color: var(--white); }

/* ── Section header (dark band, like LNN) ── */
.section-page-header {
  background: var(--navy); border-bottom: 3px solid var(--red);
  padding: 36px 24px;
}
.section-page-header .container { max-width: 1200px; margin: 0 auto; }
.section-page-header h1 {
  font-size: 36px; color: var(--white); margin: 8px 0 10px;
}
.section-page-header p {
  font-family: Arial, sans-serif; font-size: 15px;
  color: var(--grey-mid); max-width: 600px; line-height: 1.5;
}
.section-label {
  display: inline-block; background: var(--red); color: var(--white);
  font-family: Arial, sans-serif; font-size: 10px; font-weight: bold;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; margin-bottom: 4px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Shows bar ── */
.shows-bar {
  display: flex; gap: 12px; padding: 28px 0 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.show-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 14px; cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px; transition: border-color .15s;
  white-space: nowrap;
}
.show-tab:hover { border-color: var(--grey-mid); }
.show-tab.active { border-color: var(--red); }
.show-tab img {
  width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
}
.show-tab-name {
  font-family: Arial, sans-serif; font-size: 13px; font-weight: bold;
  color: var(--navy); line-height: 1.2;
}
.show-tab-cat {
  font-family: Arial, sans-serif; font-size: 11px; color: var(--grey-mid);
}
.show-tab-all {
  font-family: Arial, sans-serif; font-size: 13px; font-weight: bold;
  color: var(--grey-text); padding: 10px 16px 14px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: border-color .15s; white-space: nowrap;
}
.show-tab-all:hover { border-color: var(--grey-mid); }
.show-tab-all.active { color: var(--navy); border-color: var(--red); }

/* ── Episode list ── */
.episodes-wrap { padding: 8px 0 40px; }

.episode-row {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .12s;
  border-radius: 4px; position: relative;
}
.episode-row:last-child { border-bottom: none; }
.episode-row:hover { background: var(--grey-bg); padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.episode-row.playing { background: #fff5f5; padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.episode-row.playing::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 3px; background: var(--red); border-radius: 2px;
}

.ep-img { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.ep-img img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
.ep-img-overlay {
  position: absolute; inset: 0; border-radius: 6px;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
  color: #fff;
}
.episode-row:hover .ep-img-overlay,
.episode-row.playing .ep-img-overlay { opacity: 1; }
.episode-row.playing .ep-img-overlay { background: rgba(204,26,26,.6); }

.ep-body {}
.ep-show-label {
  font-family: Arial, sans-serif; font-size: 10px; font-weight: bold;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--red); margin-bottom: 6px;
}
.ep-title {
  font-size: 17px; font-weight: bold; line-height: 1.35;
  color: var(--navy); margin-bottom: 6px;
}
.episode-row.playing .ep-title { color: var(--red); }
.ep-desc {
  font-family: Arial, sans-serif; font-size: 13px;
  color: var(--grey-text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px;
}
.ep-meta {
  font-family: Arial, sans-serif; font-size: 12px;
  color: var(--grey-mid); display: flex; gap: 14px; align-items: center;
}
.ep-meta-dur::before { content: '◷ '; }

.ep-play {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, transform .15s;
}
.ep-play:hover { background: var(--red); transform: scale(1.06); }
.episode-row.playing .ep-play { background: var(--red); }

.ep-btns {
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; flex-shrink: 0;
}

.no-episodes {
  text-align: center; padding: 64px 0;
  font-family: Arial, sans-serif; font-size: 15px; color: var(--grey-mid);
}

/* ── Fixed bottom player ── */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background: var(--navy);
  border-top: 3px solid var(--red);
  z-index: 200;
  display: flex; align-items: center; padding: 0 24px; gap: 24px;
}
.player-bar.hidden { display: none; }

.player-now {
  display: flex; align-items: center; gap: 14px;
  width: 260px; flex-shrink: 0; min-width: 0;
}
.player-now img {
  width: 46px; height: 46px; border-radius: 5px;
  object-fit: cover; flex-shrink: 0;
}
.player-ep-title {
  font-size: 13px; font-weight: bold; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-ep-show {
  font-family: Arial, sans-serif; font-size: 11px;
  color: var(--grey-mid); margin-top: 3px;
}

.player-center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.player-btns { display: flex; align-items: center; gap: 14px; }
.pb {
  font-family: Arial, sans-serif; font-size: 15px;
  color: var(--grey-mid); padding: 6px; transition: color .15s;
}
.pb:hover { color: var(--white); }
.pb-play {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.pb-play:hover { transform: scale(1.07); }

.player-progress {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 520px;
}
.player-time {
  font-family: Arial, sans-serif; font-size: 11px;
  color: var(--grey-mid); font-variant-numeric: tabular-nums; min-width: 34px;
}
.player-time.end { text-align: right; }
.progress-track {
  flex: 1; height: 3px; background: var(--navy3);
  border-radius: 2px; cursor: pointer; position: relative;
  transition: height .15s;
}
.progress-track:hover { height: 5px; }
.progress-filled {
  height: 100%; background: var(--red); border-radius: 2px;
  pointer-events: none;
}
.progress-thumb {
  position: absolute; left: 0; top: 50%;
  transform: translate(-50%, -50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--white); opacity: 0;
  transition: opacity .15s; pointer-events: none;
}
.progress-track:hover .progress-thumb { opacity: 1; }

.player-right {
  display: flex; align-items: center; gap: 14px;
  width: 200px; justify-content: flex-end; flex-shrink: 0;
}
.speed-btn {
  font-family: Arial, sans-serif; font-size: 12px; font-weight: bold;
  color: var(--grey-mid); background: var(--navy3);
  border: 1px solid rgba(255,255,255,.1);
  padding: 4px 10px; border-radius: 3px; cursor: pointer;
  transition: color .15s;
}
.speed-btn:hover { color: var(--white); }
.volume-wrap { display: flex; align-items: center; gap: 8px; }
.vol-icon { color: var(--grey-mid); display: inline-flex; align-items: center; }
.player-close {
  flex-shrink: 0; margin-left: 6px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: var(--grey-mid); background: var(--navy3);
  border: 1px solid rgba(255,255,255,.1); border-radius: 50%;
  cursor: pointer; transition: color .15s, background .15s;
}
.player-close:hover { color: var(--white); background: var(--red, #cc1a1a); }
input[type=range].vol-slider {
  width: 68px; height: 3px;
  -webkit-appearance: none; appearance: none;
  background: var(--navy3); border-radius: 2px; cursor: pointer;
}
input[type=range].vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--white); cursor: pointer;
}

/* ── Footer ── */

/* ── Share button ── */
.ep-share {
  background: none; border: 1px solid var(--border, #dde1e8);
  border-radius: 6px; padding: 6px 10px; cursor: pointer;
  color: var(--grey-text); font-size: 13px; line-height: 1;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0; align-self: flex-start; margin-top: 2px;
}
.ep-share:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Toast ── */
.share-toast {
  position: fixed; bottom: calc(var(--player-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1a1a2e; color: #fff;
  padding: 10px 20px; border-radius: 6px;
  font-size: 13px; font-family: Arial, sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999; white-space: nowrap;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Episode preview card (shared link) ── */
.ep-preview-card {
  background: #fff; border: 1px solid #e2e6ea;
  border-left: 4px solid var(--red);
  border-radius: 4px; padding: 20px 24px;
  margin: 24px 0; display: flex; gap: 20px; align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  animation: slideDown .3s ease;
  position: relative;
}
@keyframes slideDown { from { opacity:0; transform: translateY(-10px); } to { opacity:1; transform: translateY(0); } }

.ep-preview-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 8px; font-family: Arial, sans-serif;
}
.ep-preview-img {
  width: 100px; height: 100px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0;
}
.ep-preview-body { flex: 1; min-width: 0; }
.ep-preview-show {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--grey-text); margin-bottom: 5px;
  font-family: Arial, sans-serif;
}
.ep-preview-title {
  font-size: 17px; font-weight: bold; color: var(--navy);
  line-height: 1.3; margin-bottom: 8px;
}
.ep-preview-desc {
  font-size: 13px; color: var(--grey-text); line-height: 1.5;
  margin-bottom: 12px; font-family: Arial, sans-serif;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ep-preview-meta {
  font-size: 12px; color: var(--grey-mid); font-family: Arial, sans-serif; margin-bottom: 14px;
}
.ep-preview-meta span + span::before { content: ' · '; }
.ep-preview-listen {
  background: var(--red); color: #fff; border: none;
  padding: 9px 20px; border-radius: 4px; cursor: pointer;
  font-size: 13px; font-weight: 700; font-family: Arial, sans-serif;
  transition: opacity .15s;
}
.ep-preview-listen:hover { opacity: .85; }
.ep-preview-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--grey-mid); line-height: 1;
  padding: 2px 6px;
}
.ep-preview-close:hover { color: var(--red); }

/* ── Burger button ── */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #c8d8f0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .player-right { display: none; }
  nav ul li a { font-size: 12px; padding: 6px 10px; }
}

@media (max-width: 768px) {
  .section-page-header h1 { font-size: 28px; }
  
}

@media (max-width: 640px) {
  .header-inner { padding: 10px 16px; }
  .burger-btn { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 100;
    padding: 8px 0 16px;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; flex-wrap: nowrap; }
  nav ul li a { font-size: 15px; padding: 13px 24px; border-radius: 0; white-space: normal; }
  nav ul li a.active { background: var(--red); }

  .section-page-header h1 { font-size: 24px; }
  .section-page-header { padding: 24px 16px; }

  /* Episode rows: 3 cols, image réduite */
  .episode-row { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .ep-img { width: 72px; height: 72px; }
  .ep-img img { width: 72px; height: 72px; }
  /* Boutons play + share côte à côte */
  .ep-btns { flex-direction: row; gap: 6px; }

  /* Shows bar : 2 lignes en grille */
  .shows-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
    gap: 6px;
    padding: 14px 0 14px;
    border-bottom: 1px solid var(--border);
  }
  .show-tab, .show-tab-all {
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 0;
    padding: 9px 10px;
    background: var(--grey-bg);
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
  }
  .show-tab img { display: none; }
  .show-tab-cat { display: none; }
  .show-tab-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  .show-tab-all { font-size: 12px; }
  .show-tab.active { background: #fff0f0; border-color: var(--red); }
  .show-tab.active .show-tab-name { color: var(--red); }
  .show-tab-all.active { background: #fff0f0; border-color: var(--red); color: var(--navy); }

  .player-bar { padding: 0 12px; gap: 10px; }
  .player-now { width: 150px; }
  .player-now img { width: 36px; height: 36px; }
  .player-ep-title { font-size: 11px; }
  .player-ep-show { display: none; }
}

@media (max-width: 480px) {
  .player-now { display: none; }
  .container { padding: 0 14px; }
  
  .ep-title { font-size: 15px; }
  .ep-desc { -webkit-line-clamp: 1; }
}

/* Podcasts verrouillés (pas d'audio -> Subscribers only) */
.episode-row.locked { opacity:.72; cursor:default; }
.episode-row.locked .ep-title { color:#55607a; }
.episode-row.locked .ep-img-overlay { opacity:1; background:rgba(13,20,38,0.6); color:#fff; }
.ep-locked-label { display:inline-flex; align-items:center; gap:5px; font-family:Arial,sans-serif; font-size:11px; font-weight:bold; color:#8a94a3; text-transform:uppercase; letter-spacing:.03em; white-space:nowrap; }

/* Slide bar verticale : ~5 épisodes visibles, scroll vers le bas pour les autres */
#episode-list.episodes-wrap { max-height: 680px; overflow-y: auto; overflow-x: hidden; padding-right: 10px; margin-bottom: 60px; }
#episode-list.episodes-wrap::-webkit-scrollbar { width: 10px; }
#episode-list.episodes-wrap::-webkit-scrollbar-thumb { background:#c4ceda; border-radius:5px; }
#episode-list.episodes-wrap::-webkit-scrollbar-thumb:hover { background:#a9b6c6; }
#episode-list.episodes-wrap::-webkit-scrollbar-track { background:#eef1f5; border-radius:5px; }

/* Réserve l'espace de la barre de lecture seulement quand elle est active */
body.player-active { padding-bottom: var(--player-h); }

/* Footer — identique au site principal */
footer { background: var(--navy); border-top: 3px solid var(--red); padding: 44px 0 22px; }
.footer-logo { margin-bottom: 24px; }
.footer-logo img { height: 42px; width: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 36px; }
.footer-col h4 {
  color: var(--white); font-family: Arial, sans-serif;
  font-size: 12px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: #6a8bb0; font-family: Arial, sans-serif; font-size: 13px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--navy3); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { color: #6a8bb0; font-family: Arial, sans-serif; font-size: 13px; }
.footer-disclaimer { color: #3a4e66; font-family: Arial, sans-serif; font-size: 11px; max-width: 560px; line-height: 1.5; }

/* Badge "Free" sur l'épisode gratuit */
.ep-free-badge { display:inline-block; margin-right:8px; background:#1a9c5b; color:#fff;
  font-size:10px; font-weight:700; letter-spacing:.5px; text-transform:uppercase;
  padding:2px 7px; border-radius:3px; vertical-align:1px; }
