:root {
  /* Fond doux : base violet sombre + motif tilable + surfaces teintées légères. */
  --bg: #0c0815;
  --bg-pattern: url("../images/bg-pattern.svg");
  --surface: #15101f;
  --surface-2: #1a1430;
  --stroke: rgba(255, 255, 255, 0.10);
  --text: rgba(246, 247, 252, 0.94);
  --muted: rgba(200, 204, 220, 0.78);
  --accent: #ff2e55;
  --accent-soft: rgba(255, 46, 85, 0.18);
  --accent-glow: rgb(255 46 85 / 28%);
  --reader-text: rgba(246, 247, 252, 0.94);
  --reader-bg: rgba(12, 14, 20, 0.78);
  --reader-stroke: rgba(255, 255, 255, 0.12);
  --reader-line: 1.75;
  --reader-font: 16px;
}

/* Le mode clair est désactivé : on conserve la palette sombre quoi qu'il
   arrive pour ne plus afficher d'arrière-plan blanc/laiteux. Les variables
   --bg, --surface… restent celles définies dans :root ci-dessus. */
[data-theme="light"] {
  --reader-text: rgba(246, 247, 252, 0.94);
  --reader-bg: rgba(12, 14, 20, 0.78);
  --reader-stroke: rgba(255, 255, 255, 0.12);
}

/* Reading comfort classes (persisted via reader-accessibility.js) */
:root.dsc-font--normal { --reader-font: 16px; }
:root.dsc-font--large { --reader-font: 18px; }
:root.dsc-font--xlarge { --reader-font: 20px; }
:root.dsc-contrast {
  --text: rgba(255, 255, 255, 0.98);
  --muted: rgba(230, 232, 244, 0.92);
  --stroke: rgba(255, 255, 255, 0.18);
  --reader-text: rgba(255, 255, 255, 0.98);
  --reader-bg: rgba(0, 0, 0, 0.82);
  --reader-stroke: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    var(--bg-pattern) 0 0 / 56px 56px repeat,
    radial-gradient(circle at 8% 0%, rgba(168, 85, 247, 0.16) 0%, transparent 30%),
    radial-gradient(circle at 98% 6%, rgba(244, 63, 94, 0.12) 0%, transparent 34%),
    radial-gradient(circle at 50% 110%, rgba(34, 211, 238, 0.08) 0%, transparent 42%),
    radial-gradient(circle at center top, rgba(60, 30, 70, 0.30) 0%, var(--bg) 56%);
  background-attachment: fixed, fixed, fixed, fixed, scroll;
  color: var(--text);
  transition: background 220ms ease, color 220ms ease;
}

.page {
  position: relative;
  overflow: hidden;
  width: min(1020px, 90vw);
  margin: 20px auto 48px;
}

/*
 * home.css définit .page { display: none } pour les volets du carrousel d’accueil.
 * Certaines pages en chargent aussi home.css pour les cartes (favoris, bibliothèque…)
 * tout en utilisant <main class="page …"> : sans ce correctif le main reste masqué
 * (page blanche).
 */
main.page.dsc-manga-single {
  display: block;
}

/* Favoris : une cellule de grille = carte + bouton (grid-4 = 4 par ligne ≥900px). */
.dsc-favorites-grid.grid {
  align-items: start;
}

