/* =====================================================
   BiLOU GATES - Blog CSS Global
   Style unique et facile à éditer
   ===================================================== */

/* ===== VARIABLES CSS ===== */
:root {
  --accent: #16a34a;
  --accent-bg: #16a34a12;
  --purple: #8b5cf6;
  --purple-bg: #8b5cf612;
  --amber: #d97706;
  --amber-bg: #d9770610;
  --red: #dc2626;
}

/* ===== THÈME LIGHT ===== */
[data-theme="light"] {
  --bg-main: #fafaf9;
  --bg-alt: #f8f8f6;
  --bg-raised: #ffffff;
  --bg-card: #fcfcfb;
  --bg-card-hover: #f5f5f3;
  --bg-nav: rgba(250,250,249,0.75);
  --bg-nav-border: rgba(0, 0, 0, 0.06);
  --bg-input: #f9f9f8;
  --text: #1a1a1a;
  --text-mid: #555;
  --text-dim: #888;
  --text-body: #444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --parallax-tint: rgba(255,255,255,0.55);
  --layer-opacity: 0.07;
  --banner-overlay: rgba(255,255,255,0.7);
  --grad-start: rgba(250,250,249,0);
  --grad-end: rgba(250,250,249,0.95);
  --grad-solid: rgba(250,250,249,0.99);
  --section-fade-top: linear-gradient(to bottom, #fafaf9 0%, transparent 100%);
  --section-fade-bottom: linear-gradient(to top, #fafaf9 0%, transparent 100%);
}

/* ===== THÈME DARK ===== */
[data-theme="dark"] {
  --bg-main: #0d0d0f;
  --bg-alt: #121217;
  --bg-raised: #18181e;
  --bg-card: #21212a;
  --bg-card-hover: #292933;
  --bg-nav: rgba(13,13,15,0.9);
  --bg-nav-border: rgba(255,255,255,0.09);
  --bg-input: #15151b;
  --text: #e8e8ec;
  --text-mid: #96969f;
  --text-dim: #56566a;
  --text-body: #bebec8;
  --shadow-sm: 0 1px 5px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.035);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  --parallax-tint: rgba(13,13,15,0.65);
  --layer-opacity: 0.14;
  --banner-overlay: rgba(13,13,15,0.76);
  --grad-start: rgba(13,13,17,0);
  --grad-end: rgba(13,13,17,0.94);
  --grad-solid: rgba(13,13,17,0.99);
  --section-fade-top: linear-gradient(to bottom, #0d0d0f 0%, transparent 100%);
  --section-fade-bottom: linear-gradient(to top, #0d0d0f 0%, transparent 100%);
}

/* ===== BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-main);
  color: var(--text);
  font-family: 'Asap', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  width: 100%;
  padding-top: 56px;
  position: relative;
}

/* Gradient background layer - dark theme */
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.03) 25%,
    rgba(0,0,0,0.06) 50%,
    rgba(0,0,0,0.03) 75%,
    rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Gradient background layer - light theme */
[data-theme="light"] body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.004) 25%,
    rgba(0,0,0,0.008) 50%,
    rgba(0,0,0,0.004) 75%,
    rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: -1;
}

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

/* ===== NAVIGATION ===== */
.topbar {
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--bg-nav-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.topbar.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.topbar-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  min-width: 0; /* Permet aux enfants flex de rétrécir */
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
}

.logo-svg {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 1;
  min-width: 0;
}

.logo-svg.logo-dark { display: none; }

[data-theme="dark"] .logo-svg.logo-light { display: none; }
[data-theme="dark"] .logo-svg.logo-dark  { display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0; /* Empêche les boutons de rétrécir */
}

.nav-links {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap; /* Empêche les liens de passer à la ligne */
}

.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--text-mid);
  padding: 6px 14px; border-radius: 6px; transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: var(--bg-card); color: var(--text); }
.nav-links a.on { background: var(--accent-bg); color: var(--accent); }

/* ---- Dropdown nav ---- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex; align-items: center; gap: 4px;
}
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  transition: transform 0.2s;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); opacity: 1; }
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 50%; transform: translateX(-50%);
  background: var(--bg-raised);
  border: 1px solid var(--bg-nav-border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  min-width: 170px;
  padding: 5px;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 200;
}
/* Invisible bridge to prevent hover gap between nav link and dropdown */
.nav-drop-menu::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}
.nav-dropdown:hover .nav-drop-menu {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: var(--text-mid);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-drop-menu a:hover { background: var(--bg-card); color: var(--text); }
.nav-drop-menu a.on { color: var(--accent); background: var(--accent-bg); }
.nav-drop-sep {
  height: 1px; background: var(--bg-nav-border);
  margin: 4px 8px;
}

.theme-toggle {
  margin-left: 12px; width: 36px; height: 36px; border: none;
  background: var(--bg-card); border-radius: 8px; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); transition: background 0.15s;
}

.theme-toggle:hover { background: var(--bg-card-hover); }

/* ===== SEARCH BUTTON ===== */
.search-btn {
  width: 36px; height: 36px; border: none;
  background: var(--bg-card); border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); transition: background 0.15s, color 0.15s;
  flex-shrink: 0; margin-left: 4px;
}
.search-btn:hover { background: var(--bg-card-hover); color: var(--text); }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 72px 20px 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.search-overlay.active {
  opacity: 1; pointer-events: all;
}

.search-modal {
  background: var(--bg-raised);
  border: 1px solid var(--bg-nav-border);
  border-radius: 18px;
  width: 100%; max-width: 640px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 100px);
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.search-overlay.active .search-modal {
  transform: translateY(0) scale(1);
}

/* Input row */
.search-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bg-nav-border);
  flex-shrink: 0;
}
.search-icon-svg { color: var(--accent); flex-shrink: 0; }

#searchInput {
  flex: 1; border: none; background: none; outline: none;
  font-size: 16px; font-family: inherit; font-weight: 500;
  color: var(--text); caret-color: var(--accent);
}
#searchInput::placeholder { color: var(--text-dim); }

.search-esc-key {
  font-family: inherit; font-size: 11px; font-weight: 600;
  color: var(--text-dim); background: var(--bg-alt);
  border: 1px solid var(--bg-nav-border);
  border-radius: 6px; padding: 3px 9px;
  cursor: pointer; flex-shrink: 0; letter-spacing: 0.04em;
  transition: color 0.12s;
}
.search-esc-key:hover { color: var(--text); }

/* Results list */
.search-results {
  overflow-y: auto; flex: 1; scroll-behavior: smooth;
}

.search-result-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--bg-nav-border);
  text-decoration: none;
  transition: background 0.1s;
  cursor: pointer; position: relative;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.sr-active { background: var(--bg-card); }
.search-result-item.sr-active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent); border-radius: 0 3px 3px 0;
}

.search-result-thumb {
  width: 54px; height: 54px; border-radius: 8px;
  background-size: cover; background-position: center;
  background-color: var(--bg-alt); flex-shrink: 0;
}

.search-result-body { flex: 1; min-width: 0; }

.search-result-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px; line-height: 1.3;
}
.search-result-title mark {
  background: none; color: var(--accent); font-weight: 800;
}

.search-result-excerpt {
  font-size: 12px; color: var(--text-mid); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 5px;
}
.search-result-excerpt mark {
  background: none; color: var(--accent); font-weight: 600;
}

.search-result-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.search-result-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--accent); background: var(--accent-bg);
  padding: 2px 8px; border-radius: 20px;
}
.search-result-date { font-size: 11px; color: var(--text-dim); }
.search-result-cat--vinyl { color: #8b5cf6; background: rgba(139,92,246,.12); }
.search-result-thumb--vinyl { display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--bg-alt); }
.search-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); padding: 10px 16px 4px; border-top: 1px solid var(--bg-nav-border);
  margin-top: 4px;
}

