:root {
  --sage: #7C9A82;
  --sage-dark: #5E7D65;
  --sage-deep: #3F5A46;
  --sage-soft: #E7EFE8;
  --sage-tint: #F1F5F1;
  --bg: #F7F6F1;
  --surface: #FFFFFF;
  --text: #26332B;
  --muted: #6E7C73;
  --border: #E4E7DF;
  --sand: #EFE7DA;
  --success: #4E8A5E;
  --error: #B9564A;
  --error-soft: #F8E9E6;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(38, 51, 43, .04), 0 8px 24px rgba(38, 51, 43, .06);
  --shadow-lg: 0 2px 4px rgba(38, 51, 43, .05), 0 20px 48px rgba(63, 90, 70, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.logged { padding-bottom: 96px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .12s, border-color .18s, color .18s;
}
.btn:active { transform: scale(.98); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sage-dark); color: #fff; box-shadow: 0 6px 18px rgba(94, 125, 101, .3); }
.btn-primary:hover { background: var(--sage-deep); box-shadow: 0 8px 24px rgba(94, 125, 101, .38); }
.btn-secondary { background: var(--sage-soft); color: var(--sage-deep); }
.btn-secondary:hover { background: #DCE7DE; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: #CBD2C7; background: var(--surface); }
.btn-danger { background: transparent; color: var(--error); border-color: #EBCFCA; }
.btn-danger:hover { background: var(--error-soft); }
.btn-google { width: 100%; background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-google:hover { border-color: #CBD2C7; background: var(--sage-tint); }
.google-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.4; text-align: center; }
.link { color: var(--sage-dark); font-weight: 600; transition: color .15s; }
.link:hover { color: var(--sage-deep); text-decoration: underline; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; background: transparent;
  display: inline-grid; place-items: center; color: var(--text); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--sage-soft); }

/* Cartes */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.card-title { margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.card-head .card-title { margin: 0; }

/* Vues */
.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(247, 246, 241, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--sage-dark); color: #fff; display: grid; place-items: center; }
.logo-mark.big { width: 40px; height: 40px; border-radius: 12px; }
.nav { display: flex; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s; }
@media (max-width: 1180px) and (min-width: 641px) {
  .nav-link { font-size: 14px; padding: 8px 9px; gap: 5px; }
  .topbar-inner { gap: 10px; }
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { background: var(--sage-soft); color: var(--sage-deep); font-weight: 600; }

/* Accueil */
.home { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
.home-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.home-hero { text-align: center; max-width: 760px; margin: 72px auto 64px; }
.home-hero h1 { font-size: clamp(32px, 5.4vw, 54px); margin: 22px 0 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto; }
.home-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--sage-soft); color: var(--sage-deep); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { transition: transform .2s, box-shadow .2s; }
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.benefit-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sage-soft); color: var(--sage-dark); display: grid; place-items: center; margin-bottom: 18px; }
.benefit h3 { margin-bottom: 8px; }
.benefit p { color: var(--muted); }

/* Connexion / inscription */
.auth { max-width: 460px; margin: 0 auto; padding: 32px 20px 64px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; margin-bottom: 20px; padding: 6px 10px 6px 4px; border-radius: 8px; transition: color .15s; }
.back:hover { color: var(--text); }
.auth-card { padding: 36px; }
.auth-card h2 { margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 24px; }
.sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
input {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--text); padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #FCFCFA; transition: border-color .15s, box-shadow .15s;
}
input:hover { border-color: #CBD2C7; }
input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(124, 154, 130, .2); background: #fff; }
input.invalid { border-color: var(--error); }
.forgot { display: inline-block; margin: -4px 0 20px; }
.form-error { background: var(--error-soft); color: var(--error); padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.auth-switch { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }

/* Pages connectées */
.page { max-width: 1120px; margin: 0 auto; padding: 40px 24px 40px; display: flex; flex-direction: column; gap: 24px; }
.page.narrow { max-width: 720px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.eyebrow::first-letter { text-transform: uppercase; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--sage-tint); border-radius: 16px; padding: 18px 20px; }
.stat strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--sage-deep); }
.stat span { color: var(--muted); font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }

.track-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.track {
  display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; cursor: pointer; transition: background .15s;
}
.track:hover { background: var(--sage-tint); }
.track .thumb { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.track-meta { flex: 1; min-width: 0; }
.track-meta strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-meta span { color: var(--muted); font-size: 14px; }
.track-side { color: var(--muted); font-size: 13px; white-space: nowrap; }
.mini-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--success); background: var(--sage-soft); padding: 3px 8px; border-radius: 999px; }
.track.current { background: var(--sage-soft); }
.track.current strong { color: var(--sage-deep); }

.empty { text-align: center; padding: 28px 16px; border: 1.5px dashed var(--border); border-radius: 16px; }
.empty-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-dark); display: grid; place-items: center; margin: 0 auto 14px; }
.empty strong { display: block; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

.charter { background: linear-gradient(160deg, #FFFFFF 0%, var(--sage-tint) 100%); }
.charter-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sage-dark); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.charter .card-title { margin-bottom: 8px; }
.charter-bar { height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 20px 0 10px; }
.charter-bar span { display: block; height: 100%; background: var(--sage); border-radius: 999px; transition: width .4s; }

/* Paramètres */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.form-grid .form-error, .form-actions { grid-column: 1 / -1; }
#password-form label:first-child { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; }
.logout-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.logout-card .card-title { margin-bottom: 4px; }
.version { text-align: center; color: var(--muted); font-size: 13px; }

/* Lecteur */
.player-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.player-card {
  border-radius: 28px; padding: 28px; color: var(--text);
  background: linear-gradient(150deg, #E9F0E8 0%, #F4EEE3 55%, #F6E7D8 100%);
  border: 1px solid #E3E5D9; box-shadow: var(--shadow-lg);
  position: sticky; top: 92px;
}
.player-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.75); color: var(--sage-deep); border: 1px solid rgba(94,125,101,.3); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #B9BFB6; }
.playing .live i { background: var(--success); box-shadow: 0 0 0 4px rgba(78,138,94,.18); }
.cover { aspect-ratio: 1 / 1; max-height: 320px; width: 100%; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 16px 36px rgba(63,90,70,.2); display: grid; place-items: center; color: rgba(255,255,255,.9); }
.player-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.player-info h2 { font-size: 28px; }
.player-info p { color: var(--muted); font-size: 17px; margin-top: 4px; }
.like.on { color: var(--error); }
.like.on svg { fill: currentColor; }
.wave { display: flex; align-items: center; gap: 3px; height: 46px; margin: 22px 0 8px; }
.wave i { flex: 1; background: rgba(63,90,70,.22); border-radius: 3px; transition: background .2s; }
.wave i.done { background: var(--sage-dark); }
body > #audio { display: none; }
.cover.has-video { aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.cover video { width: 100%; height: 100%; object-fit: contain; display: block; }
.playing .wave i { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scaleY(.65); } }
.progress { height: 6px; background: rgba(63,90,70,.15); border-radius: 999px; cursor: pointer; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--sage-dark); border-radius: 999px; }
.times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
.play-btn {
  width: 84px; height: 84px; border-radius: 50%; border: none; background: var(--sage-deep); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(63,90,70,.4); transition: transform .15s, background .15s;
}
.play-btn:hover { transform: scale(1.05); background: #33503B; }
.play-btn .i-pause, .playing .play-btn .i-play { display: none; }
.playing .play-btn .i-pause { display: block; }
.play-btn .i-play { margin-left: 4px; }
.next-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(63,90,70,.25); background: rgba(255,255,255,.7); color: var(--sage-deep); font-weight: 600; font-size: 15px; transition: background .15s;
}
.next-btn:hover { background: #fff; }
.dep-clip { display: inline-block; margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.dep-clip:hover { text-decoration: underline; }
.clip-propose { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--sand); }
.clip-propose .mod-actions { margin-top: 8px; }
.cover-propose { width: 160px; height: 90px; border-radius: 10px; margin-top: 6px; }
.dep-clip { display: inline-flex; align-items: center; gap: 6px; }
.dep-tools { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.edit-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.edit-dialog .form-grid { gap: 14px; }
.edit-dialog .full { grid-column: 1 / -1; }
.edit-dialog h3 { margin: 0; }
.edit-dialog .edit-delete { margin-right: auto; }
@media (max-width: 640px) { .edit-dialog .report-actions { flex-wrap: wrap; } .edit-dialog .edit-delete { width: 100%; } }
.edit-dialog .drop.cover { display: flex; align-items: center; gap: 14px; min-height: 0; padding: 12px; cursor: pointer; }
.edit-dialog .cover-preview { width: 96px; height: 54px; flex: none; border-radius: 10px; background-size: cover; background-position: center; }
.edit-dialog .drop-info { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.edit-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--sand); font-size: 14px; color: #6D604C; }
.reactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.react { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.react:hover { border-color: #CBD2C7; background: var(--sage-tint); }
.react:active { transform: scale(.94); }
.react.on { background: var(--sage-soft); border-color: var(--sage-dark); color: var(--sage-deep); }
.react-emoji { font-size: 18px; line-height: 1; }
.player-hint { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }

.queue-card .track-side { display: flex; align-items: center; gap: 8px; }
.filtered { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--sand); font-size: 14px; color: #6D604C; display: flex; gap: 12px; align-items: flex-start; }
.filtered svg { flex-shrink: 0; margin-top: 2px; }

/* Mini lecteur */
.mini {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30;
  width: min(560px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px 10px 10px 10px;
  display: flex; align-items: center; gap: 12px; overflow: hidden;
}
.mini-cover { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.mini-info { flex: 1; min-width: 0; cursor: pointer; }
.mini-info strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-info span { font-size: 13px; color: var(--muted); }
#m-play { background: var(--sage-deep); color: #fff; }
#m-play:hover { background: #33503B; }
.mini-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sage-soft); }
.mini-progress span { display: block; height: 100%; width: 0; background: var(--sage); }

/* Messages de confirmation */
.toasts { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--sage-deep); color: #fff; padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-size: 15px; font-weight: 500; animation: toastIn .25s ease; max-width: calc(100vw - 32px);
}
.toast.err { background: var(--error); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Téléphone */
@media (max-width: 900px) {
  .player-layout, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .player-card { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body.logged { padding-bottom: 160px; }
  .topbar-inner { padding: 12px 16px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); z-index: 25; }
  .nav-link { flex-direction: column; gap: 2px; font-size: 12px; padding: 6px 12px; border-radius: 12px; }
  .mini { bottom: 84px; }
  .page { padding: 24px 16px; }
  .home { padding: 24px 16px 48px; }
  .home-hero { margin: 44px auto 40px; }
  .card { padding: 22px; }
  .auth-card { padding: 26px 22px; }
  .page-head .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .stat strong { font-size: 26px; }
  .player-card { padding: 22px; }
  .cover { max-height: 260px; }
}

/* Guide musical */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 35; width: 58px; height: 58px; border-radius: 50%; border: none;
  background: var(--sage-dark); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 28px rgba(63, 90, 70, .35); transition: transform .15s, background .15s, bottom .2s;
}
.chat-fab[hidden] { display: none; }
.chat-fab:hover { background: var(--sage-deep); transform: translateY(-2px); }
.chat-fab.open { background: var(--sage-deep); }
body.mini-on .chat-fab { bottom: 104px; }
.chat {
  position: fixed; right: 24px; bottom: 96px; z-index: 40; width: min(400px, calc(100% - 32px)); height: min(580px, calc(100vh - 140px));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; animation: chat-in .2s ease-out;
}
body.mini-on .chat { bottom: 176px; height: min(560px, calc(100vh - 220px)); }
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 10px 14px 16px; border-bottom: 1px solid var(--border); background: var(--sage-tint); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sage-dark); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-title { flex: 1; min-width: 0; line-height: 1.3; }
.chat-title strong { display: block; font-size: 15px; }
.chat-title span { font-size: 12.5px; color: var(--muted); }
.chat-head .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; overflow-wrap: break-word; }
.msg.bot { align-self: flex-start; background: var(--sage-tint); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--sage-dark); color: #fff; border-bottom-right-radius: 6px; }
.msg.err { align-self: flex-start; background: var(--error-soft); color: var(--error); border-bottom-left-radius: 6px; }
.chat-track {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 8px 0; padding: 8px 12px 8px 8px; text-align: left; font: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; color: var(--sage-deep); transition: border-color .15s, box-shadow .15s;
}
.chat-track:hover { border-color: var(--sage); box-shadow: var(--shadow); }
.chat-track .thumb { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.chat-track > span:nth-child(2) { flex: 1; min-width: 0; color: var(--text); }
.chat-track strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-track small { font-size: 12.5px; color: var(--muted); }
.chat-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--sage-deep); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.chip:hover { background: var(--sage-soft); border-color: var(--sage); }
.typing { display: flex; gap: 5px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-empty { margin: auto; text-align: center; padding: 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.chat-empty p { color: var(--muted); font-size: 14px; margin: 0; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form[hidden] { display: none; }
.chat-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font: inherit; font-size: 15px; background: var(--bg); color: var(--text); }
.chat-form input:focus { outline: none; border-color: var(--sage); background: var(--surface); }
.chat-form .btn { padding: 0 16px; }
.chat-form button:disabled, .chat-form input:disabled { opacity: .6; cursor: default; }
@media (max-width: 640px) {
  .chat-fab { right: 16px; bottom: 88px; width: 52px; height: 52px; }
  body.mini-on .chat-fab { bottom: 164px; }
  .chat, body.mini-on .chat { right: 16px; left: 16px; width: auto; top: 16px; bottom: 84px; height: auto; }
}

/* Espace artiste */
.artist-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
#deposit-form .full { grid-column: 1 / -1; }
textarea, select {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--text); padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #FCFCFA; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 180px; line-height: 1.6; }
textarea:hover, select:hover { border-color: #CBD2C7; }
textarea:focus, select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(124, 154, 130, .2); background: #fff; }
textarea.invalid { border-color: var(--error); }
form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--muted); cursor: pointer; }
label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sage-dark); flex-shrink: 0; }
.charter-live { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: -4px 0 16px; background: var(--sage-tint); color: var(--muted); }
.charter-live svg { flex-shrink: 0; margin-top: 1px; }
.charter-live.ok { background: var(--sage-soft); color: var(--sage-deep); }
.charter-live.ko { background: var(--error-soft); color: var(--error); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.steps li > span { width: 32px; height: 32px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.steps p { color: var(--muted); font-size: 14px; }
.dep-counters { display: flex; gap: 8px; flex-wrap: wrap; }
.dep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dep { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 16px; transition: background .15s; }
.dep:hover { background: var(--sage-tint); }
.dep .thumb { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.dep-meta { flex: 1; min-width: 0; }
.dep-meta strong { display: block; }
.dep-meta span { color: var(--muted); font-size: 14px; }
.dep-meta .motif { display: block; color: var(--error); font-size: 13px; margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.en_attente { background: var(--sand); color: #8A6D3B; }
.status.valide { background: var(--sage-soft); color: var(--success); }
.status.refuse { background: var(--error-soft); color: var(--error); }
.codes-title { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.codes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.codes li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.codes li p { color: var(--muted); }
.code-tag { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--sage-soft); color: var(--sage-deep); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.avis { display: block; margin-top: 6px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--sage-tint); color: var(--sage-deep); }
.avis.incertain { background: var(--sand); color: #8A6D3B; }
.avis.attente { background: var(--sage-tint); color: var(--muted); }
.avis .code-tag { min-width: 28px; height: 20px; font-size: 11px; margin-right: 4px; background: var(--error-soft); color: var(--error); }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
input[readonly] { background: var(--sage-tint); color: var(--sage-deep); font-weight: 600; cursor: default; }
.restore { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.gate { text-align: center; padding: 12px 8px 4px; }
.gate .empty-icon { width: 64px; height: 64px; margin-bottom: 16px; }
.gate.refuse .empty-icon { background: var(--error-soft); color: var(--error); }
.gate h2 { font-size: 24px; margin-bottom: 8px; }
.gate > p { color: var(--muted); max-width: 440px; margin: 0 auto 14px; }
.gate .motif-box { background: var(--error-soft); color: var(--error); padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 0 auto 16px; max-width: 440px; }
.gate-recap { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; max-width: 360px; margin: 6px auto 20px; font-size: 14px; }
.gate-recap dt { color: var(--muted); }
.gate-recap dd { margin: 0; font-weight: 600; }
.gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
/* Lecteur : chaîne, abonnement, vues, actions */
.channel-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.channel-link { border: none; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--sage-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.channel-link:hover { color: var(--text); }
.sub-btn { border: 1px solid var(--sage-dark); background: var(--sage-dark); color: #fff; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.sub-btn:hover { background: var(--sage-deep); }
.sub-btn.on { background: transparent; color: var(--sage-deep); }
.sub-btn.on:hover { background: rgba(255,255,255,.6); }
.views { font-size: 13px; color: var(--muted); }
.player-actions { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.act { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(63,90,70,.2); background: rgba(255,255,255,.55); color: var(--sage-deep); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s; }
.act:hover { background: #fff; }
.act[aria-pressed="true"] { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }
.act-wrap { position: relative; }
.pl-menu { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 15; min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; }
.pl-menu button { display: flex; width: 100%; justify-content: space-between; gap: 10px; align-items: center; border: none; background: none; font: inherit; font-size: 14px; text-align: left; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--text); }
.pl-menu button:hover { background: var(--sage-tint); }
.pl-menu button small { color: var(--muted); }
.pl-menu .new { color: var(--sage-dark); font-weight: 600; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; margin-top: 4px; }

/* Colonne du lecteur : le lecteur puis, juste dessous, les commentaires */
.player-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.player-col .player-card { position: static; }
.comments-card { scroll-margin-top: 90px; }

/* Commentaires */
.comment-form { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; margin-bottom: 20px; }
.comment-form textarea { min-height: 52px; resize: vertical; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.avatar img, .avatar-lg img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-lg { width: 88px; height: 88px; font-size: 32px; }
.photo-row { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.photo-text p { font-size: 14px; margin: 4px 0 12px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-actions label.btn { cursor: pointer; }
.photo-actions label.is-busy { opacity: .6; pointer-events: none; }
.mod-actions .cover-pick { cursor: pointer; margin-right: auto; }
.mod-actions .cover-pick.is-busy { opacity: .6; pointer-events: none; }
.nav-photo { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
@media (max-width: 520px) { .photo-row { flex-direction: column; align-items: center; text-align: center; } .photo-actions { justify-content: center; } }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.comment { display: flex; gap: 12px; }
.comment .who { font-weight: 600; font-size: 14px; }
.comment .who small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.comment p { margin-top: 2px; }
.comment .c-report { margin-left: 10px; background: none; border: 0; padding: 0; font: inherit; font-size: 12px; font-weight: 400; color: var(--muted); cursor: pointer; opacity: .7; transition: opacity .15s, color .15s; }
.comment .c-report:hover { opacity: 1; color: var(--error); text-decoration: underline; }

/* Charte : thèmes acceptés / refusés */
.charte-themes { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.charte-themes:empty { display: none; }
.themes { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.themes strong { display: block; margin-bottom: 6px; }
.themes ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.themes.ok { background: var(--sage-soft); color: var(--sage-deep); }
.themes.non { background: var(--error-soft); color: var(--error); }
.charte-edit.ok { border-left: 4px solid var(--sage); }
.charte-edit.non { border-left: 4px solid var(--error); }
.charte-items { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.charte-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.charte-items li.muted { border-style: dashed; }
.charte-items .btn { padding: 6px 12px; font-size: 13px; }

/* Fenêtre d'alerte « Supprimer définitivement » */
.danger-dialog h3 { color: var(--error); }
.danger-dialog .delete-what { font-weight: 600; }
.delete-warning { background: var(--error-soft); color: var(--error); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.danger-dialog .btn-danger:disabled { opacity: .45; cursor: not-allowed; }

/* Fenêtre « Clip vidéo » */
.clip-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(960px, calc(100vw - 32px)); background: #111; color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.clip-dialog::backdrop { background: rgba(20, 26, 22, .78); }
.clip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--sage-deep); }
.clip-head strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-head .btn { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.clip-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.clip-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Fenêtre « Signaler » */
.report-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.report-dialog::backdrop { background: rgba(38, 51, 43, .45); }
.report-dialog form { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.report-dialog h3 { font-size: 20px; line-height: 1.3; }
.report-reasons { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.report-reasons label { display: flex; flex-direction: row; justify-content: flex-start; text-align: left; font-weight: 500; font-size: 15px; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: background .15s, border-color .15s; }
.report-reasons label:hover { background: var(--sage-tint); }
.report-reasons label:has(input:checked) { border-color: var(--sage); background: var(--sage-soft); }
.report-reasons input { accent-color: var(--sage-deep); width: 18px; height: 18px; margin: 0; padding: 0; flex: none; box-shadow: none; }
.report-details textarea { min-height: 72px; }
.report-details { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.report-details textarea { font: inherit; font-weight: 400; resize: vertical; }
.report-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Recherche */
.search-box { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px 6px 20px; box-shadow: var(--shadow); color: var(--muted); }
.search-box:focus-within { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(124,154,130,.2); }
.search-box input { flex: 1; border: none; background: none; box-shadow: none; padding: 12px 4px; font-size: 17px; }
.search-box input:focus { box-shadow: none; background: none; }
.results-title { margin: 8px 0 14px; font-size: 16px; color: var(--muted); font-weight: 600; }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.artist-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 16px; text-align: center; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.artist-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.artist-card .ava { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; font-size: 26px; font-weight: 700; }
.artist-card strong { display: block; }
.artist-card span { color: var(--muted); font-size: 13px; }
.mark { background: #F2E6B8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* Playlists */
.pl-new { display: flex; gap: 10px; flex-wrap: wrap; }
.pl-new input { min-width: 240px; }
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.pl-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pl-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pl-card:hover { box-shadow: var(--shadow); }
.pl-card.sel { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(124,154,130,.2); }
.pl-cover { width: 56px; height: 56px; border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; flex-shrink: 0; background: var(--sage-soft); }
.pl-cover i { display: block; }
.pl-card .meta { flex: 1; min-width: 0; }
.pl-card strong { display: block; }
.pl-card span { color: var(--muted); font-size: 14px; }
.pl-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pl-detail-head h2 { font-size: 24px; }
.pl-detail-head .muted { font-size: 14px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.track .rm { opacity: .5; }
.track:hover .rm { opacity: 1; }

/* Chaîne */
.channel-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(150deg, #E9F0E8 0%, #F4EEE3 60%, #F6E7D8 100%); border: 1px solid #E3E5D9; border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.channel-hero .ava { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 40px; font-weight: 700; box-shadow: 0 12px 28px rgba(63,90,70,.25); }
.channel-hero .info { flex: 1; min-width: 220px; }
.channel-hero h1 { margin-bottom: 6px; }
.channel-hero .stats-line { color: var(--muted); }
.channel-hero .row-actions { margin-top: 16px; }
/* Fichiers du dépôt */
.files { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
form label.drop { flex-direction: row; align-items: center; gap: 14px; margin: 0; padding: 16px; border: 2px dashed #CBD2C7; border-radius: 16px; background: var(--sage-tint); cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; min-width: 0; }
form label.drop:hover { border-color: var(--sage); background: #fff; }
form label.drop.filled { border-style: solid; border-color: var(--sage); background: #fff; }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop:focus-within { outline: 2px solid var(--sage-dark); outline-offset: 2px; }
.drop-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--sage-dark); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.drop-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.drop-info strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-info span { font-size: 13px; color: var(--muted); }
.drop-info audio { width: 100%; height: 34px; margin-top: 8px; }
.cover-preview { width: 56px; height: 56px; border-radius: 12px; background: var(--sage-soft) center / cover no-repeat; color: var(--sage-dark); display: grid; place-items: center; flex-shrink: 0; }
.drop.cover.filled .cover-preview svg { display: none; }
/* la zone « Pochette » ne doit pas hériter du style de la grande pochette du lecteur (.cover) */
form label.drop.cover { aspect-ratio: auto; max-height: none; width: auto; margin: 0; box-shadow: none; display: flex; place-items: normal; color: var(--text); border-radius: 16px; }
@media (max-width: 640px) { .files { grid-template-columns: minmax(0, 1fr); } }

/* Langues */
.lang-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.lang-filter:empty { display: none; }
.chip-lang { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip-lang:hover { color: var(--text); border-color: #CBD2C7; }
.chip-lang[aria-pressed="true"] { background: var(--sage-soft); color: var(--sage-deep); border-color: var(--sage); font-weight: 600; }
.lang-field { margin-bottom: 16px; }
.style-other { width: 100%; margin-top: 10px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chips label { margin: 0; flex-direction: row; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 10px; cursor: pointer; background: #FCFCFA; }
.lang-chips label:has(input:checked) { background: var(--sage-soft); border-color: var(--sage); color: var(--sage-deep); }
.lang-chips input { accent-color: var(--sage-dark); width: 16px; height: 16px; margin: 0; }
.lang-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--sage-deep); background: var(--sage-soft); border-radius: 6px; padding: 2px 6px; margin-left: 4px; vertical-align: 1px; }
.lang-tags:empty { display: none; }
.lang-tags .lang-tag { margin-left: 0; margin-right: 4px; }

/* Badges des gagnants */
.awards { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.awards:empty { display: none; }
.artist-card .awards { justify-content: center; margin: 10px 0 0; }
.award { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.award.win { background: linear-gradient(135deg, #F6E7B0, #EED48A); color: #6E5412; box-shadow: 0 2px 8px rgba(169,138,47,.25); }
.award.lead { background: #FBE3D6; color: #9A4A26; }
.award.sm { font-size: 11px; padding: 3px 9px; }

/* Pages légales et pied de page */
.legal h1 { margin: 4px 0 6px; }
.legal .card { margin-top: 18px; }
.legal h2 { font-size: 18px; margin: 22px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text); line-height: 1.65; }
.legal ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.site-footer { max-width: 1120px; margin: 24px auto 0; padding: 22px 24px 30px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--sage-deep); text-decoration: underline; }
.site-footer span { margin-left: auto; }
.site-footer .footer-note { margin-left: 0; width: 100%; font-size: 12px; }
@media (max-width: 640px) { .site-footer span { margin-left: 0; width: 100%; } }
form label.check span { font-weight: 500; }
.premium-cta label.check.consent { margin-top: 14px; flex: none; min-width: 0; }

.danger-zone { border-color: #EBCFCA; background: linear-gradient(160deg, #FFFFFF 0%, #FDF6F4 100%); }
.danger-zone > div { flex: 1; min-width: 240px; }

/* Modération */
.seg b { font-weight: 700; margin-left: 4px; }
.seg b:empty { display: none; }
.mod-list { display: flex; flex-direction: column; gap: 16px; }
.mod-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.mod-card.done { opacity: .75; }
.mod-head { display: flex; gap: 14px; align-items: flex-start; }
.mod-head .thumb { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.mod-head .ava { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.mod-title { flex: 1; min-width: 0; }
.mod-title strong { display: block; font-size: 17px; }
.mod-title span { color: var(--muted); font-size: 14px; }
.mod-body { margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.mod-body p { color: var(--text); }
.mod-body .meta { color: var(--muted); font-size: 14px; }
.mod-body audio { width: 100%; }
.mod-body details { background: var(--sage-tint); border-radius: 12px; padding: 10px 14px; }
.mod-body details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.mod-body pre { white-space: pre-wrap; font: inherit; margin: 10px 0 0; line-height: 1.6; }
.mod-body .quote { border-left: 3px solid var(--sage); padding-left: 12px; }
.team-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.team-form input { flex: 1; min-width: 220px; }
.mod-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.mod-actions .btn { padding: 10px 18px; }

/* Classement mensuel */
.rank-teaser { display: flex; align-items: center; gap: 16px; padding: 20px 24px; transition: transform .2s, box-shadow .2s; }
.rank-teaser:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rank-teaser .trophy { width: 44px; height: 44px; border-radius: 14px; background: #F6EBC8; color: #9A7A1E; display: grid; place-items: center; flex-shrink: 0; }
.rank-teaser .txt { flex: 1; min-width: 0; }
.rank-teaser strong { display: block; font-size: 17px; }
.rank-teaser .txt > span { font-size: 14px; color: var(--muted); }
.rank-teaser .go { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; color: var(--sage-dark); white-space: nowrap; }
.rk-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.seg button { border: none; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--sage-dark); color: #fff; }
.month-nav { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.month-nav strong { min-width: 140px; text-align: center; text-transform: capitalize; }
.month-nav .icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; }
.podium:empty { display: none; }
.podium-place { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 180px; cursor: pointer; text-align: center; }
.podium-place .ava { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 26px; font-weight: 700; box-shadow: 0 10px 24px rgba(63,90,70,.22); margin-bottom: 6px; transition: transform .2s; }
.podium-place:hover .ava { transform: translateY(-3px); }
.podium-place.p1 .ava { width: 92px; height: 92px; font-size: 32px; box-shadow: 0 0 0 4px #F2D98B, 0 12px 28px rgba(63,90,70,.25); }
.podium-place strong { font-size: 16px; }
.podium-place .pts { font-size: 13px; color: var(--muted); }
.podium-place .step { width: 100%; margin-top: 10px; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; color: #fff; font-size: 26px; font-weight: 700; }
.podium-place .step span { display: inline-flex; align-items: center; gap: 6px; }
.podium-place.p1 .step { height: 120px; background: linear-gradient(180deg, #C9A646, #A88A2F); }
.podium-place.p2 .step { height: 88px; background: linear-gradient(180deg, #A9B3AC, #8A958D); }
.podium-place.p3 .step { height: 64px; background: linear-gradient(180deg, #C69C78, #A97E5B); }
.rk-card { padding: 12px; }
.rk-row { display: grid; grid-template-columns: 44px minmax(0, 2fr) 1fr 1fr 1fr 1.4fr; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.rk-row:hover { background: var(--sage-tint); }
.rk-head { cursor: default; font-size: 13px; color: var(--muted); font-weight: 600; }
.rk-head:hover { background: none; }
.rk-pos { font-weight: 700; color: var(--sage-deep); text-align: center; }
.rk-artist { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-artist i { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.rk-score { display: flex; align-items: center; gap: 10px; }
.rk-score b { min-width: 34px; }
.rk-score em { flex: 1; height: 8px; border-radius: 999px; background: var(--sage-soft); overflow: hidden; }
.rk-score em i { display: block; height: 100%; background: var(--sage-dark); border-radius: 999px; }
.center { text-align: center; padding: 20px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.rules div { background: var(--sage-tint); border-radius: 14px; padding: 14px 16px; }
.rules b { display: block; font-size: 20px; color: var(--sage-deep); }
.rules span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .podium { gap: 8px; }
  .podium-place { width: 31%; }
  .podium-place .ava { width: 56px; height: 56px; font-size: 20px; }
  .podium-place.p1 .ava { width: 68px; height: 68px; }
  .podium-place strong { font-size: 13px; }
  .rk-head { display: none; }
  .rk-row { grid-template-columns: 32px 1fr auto; row-gap: 4px; }
  .rk-row > span[data-l] { display: none; }
  .rk-score { grid-column: 3; }
  .rk-score em { display: none; }
  .rules { grid-template-columns: 1fr; }
}

/* Premium */
.premium-teaser { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--radius); background: linear-gradient(120deg, var(--sage-deep) 0%, #5E7D65 100%); color: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.premium-teaser:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.premium-teaser .star { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.15); color: #F2D98B; display: grid; place-items: center; flex-shrink: 0; }
.premium-teaser .txt { flex: 1; min-width: 0; }
.premium-teaser strong { display: block; font-size: 17px; }
.premium-teaser .txt > span { font-size: 14px; opacity: .85; }
.premium-teaser .go { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.premium-hero { text-align: center; max-width: 680px; margin: 8px auto 8px; }
.premium-hero h1 { margin: 18px 0 12px; }
.waiting { margin-top: 14px; font-size: 14px; color: var(--sage-deep); font-weight: 600; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto 20px; }
.plan { position: relative; display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 28px 24px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.plan:hover .plan-body { transform: translateY(-2px); }
.plan input:checked + .plan-body, .plan input:checked ~ .plan-body { border-color: var(--sage-dark); box-shadow: 0 0 0 4px rgba(124,154,130,.2), var(--shadow); }
.plan input:focus-visible ~ .plan-body { outline: 2px solid var(--sage-dark); outline-offset: 3px; }
.plan-name { font-size: 22px; font-weight: 700; }
.plan-price { font-size: 15px; font-weight: 600; color: var(--sage-dark); }
.plan-desc { color: var(--muted); font-size: 14px; }
.plan-tag { position: absolute; top: -12px; left: 24px; z-index: 1; background: var(--sage-deep); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.premium-cta { max-width: 760px; margin: 0 auto 24px; }
.premium-cta .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.premium-cta label { flex: 1; min-width: 220px; margin: 0; }
.premium-cta .note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.premium-cta .done { display: flex; gap: 14px; align-items: center; }
.premium-cta .done .empty-icon { margin: 0; flex-shrink: 0; }
.benefits-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.benefits-list li { display: flex; gap: 14px; }
.benefits-list p { color: var(--muted); font-size: 14px; }
.b-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.soon { display: inline-block; font-size: 11px; font-weight: 700; background: var(--sand); color: #8A6D3B; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.free-note { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--sage-tint); color: var(--sage-deep); font-size: 14px; }
@media (max-width: 700px) { .plans, .benefits-list { grid-template-columns: 1fr; } .premium-teaser { flex-wrap: wrap; } }
@media (max-width: 900px) { .pl-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .comment-form { grid-template-columns: 1fr; }
  .comment-form .avatar { display: none; }
  .pl-new, .pl-new input { width: 100%; min-width: 0; }
  .nav-link span { font-size: 10px; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .channel-hero { padding: 22px; }
}
@media (max-width: 900px) { .artist-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .nav-link { padding: 6px; font-size: 11px; }
  .dep { flex-wrap: wrap; }
  .page-head .dep-counters { width: 100%; }
}