.dsc-favorites-grid__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.theme-toggle {
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dsc-a11y-controls {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 10px;
}

.dsc-a11y-btn {
  border: 1px solid var(--stroke);
  background: rgba(16, 17, 26, 0.40);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.dsc-a11y-btn:hover {
  border-color: rgba(255, 46, 85, 0.35);
  transform: translateY(-1px);
}

.dsc-a11y-btn.is-active {
  border-color: rgba(255, 46, 85, 0.55);
  background: linear-gradient(180deg, rgba(255, 46, 85, 0.18), rgba(16, 17, 26, 0.55));
  color: #ffd2da;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgb(255 38 88 / 18%);
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: rgb(181 42 255 / 12%);
  bottom: 180px;
  left: -120px;
}

.card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
  backdrop-filter: blur(4px);
  transition: border-color 180ms ease, transform 180ms ease;
}

.hero {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding: 16px;
}

.cover {
  min-height: 310px;
  border-radius: 10px;
  border: 1px solid #3f1616;
  background:
    linear-gradient(180deg, rgb(17 17 17 / 22%), rgb(0 0 0 / 82%)),
    linear-gradient(125deg, #6b1a2a, #2a1a40 42%, #12080c);
  background-size: auto, cover;
  background-position: center, center;
  box-shadow: inset 0 -70px 90px rgb(0 0 0 / 45%);
}

.eyebrow {
  margin: 0 0 8px;
  color: #ff9db2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  letter-spacing: -0.02em;
}

.meta-line {
  color: var(--muted);
  margin: 8px 0 12px;
  line-height: 1.5;
  font-size: 14px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.stat {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #4d1b24;
  background: #241015;
  color: #e5cad0;
  font-size: 11px;
}

.stat strong {
  color: #fff;
  margin-right: 6px;
}

.dsc-rating {
  margin: 8px 0 10px;
  display: grid;
  gap: 6px;
}

.dsc-rating__label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(244, 244, 245, 0.92);
}

.dsc-rating__stars {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.dsc-rating__star {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(240, 240, 245, 0.55);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: 160ms ease;
}

.dsc-rating__star:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 210, 220, 0.55);
  color: rgba(255, 210, 220, 0.9);
}

.dsc-rating__star.is-active {
  border-color: rgba(255, 210, 220, 0.7);
  color: #ffd2dc;
  background: rgba(255, 59, 84, 0.12);
}

.dsc-rating__star:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.dsc-rating__status,
.dsc-rating__hint {
  margin: 0;
  font-size: 12px;
  color: rgba(183, 187, 200, 0.95);
  line-height: 1.45;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border-radius: 999px;
  border: 1px solid #53202a;
  color: #ffd2d2;
  background: linear-gradient(180deg, #2f1218, #1f0d12);
  font-size: 11px;
  padding: 5px 10px;
}

.tag.tag--dsc-tag {
  border-color: #2a3d53;
  color: #c8dce8;
  background: linear-gradient(180deg, #121f2f, #0d1620);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 180ms ease;
  font-size: 12px;
}

.btn-primary {
  background: linear-gradient(90deg, #ff3b54, var(--accent));
  color: white;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-ghost {
  background: #241216;
  border: 1px solid #4c1a1d;
  color: #e7d8d8;
}

.btn-ghost:hover {
  border-color: #7b2a38;
  color: #fff4f6;
}

/* Fiche manga : boutons "Dernier chapitre" / "Favoris" / "Retour catalogue" plus visibles */
.dsc-manga-single .hero-actions .btn.btn-ghost {
  background: rgba(16, 17, 26, 0.55);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(246, 247, 252, 0.92);
}

.dsc-manga-single .hero-actions .btn.btn-ghost:hover,
.dsc-manga-single .hero-actions .btn.btn-ghost:focus {
  border-color: rgba(255, 46, 85, 0.45);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(255, 46, 85, 0.16);
  transform: translateY(-1px);
}

.dsc-manga-single .hero-actions .btn.btn-ghost:active {
  transform: translateY(0);
  filter: brightness(1.03);
}

.synopsis {
  border: 1px solid var(--reader-stroke);
  background: var(--reader-bg);
  color: var(--reader-text);
  border-radius: 10px;
  padding: 12px;
  line-height: var(--reader-line);
  font-size: var(--reader-font);
}

.synopsis :where(p, li) {
  line-height: var(--reader-line);
  font-size: var(--reader-font);
}

.synopsis :where(a) {
  color: #93c5fd;
}

.synopsis :where(a:hover) {
  text-decoration: underline;
}

.section {
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.section h2,
.section h3,
.section h4 {
  margin: 0;
}

.section h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  background: rgba(16, 17, 26, 0.45);
  border: 1px solid var(--stroke);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 13px;
  outline: none;
  transition: 160ms ease;
}

input:focus,
textarea:focus {
  border-color: #8a2b3c;
  box-shadow: 0 0 0 3px rgb(255 46 85 / 16%);
}

.filters input {
  width: 180px;
}

.btn-icon {
  background: #13090a;
  border: 1px solid #4a1a1e;
  color: #d6c4c4;
  border-radius: 999px;
  padding: 10px 14px;
  transition: 160ms ease;
}

.btn-icon:hover {
  border-color: #7f2a39;
  color: #fff;
}

.chapters {
  padding: 8px;
  border-radius: 10px;
}

.chapter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #4a1a21;
  border-radius: 9px;
  background: linear-gradient(180deg, #1d0b0f, #18090b);
  margin-bottom: 8px;
  transition: 170ms ease;
}

.chapter:hover {
  transform: translateY(-1px);
  border-color: #7f2a3b;
}

.chapter-title {
  font-weight: 600;
  font-size: 13px;
  color: rgba(246, 247, 252, 0.96);
}

.chapter-info {
  color: #ffca76;
  font-size: 12px;
}

.chapter--scheduled {
  border-color: #5a3a1a;
  background: linear-gradient(180deg, #1a120d, #140d09);
}

.chapter-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a0f08;
  background: linear-gradient(180deg, #ffca76, #e8a84a);
  border-radius: 999px;
  vertical-align: middle;
}

/* Fiche manga : politique téléchargement + blocs chapitres avec bandeau d’images */
.dsc-manga-download-policy {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgb(122 71 93 / 45%);
  background: linear-gradient(180deg, rgb(42 21 31 / 80%), rgb(24 13 17 / 90%));
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.dsc-manga-download-policy__lead {
  margin: 0;
}

.dsc-manga-download-policy__lead--premium {
  color: #b8f5cf;
}

.dsc-manga-chapter-block {
  padding: 10px 12px 12px;
  border: 1px solid #4a1a21;
  border-radius: 9px;
  background: linear-gradient(180deg, #1d0b0f, #18090b);
  margin-bottom: 10px;
  transition:
    transform 170ms ease,
    border-color 170ms ease;
}

.dsc-manga-chapter-block:hover {
  transform: translateY(-1px);
  border-color: #7f2a3b;
}

.dsc-manga-chapter-block.chapter--scheduled {
  border-color: #5a3a1a;
  background: linear-gradient(180deg, #1a120d, #140d09);
}

.dsc-manga-chapter-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  justify-content: space-between;
}

.dsc-manga-chapter-block__title-link {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.dsc-manga-chapter-block__title-link {
  cursor: pointer;
  text-align: start;
  padding: 6px 0;
}

.dsc-manga-chapter-block__title-link--disabled,
.dsc-manga-chapter-block__title-link[aria-disabled="true"] {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

.dsc-manga-chapter-block__title-link:hover .chapter-title {
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(255, 46, 85, 0.18);
}

.dsc-manga-chapter-block.dsc-strip-open {
  border-color: rgba(255, 31, 63, 0.45);
}

.dsc-manga-chapter-block__read {
  flex-shrink: 0;
  font-size: 12px !important;
  padding: 6px 12px !important;
}

.dsc-manga-chapter-block__access {
  margin-top: 6px;
}

.dsc-manga-chapter-block__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 10%);
}

.dsc-manga-chapter-block__badge--premium {
  color: #c8f5d4;
  border-color: rgb(110 200 150 / 35%);
  background: rgb(16 60 40 / 35%);
}

.dsc-manga-chapter-block__badge--read {
  color: #e6d0b8;
  border-color: rgb(255 202 118 / 22%);
  background: rgb(60 40 16 / 28%);
}

.dsc-manga-chapter-block__strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  max-height: min(72vh, 720px);
  overflow-y: auto;
  padding: 4px 2px 6px;
  border-radius: 8px;
  border: 1px solid rgb(74 26 33 / 55%);
  background: rgb(0 0 0 / 22%);
  scrollbar-width: thin;
}

.dsc-manga-chapter-block__strip-imgwrap {
  display: block;
  width: 100%;
  max-width: min(420px, 100%);
  line-height: 0;
  text-decoration: none;
}

.dsc-manga-chapter-block__strip-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  vertical-align: bottom;
}

.dsc-chapter-read-only-banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgb(255 186 114 / 25%);
  background: linear-gradient(180deg, rgb(50 32 22 / 90%), rgb(28 17 14 / 95%));
  font-size: 13px;
  line-height: 1.55;
  color: #eecbb0;
}

.dsc-chapter-read-only-banner__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffb86c;
}

.dsc-chapter-read-only-banner p {
  margin: 0;
}

/* Image fusionnée automatiquement après import ZIP */
.dsc-chapter-fusion-wrap {
  margin: 0 auto 12px;
  max-width: 100%;
  line-height: 0;
}

.dsc-chapter-fusion-wrap .dsc-chapter-fusion-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.dsc-chapter-auto-strip.dsc-chapter-auto-strip--sequence .dsc-chapter-strip-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  vertical-align: bottom;
  object-fit: contain;
}

/* Lecture chapitre : planches accolées sans espace (effet défilement continu) */
.dsc-chapter-reader .dsc-chapter-content,
.dsc-chapter-reader .entry-content.dsc-chapter-content {
  padding-bottom: 6px;
  /* Largeur de lecture confortable sur desktop, centrée */
  --dsc-reader-max-width: 980px;
}

/* Barre lecteur en bas (style Madara) */
.dsc-reader-bottom {
  position: sticky;
  bottom: 10px;
  z-index: 30;
  margin-top: 16px;
}

.dsc-reader-bottom__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 18, 0.88);
  backdrop-filter: blur(8px);
}

.dsc-reader-select select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 17, 26, 0.55);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  min-width: 160px;
}