.search-result-arrow {
  color: var(--text-dim); flex-shrink: 0;
  transition: transform 0.12s, color 0.12s;
}
.search-result-item:hover .search-result-arrow,
.search-result-item.sr-active .search-result-arrow {
  color: var(--accent); transform: translateX(2px);
}

/* Hints (articles récents quand champ vide) */
.search-hint { padding: 14px 18px 6px; }
.search-hint-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 8px;
}
.search-hint-list { display: flex; flex-direction: column; }
.search-hint-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text-mid);
  text-decoration: none; transition: background 0.1s, color 0.1s;
}
.search-hint-item:hover { background: var(--bg-card); color: var(--text); }
.search-hint-item svg { flex-shrink: 0; color: var(--text-dim); }

/* Empty state */
.search-empty {
  padding: 44px 20px; text-align: center; color: var(--text-mid);
}
.search-empty-icon { font-size: 36px; margin-bottom: 12px; }
.search-empty-title {
  font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.search-empty-sub { font-size: 13px; line-height: 1.5; }

/* Footer (count + link) */
.search-modal-footer { flex-shrink: 0; }
.search-footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--bg-nav-border);
}
.search-footer-count { font-size: 12px; color: var(--text-dim); }
.search-footer-link {
  font-size: 12px; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: 4px; transition: opacity 0.15s;
}
.search-footer-link:hover { opacity: 0.75; }

/* Keyboard shortcuts bar */
.search-keys-bar {
  display: flex; gap: 16px; align-items: center;
  padding: 8px 18px;
  background: var(--bg-alt);
  border-top: 1px solid var(--bg-nav-border);
  flex-shrink: 0; flex-wrap: wrap;
}
.search-keys-bar span { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.search-keys-bar kbd {
  font-family: inherit; font-size: 10px; font-weight: 600;
  color: var(--text-dim); background: var(--bg-raised);
  border: 1px solid var(--bg-nav-border);
  border-radius: 4px; padding: 1px 5px;
}
.search-keys-shortcut { margin-left: auto; }

/* Mobile search in mobile menu */
.mobile-search-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 14px 16px;
  background: var(--bg-card); border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text-mid);
  cursor: pointer; font-family: inherit; margin-bottom: 8px;
  transition: background 0.15s;
}
.mobile-search-btn:hover { background: var(--bg-card-hover); color: var(--text); }

/* ===== MENU HAMBURGER (Mobile) ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  transition: background 0.15s;
}

.menu-toggle:hover { background: var(--bg-card-hover); }

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MENU MOBILE ===== */
.mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
}

.mobile-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 14px 16px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 4px;
}

.mobile-nav a:hover {
  background: var(--bg-card);
  color: var(--text);
}

.mobile-nav a.on {
  background: var(--accent-bg);
  color: var(--accent);
}

/* ===== PROGRESS BAR (pour page article) ===== */
.progress {
  position: fixed; top: 56px; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 99;
}

/* ===== LAYOUT ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ===== PARALLAX HERO (Homepage) ===== */
.parallax-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Base layer: photo Montréal — fixe, couvre tout le viewport */
.plx-base {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: url('/assets/images/home/wallpaper-montreal.jpg') center bottom/cover no-repeat;
}

.plx-tint {
  position: absolute; inset: 0;
  background: var(--parallax-tint);
  transition: background 0.3s;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 48px 24px; width: 100%;
  box-sizing: border-box;
}

.hero-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 18px;
}

.hero-card {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--bg-raised); border-radius: 14px; overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow-md);
  transition: transform 0.25s, box-shadow 0.25s, background 0.3s;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.hero-img {
  aspect-ratio: 16/10; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; opacity: 0.7;
}

.hero-body {
  padding: 32px 36px; display: flex; flex-direction: column;
  justify-content: center; gap: 10px;
}

.tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 4px; width: fit-content;
}

.tag-green { background: var(--accent-bg); color: var(--accent); }
.tag-purple { background: var(--purple-bg); color: var(--purple); }

.hero-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.hero-excerpt {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
  text-align: justify;
}
.hero-meta { font-size: 12px; color: var(--text-dim); display: flex; gap: 16px; }
.hero-meta .cmt { color: var(--purple); }
.hero-cta { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 4px; }

/* ===== DIAGONALS ===== */
.diagonal-down {
  height: 60px; background: var(--bg-main); position: relative;
}

.diagonal-down::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: var(--bg-alt);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  transition: background 0.3s;
}

.diagonal-up {
  height: 60px; background: var(--bg-alt); position: relative;
}

.diagonal-up::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: var(--bg-main);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 100%);
  transition: background 0.3s;
}

/* ===== ARTICLES GRID (Homepage) ===== */
.section-articles { background: var(--bg-alt); padding: 0 0 20px; transition: background 0.3s; }

.section-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.section-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mid); }

.section-more { font-size: 12px; font-weight: 600; color: var(--text-dim); transition: color 0.15s; }
.section-more:hover { color: var(--accent); }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.card {
  background: var(--bg-raised); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: background 0.15s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer; box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  min-width: 0; /* Permet à la carte de rétrécir */
}

.card:hover { background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card-thumb {
  aspect-ratio: 16/9; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; opacity: 0.6;
}

.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }

.card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }

.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.15s;
  word-wrap: break-word; /* Permet aux mots longs de passer à la ligne */
  overflow-wrap: break-word;
}

.card:hover .card-title { color: var(--accent); }

.card-desc {
  font-size: 13px; color: var(--text-mid); line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: justify;
}

.card-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); padding-top: 10px; margin-top: auto; }
.card-foot .cmt { color: var(--purple); }

/* ===== BOTTOM SECTION (Homepage) ===== */
.section-bottom { padding: 32px 0 48px; background: var(--bg-main); transition: background 0.3s; }

.cols-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }

.cmt-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 0; }

.cmt-av {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
}

.av-1 { background: var(--accent); }
.av-2 { background: var(--purple); }
.av-3 { background: var(--amber); }
.av-4 { background: var(--red); }

.cmt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.cmt-author { font-weight: 600; font-size: 14px; }
.cmt-date { font-size: 11px; color: var(--text-dim); }

.cmt-text {
  font-size: 13px; color: var(--text-mid); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.cmt-src { margin-top: 4px; font-size: 12px; color: var(--text-dim); }
.cmt-src a { color: var(--accent); font-weight: 500; }
.cmt-src a { transition: opacity 0.18s; }
.cmt-src a:hover { opacity: 0.75; }

.rub-list { display: flex; flex-direction: column; gap: 6px; }

.rub-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-card); border-radius: 10px;
  transition: background 0.15s; cursor: pointer; box-shadow: var(--shadow-sm);
}

.rub-item:hover { background: var(--bg-card-hover); }
.rub-name { font-size: 14px; font-weight: 600; }

.rub-count {
  font-size: 12px; color: var(--text-dim); background: var(--bg-alt);
  padding: 2px 10px; border-radius: 20px; font-weight: 600;
}

/* ===== ARTICLE BANNER (Page article) ===== */
.article-banner {
  position: relative;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  top: -40px; left: 0; right: 0; bottom: -40px;
  background: url('https://images.unsplash.com/photo-1591799264318-7e6ef8ddb7ea?w=1600&q=80') center/cover no-repeat;
  filter: blur(24px);
  transform: scale(1.15);
  will-change: transform;
}

.banner-overlay {
  position: absolute; inset: 0;
  background: var(--banner-overlay);
  transition: background 0.3s;
}

.banner-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px 32px; width: 100%;
}

