/* Rubrique « Animation » (src/web/modules/animation.js) : suggestions, giveaways et leurs aperçus façon Discord. */
.anim-rubrique { display: grid; gap: 20px; }

/* Les deux vues, les filtres */
.anim-vues .segments { display: flex; max-width: 100%; }   /* barre des parties : pleine largeur (.sous-rubriques, app.css) */
.anim-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.anim-nb { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgb(255 255 255 / .1); font-size: 12px; font-weight: 700; }
.anim-seg button[aria-pressed="true"] .anim-nb { background: rgb(0 0 0 / .12); }
.anim-filtres { padding: 2px 22px 10px; }
.anim-filtres .segments { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; border-radius: 18px; }
.anim-filtres .segments button { min-height: 32px; font-size: 14px; }
@media (max-width: 480px) {
  .anim-vues .segments { width: 100%; }
  .anim-vues .segments button { flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .anim-filtres { padding: 2px 12px 10px; }
  .anim-filtres .segments button { padding: 0 9px; font-size: 13.5px; }
  .anim-filtres .anim-nb { min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
}

/* Mise en page : aperçu au-dessus quand la rubrique est étroite, colonne collée à droite quand elle est large
   (conteneur « panneau » = #panneau-reglages, pas la fenêtre). */
.anim-mise { display: grid; gap: 20px; }
.anim-col { display: grid; gap: 20px; min-width: 0; align-content: start; }
.anim-apercu { min-width: 0; }
@container panneau (min-width: 940px) {
  .anim-mise { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: start; }
  .anim-col .ligne-r { grid-template-columns: minmax(0, 1fr) minmax(180px, 240px); }
  .anim-col .ligne-r:has(> div > .anim-droite) { grid-template-columns: minmax(0, 1fr) auto; }   /* un interrupteur seul : tout le reste au libellé */
  .anim-col { grid-column: 1; grid-row: 1; }
  .anim-apercu { grid-column: 2; grid-row: 1; align-self: stretch; }
  .anim-apercu > .apercu-panneau { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
}
.anim-ou { margin-left: auto; color: var(--attenue); font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.anim-droite { display: flex; justify-content: flex-end; }
@media (max-width: 734px) { .anim-droite { justify-content: flex-start; } }
.anim-rubrique .groupe-pied .aide { align-self: center; color: var(--attenue); font-size: 14px; }
.anim-rubrique .bascule-ios:disabled { opacity: .4; cursor: default; }

/* Listes */
.anim-rangee { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 22px; position: relative; }
.anim-rangee.anim-gw { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.anim-rangee + .anim-rangee::before, .anim-rep-form + .anim-rangee::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--trait); }
.anim-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--tuile-haute); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.anim-corps { min-width: 0; }
.anim-corps h3 { margin: 0; font-size: 16px; line-height: 21px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.anim-corps h3 > span:first-child { overflow-wrap: anywhere; min-width: 0; }
.anim-texte { margin: 3px 0 0; color: #d4d6db; font-size: 14.5px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.anim-meta { margin: 3px 0 0; color: var(--attenue); font-size: 14px; line-height: 19px; overflow-wrap: anywhere; }
.anim-meta b, .anim-gagnants b { color: var(--texte); font-weight: 600; }
.anim-raison, .anim-gagnants { margin: 6px 0 0; font-size: 14px; line-height: 19px; color: #d4d6db; overflow-wrap: anywhere; }
.anim-raison b { font-weight: 600; }
.anim-rangee .outils { display: flex; gap: 2px; }
.anim-rangee a.outil { color: var(--attenue); }
.anim-rangee a.outil:hover { color: var(--texte); }
.outil.anim-oui:hover:not(:disabled), .outil.anim-oui[aria-pressed="true"] { background: rgb(47 214 123 / .14); color: #8debb6; }
.outil.danger[aria-pressed="true"] { background: rgb(240 113 120 / .16); color: #ffb3b7; }
.anim-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.anim-vide { margin: 0; padding: 6px 22px 16px; color: var(--attenue); font-size: 15px; }
.etiquette.anim-acceptee { background: rgb(47 214 123 / .14); color: #8debb6; }
.etiquette.anim-refusee { background: rgb(240 113 120 / .16); color: #ffb3b7; }
.anim-rep-form { margin-top: 0; }
.anim-rep-form textarea { min-height: 72px; resize: vertical; }
@media (max-width: 560px) {
  .anim-rangee { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .anim-rangee .outils { grid-column: 2; margin-left: -10px; }
  .anim-num { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  .anim-rangee.anim-gw { grid-template-columns: minmax(0, 1fr); }
  .anim-actions { justify-content: flex-start; }
  .anim-rangee + .anim-rangee::before, .anim-rep-form + .anim-rangee::before { left: 16px; right: 16px; }
}

/* Formulaire du giveaway */
.anim-form input[type="number"] { font-variant-numeric: tabular-nums; }
.anim-duree { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; }
.anim-duree label { flex: 0 1 140px; min-width: 96px; }
.anim-duree .segments { margin-bottom: 4px; }

/* ── Aperçus façon Discord ── */
.anim-dc { overflow-wrap: anywhere; }
.anim-embed { margin-top: 2px; max-width: 432px; display: grid; gap: 8px; padding: 10px 16px 14px 12px; border-radius: 4px; background: #2b2d31; border-left: 4px solid var(--c, #3AAEEF); font-size: 14px; line-height: 1.375; color: #dbdee1; }
.anim-auteur { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #f2f3f5; }
.anim-pastille { width: 20px; height: 20px; border-radius: 50%; background: #5865f2; flex: none; object-fit: cover; display: block; }
.anim-titre { font-size: 16px; font-weight: 600; color: #f2f3f5; }
.anim-desc b, .anim-champs b, .anim-cond b { color: #f2f3f5; font-weight: 600; }
.anim-champs { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.anim-champs > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: normal; }
.anim-cond ul { margin: 2px 0 0; padding-left: 20px; }
.anim-pied { font-size: 12px; color: #b5bac1; }
.anim-gris { color: #949ba4; font-weight: 400; }
.anim-mention { padding: 0 2px; border-radius: 3px; background: rgb(88 101 242 / .3); color: #c9cdfb; font-weight: 500; }
.anim-rangee-btn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.anim-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 60px; padding: 2px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff; background: #4e5058; }
.anim-btn.vert { background: #248046; }
.anim-btn.rouge { background: #da373c; }
.anim-btn.off { opacity: .5; }
.anim-fil { display: flex; align-items: center; gap: 8px; margin-top: 8px; max-width: 432px; padding: 8px 12px; border-radius: 8px; background: #2b2d31; font-size: 14px; color: #dbdee1; min-width: 0; }
.anim-fil svg { width: 16px; height: 16px; fill: none; stroke: #949ba4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.anim-fil > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.anim-fil b { color: #f2f3f5; font-weight: 600; }
.anim-fil-n { color: #00a8fc; font-size: 13px; flex: none; }
@media (max-width: 480px) {
  .apercu-discord.anim-dc { padding: 12px 10px 14px 8px; }
  .anim-dc .apd-msg { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .anim-dc .apd-av { width: 32px; height: 32px; }
  .anim-embed { padding: 8px 10px 12px 10px; }
}