.dsc-reader-select__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dsc-reader-bottom__nav {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dsc-reader-bottom__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dsc-reader-bottom__btn--ghost {
  background: rgba(16, 17, 26, 0.45);
  color: var(--text);
}

.dsc-reader-bottom__btn--primary {
  background: rgba(255, 31, 63, 0.85);
  border-color: rgba(255, 31, 63, 0.65);
  color: #fff;
}

/* Variante "retour fiche manga" (quand pas de chapitre suivant ou precedent) */
.dsc-reader-bottom__btn--back-to-manga {
  background: linear-gradient(180deg, rgba(60, 22, 36, 0.85), rgba(36, 14, 22, 0.85));
  border-color: rgba(255, 179, 192, 0.35);
  color: #ffe7ec;
}

.dsc-reader-bottom__btn--back-to-manga:hover,
.dsc-reader-bottom__btn--back-to-manga:focus {
  background: linear-gradient(180deg, rgba(80, 30, 50, 0.95), rgba(50, 20, 30, 0.95));
  border-color: rgba(255, 179, 192, 0.55);
}

.dsc-reader-bottom__btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.dsc-reader-bottom__btn.is-pressed {
  transform: scale(0.96);
  filter: brightness(1.1);
  transition: transform 80ms ease, filter 80ms ease;
}

body.using-keyboard .dsc-reader-bottom__btn:focus {
  outline: 2px solid #ffb3c0;
  outline-offset: 2px;
}

/* Auto-hide du menu lecteur au scroll vers le bas.
 * On applique le transform sur l'INNER (et pas sur le parent sticky),
 * sinon position:sticky se casse et la barre ne reapparait jamais.
 */
.dsc-reader-bottom__inner,
.dsc-reader-bottom-actions__inner {
  transition: transform 220ms ease, opacity 220ms ease;
  will-change: transform, opacity;
}

.dsc-reader-bottom.is-hidden .dsc-reader-bottom__inner,
.dsc-reader-bottom-actions.is-hidden .dsc-reader-bottom-actions__inner {
  transform: translateY(180%);
  opacity: 0;
  pointer-events: none;
}

/* Quand le menu est cache, on neutralise aussi la zone du parent
 * pour que les clics passent a travers et ne bloquent pas le contenu. */
.dsc-reader-bottom.is-hidden,
.dsc-reader-bottom-actions.is-hidden {
  pointer-events: none;
}

/* Bouton flottant "remonter en haut" */
.dsc-back-to-top {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 192, 0.45);
  background: linear-gradient(180deg, rgba(255, 31, 63, 0.95), rgba(180, 20, 50, 0.95));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 0 4px rgba(255, 31, 63, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, background 180ms ease;
}

.dsc-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dsc-back-to-top:hover,
.dsc-back-to-top:focus {
  background: linear-gradient(180deg, rgba(255, 60, 90, 1), rgba(200, 30, 60, 1));
  outline: none;
}

.dsc-back-to-top:active {
  transform: translateY(0) scale(0.92);
}

@media (max-width: 720px) {
  .dsc-back-to-top {
    right: 12px;
    bottom: 110px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsc-reader-bottom,
  .dsc-reader-bottom-actions,
  .dsc-back-to-top {
    transition: none;
  }
}

/* Réactions + lien commentaires (sous la barre lecteur) */
.dsc-reader-bottom-actions {
  position: sticky;
  bottom: 0;
  z-index: 29;
  margin-top: 8px;
}

.dsc-reader-bottom-actions__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 18, 0.78);
  backdrop-filter: blur(8px);
}