.breadcrumb {
  font-size: 12px; color: var(--text-dim);
  display: flex; gap: 6px; margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .cur { color: var(--text-mid); }

/* Thumbnail with integrated header */
.article-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Gradient overlay on bottom of image */
.article-hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(
    to bottom,
    var(--grad-start) 0%,
    var(--grad-end) 60%,
    var(--grad-solid) 100%
  );
  transition: background 0.3s;
  pointer-events: none;
}

/* Header info positioned over gradient */
.article-hero-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 32px 28px;
}

.article-tags-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 10px;
}

.article-date { font-size: 12px; color: var(--text-dim); }
.article-read { font-size: 12px; color: var(--text-dim); }

.article-hero-info h1 {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-lead {
  font-size: 15px; font-style: italic; color: var(--text-mid); line-height: 1.55;
  max-width: 720px;
}

/* ===== BLOG GRID (Page article) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin-top: 28px;
  align-items: start;
}
/* Empêche les enfants de déborder de leur colonne (bug grid min-width: auto) */
.blog-grid > * { min-width: 0; }

.article-body-card {
  background: var(--bg-raised);
  border-radius: 14px;
  padding: 36px 36px 28px;
  transition: background 0.3s;
  min-width: 0; /* Respecte la colonne de grille */
}

/* ===== PROSE (Contenu article) ===== */
.prose {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-body);
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word; /* Force la coupure des très longs mots/URLs */
  overflow-x: clip; /* Empêche le débordement sans bloquer le scroll des enfants (tableaux, code) */
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
}

.prose p {
  margin-bottom: 18px;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: justify;
}

.prose img,
.prose video,
.prose iframe {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 16px 0;
}

.prose pre {
  max-width: 100%;
  overflow-x: auto; /* Scroll horizontal pour code long */
  word-break: normal;
}
/* Code inline dans paragraphe/liste : peut se couper pour éviter l'overflow */
.prose :not(pre) > code {
  overflow-wrap: break-word;
  word-break: break-all;
}

.prose h2 {
  font-size: 18px; font-weight: 800; color: var(--text);
  margin: 40px 0 16px; padding-left: 16px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 32px 0 12px;
  line-height: 1.4;
}

.prose h4 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 24px 0 10px;
  line-height: 1.4;
}

.prose strong { color: var(--text); font-weight: 700; }

.prose a {
  color: var(--accent); text-decoration: none;
  border-radius: 4px;
  padding: 1px 5px;
  margin: 0 -5px;
  transition: background-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.prose a:hover {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px #16a34a33;
}

.prose blockquote {
  margin: 24px 0; padding: 18px 22px; background: var(--bg-card);
  border-left: 4px solid var(--purple); border-radius: 0 10px 10px 0;
  color: var(--text-mid); font-style: italic;
  text-align: justify;
  line-height: 1.7;
}

.prose .callout {
  margin: 24px 0; padding: 16px 20px; background: var(--amber-bg);
  border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0;
  font-size: 14px; color: var(--amber);
}

.prose .callout strong { color: var(--amber); }
.prose ul, .prose ol { margin: 16px 0 20px 24px; line-height: 1.8; }
.prose li { margin-bottom: 8px; text-align: justify; }

.prose code {
  font-size: 0.9em; background: var(--bg-card);
  padding: 2px 6px; border-radius: 4px; color: var(--accent);
  font-family: 'SF Mono','Fira Code','Courier New',monospace;
}

/* ===== CODE WINDOWS IN PROSE ===== */
.code-window {
  margin: 28px 0;
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
}
.code-win-bar {
  background: #161b22;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 7px;
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.code-dot-r { background: #ff5f57; }
.code-dot-y { background: #ffbd2e; }
.code-dot-g { background: #28c840; }
.code-win-lang {
  margin-left: auto;
  font-size: 11px; color: #484f58;
  font-family: 'SF Mono','Fira Code','Courier New',monospace;
  text-transform: lowercase; letter-spacing: 0.03em;
}
/* Le <pre> lui-même dans la fenêtre */
.prose .code-win-body {
  padding: 20px 24px;
  margin: 0; max-width: 100%;
  overflow-x: auto;
  word-break: normal;
  font-family: 'SF Mono','Fira Code','Courier New',monospace;
  font-size: 13px; line-height: 1.75;
  color: #c9d1d9;
  background: transparent;
}
/* Annuler le style "inline code" à l'intérieur de la fenêtre */
.prose .code-win-body code {
  font-family: inherit; font-size: inherit; line-height: inherit;
  background: none !important;
  padding: 0 !important; border-radius: 0 !important;
  color: #c9d1d9 !important;
}

/* ===== TABLES IN PROSE ===== */
.prose .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid var(--bg-nav-border);
  box-shadow: var(--shadow-sm);
  /* Hint de scroll : ombre droite subtile si contenu dépasse */
  background:
    linear-gradient(to right, var(--bg-raised) 30%, transparent),
    linear-gradient(to left,  var(--bg-raised) 30%, transparent) right,
    radial-gradient(ellipse at left,  rgba(0,0,0,0.12), transparent 60%),
    radial-gradient(ellipse at right, rgba(0,0,0,0.12), transparent 60%) right;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
  background-repeat: no-repeat;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  min-width: 360px;
}

/* En-têtes */
.prose thead tr {
  background: var(--bg-card);
}
.prose th {
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-mid);
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent);
  position: sticky; /* reste visible au scroll horizontal */
}

/* Cellules */
.prose td {
  padding: 11px 18px;
  color: var(--text-body);
  border-bottom: 1px solid var(--bg-nav-border);
  vertical-align: top;
}
.prose tbody tr:last-child td { border-bottom: none; }

/* Zébrage */
.prose tbody tr:nth-child(even) td { background: var(--bg-alt); }

/* Hover ligne */
.prose tbody tr:hover td {
  background: var(--accent-bg);
}

/* Code dans les tableaux */
.prose td code, .prose th code {
  font-size: 0.88em;
  white-space: nowrap;
}

.article-bottom {
  margin-top: 32px; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.hash-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.hash-tags span {
  font-size: 12px; color: var(--text-dim); background: var(--bg-card);
  padding: 3px 10px; border-radius: 20px; cursor: pointer; transition: color 0.15s;
}

.hash-tags span:hover { color: var(--accent); }

.share-row { display: flex; gap: 6px; }

.share-btn {
  width: 34px; height: 34px; background: var(--bg-card); border: none;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; color: var(--text-dim); transition: color 0.15s, background 0.15s;
}

.share-btn:hover { background: var(--bg-card-hover); color: var(--accent); }

/* ===== SIDEBAR (Page article) ===== */
.sidebar {
  position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 16px;
}

.sb-block {
  background: var(--bg-card); border-radius: 12px;
  padding: 18px; box-shadow: var(--shadow-sm); transition: background 0.3s;
}

.sb-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-mid);
  margin-bottom: 14px; padding-bottom: 10px;
}

.author-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.author-av {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 14px; }
.author-role { font-size: 12px; color: var(--text-dim); }
.author-bio { font-size: 13px; color: var(--text-mid); line-height: 1.5; }

.toc { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.toc li a {
  display: block; font-size: 13px; color: var(--text-mid);
  padding: 7px 12px; border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0; transition: all 0.15s;
}

.toc li a:hover { color: var(--accent); background: var(--accent-bg); border-left-color: var(--accent); }
.toc li a.on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.toc li.toc-sep { height: 1px; background: var(--bg-card); margin: 6px 0; }
.toc li.toc-comments-item a { color: var(--text-mid); display: flex; align-items: center; gap: 6px; }
.toc li.toc-comments-item a:hover { color: var(--accent); background: var(--accent-bg); border-left-color: var(--accent); }
.toc-cmt-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; line-height: 1; margin-left: auto;
}

.rel-list { display: flex; flex-direction: column; gap: 12px; }
.rel-item { display: flex; gap: 10px; cursor: pointer; }
.rel-item:hover .rel-title { color: var(--accent); }

.rel-thumb {
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--bg-alt); opacity: 0.7;
}

