/* Styles spécifiques aux vues (complète app.css — les vues ajoutent ici). */

/* ─── Recherche ─── */

.search-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.search-form .input { flex: 1; min-width: 220px; }

/* ─── Page chaîne ─── */

.load-more { display: block; margin: 20px auto 0; }

/* ─── Playlists locales ─── */

.playlist-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-dim);
}

/* ─── Détails vidéo ─── */

.detail { max-width: 820px; }
.detail-title { font-size: 21px; margin: 0 0 6px; line-height: 1.3; }
.detail-channel a { color: var(--text-dim); font-size: 14px; }
.detail-channel a:hover { color: var(--text); }
.detail-meta { color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }

.comment-form { display: flex; gap: 8px; margin-bottom: 14px; }
.comment-form .input { flex: 1; }

.desc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.desc a { color: var(--accent); }
.desc a:hover { text-decoration: underline; }

/* ─── Commentaires (module partagé) ─── */

.comments { max-width: 820px; margin-top: 8px; }
.comments .btn.more { margin-top: 10px; }
/* .btn et .spinner (app.css) posent un `display` qui l'emporte sur l'attribut
   hidden de la règle UA : le module pagine avec `hidden`, on le rétablit. */
.comments [hidden] { display: none; }
.comment {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.comment-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.comment-author { font-weight: 600; font-size: 13px; }
.comment-when { color: var(--text-dim); font-size: 12px; }
.comment-pin {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0 5px;
}
.comment-text {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-stats {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.comment-replies { margin: 8px 0 0 14px; border-left: 2px solid var(--border); padding-left: 10px; }
.comment-replies .comment { background: var(--bg); margin-bottom: 6px; }
.comment-replies .comment-form { margin: 6px 0 2px; }

/* ─── Réglages ─── */

.form-line { display: flex; gap: 8px; margin-top: 10px; max-width: 560px; }
.form-line .input { flex: 1; }
.field-help { color: var(--text-dim); font-size: 12px; margin-top: 6px; }

.pref-rows { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  cursor: pointer;
}
.pref-row .input { max-width: 180px; }
.pref-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

.kv-rows { display: flex; flex-direction: column; gap: 2px; max-width: 560px; }
.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.kv:last-child { border-bottom: none; }
.kv-key { color: var(--text-dim); }

.settings-footer { margin-top: 26px; }