.dsc-reactions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dsc-reactions__label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  width: 100%;
  margin-bottom: 4px;
}

.dsc-reactions__total {
  font-size: 12px;
  font-weight: 900;
  color: #ffd2da;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 31, 63, 0.25);
  background: rgba(255, 31, 63, 0.12);
  align-self: flex-start;
}

.dsc-reaction-btn {
  border: 1px solid #492028;
  background: linear-gradient(180deg, #180b0e, #12080a);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 10px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 86px;
  min-height: 92px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  position: relative;
  overflow: hidden;
}

.dsc-reaction-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  opacity: 0.95;
}

.dsc-reaction-ico svg {
  width: 32px;
  height: 32px;
}

.dsc-reaction-count {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #b89098;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 1px 9px;
  min-width: 24px;
  text-align: center;
}

@media (max-width: 720px) {
  .dsc-reaction-btn {
    min-width: 72px;
    min-height: 82px;
    padding: 12px 8px 10px;
  }

  .dsc-reaction-ico {
    width: 30px;
    height: 30px;
  }

  .dsc-reaction-ico svg {
    width: 28px;
    height: 28px;
  }
}

.dsc-reaction-count.is-bumped {
  animation: dscCounterBump 220ms ease;
}

.dsc-reaction-btn.is-selected {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.dsc-reaction-btn[data-dsc-react="like"].is-selected { border-color: rgba(99, 102, 241, 0.55); background: rgba(99, 102, 241, 0.14); color: #d9ddff; }
.dsc-reaction-btn[data-dsc-react="love"].is-selected { border-color: rgba(244, 63, 94, 0.55); background: rgba(244, 63, 94, 0.14); color: #ffd2da; }
.dsc-reaction-btn[data-dsc-react="fire"].is-selected { border-color: rgba(245, 158, 11, 0.55); background: rgba(245, 158, 11, 0.14); color: #ffe6b5; }
.dsc-reaction-btn[data-dsc-react="wow"].is-selected { border-color: rgba(34, 211, 238, 0.55); background: rgba(34, 211, 238, 0.14); color: #c7fbff; }
.dsc-reaction-btn[data-dsc-react="laugh"].is-selected { border-color: rgba(34, 197, 94, 0.55); background: rgba(34, 197, 94, 0.14); color: #c8f5d4; }
.dsc-reaction-btn[data-dsc-react="sad"].is-selected { border-color: rgba(148, 163, 184, 0.55); background: rgba(148, 163, 184, 0.14); color: #e7edf7; }

.dsc-reaction-btn.is-selected::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.18), rgba(255,255,255,0) 55%);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}

.dsc-reaction-btn.is-bumped::after {
  animation: dscReactionBurst 360ms ease;
}

.dsc-reaction-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 31, 63, 0.35);
  background: rgba(43, 13, 21, 0.55);
}

.dsc-reactions.is-busy .dsc-reaction-btn {
  opacity: 0.7;
  pointer-events: none;
}

.dsc-reaction-btn.is-bumped {
  animation: dscReactionPop 260ms ease;
}

.dsc-reaction-btn.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

@keyframes dscReactionPop {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes dscReactionBurst {
  0% { opacity: 0; transform: scale(0.7); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes dscCounterBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.dsc-comments-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 31, 63, 0.18);
  border: 1px solid rgba(255, 31, 63, 0.35);
  color: #ffd2da;
}

.dsc-chapter-comments {
  margin-top: 18px;
}

@media (max-width: 520px) {
  .dsc-reader-select select {
    min-width: 140px;
    width: 100%;
  }
  .dsc-reader-bottom__inner {
    gap: 8px;
  }
}

.dsc-chapter-reader #dsc-chapter-reader-content.dsc-width--compact {
  --dsc-reader-max-width: 900px;
}

.dsc-chapter-reader #dsc-chapter-reader-content.dsc-width--large {
  /* Mode "Large": un peu plus large, sans plein écran */
  --dsc-reader-max-width: 1100px;
}

/* Centrage robuste du flux de lecture (Gutenberg peut wrapper dans différents blocs) */
.dsc-chapter-reader #dsc-chapter-reader-content {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  /* Responsive: colle à l'écran sur mobile, plafonné sur desktop */
  padding-left: 12px;
  padding-right: 12px;
  max-width: min(var(--dsc-reader-max-width), calc(100vw - 24px));
}