.rel-title { font-size: 13px; font-weight: 600; line-height: 1.3; transition: color 0.15s; }
.rel-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ===== COMMENTS ===== */
.comments-band {
  background: var(--bg-alt);
  margin-top: 48px; position: relative;
  padding: 0 0 48px; transition: background 0.3s;
}

.comments-band::before {
  content: '';
  position: absolute; top: -50px; left: 0; right: 0; height: 50px;
  background: var(--bg-alt);
  clip-path: polygon(0 100%, 100% 40%, 100% 100%, 0 100%);
  transition: background 0.3s;
}

.comments-inner { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.comments-head {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-mid);
  margin-bottom: 20px; padding-top: 20px;
  display: flex; align-items: center; gap: 10px;
}

.comments-head .badge {
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 20px;
}

.cform {
  background: var(--bg-raised); border-radius: 12px;
  padding: 20px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm); transition: background 0.3s;
}

.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

.cform input, .cform textarea {
  width: 100%; background: var(--bg-input); border: none; border-radius: 8px;
  padding: 10px 14px; color: var(--text); font-family: 'Asap', sans-serif;
  font-size: 14px; outline: none; transition: background 0.15s;
}

.cform input::placeholder, .cform textarea::placeholder { color: var(--text-dim); }
.cform input:focus, .cform textarea:focus { background: var(--bg-card-hover); }
.cform textarea { min-height: 90px; resize: vertical; margin-bottom: 10px; }

.cform-btn {
  font-family: 'Asap', sans-serif; font-size: 13px; font-weight: 700;
  background: var(--accent); color: #fff; border: none;
  padding: 9px 22px; border-radius: 8px; cursor: pointer; transition: opacity 0.15s;
}

.cform-btn:hover { opacity: 0.85; }

.c-thread { display: flex; flex-direction: column; }

.c-entry {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0;
}

.c-av {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
}

.c-av-1 { background: var(--accent); }
.c-av-2 { background: var(--purple); }
.c-av-3 { background: var(--amber); }
.c-av-4 { background: var(--red); }
.c-av-img { padding: 0; overflow: hidden; }
.c-av img, .cmt-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

.c-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.c-name { font-weight: 600; font-size: 14px; }
.c-date { font-size: 11px; color: var(--text-dim); }
.c-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.c-reply {
  margin-top: 6px; background: none; border: none;
  font-family: 'Asap', sans-serif; font-size: 12px;
  color: var(--text-dim); cursor: pointer; padding: 0; transition: color 0.15s;
}

.c-reply:hover { color: var(--accent); }

/* ===== NEWSLETTER ===== */
.newsletter-band { background: var(--accent); padding: 28px 0; position: relative; overflow: hidden; }

.newsletter-band::before {
  content: ''; position: absolute; top: -30px; left: 0; right: 0; height: 30px;
  background: var(--bg-main);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
}

.newsletter-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.newsletter-text { color: #fff; }
.newsletter-text strong { font-size: 17px; font-weight: 800; display: block; margin-bottom: 2px; }
.newsletter-text span { font-size: 13px; opacity: 0.85; }

.newsletter-form { display: flex; gap: 8px; }

.newsletter-form input {
  font-family: 'Asap', sans-serif; font-size: 14px; padding: 10px 16px;
  border: none; border-radius: 8px; background: rgba(255,255,255,0.2);
  color: #fff; width: 280px; outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { background: rgba(255,255,255,0.28); }

.newsletter-form button {
  font-family: 'Asap', sans-serif; font-size: 13px; font-weight: 700;
  padding: 10px 20px; border: none; border-radius: 8px;
  background: #fff; color: var(--accent); cursor: pointer; transition: opacity 0.15s;
}

.newsletter-form button:hover { opacity: 0.9; }

/* ===== FOOTER ===== */
.footer { padding: 20px 0; background: var(--bg-main); transition: background 0.3s; }

.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-dim);
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .parallax-hero { min-height: 380px; }
  .blog-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .article-hero-info h1 { font-size: 20px; }

  /* Responsive banner: no blur bg, thumbnail full-width, header below */
  .banner-bg,
  .banner-overlay { display: none; }

  .article-banner { overflow: visible; }

  .banner-content { padding: 16px 0 0; }

  .breadcrumb { padding: 0 24px; }

  .article-hero { border-radius: 0; box-shadow: none; }

  .article-hero img { border-radius: 0; }

  .article-hero-gradient { display: none; }

  .article-hero-info {
    position: static;
    padding: 20px 24px 0;
    background: var(--bg-main);
  }

  .article-lead { max-width: 100%; }
}

