/* Dark-only theme (site-wide preference)
   Keep colors consistent with your palette:
   - containers: #1F1F1F
   - text: #FFFFFF
   - links: #FF8802 (underline on hover)
*/
#main { place-items: center; }

.lecteur-container {
  max-width: 1100px;
  margin: 20px auto;
  background:#1F1F1F;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  padding: 16px;
  color: #fff;
}

.ap-container .ap-h1 {
  text-align: center;
  margin: 6px 0 14px 0;
  font-size: 20px;
}
/* Centrage des messages “No …” + bouton DL */
.ap-center { text-align: center; }
/* Visibilité boutons (gris + contraste) */

.ap-back { margin-bottom: 12px; text-align: left; }
.ap-btn {
  display:inline-block; text-decoration:none;
  padding:10px 16px; border-radius:8px; border:1px solid #3c3c3c;
  background:#2a2a2a; color:#ffffff; cursor:pointer;
}
.ap-btn:hover { background: #3a3a3a; color: #fff; text-decoration: none; }

.ap-fav-btn-wrap { float:right; }
.add-favorite, .remove-favorite {
  background:#2a2a2a; border:1px solid #3c3c3c; color:#ffffff;
  padding:6px 12px; border-radius:6px; cursor:pointer; font-weight:bold;
}
.add-favorite:hover, .remove-favorite:hover { background:#3a3a3a; color:#fff; text-decoration: none; }

.ap-grid { display:grid; grid-template-columns: 1fr 280px; gap:16px; align-items:start; }
.ap-col-left .ap-line { margin:6px 0; }
.ap-free-text { margin-top:12px; white-space:pre-wrap; }

.ap-col-right .ap-cover {
  width: 100%; height:auto; max-height: 360px; object-fit: contain; border-radius:8px;
}

/* Player */
#audioPlayer { width:100%; margin-bottom:12px; border-radius:6px; }
.ap-ul { list-style:none; margin:0; padding:0; }
.ap-li { display: flex; align-items: center; gap:8px; }
.ap-li a {
  flex: 1 1 auto;
  display: block;           /* occupe la largeur */
  width: 100%;
}
/* Couleur/hover du lien de piste (plein fond) */
#playlist a {
  background: #1b1b1b;      /* bande de fond même au repos */
  color: #e5e5e5;
  padding: 8px 12px;
  border-radius: 6px;
}
#playlist a:hover {
  background: #FF8802;      /* hover bien visible */
  color: #000;
}
#playlist a.active {
  font-weight: bold;
  background: #000;
  color: #fff;
}
/* Add-to-playlist button (kept your look) */
#playlist button.add-to-playlist {
  background:#2a2a2a; border:1px solid #3c3c3c; color:#ffffff;
  padding:6px 12px; border-radius:6px; cursor:pointer; font-weight:bold;
}
#playlist button.add-to-playlist:hover { background:#3a3a3a; color:#fff; text-decoration: none; }

/* Gallery + Lightbox */
.galerie { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:10px; margin-top:10px; }
.galerie img { width:100%; height:auto; border-radius:8px; transition:transform .2s; cursor:zoom-in; }
.ap-lightbox { position:fixed; inset:0; background:rgba(0,0,0,.9); display:flex; align-items:center; justify-content:center; z-index:9999; }
.ap-lightbox img { max-width:90%; max-height:90%; border-radius:10px; }
.ap-lightbox-nav {
  position:absolute; top:50%; transform:translateY(-50%);
  font-size:40px; background:none; border:none; color:#fff; cursor:pointer;
}
#prevBtn { left: 20px; }
#nextBtn { right: 20px; }
.ap-miss { color:#ff5c5c; }

/* Tooltips for badges */
.ogfmt-badges { white-space: normal; }
.ogfmt-badge{
  position: relative; display:inline-block; padding:2px 8px; margin:0 6px 6px 0;
  border:1px solid #3a3a3a; border-radius:999px;
  background:#1F1F1F; color:#fff; line-height:1.4; font-size:13px;
}
.ogfmt-badge[data-tooltip]::after{
  content: attr(data-tooltip);
  position:absolute; left:50%; bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  background:#0b1220; color:#e5e7eb; padding:4px 8px; border-radius:6px;
  font-size:12px; line-height:1.2; white-space:nowrap; border:1px solid #3a3a3a;
  box-shadow: 0 4px 12px rgba(0,0,0,.35); opacity:0; pointer-events:none; z-index:50;
  transition: opacity .15s ease, transform .15s ease;
}
.ogfmt-badge:hover::after, .ogfmt-badge:focus::after { opacity:1; transform:translateX(-50%) translateY(0); }

/* Notifications */
.notification {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #008CBA; color: #fff; padding: 10px 20px; border-radius: 8px;
  opacity: 1; transition: opacity .5s ease; z-index: 1000;
}

/* Comments */
.ap-card { border:1px solid #2a2a2a; border-radius:8px; padding:12px; background:#151515; }
.ap-card-warn { background:#2a1f1f; border-color:#5a3333; color:#f2d3d3; }
.ap-comments { margin-top:12px; }
.ap-comment { border:1px solid #2a2a2a; border-radius:8px; padding:12px; margin:8px 0; background:#151515; }
.ap-comment-head { display:flex; gap:8px; align-items:center; justify-content:flex-start; }
.ap-small { opacity:.8; font-size:12px; }
.ap-comment-body { margin-top:6px; white-space:pre-wrap; color:#eee; }

/* Links */
a { color:#FF8802; }
a:hover { text-decoration: underline; }

/* Utility */
.ap-right { text-align:right; }