.dsc-chapter-reader #dsc-chapter-reader-content > * {
  margin-left: auto;
  margin-right: auto;
}

.dsc-chapter-reader #dsc-chapter-reader-content > *:where(p, figure, div, ul, ol) {
  width: 100%;
}

.dsc-chapter-reader .dsc-chapter-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  vertical-align: bottom;
  object-fit: contain;
}

/* Blocs média / image Gutenberg */
.dsc-chapter-reader .dsc-chapter-content figure {
  margin: 0 auto;
  padding: 0;
}

.dsc-chapter-reader .dsc-chapter-content figure.wp-block-image {
  margin-bottom: 0;
}

.dsc-chapter-reader .dsc-chapter-content .wp-block-gallery {
  gap: 0;
  margin: 0;
}

.dsc-chapter-reader .dsc-chapter-content .wp-block-gallery .blocks-gallery-grid {
  gap: 0;
}

/* Paragraphes WordPress : une seule image → pas de marge de ligne qui « coupe » les planches */
.dsc-chapter-reader .dsc-chapter-content p:has(> img:only-child) {
  margin: 0;
  line-height: 0;
}

.dsc-chapter-reader .dsc-chapter-content p:has(> a:only-child > img:only-child) {
  margin: 0;
  line-height: 0;
}