@media (max-width: 768px) {
  /* Afficher le menu hamburger et cacher le menu desktop */
  .menu-toggle { display: flex; }
  .nav-links { display: none; }

  /* Adapter le logo sur tablette */
  .logo-svg { height: 22px; }

  /* Search overlay full width sur tablette */
  .search-overlay { padding: 60px 12px 12px; }
  .search-keys-shortcut { display: none; }

  /* Forcer la largeur à 100% pour éviter les débordements */
  .topbar-inner,
  .hero-content,
  .wrap,
  .banner-content,
  .comments-inner,
  .newsletter-inner,
  .footer-inner {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .topbar { padding: 0 16px; }
  .hero-title { font-size: 19px; }
  .hero-body { padding: 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .parallax-hero { min-height: 320px; }
  .article-hero-info { padding: 16px 16px 0; }
  .article-hero-info h1 { font-size: 17px; }
  .article-body-card { padding: 24px 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .cform-row { grid-template-columns: 1fr; }
  .article-lead { font-size: 13px; }
  .breadcrumb { padding: 0 16px; }

  /* Réduire le logo sur mobile */
  .logo-svg { height: 19px; }

  /* Réduire les paddings pour optimiser l'espace */
  .hero-content { padding: 32px 16px; }
  .article-body-card { padding: 20px 16px; }

  /* S'assurer que les images ne débordent pas */
  img { max-width: 100%; height: auto; }

  /* Améliorer l'affichage des commentaires sur mobile */
  .comments-inner { padding: 0 16px; }
  .c-entry { grid-template-columns: 36px 1fr; }
  .c-av { width: 36px; height: 36px; font-size: 13px; }

  /* Réduire les espacements sur mobile */
  .section-articles { padding: 0 0 16px; }
  .section-bottom { padding: 24px 0 32px; }
  .comments-band { padding: 0 0 32px; }

  /* Footer responsive */
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { flex-direction: column; gap: 12px; }
}

/* Media query intermédiaire pour les petites tablettes */
@media (min-width: 641px) and (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Adapter le hero sur tablette */
  .hero-card { grid-template-columns: 1fr; }

  /* Sidebar en 2 colonnes sur tablette */
  .sidebar { grid-template-columns: 1fr 1fr; }
}

/* Media query pour grandes tablettes */
@media (min-width: 901px) and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

/* Amélioration pour très petits écrans (< 375px) */
@media (max-width: 374px) {
  .topbar { padding: 0 12px; height: 52px; }
  .topbar-inner { gap: 8px; }

  .logo-svg { height: 17px; }

  .theme-toggle,
  .menu-toggle,
  .search-btn { width: 32px; height: 32px; }

  /* Search mobile : overlay plein écran, collé en haut */
  .search-overlay { padding: 0; align-items: flex-start; }
  .search-modal { border-radius: 0 0 18px 18px; max-height: 88vh; }
  .search-keys-bar { display: none; }

  .wrap { padding: 0 12px; }

  .hero-content { padding: 24px 12px; }
  .hero-title { font-size: 17px; }
  .hero-body { padding: 20px; }

  .article-hero-info h1 { font-size: 15px; }
  .article-body-card { padding: 16px 12px; }

  /* Newsletter plus compact */
  .newsletter-inner { padding: 0 12px; }
  .newsletter-text strong { font-size: 15px; }
  .newsletter-text span { font-size: 12px; }
}

/* =====================================================
   VINYLES - Page collection
   ===================================================== */

/* ================================================================
   PAGE VINYLES — Style Geek Vintage
   Palette amber : --va = #f59e0b
   ================================================================ */

/* ── Hero : cabine d'écoute ── */
.vinyl-hero {
  background: #0c0a09;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(245,158,11,0.18);
}
/* Ambient glow behind platter */
.vinyl-hero::before {
  content: '';
  position: absolute;
  top: -30%; left: -5%;
  width: 55%; height: 160%;
  background: radial-gradient(ellipse at 40% 50%, rgba(245,158,11,0.1) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
/* Scan-lines CRT overlay */
.vinyl-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.07) 0px, rgba(0,0,0,0.07) 1px,
    transparent 1px, transparent 3px
  );
  pointer-events: none; z-index: 5;
}

/* Top LED panel bar */
.vh-panel-top {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 24px;
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(245,158,11,0.1);
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(245,158,11,0.45);
  position: relative; z-index: 6;
}
.vh-leds { display: flex; gap: 6px; align-items: center; }
.vh-led { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.vh-led-r { background: rgba(255,95,87,0.3); }
.vh-led-a { background: rgba(245,158,11,0.3); }
.vh-led-g { background: #28c840; box-shadow: 0 0 6px #28c840; animation: led-pulse 2.2s ease-in-out infinite; }
@keyframes led-pulse { 0%,100%{opacity:1;box-shadow:0 0 6px #28c840;} 50%{opacity:0.5;box-shadow:0 0 2px #28c840;} }
.vh-panel-label { flex: 1; }
.vh-nowplaying { color: #f59e0b; font-weight: 700; animation: np-blink 1.8s steps(1) infinite; }
@keyframes np-blink { 0%,49%{opacity:1;} 50%,100%{opacity:0;} }

/* Main hero content */
.vh-inner {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 48px;
  align-items: center;
  padding: 44px 0 52px;
  position: relative; z-index: 3;
}
@media (max-width: 1100px) {
  .vh-inner { grid-template-columns: 1fr; }
  .vh-record-wrap { display: none; }
}

/* Turntable platter */
.vh-record-wrap {
  flex-shrink: 0;
  position: relative;
}
.vh-platter { position: relative; }
.vh-disc-svg {
  width: 100%; height: auto; border-radius: 50%;
  animation: vinyl-hero-spin 9s linear infinite;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.75))
          drop-shadow(0 0 60px rgba(245,158,11,0.12));
  display: block;
}
@keyframes vinyl-hero-spin { to { transform: rotate(360deg); } }
/* ── Reflets fixes (lumière immobile, disque tourne dessous) ── */
/* Hero */
.vh-platter::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse 65% 50% at 28% 22%,
      rgba(255,255,255,0.38) 0%,
      rgba(255,255,255,0.1)  32%,
      transparent 60%),
    radial-gradient(ellipse 30% 22% at 74% 78%,
      rgba(255,255,255,0.09) 0%,
      transparent 55%);
  pointer-events: none; z-index: 2;
}
/* Disque slide-out (grille) */
.vinyl-out-disc::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse 65% 50% at 28% 22%,
      rgba(255,255,255,0.35) 0%,
      rgba(255,255,255,0.09) 32%,
      transparent 60%),
    radial-gradient(ellipse 28% 20% at 74% 78%,
      rgba(255,255,255,0.08) 0%,
      transparent 55%);
  pointer-events: none; z-index: 2;
}
/* Placeholder (disque sans pochette) */
.vinyl-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 28% 22%,
      rgba(255,255,255,0.32) 0%,
      rgba(255,255,255,0.08) 32%,
      transparent 60%),
    radial-gradient(ellipse 28% 20% at 74% 78%,
      rgba(255,255,255,0.07) 0%,
      transparent 55%);
  pointer-events: none; z-index: 3;
}
/* Lightbox — disque sans pochette */
.lb-disc-only::after {
  content: '';
  position: absolute; inset: 14%; border-radius: 50%;
  background:
    radial-gradient(ellipse 65% 50% at 28% 22%,
      rgba(255,255,255,0.35) 0%,
      rgba(255,255,255,0.09) 32%,
      transparent 60%);
  pointer-events: none; z-index: 3;
}
/* Tonearm */
.vh-tonearm {
  position: absolute; top: 10%; right: 0%;
  width: 50%; height: 5px;
  background: linear-gradient(to left, #c8c8c8 0%, #888 50%, #555 100%);
  border-radius: 2.5px;
  transform-origin: right center;
  transform: rotate(-62deg);
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
/* Needle holder at tip */
.vh-tonearm::before {
  content: ''; position: absolute;
  left: -8px; top: -7px;
  width: 22px; height: 16px;
  background: #4a4a4a; border-radius: 3px;
  transform: rotate(22deg);
}
/* Pivot ball at right end */
.vh-tonearm::after {
  content: ''; position: absolute;
  right: -10px; top: -8px;
  width: 20px; height: 20px;
  background: radial-gradient(circle at 35% 30%, #e0e0e0 0%, #888 100%);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Text panel */
.vh-text-wrap { flex: 1; min-width: 0; }
.vh-eyebrow {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: #f59e0b; margin-bottom: 10px;
}
.vh-title {
  font-size: 52px; font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(140deg, #fff 0%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vh-title .mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #f59e0b;
  background: none;
  -webkit-text-fill-color: #f59e0b;
  font-weight: 700;
  animation: pulse-mono 2.4s ease-in-out infinite;
}
@keyframes pulse-mono {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.vh-sub {
  font-size: 15px; color: rgba(255,255,255,0.45); line-height: 1.65;
  max-width: 420px; margin-bottom: 26px;
}
/* Stats row */
.vh-stats { display: flex; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.vh-stat {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: 12px; padding: 12px 20px; text-align: center;
  min-width: 72px;
}
.vh-stat-num {
  font-size: 28px; font-weight: 900; color: #f59e0b;
  letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vh-stat-label {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(245,158,11,0.55); margin-top: 3px;
}
/* VU meter */
.vh-vu-wrap {
  display: flex; align-items: flex-end; gap: 10px;
}
.vh-vu-label {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(245,158,11,0.4); flex-shrink: 0;
  margin-bottom: 2px;
}
.vh-vu { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.vh-vu-bar {
  width: 6px; border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, #f59e0b 0%, #fde68a 100%);
  animation: vu-dance var(--vu-dur, 1.3s) ease-in-out var(--vu-delay, 0s) infinite;
}
@keyframes vu-dance {
  0%, 100% { height: 3px; opacity: 0.4; }
  50% { height: var(--vu-h, 14px); opacity: 1; }
}

/* ── Grid section ── */
.vinyl-section { padding: 56px 0 88px; background: var(--bg-main); }

/* Section header */
.vinyl-section-head {
  text-align: center; margin-bottom: 44px;
}
.vinyl-section-eyebrow {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: #f59e0b; margin-bottom: 7px;
}
.vinyl-section-title {
  font-size: 22px; font-weight: 900; letter-spacing: -0.025em;
}

/* ── Grid ── */
.vinyl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 28px;
}

/* ── Sleeve wrapper (pour l'effet slide-out) ── */
.vinyl-sleeve {
  position: relative;
  transition: z-index 0s;
}
.vinyl-sleeve:hover { z-index: 10; }

/* Disque qui slide hors de la pochette au hover */
.vinyl-out-disc {
  position: absolute; top: 2%; right: 0;
  width: 90%; aspect-ratio: 1;
  border-radius: 50%;
  z-index: 0; pointer-events: none;
  transform: translateX(3%);
  transition: transform 0.48s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.vinyl-sleeve:hover .vinyl-out-disc { transform: translateX(62%); }
.vod-spin {
  width: 100%; height: 100%; border-radius: 50%;
  filter: drop-shadow(-14px 4px 28px rgba(0,0,0,0.75));
  animation: vod-spin 4s linear infinite paused;
  display: block;
}
.vinyl-sleeve:hover .vod-spin { animation-play-state: running; }
@keyframes vod-spin { to { transform: rotate(360deg); } }

/* ── Individual vinyl card ── */
.vinyl-item {
  aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  cursor: pointer; position: relative;
  background: #111;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.48s cubic-bezier(0.34, 1.1, 0.64, 1), box-shadow 0.48s;
  z-index: 1;
}
.vinyl-sleeve:hover .vinyl-item {
  transform: translateX(-5%);
  box-shadow: 0 16px 50px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.08);
}
.vinyl-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Placeholder disc ── */
.vinyl-placeholder {
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, #252525 0%, #181818 40%, #111 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.vinyl-disc { width: 76%; height: 76%; position: relative; }
.vinyl-disc svg { width: 100%; height: 100%; }
.vinyl-label-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 22%; pointer-events: none;
}
.vinyl-label-artist {
  font-size: 10px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 0.4px; line-height: 1.2;
  margin-bottom: 3px; text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.vinyl-label-album {
  font-size: 8px; font-weight: 600; color: rgba(255,255,255,0.75);
  line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}


/* ── Lightbox ── */
.vinyl-lightbox {
  position: fixed; inset: 0;
  background: rgba(5,3,2,0.92);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s;
  backdrop-filter: blur(14px);
}
.vinyl-lightbox.open { opacity: 1; pointer-events: all; }

.vinyl-lb-inner {
  display: grid; grid-template-columns: 270px 1fr;
  border-radius: 20px; overflow: hidden;
  max-width: 800px; width: 100%;
  max-height: 88vh;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(245,158,11,0.15);
  transform: translateY(22px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.vinyl-lightbox.open .vinyl-lb-inner { transform: translateY(0) scale(1); }

/* ── Lightbox : colonne cover ── */
.vinyl-lb-cover-col {
  background: #0a0806;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}
.vinyl-lb-cover-col::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 1px,
    transparent 1px, transparent 3px
  );
  pointer-events: none; z-index: 3;
}
.lb-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-disc-only {
  padding: 14%;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.lb-disc-spin { animation: vod-spin 4s linear infinite; }
.lb-disc-spin svg { width: 100%; height: 100%; }

/* ── Lightbox : colonne infos ── */
.vinyl-lb-info {
  background: #110e0b;
  padding: 50px 26px 26px;
  display: flex; flex-direction: column; gap: 0;
  overflow-y: auto; max-height: 88vh;
  scrollbar-width: thin; scrollbar-color: rgba(245,158,11,0.15) transparent;
  position: relative;
}
/* Amber accent top line */
.vinyl-lb-info::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, #d97706, #f59e0b, #fbbf24);
}
/* Scan lines on info panel */
.vinyl-lb-info::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px,
    transparent 1px, transparent 3px
  );
}
.vinyl-lb-info > * { position: relative; z-index: 1; }

.vinyl-lb-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(245,158,11,0.65);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  z-index: 10;
}
.vinyl-lb-close:hover { background: rgba(255,95,87,0.2); color: #ff5f57; border-color: rgba(255,95,87,0.4); }

.vinyl-lb-genres { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.vinyl-lb-genre {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px;
  background: rgba(245,158,11,0.1); color: #f59e0b;
  text-transform: uppercase; letter-spacing: 0.4px;
  border: 1px solid rgba(245,158,11,0.22);
}
.vinyl-lb-artist {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 11px; font-weight: 700; color: #f59e0b;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px;
}
.vinyl-lb-title {
  font-size: 22px; font-weight: 800; line-height: 1.2;
  margin-bottom: 18px; letter-spacing: -0.3px; color: #f5f0e8;
}
.vinyl-lb-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 20px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(245,158,11,0.1);
}
.vinyl-lb-meta-item {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(245,158,11,0.04);
  border: 1px solid rgba(245,158,11,0.1);
  border-radius: 8px; padding: 8px 12px;
}
.vinyl-lb-meta-label {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: rgba(245,158,11,0.45);
}
.vinyl-lb-meta-value { font-size: 13px; font-weight: 600; color: #e5ddd0; }

/* ── Tracklist ── */
.vinyl-lb-tracklist { display: flex; flex-direction: column; gap: 14px; }
.vinyl-lb-track {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 8px; border-radius: 6px; transition: background 0.15s;
}
.vinyl-lb-track:hover { background: rgba(245,158,11,0.06); }
.vinyl-lb-track-num {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 11px; font-weight: 700; color: rgba(245,158,11,0.35);
  min-width: 24px; text-align: center; font-variant-numeric: tabular-nums;
}
.vinyl-lb-track-title {
  flex: 1; font-size: 13px; font-weight: 500; color: #d1c8bc;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vinyl-lb-track-dur {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 11px; font-weight: 600; color: rgba(245,158,11,0.45);
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .vh-inner { grid-template-columns: 1fr; padding: 32px 0 36px; gap: 24px; }
  .vh-record-wrap { width: 200px; display: none; }
  .vh-title { font-size: 36px; }
  .vh-sub { max-width: 100%; }
  .vinyl-lb-inner { grid-template-columns: 1fr; max-height: none; }
  .vinyl-lb-cover-col { display: none; }
  .vinyl-lb-info { max-height: none; overflow-y: visible; }
  .vinyl-lightbox { align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 600px) {
  .vinyl-lb-inner { border-radius: 16px; }
  .vinyl-lb-title { font-size: 18px; }
}
@media (max-width: 640px) {
  .vinyl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .vinyl-out-disc { display: none; }
}
@media (max-width: 374px) {
  .vinyl-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ===== CASSETTE AUDIO PLAYER ===== */
.cassette-player {
  margin: 32px auto;
  max-width: 580px;
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}

/* Barre titre macOS */
.cass-titlebar {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cass-titlebar-label {
  margin-left: auto;
  font-size: 11px;
  color: #484f58;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Corps cassette */
.cass-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 12px;
  background: #1a100a;
  gap: 0;
  position: relative;
}

/* Bobines */
.cass-reel {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #252525;
  border: 3px solid #363636;
  box-shadow: 0 0 0 2px #111, inset 0 3px 10px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cass-reel-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #5a5a5a 0%, #363636 45%, #1e1e1e 100%);
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cass-reel-hub {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #888;
  border: 2px solid #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cass-spokes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
}
.cass-spokes span {
  position: absolute;
  top: 50%; left: 50%;
  width: 26px;
  height: 2px;
  background: #505050;
  transform-origin: left center;
  border-radius: 1px;
}
.cass-spokes span:nth-child(1) { transform: rotate(0deg) translateY(-50%); }
.cass-spokes span:nth-child(2) { transform: rotate(120deg) translateY(-50%); }
.cass-spokes span:nth-child(3) { transform: rotate(240deg) translateY(-50%); }

/* Rotation des bobines */
@keyframes reel-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.cass-spinning .cass-reel-inner {
  animation: reel-spin 2.4s linear infinite;
}

/* Pochette centrale */
.cass-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}
.cass-cover {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #333;
  box-shadow: 0 4px 20px rgba(0,0,0,0.7);
  display: block;
}
.cass-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: #222;
}

/* Fenêtre bande magnétique */
.cass-tape-win {
  background: #1a100a;
  display: flex;
  justify-content: center;
  padding: 0 0 12px;
}
.cass-tape {
  width: 130px;
  height: 8px;
  background: #111;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.cass-tape::after {
  content: '';
  position: absolute;
  inset: 2px 0;
  background: repeating-linear-gradient(90deg, #3a2010 0 5px, #1a0a04 5px 9px);
  background-size: 9px 100%;
}
.cass-tape.cass-tape-moving::after {
  animation: tape-run 0.35s linear infinite;
}
@keyframes tape-run {
  from { background-position: 0 0; }
  to   { background-position: 9px 0; }
}

/* Info piste */
.cass-info {
  padding: 10px 20px 4px;
  text-align: center;
}
.cass-num {
  font-size: 10px;
  font-weight: 700;
  color: #484f58;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-bottom: 4px;
}
.cass-title {
  font-size: 14px;
  font-weight: 700;
  color: #c9d1d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 16px;
}

/* Barre de progression */
.cass-prog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 6px;
}
.cass-time, .cass-dur {
  font-size: 10px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #484f58;
  min-width: 32px;
  flex-shrink: 0;
}
.cass-dur { text-align: right; }
.cass-prog {
  flex: 1;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s;
}
.cass-prog:hover { height: 6px; }
.cass-prog-fill {
  height: 100%;
  background: var(--accent, #16a34a);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
}
.cass-prog-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.cass-prog:hover .cass-prog-thumb { opacity: 1; }

/* Contrôles */
.cass-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 20px 16px;
}
.cass-btn {
  background: #1c2128;
  border: 1px solid #30363d;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #c9d1d9;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.cass-btn:hover {
  background: #2d333b;
  border-color: #484f58;
  transform: scale(1.06);
}
.cass-btn-play {
  width: 52px;
  height: 52px;
  font-size: 18px;
  background: var(--accent, #16a34a);
  border-color: var(--accent, #16a34a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22,163,74,0.35);
}
.cass-btn-play:hover {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 4px 18px rgba(22,163,74,0.45);
  transform: scale(1.06);
}

/* Liste des pistes */
.cass-tracklist {
  border-top: 1px solid rgba(255,255,255,0.06);
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0 8px;
}
.cass-tracklist::-webkit-scrollbar { width: 3px; }
.cass-tracklist::-webkit-scrollbar-track { background: transparent; }
.cass-tracklist::-webkit-scrollbar-thumb { background: #30363d; border-radius: 2px; }

.cass-track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px;
  cursor: pointer;
  transition: background 0.1s;
}
.cass-track-item:hover { background: rgba(255,255,255,0.04); }
.cass-track-item.cass-t-active { background: rgba(22,163,74,0.08); }
.cass-t-num {
  font-size: 10px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #484f58;
  min-width: 22px;
  text-align: right;
  flex-shrink: 0;
}
.cass-t-name {
  flex: 1;
  font-size: 12px;
  color: #c9d1d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cass-track-item.cass-t-active .cass-t-name {
  color: var(--accent, #16a34a);
  font-weight: 600;
}
.cass-t-icon {
  font-size: 9px;
  color: var(--accent, #16a34a);
  min-width: 12px;
  flex-shrink: 0;
}

/* ===== SCROLL-TO-TOP ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(22,163,74,0.4), 0 2px 8px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  font-family: 'Asap', sans-serif;
  line-height: 1;
}
#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#scrollTopBtn:hover {
  opacity: 0.88;
  transform: translateY(-2px) scale(1.06);
}
@media (max-width: 640px) {
  #scrollTopBtn { bottom: 20px; right: 16px; width: 38px; height: 38px; font-size: 16px; }
}

/* ===== ALBUMS PHOTO — Fenêtre Finder ===== */

.album-window {
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  margin: 36px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}

.album-win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  user-select: none;
}

.album-win-dots { display: flex; gap: 6px; flex-shrink: 0; }
.album-dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block;
}
.album-dot.r { background: #ff5f57; }
.album-dot.y { background: #ffbd2e; }
.album-dot.g { background: #28c840; }

.album-win-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-family: -apple-system, 'SF Pro Text', sans-serif;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
}
.album-win-count {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
}
.album-win-side { width: 52px; flex-shrink: 0; } /* miroir des dots pour centrage */

.album-win-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
}

.album-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 6px 7px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.13s;
  outline: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.album-icon:hover,
.album-icon:focus-visible {
  background: rgba(22,163,74,0.12);
}
.album-icon:active { background: rgba(22,163,74,0.2); }

.album-icon-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
  background: #1c1f26;
  position: relative;
}
.album-icon-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.18s;
}
.album-icon:hover .album-icon-thumb img { transform: scale(1.04); }

.album-icon-name {
  font-size: 10.5px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

/* ===== LIGHTBOX ===== */

#albumLightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4,6,10,0.96);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#albumLightbox.alb-open {
  opacity: 1;
  pointer-events: all;
}

/* Barre supérieure */
.alb-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  user-select: none;
}
.alb-topbar-dots { display: flex; gap: 6px; }
.alb-tb-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.alb-tb-dot.r { background: #ff5f57; }
.alb-tb-dot.y { background: #ffbd2e; }
.alb-tb-dot.g { background: #28c840; }

.alb-topbar-info {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: rgba(255,255,255,0.45);
}
.alb-topbar-info strong { color: rgba(255,255,255,0.7); font-weight: 500; }
.alb-topbar-counter {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin-left: 8px;
}

.alb-close-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.alb-close-btn:hover { background: rgba(255,89,87,0.2); color: #ff5f57; }

/* Zone principale */
.alb-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  touch-action: none;
}

.alb-stage-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
  transition: opacity 0.16s;
}
.alb-stage-img.alb-img-hidden { opacity: 0; }

/* Flèches navigation */
.alb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  z-index: 2;
  flex-shrink: 0;
}
.alb-nav:hover { background: rgba(22,163,74,0.18); color: #4ade80; border-color: rgba(22,163,74,0.3); }
.alb-nav-prev { left: 16px; }
.alb-nav-next { right: 16px; }
.alb-nav:active { transform: translateY(-50%) scale(0.93); }

/* Filmstrip */
.alb-filmstrip-wrap {
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 16px;
  background: #0d1117;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
  scroll-behavior: smooth;
}
.alb-filmstrip-wrap::-webkit-scrollbar { height: 3px; }
.alb-filmstrip-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.alb-strip-thumb {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
  background: #1c1f26;
}
.alb-strip-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}
.alb-strip-thumb:hover { opacity: 0.75; transform: scale(1.06); }
.alb-strip-thumb.alb-strip-active {
  opacity: 1;
  border-color: var(--accent);
  transform: scale(1.08);
}

/* ── Responsive mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .album-win-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 5px;
    padding: 10px;
  }
  .album-icon { padding: 6px 4px 5px; border-radius: 6px; }
  .album-icon-name { font-size: 9.5px; }

  .alb-nav { width: 36px; height: 36px; font-size: 16px; }
  .alb-nav-prev { left: 6px; }
  .alb-nav-next { right: 6px; }
  .alb-strip-thumb { width: 44px; height: 44px; }
  .alb-topbar-info { font-size: 11px; }
}

/* =====================================================
   DARK MODE ENHANCEMENTS — Profondeur & Nuances
   ===================================================== */

/* ──── 1. Grain de film ────
   Texture ultra-subtile (2.2% opacité) posée par-dessus
   tout le contenu : donne une sensation de matière. */
[data-theme="dark"] body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 200;
  opacity: 0.022;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ──── 2. Sections alternées : micro-trame + lueur verte ──── */
[data-theme="dark"] .section-articles,
[data-theme="dark"] .comments-band {
  background-color: var(--bg-alt);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(22,163,74,0.05) 0%, transparent 70%),
    radial-gradient(circle, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px;
  background-position: center top, 0 0;
}

[data-theme="dark"] .section-bottom {
  background-color: var(--bg-main);
  background-image: radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139,92,246,0.04) 0%, transparent 60%);
}

/* ──── 3. Cartes : gradient top-light + border + shadow ──── */
[data-theme="dark"] .card {
  background: linear-gradient(160deg, #1e1e26 0%, #111115 100%);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03);
}
[data-theme="dark"] .card:hover {
  background: linear-gradient(160deg, #25252e 0%, #16161b 100%);
  border-color: rgba(255,255,255,0.13);
  box-shadow: 0 8px 28px rgba(0,0,0,.6), 0 0 0 1px rgba(22,163,74,0.15);
}

/* Hero card (article en vedette) */
[data-theme="dark"] .hero-card {
  background: linear-gradient(145deg, #1e1e26 0%, #0e0e12 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04);
}
[data-theme="dark"] .hero-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,.7), 0 0 0 1px rgba(22,163,74,0.12);
}

/* ──── 4. Corps d'article, sidebar, formulaires ──── */
[data-theme="dark"] .article-body-card {
  background: linear-gradient(170deg, #1c1c24 0%, #101013 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
}
[data-theme="dark"] .sb-block {
  background: linear-gradient(160deg, #1d1d25 0%, #121216 100%);
  border: 1px solid rgba(255,255,255,0.06);
}
[data-theme="dark"] .cform {
  background: linear-gradient(160deg, #1b1b23 0%, #101013 100%);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ──── 5. Rubriques & éléments de liste ──── */
[data-theme="dark"] .rub-item {
  background: linear-gradient(145deg, #1e1e27 0%, #141419 100%);
  border: 1px solid rgba(255,255,255,0.06);
}
[data-theme="dark"] .rub-item:hover {
  background: linear-gradient(145deg, #252530 0%, #18181e 100%);
  border-color: rgba(255,255,255,0.1);
}

/* ──── 6. Dropdown menu ──── */
[data-theme="dark"] .nav-drop-menu {
  background: linear-gradient(160deg, #1e1e26 0%, #12121a 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.05);
}

/* ──── 7. Topbar scrollée plus profonde ──── */
[data-theme="dark"] .topbar.scrolled {
  box-shadow: 0 8px 40px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.06);
}

/* ──── 8. Footer séparé par une ligne visible ──── */
[data-theme="dark"] .footer {
  background: #080809;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ──── 9. Blockquote prose plus lisible ──── */
[data-theme="dark"] .prose blockquote {
  background: linear-gradient(135deg, #1c1c24 0%, #121218 100%);
  border-left-color: var(--purple);
}

/* ──── 10. Search modal ──── */
[data-theme="dark"] .search-modal {
  background: linear-gradient(160deg, #1c1c24 0%, #111116 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 40px 100px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.05);
}

/* =====================================================
   GLOBAL MUSIC PLAYER (#bg-player)
   Desktop : inline dans la topbar
   Mobile  : fixe en bas de page
   ===================================================== */

/* ── Desktop : fixe entre logo et nav-right (position gérée par JS) ── */
#bg-player {
  display: none; /* affiché via JS: style.display = 'flex' */
  position: fixed;
  top: 0;
  height: 56px;
  z-index: 1001;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#bg-player.bgp-visible {
  /* Desktop : pas d'animation, juste visible */
}
body.has-player {
  padding-bottom: 0;
}

/* Cover */
.bgp-cover {
  width: 34px; height: 34px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.bgp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Track info */
.bgp-info {
  flex: 1;
  min-width: 0;
  max-width: 180px;
}
.bgp-title {
  font-weight: 700; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bgp-album {
  font-size: 10px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Controls */
.bgp-controls {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.bgp-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text); padding: 6px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.bgp-btn:hover { background: var(--bg-card); }
.bgp-btn svg { width: 15px; height: 15px; display: block; }
.bgp-play {
  width: 36px; height: 36px;
  background: var(--accent) !important;
  color: white !important;
  border-radius: 50%;
}
.bgp-play:hover { opacity: 0.88; }
.bgp-play svg { width: 16px; height: 16px; }

/* Progress bar */
.bgp-progress {
  flex: 1; display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.bgp-time {
  font-size: 11px; color: var(--text-dim);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  min-width: 30px;
}
.bgp-bar {
  flex: 1; height: 4px;
  background: var(--bg-card);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.bgp-fill {
  height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
}
.bgp-dot {
  position: absolute; top: 50%; left: 0%;
  transform: translate(-50%, -50%);
  width: 11px; height: 11px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.bgp-bar:hover .bgp-dot { opacity: 1; }

/* Volume */
.bgp-vol-wrap {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}
.bgp-vol { width: 72px; accent-color: var(--accent); cursor: pointer; }
.bgp-vol-icon { font-size: 13px; }

/* Close */
.bgp-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 17px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.bgp-close:hover { background: var(--bg-card); color: var(--red); }

/* Volume — caché (trop encombrant dans la topbar) */
.bgp-vol-wrap { display: none; }

/* ── Mobile : player fixe en bas de page ── */
@media (max-width: 767px) {
  #bg-player {
    top: auto;
    bottom: 0; left: 0; right: 0;
    width: auto;
    height: auto;
    flex-wrap: wrap;
    padding: 10px 14px 12px;
    gap: 10px;
    border-top: 1px solid var(--bg-nav-border);
    z-index: 9990;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  #bg-player.bgp-visible {
    transform: translateY(0);
  }
  .bgp-cover { width: 44px; height: 44px; border-radius: 8px; }
  .bgp-info { max-width: none; flex: 1; }
  .bgp-title { font-size: 13px; }
  .bgp-album { font-size: 11px; }
  .bgp-progress { order: 4; width: 100%; flex-basis: 100%; }
  body.has-player { padding-bottom: 90px; }
  #bgp-list-btn { display: flex; }
}

/* ── Mobile drawer (slide-up tracklist) ── */
#bgp-drawer {
  position: fixed;
  left: 0; right: 0; bottom: -1px;
  max-height: 60vh;
  background: var(--bg-nav);
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--bg-nav-border);
  border-bottom: none;
  z-index: 9989;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; overflow: hidden;
}
#bgp-drawer.open { transform: translateY(0); }
#bgp-drawer-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 9988;
}
#bgp-drawer-backdrop.open { display: block; }
.bgp-drawer-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; flex-shrink: 0;
  border-bottom: 1px solid var(--bg-nav-border);
}
.bgp-drawer-cover {
  width: 40px; height: 40px; border-radius: 6px; overflow: hidden;
  background: var(--accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.bgp-drawer-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bgp-drawer-info { flex: 1; min-width: 0; }
.bgp-drawer-album {
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bgp-drawer-count { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.bgp-drawer-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 18px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0; transition: background 0.15s;
}
.bgp-drawer-close:hover { background: var(--bg-card); }
.bgp-drawer-list { overflow-y: auto; flex: 1; }
.bgp-drawer-track {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer; transition: background 0.15s;
  border-bottom: 1px solid var(--bg-nav-border);
}
.bgp-drawer-track:hover { background: var(--bg-card); }
.bgp-drawer-track.active { color: var(--accent); }
.bgp-drawer-track-num {
  font-size: 11px; color: var(--text-dim);
  font-family: monospace; width: 20px; text-align: right; flex-shrink: 0;
}
.bgp-drawer-track.active .bgp-drawer-track-num { color: var(--accent); }
.bgp-drawer-track-title {
  flex: 1; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bgp-drawer-track-ico { flex-shrink: 0; color: var(--accent); opacity: 0; }
.bgp-drawer-track.active .bgp-drawer-track-ico { opacity: 1; }

/* Hide list button on desktop */
#bgp-list-btn { display: none; }

