:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface2: #242424;
  --border: #333;
  --text: #e8e6e3;
  --text-muted: #999;
  --accent-gold: #d4a853;
  --accent-blue: #5b8def;
  --accent-green: #4caf7d;
  --accent-rose: #e06c75;
  --accent-purple: #c678dd;
  --classique: #d4a853;
  --jazz: #5b8def;
  --electro: #e06c75;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
  margin-right: 1.5rem;
  font-size: 1rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--surface2);
}
.nav a[data-genre="classique"]:hover { color: var(--classique); }
.nav a[data-genre="jazz"]:hover { color: var(--jazz); }
.nav a[data-genre="electro"]:hover { color: var(--electro); }

/* HERO */
.hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(212,168,83,0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-meta span { display: flex; align-items: center; gap: 0.4rem; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-gold);
}
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* MAIN */
.main { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* SECTION */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.section-icon.classique { background: rgba(212,168,83,0.15); }
.section-icon.jazz { background: rgba(91,141,239,0.15); }
.section-icon.electro { background: rgba(224,108,117,0.15); }
.section-icon.star { background: rgba(212,168,83,0.15); }
.section-icon.headphones { background: rgba(198,120,221,0.15); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* EDITO */
.edito {
  background: var(--surface);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.edito strong { color: var(--accent-gold); }

/* ARTICLE CARD */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: #555;
}
.article-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.article-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(26,26,26,0.9));
}
.article-card-body { padding: 1.5rem; }
.article-blog {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.article-blog.classique { color: var(--classique); }
.article-blog.jazz { color: var(--jazz); }
.article-blog.electro { color: var(--electro); }
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.article-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.article-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.article-link:hover { gap: 0.6rem; }

/* SILENT BLOGS */
.silent-blogs {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
}
.silent-blogs strong { color: var(--text); font-weight: 500; }

/* TOP 5 */
.top5-list { list-style: none; counter-reset: top5; }
.top5-item {
  counter-increment: top5;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.top5-item:last-child { border-bottom: none; }
.top5-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-gold);
  opacity: 0.4;
  line-height: 1;
  min-width: 50px;
  text-align: center;
}
.top5-content { flex: 1; }
.top5-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.top5-title a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top5-title a:hover { border-color: var(--accent-gold); }
.top5-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.top5-source {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ECOUTES TABLE */
.genre-block { margin-bottom: 3rem; }
.genre-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid;
}
.genre-label.classique { border-color: var(--classique); }
.genre-label.jazz { border-color: var(--jazz); }
.genre-label.electro { border-color: var(--electro); }

.ecoute-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ecoute-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.ecoute-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ecoute-table tr:hover td { background: var(--surface); }
.star-cell { color: var(--accent-gold); font-size: 1.1rem; }
.roon-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  background: var(--surface2);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  white-space: nowrap;
}
.roon-cell:hover { border-color: var(--accent-gold); }
.roon-cell::before { content: '\2398 '; opacity: 0.5; }

.coup-coeur {
  background: linear-gradient(135deg, rgba(212,168,83,0.08), rgba(212,168,83,0.02));
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.coup-coeur strong { color: var(--accent-gold); }

.roon-reminder {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.roon-reminder code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--surface2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* ALBUM CARDS */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 1.2rem;
}
@media (max-width: 560px) {
  .album-grid { grid-template-columns: 1fr; }
}
.album-card {
  display: flex;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}
.album-card:hover {
  transform: translateY(-2px);
  border-color: #555;
}
.album-card.starred { border-left: 3px solid var(--accent-gold); }
.album-card.starred::before {
  content: '\2605';
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  color: var(--accent-gold);
  font-size: 1.1rem;
}
.album-cover {
  width: 130px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.album-cover img.loaded { opacity: 1; }
.album-cover .cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
  opacity: 0.3;
  transition: opacity 0.4s;
}
.album-cover img.loaded + .cover-placeholder { opacity: 0; }
.album-info { flex: 1; min-width: 0; }
.album-artist {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.album-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-style: italic;
}
.album-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.album-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.album-tag.award {
  background: rgba(212,168,83,0.12);
  border-color: rgba(212,168,83,0.3);
  color: var(--accent-gold);
  font-weight: 600;
}
.album-tag.hires {
  background: rgba(76,175,125,0.12);
  border-color: rgba(76,175,125,0.3);
  color: var(--accent-green);
}
.album-roon {
  margin-top: 0.3rem;
}
.album-roon .roon-cell {
  font-size: 0.73rem;
}

/* FOOTER */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.footer-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-stat {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-stat strong { color: var(--text); }
.footer-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* PAGE NAV (pagination) */
.page-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}
.page-btn:hover {
  background: var(--surface2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.page-btn.active {
  background: var(--accent-gold);
  color: var(--bg);
  border-color: var(--accent-gold);
  font-weight: 700;
}

/* SCROLL TO TOP */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  border: none;
  box-shadow: var(--shadow);
  z-index: 50;
}
.scroll-top.visible { opacity: 1; }

/* TABLE WRAPPER */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .hero { padding: 6rem 1.5rem 3rem; }
  .main { padding: 0 1rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .top5-item { gap: 1rem; }
  .top5-num { font-size: 1.8rem; min-width: 35px; }
  .ecoute-table { font-size: 0.8rem; }
  .ecoute-table th, .ecoute-table td { padding: 0.6rem 0.5rem; }
}