.dsc-chapter-reader .dsc-chapter-content p:has(> picture:only-child) {
  margin: 0;
  line-height: 0;
}

/* Certains contenus arrivent dans <picture> ou <a><img> : on centre aussi ces wrappers */
.dsc-chapter-reader .dsc-chapter-content p:has(> picture:only-child),
.dsc-chapter-reader .dsc-chapter-content p:has(> a:only-child) {
  display: block;
  max-width: min(var(--dsc-reader-max-width), 100%);
  margin-left: auto;
  margin-right: auto;
}

.dsc-chapter-reader .dsc-chapter-content picture,
.dsc-chapter-reader .dsc-chapter-content a:has(> img) {
  display: block;
  width: 100%;
}

/* Mode lecteur (liste / page par page) */
.dsc-reader-toolbar {
  padding: 10px 12px;
  margin-bottom: 12px;
}

.dsc-reader--webtoon img {
  /* garder l'empilement vertical propre sur mobile */
  border-radius: 0;
}

.dsc-reader--webtoon img + img {
  /* espacement webtoon (évite l'effet "collé" de la liste) */
  margin-top: 14px;
}

.dsc-reader--webtoon figure + figure,
.dsc-reader--webtoon p + p {
  margin-top: 14px;
}

.dsc-reader-toolbar__inner {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dsc-reader-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 17, 26, 0.55);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.dsc-reader-btn:hover {
  border-color: rgba(255, 31, 63, 0.35);
  background: rgba(43, 13, 21, 0.55);
  transform: translateY(-1px);
}

.dsc-reader-btn.is-active {
  border-color: rgba(255, 31, 63, 0.55);
  background: linear-gradient(180deg, rgba(255, 31, 63, 0.22), rgba(43, 13, 21, 0.62));
  color: #ffd2da;
}

.dsc-reader-pager {
  padding: 10px 12px;
  margin-bottom: 12px;
}

.dsc-reader-pager__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dsc-reader-pager__counter {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.dsc-reader-pager__nav {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 17, 26, 0.45);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.dsc-reader-pager__nav[disabled],
.dsc-reader-pager__nav[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* En mode pager: cacher toutes les images sauf l'image active */
#dsc-chapter-reader-content.dsc-reader--pager img {
  display: none !important;
}

#dsc-chapter-reader-content.dsc-reader--pager img.is-dsc-reader-visible {
  display: block !important;
  margin: 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: calc(100vh - 320px);
}

/* Légende : garder un peu d’air sous la dernière planche annotée */
.dsc-chapter-reader .dsc-chapter-content figure:has(figcaption) {
  margin-bottom: 0.85rem;
}

.dsc-chapter-reader .dsc-chapter-content figure:has(figcaption) img {
  margin-bottom: 0;
}

/* Texte seul hors images : retrouver une mise en page lisible */
.dsc-chapter-reader .dsc-chapter-content > p:not(:has(img)):not(:has(picture)) {
  line-height: var(--reader-line);
  font-size: var(--reader-font);
  color: var(--reader-text);
}

/* General readable text inside chapter content (not images) */
.dsc-chapter-reader .dsc-chapter-content :where(p, li, blockquote) {
  line-height: var(--reader-line);
  font-size: var(--reader-font);
  color: var(--reader-text);
}

.dsc-chapter-reader .dsc-chapter-content :where(h2, h3, h4) {
  color: var(--text);
  margin-top: 1.1em;
  margin-bottom: 0.6em;
}

.dsc-chapter-upcoming .dsc-upcoming-lead {
  color: #d6c4c4;
  font-size: 15px;
  line-height: 1.5;
  margin: 12px 0 8px;
}

.dsc-chapter-upcoming .dsc-upcoming-date {
  font-size: 18px;
  font-weight: 700;
  color: #ffca76;
  margin: 0 0 16px;
}

.dsc-chapter-upcoming .dsc-upcoming-countdown {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.dsc-chapter-upcoming .dsc-upcoming-countdown__label {
  font-size: 12px;
  color: rgba(183, 187, 200, 0.95);
}

.dsc-chapter-upcoming .dsc-upcoming-countdown__value {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: rgba(245, 245, 250, 0.95);
}

.dsc-chapter-upcoming .dsc-upcoming-actions {
  display: grid;
  gap: 10px;
}

/* -------------------------------------------------------------------------- */
/* Bibliothèque (page-bibliotheque.php)                                       */
/* -------------------------------------------------------------------------- */

.dsc-library-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dsc-library-titlewrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}

.dsc-library-title {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.dsc-library-title span {
  color: #ef4444;
  text-shadow: 0 10px 32px rgba(239, 68, 68, 0.22);
}

.dsc-library-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  color: rgba(229, 231, 235, 0.55);
  padding-left: 32px;
}

.dsc-library-subtitle__faded {
  color: rgba(229, 231, 235, 0.45);
}

.dsc-library-subtitle__strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

@media (max-width: 720px) {
  .dsc-library-head {
    align-items: flex-start;
  }
  .dsc-library-subtitle {
    padding-left: 0;
  }
}

.dsc-library-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 18, 0.55);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.dsc-library-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(229, 231, 235, 0.85);
  border: 1px solid transparent;
  background: rgba(16, 17, 26, 0.25);
  font-weight: 700;
  font-size: 12.5px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.dsc-library-tab small {
  opacity: 0.85;
  font-weight: 800;
}

.dsc-library-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(43, 13, 21, 0.45);
}

.dsc-library-tab.is-active {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.35), rgba(249, 115, 22, 0.22));
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.16);
  color: #fff;
}

.dsc-library-empty {
  margin-top: 110px;
  text-align: center;
  color: rgba(229, 231, 235, 0.72);
}

.dsc-library-ghost {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.14);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.45);
  font-size: 18px;
}

.dsc-library-empty p {
  margin: 0;
  font-size: 14px;
}

.recommendations {
  display: grid;
  /* Toujours 4 mangas par ligne, quel que soit l'ecran. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rec-card {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  border-radius: 9px;
  border: 1px solid #3d1416;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 5%), rgb(0 0 0 / 75%)),
    linear-gradient(125deg, #8f1f2f, #1d1f4f 50%, #251211);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: 180ms ease;
}

.rec-card:hover {
  transform: translateY(-3px);
  border-color: #82273a;
}

/* Image de couverture du manga (couvre toute la carte). */
.rec-card__img,
.rec-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 320ms ease;
}

.rec-card:hover .rec-card__img,
.rec-card:hover .rec-card__cover {
  transform: scale(1.04);
}

/* Voile sombre en bas pour la lisibilite du titre, par-dessus l'image. */
.rec-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.rec-card__title {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 7px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: rgb(0 0 0 / 38%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Petits ecrans : on garde 4 colonnes mais on reduit gap + taille du label. */
@media (max-width: 480px) {
  .recommendations {
    gap: 6px;
  }

  .rec-card__title {
    padding: 5px 4px;
    font-size: 10px;
  }
}

.comments-title {
  text-align: center;
  margin-top: 26px;
}

.chip {
  display: inline-block;
  background: #351018;
  border: 1px solid #772433;
  border-radius: 999px;
  color: #ffccd2;
  padding: 5px 12px;
  font-size: 12px;
  margin-bottom: 8px;
}

.comments-title h2 span {
  color: var(--accent);
}

.comments-title h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2b53, #a11a33);
}

/* Mode "clair" désactivé : on garde le fond sombre + motif identique. */
[data-theme="light"] body {
  background:
    var(--bg-pattern) 0 0 / 56px 56px repeat,
    radial-gradient(circle at 8% 0%, rgba(168, 85, 247, 0.16) 0%, transparent 30%),
    radial-gradient(circle at 98% 6%, rgba(244, 63, 94, 0.12) 0%, transparent 34%),
    radial-gradient(circle at 50% 110%, rgba(34, 211, 238, 0.08) 0%, transparent 42%),
    radial-gradient(circle at center top, rgba(60, 30, 70, 0.30) 0%, var(--bg) 56%);
}

[data-theme="light"] .bg-orb {
  opacity: 0.45;
}

[data-theme="light"] .cover {
  border-color: #e8c4ce;
}

.reactions {
  padding: 16px;
}

.reaction-grid {
  display: grid;
  margin-top: 10px;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 12px;
}

.reaction-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #492028;
  background: linear-gradient(180deg, #180b0e, #12080a);
  border-radius: 14px;
  padding: 16px 8px 14px;
  cursor: pointer;
  color: #cfb6bc;
  font-family: inherit;
  transition: 160ms ease;
  min-height: 110px;
  gap: 8px;
}

.reaction-item:hover {
  border-color: #7f2a39;
  background: linear-gradient(180deg, #1f1014, #170a0e);
  transform: translateY(-1px);
}

.reaction-item:focus-visible {
  outline: 2px solid #ff6e85;
  outline-offset: 2px;
}

.reaction-item.is-selected {
  border-color: #ff3a59;
  background: linear-gradient(180deg, #2a0d15, #1a070c);
  box-shadow: 0 0 0 1px rgba(255, 58, 89, 0.35) inset;
  color: #ffd2da;
}

.reaction-item.is-locked {
  cursor: default;
}

.reaction-grid.is-busy .reaction-item {
  opacity: 0.7;
  pointer-events: none;
}

.reaction-item__emoji {
  display: block;
  font-size: 30px;
  line-height: 1;
  /* On force le rendu emoji color (pas d'override par la police du theme). */
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    "Twemoji Mozilla",
    "EmojiOne Color",
    "Android Emoji",
    sans-serif;
}

.reaction-item__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: inherit;
  letter-spacing: 0.02em;
}

.reaction-item__count {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #b89098;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 22px;
  margin-top: 2px;
}

.reaction-item.is-selected .reaction-item__count {
  background: rgba(255, 58, 89, 0.18);
  color: #ffd2da;
}

.reaction-item.is-bumped {
  animation: dscReactionBump 360ms ease;
}

@keyframes dscReactionBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (max-width: 720px) {
  .reaction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .reaction-item {
    min-height: 100px;
    padding: 12px 6px 10px;
  }

  .reaction-item__emoji {
    font-size: 26px;
  }
}

@media (max-width: 380px) {
  .reaction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.comment-box {
  padding: 16px;
}

textarea {
  margin: 10px 0;
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.remember-me {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bba2a8;
  font-size: 12px;
}

.remember-me input {
  width: auto;
  accent-color: var(--accent);
}

.submit-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .cover {
    min-height: 280px;
  }

  /* .recommendations garde son repeat(4, ...) defini plus haut */

  /* .reaction-grid garde son repeat(6, ...) tant qu'on est >720px,
   * puis bascule en 3 cols via le media query 720px defini plus bas. */
}

@media (max-width: 640px) {
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    flex-direction: column;
  }

  .filters input {
    width: 100%;
  }

  /* .recommendations garde son repeat(4, ...) defini plus haut */

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Lecture hors ligne (premium) */
.dsc-chapter-offline-banner {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(72, 200, 120, 0.35);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(18, 8, 12, 0.92));
}

.dsc-manga-offline-banner {
  /* Fiche hors ligne (page manga) : fond plus doux pour la lecture */
  border-color: rgba(96, 165, 250, 0.28);
  /* Retire les voiles noir/blanc trop contrastés: fond uniforme et lisible */
  background: linear-gradient(180deg, rgba(21, 26, 43, 0.92), rgba(17, 21, 34, 0.92));
}

.dsc-manga-offline-banner .dsc-chapter-offline-banner__title {
  color: rgba(191, 219, 254, 0.95);
}

.dsc-manga-offline-banner .dsc-chapter-offline-banner__text {
  color: rgba(246, 247, 252, 0.90);
}

.dsc-chapter-offline-banner__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #86efac;
}

.dsc-chapter-offline-banner__text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.dsc-chapter-offline-banner__actions {
  margin: 0 0 8px;
}

.dsc-chapter-offline-banner__status {
  margin: 0;
  font-size: 12px;
  color: #c8b8bc;
  min-height: 1.25em;
}

/* Téléchargement premium (liens image, pas de ZIP) */
.dsc-chapter-premium-download-banner {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(18, 8, 12, 0.92));
}

.dsc-chapter-premium-download-banner .dsc-chapter-offline-banner__title {
  color: #93c5fd;
}

.dsc-premium-planches-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.dsc-premium-planche-link {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
}

.dsc-premium-planche-link:hover {
  text-decoration: underline;
}

.dsc-premium-planche-name {
  margin-left: 0.35rem;
  font-size: 12px;
  opacity: 0.85;
}

body.dsc-site .page {
  filter: drop-shadow(0 32px 50px rgba(0, 0, 0, 0.25));
}

body.dsc-site .section-head h2,
body.dsc-site .page .section > h3 {
  font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
  letter-spacing: -0.02em;
}

body.dsc-site .btn-primary,
body.dsc-site .btn.btn-primary {
  background: linear-gradient(125deg, #e11d48, #fb7185);
  box-shadow: 0 14px 36px rgba(225, 29, 72, 0.22);
}

body.dsc-site .btn-ghost:hover {
  border-color: rgba(251, 113, 133, 0.4);
}

body.dsc-site .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  body.dsc-site .grid .card:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dsc-site .grid .card:hover {
    transform: none;
  }
}

/* Page Tendance : 4 onglets, lisible sur mobile */
.bottom-nav.dsc-trend-tabs {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .bottom-nav.dsc-trend-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
