/* Repris à l'identique de l'ancien pages/mods/fiche_mod.php */
.custom-accordion .accordion-item {
  background-color: #1e1e1e; color: #fff; border-radius: 8px; margin-bottom: 10px; overflow: hidden; border: 1px solid #444;
}
.accordion-header { width: 100%; background: none; border: none; color: #fff; text-align: left; padding: 12px 16px; font-size: 16px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.accordion-header .arrow { display: inline-block; transition: transform 0.3s ease; }
.accordion-header.active .arrow { transform: rotate(90deg); }
.accordion-content { display: none; padding: 10px 16px 16px; background-color: #2a2a2a; border-top: 1px solid #444; }
.plateforme-icon { font-size: 1.8rem; vertical-align: middle; }
.rating-star { font-size: 1.4rem; white-space: nowrap; }

/* BEGIN Planet Mods - R1 Community Compatibility */
.pm-compatibility{
  width:min(1180px,calc(100% - 28px));
  margin:30px auto 12px;
}
.pm-compatibility-card{
  border:1px solid rgba(148,163,184,.24);
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(145deg,rgba(18,25,38,.97),rgba(16,20,31,.97));
  box-shadow:0 16px 46px rgba(0,0,0,.17);
}
.pm-compatibility-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid rgba(148,163,184,.16);
}
.pm-compatibility-title{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.pm-compatibility-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:12px;
  background:rgba(59,130,246,.14);
  color:#60a5fa;
  font-size:1.05rem;
}
.pm-compatibility-head h3{
  margin:0 0 4px;
  color:#f8fafc;
  font-size:1.15rem;
}
.pm-compatibility-head p{
  max-width:760px;
  margin:0;
  color:#9ca3af;
  font-size:.82rem;
  line-height:1.55;
}
.pm-compatibility-body{
  display:grid;
  grid-template-columns:minmax(300px,.76fr) minmax(0,1.24fr);
  gap:16px;
  padding:18px 20px 20px;
}
.pm-compatibility-formbox,
.pm-compatibility-results{
  border:1px solid rgba(148,163,184,.14);
  border-radius:13px;
  background:rgba(255,255,255,.025);
}
.pm-compatibility-formbox{
  padding:15px;
}
.pm-compatibility-formbox label{
  display:block;
  margin-bottom:7px;
  color:#cbd5e1;
  font-size:.7rem;
  font-weight:850;
}
.pm-compatibility-version{
  width:100%;
  min-height:42px;
  padding:9px 11px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:9px;
  outline:none;
  background:#0f172a;
  color:#fff;
}
.pm-compatibility-version:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.pm-compatibility-buttons{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:7px;
  margin-top:10px;
}
.pm-compatibility-vote{
  min-height:42px;
  border:1px solid transparent;
  border-radius:9px;
  color:#fff;
  font-size:.68rem;
  font-weight:900;
  cursor:pointer;
}
.pm-compatibility-vote.compatible{
  background:rgba(34,197,94,.16);
  border-color:rgba(34,197,94,.34);
  color:#86efac;
}
.pm-compatibility-vote.issues{
  background:rgba(245,158,11,.14);
  border-color:rgba(245,158,11,.34);
  color:#fcd34d;
}
.pm-compatibility-vote.incompatible{
  background:rgba(239,68,68,.13);
  border-color:rgba(239,68,68,.34);
  color:#fda4af;
}
.pm-compatibility-login,
.pm-compatibility-owner{
  padding:12px 13px;
  border-radius:9px;
  color:#cbd5e1;
  background:rgba(148,163,184,.08);
  font-size:.76rem;
  line-height:1.5;
}
.pm-compatibility-login button{
  margin-top:9px;
}
.pm-compatibility-feedback{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:9px;
  font-size:.74rem;
}
.pm-compatibility-feedback.ok{
  background:rgba(34,197,94,.10);
  color:#86efac;
}
.pm-compatibility-feedback.warn{
  background:rgba(245,158,11,.10);
  color:#fcd34d;
}
.pm-compatibility-feedback.bad{
  background:rgba(239,68,68,.10);
  color:#fda4af;
}
.pm-compatibility-results{
  overflow:hidden;
}
.pm-compatibility-results-title{
  padding:12px 14px;
  border-bottom:1px solid rgba(148,163,184,.12);
  color:#e5e7eb;
  font-size:.72rem;
  font-weight:900;
}
.pm-compatibility-row{
  padding:13px 14px;
  border-bottom:1px solid rgba(148,163,184,.1);
}
.pm-compatibility-row:last-child{
  border-bottom:0;
}
.pm-compatibility-row-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:8px;
}
.pm-compatibility-version-name{
  color:#f8fafc;
  font-weight:900;
}
.pm-compatibility-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:5px;
}
.pm-compatibility-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(148,163,184,.08);
  color:#aeb8c6;
  font-size:.57rem;
  font-weight:800;
}
.pm-compatibility-chip.compatible{color:#86efac;background:rgba(34,197,94,.1)}
.pm-compatibility-chip.issues{color:#fcd34d;background:rgba(245,158,11,.1)}
.pm-compatibility-chip.incompatible{color:#fda4af;background:rgba(239,68,68,.1)}
.pm-compatibility-chip.mixed{color:#c4b5fd;background:rgba(139,92,246,.1)}
.pm-compatibility-score{
  min-width:64px;
  text-align:right;
  color:#dbeafe;
  font-size:.74rem;
  font-weight:950;
}
.pm-compatibility-bars{
  display:grid;
  gap:5px;
}
.pm-compatibility-bar{
  display:grid;
  grid-template-columns:105px minmax(0,1fr) 28px;
  gap:7px;
  align-items:center;
  color:#94a3b8;
  font-size:.58rem;
}
.pm-compatibility-bar progress{
  width:100%;
  height:7px;
  border:0;
  border-radius:999px;
  overflow:hidden;
}
.pm-compatibility-bar.compatible progress{accent-color:#22c55e}
.pm-compatibility-bar.issues progress{accent-color:#f59e0b}
.pm-compatibility-bar.incompatible progress{accent-color:#ef4444}
.pm-compatibility-myvote{
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:#94a3b8;
  font-size:.61rem;
}
.pm-compatibility-remove{
  margin:0;
}
.pm-compatibility-remove button{
  border:0;
  padding:0;
  background:none;
  color:#f87171;
  font-size:.61rem;
  font-weight:800;
  cursor:pointer;
}
.pm-compatibility-empty{
  padding:28px 16px;
  text-align:center;
  color:#94a3b8;
  font-size:.75rem;
}
html[data-theme="light"] .pm-compatibility-card,
body.light-theme .pm-compatibility-card{
  background:#fff;
  border-color:#dbe2ea;
}
html[data-theme="light"] .pm-compatibility-head h3,
html[data-theme="light"] .pm-compatibility-version-name,
body.light-theme .pm-compatibility-head h3,
body.light-theme .pm-compatibility-version-name{
  color:#20242a;
}
html[data-theme="light"] .pm-compatibility-formbox,
html[data-theme="light"] .pm-compatibility-results,
body.light-theme .pm-compatibility-formbox,
body.light-theme .pm-compatibility-results{
  background:#f8fafc;
  border-color:#dfe5ec;
}
html[data-theme="light"] .pm-compatibility-version,
body.light-theme .pm-compatibility-version{
  background:#fff;
  color:#20242a;
  border-color:#d5dce5;
}
@media(max-width:860px){
  .pm-compatibility-body{grid-template-columns:1fr}
}
@media(max-width:560px){
  .pm-compatibility{width:min(100% - 18px,1180px)}
  .pm-compatibility-head,
  .pm-compatibility-body{padding-left:13px;padding-right:13px}
  .pm-compatibility-buttons{grid-template-columns:1fr}
  .pm-compatibility-row-head{display:block}
  .pm-compatibility-score{text-align:left;margin-top:7px}
  .pm-compatibility-bar{grid-template-columns:88px minmax(0,1fr) 24px}
}
/* END Planet Mods - R1 Community Compatibility */
/* ==== Lightbox ==== */
.lightbox {
  /* Au-dessus de l'en-tête (z-index 9998-10080) : sinon les flèches du carrousel des jeux apparaissent sur l'image. */
  position: fixed; inset: 0; background: rgba(0,0,0,0.88);
  display: none; align-items: center; justify-content: center; z-index: 10200;
}
.lightbox.is-open { display: flex; }
.lightbox-content {
  max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); border: 0; color: #fff; font-size: 2rem;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; user-select: none;
  display: grid; place-items: center;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-close {
  top: 20px; right: 20px; transform: none; font-size: 2rem; width: 40px; height: 40px;
}
.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.5); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: .9rem;
}
@media (hover:hover) {
  .lb-btn:hover { background: rgba(0,0,0,.7); }
}
body.no-scroll { overflow: hidden; }

/* ===== Signalement d'un mod ===== */
.pm-report-button {
  border-color: #dc3545;
  color: #ff7b86;
}
.pm-report-button:hover,
.pm-report-button:focus {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}
.pm-report-feedback {
  max-width: 1600px;
  margin: 1rem auto 0;
}
.pm-report-overlay {
  --pm-report-header-height: 0px;
  position: fixed;
  top: var(--pm-report-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  /* Valeur maximale : la fenêtre reste devant tous les éléments du site. */
  z-index: 2147483647;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden;
  background: rgba(5, 8, 12, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pm-report-overlay.is-open { display: flex; }
.pm-report-dialog {
  display: flex;
  flex-direction: column;
  width: min(620px, calc(100vw - 2rem));
  max-height: calc(100dvh - var(--pm-report-header-height) - 24px);
  margin: 0 auto;
  overflow: hidden;
  color: #f5f7fa;
  background: linear-gradient(145deg, #202328, #15171b);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.pm-report-head {
  position: sticky;
  top: 0;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.pm-report-head h3 { margin: 0; font-size: 1.25rem; }
.pm-report-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.09);
  font-size: 1.4rem;
  cursor: pointer;
}
.pm-report-close:hover { background: rgba(220,53,69,.8); }
.pm-report-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.35rem 1.35rem;
  scrollbar-gutter: stable;
}
.pm-report-reasons { display: grid; gap: .65rem; margin: 1rem 0 1.1rem; }
.pm-report-choice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.pm-report-choice:hover {
  border-color: rgba(255,107,120,.7);
  background: rgba(220,53,69,.10);
  transform: translateY(-1px);
}
.pm-report-choice input { margin-top: .2rem; accent-color: #dc3545; }
.pm-report-details {
  width: 100%;
  min-height: 115px;
  resize: vertical;
  color: #f5f7fa;
  background: #111318;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: .8rem;
}
.pm-report-details:focus {
  outline: none;
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,.18);
}
.pm-report-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1rem; }
.pm-report-note { color: #aeb4bd; font-size: .88rem; }
html[data-theme="light"] .pm-report-dialog,
body.light-theme .pm-report-dialog {
  color: #20242a;
  background: #fff;
  border-color: rgba(0,0,0,.12);
}
html[data-theme="light"] .pm-report-choice,
body.light-theme .pm-report-choice {
  background: #f7f8fa;
  border-color: #d9dde3;
}
html[data-theme="light"] .pm-report-details,
body.light-theme .pm-report-details {
  color: #20242a;
  background: #fff;
  border-color: #cfd4dc;
}
@media (max-width: 576px) {
  .pm-report-overlay {
    padding: 8px;
  }
  .pm-report-dialog {
    width: 100%;
    max-height: calc(100dvh - var(--pm-report-header-height) - 16px);
    border-radius: 14px;
  }
  .pm-report-head {
    padding: 1rem;
  }
  .pm-report-body {
    padding: 1rem;
  }
  .pm-report-reasons {
    gap: .5rem;
    margin: .75rem 0 .9rem;
  }
  .pm-report-choice {
    padding: .68rem .75rem;
  }
  .pm-report-details {
    min-height: 90px;
  }
  .pm-report-actions { flex-direction: column-reverse; }
  .pm-report-actions .btn { width: 100%; }
}

/* Taille des gouttières pour laisser respirer les ombres */
:root { --gallery-gutter: 16px; }

/* Colonne sticky + scroll interne, barre masquée, gouttières des 2 côtés */
.gallery-column{
  position: sticky;
  top: 90px;                          /* ajuste à ton header */
  max-height: calc(100vh - 50px);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;

  /* gouttières internes = plus de coupe d'ombre */
  padding: 0 var(--gallery-gutter);
  /* on compense pour que la colonne garde la même largeur visuelle */
  margin: 0 calc(-1 * var(--gallery-gutter));
  width: calc(100% + (2 * var(--gallery-gutter)));

  /* masquer la barre de scroll mais garder le scroll */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge old */
}


.gallery-column::-webkit-scrollbar{ width:0; height:0; }

.pm-mod-video-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.5);
}
.pm-mod-video-card::before {
  display: block;
  padding-top: 56.25%;
  content: '';
}
.pm-mod-video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pm-mod-video-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: .7rem 0 0 .2rem;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
}
.pm-mod-video-label i { color: #ff0033; }
html[data-theme="light"] .pm-mod-video-label,
body.light-theme .pm-mod-video-label { color: #20242a; }


/* Optionnel : léger fondu haut/bas pour indiquer qu’il y a du contenu à scroller */
.gallery-column{
  -webkit-mask-image: linear-gradient(transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}


/* ===== Commentaires ===== */
.pm-comments {
  max-width: 1180px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}
.pm-comments-panel {
  overflow: hidden;
  text-align: left;
  color: #f4f6f8;
  background: linear-gradient(145deg, rgba(30,34,40,.98), rgba(18,20,24,.98));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}
.pm-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.pm-comments-head h3 { margin: 0; font-size: 1.35rem; }
.pm-comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 .55rem;
  margin-left: .35rem;
  border-radius: 999px;
  color: #102317;
  background: #61df91;
  font-size: .82rem;
  font-weight: 800;
}
.pm-comment-sort {
  min-width: 160px;
  color: #eef2f5;
  background: #111419;
  border: 1px solid rgba(255,255,255,.16);
}
.pm-comment-compose {
  padding: 1.25rem 1.4rem;
  text-align: left;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pm-comment-compose label,
.pm-comment-compose .form-label,
.pm-comment-rules,
.pm-comment-actions {
  text-align: left;
}
.pm-comment-compose textarea {
  width: 100%;
  min-height: 105px;
  resize: vertical;
  color: #f5f7fa;
  background: #111419;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: .9rem 1rem;
}
.pm-comment-compose textarea:focus {
  outline: none;
  border-color: #32c875;
  box-shadow: 0 0 0 3px rgba(50,200,117,.16);
}
.pm-comment-rules {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-top: .7rem;
  color: #aeb5bf;
  font-size: .86rem;
}
.pm-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .9rem;
}
.pm-comment-list {
  padding: 0 1.4rem;
  text-align: left;
}
.pm-comment-item {
  display: grid;
  text-align: left;
  grid-template-columns: 48px minmax(0,1fr);
  gap: .9rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.pm-comment-item:last-child { border-bottom: 0; }
.pm-comment-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(97,223,145,.45);
  background: #252a31;
}
.pm-comment-meta {
  display: flex;
  justify-content: flex-start;
  text-align: left;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .35rem;
}
.pm-comment-author { color: #fff; font-weight: 750; }
.pm-comment-role {
  padding: .14rem .45rem;
  border-radius: 999px;
  background: rgba(50,200,117,.14);
  color: #6ce09a;
  font-size: .72rem;
  font-weight: 700;
}
.pm-comment-date { color: #969eaa; font-size: .82rem; }
.pm-comment-content {
  color: #d8dce2;
  text-align: left;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.pm-comments-empty {
  padding: 2.3rem 1.4rem;
  color: #aeb5bf;
  text-align: center;
}
.pm-comment-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 1rem 1.4rem 1.35rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.pm-comment-pagination a,
.pm-comment-pagination span {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 .7rem;
  border-radius: 9px;
  color: #e8ebef;
  background: #171a20;
  border: 1px solid rgba(255,255,255,.11);
  text-decoration: none;
}
.pm-comment-pagination .active {
  color: #102317;
  background: #61df91;
  border-color: #61df91;
  font-weight: 800;
}
html[data-theme="light"] .pm-comments-panel,
body.light-theme .pm-comments-panel {
  color: #20242a;
  background: #fff;
  border-color: #dce1e7;
}
html[data-theme="light"] .pm-comment-sort,
html[data-theme="light"] .pm-comment-compose textarea,
body.light-theme .pm-comment-sort,
body.light-theme .pm-comment-compose textarea {
  color: #20242a;
  background: #fff;
  border-color: #ccd3dc;
}
html[data-theme="light"] .pm-comment-author,
body.light-theme .pm-comment-author { color: #20242a; }
html[data-theme="light"] .pm-comment-content,
body.light-theme .pm-comment-content { color: #3e4650; }


/* ===== R16 : succession officielle ===== */
.pm-successor-public{
  display:flex;
  align-items:flex-start;
  gap:.75rem;
  width:100%;
  margin:0 0 16px;
  padding:.85rem .9rem;
  color:inherit;
  text-decoration:none;
  text-align:left;
  border:1px solid rgba(167,139,250,.38);
  border-radius:12px;
  background:rgba(139,92,246,.08);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.pm-successor-public:hover,
.pm-successor-public:focus{
  color:inherit;
  transform:translateY(-1px);
  border-color:rgba(167,139,250,.72);
  background:rgba(139,92,246,.13);
}
.pm-successor-public-icon{
  display:grid;
  place-items:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  color:#c4b5fd;
  border-radius:10px;
  background:rgba(139,92,246,.14);
}
.pm-successor-public-copy{display:grid;min-width:0;gap:.12rem}
.pm-successor-public-title{color:#b6a7e9;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.pm-successor-public-name{color:#fff;font-size:.94rem;font-weight:850;overflow-wrap:anywhere}
.pm-successor-public-note{color:#9da5b1;font-size:.7rem;line-height:1.35}
html[data-theme="light"] .pm-successor-public,
body.light-theme .pm-successor-public{background:#f7f4ff;border-color:#d8cff7}
html[data-theme="light"] .pm-successor-public-name,
body.light-theme .pm-successor-public-name{color:#20242a}

/* ===== R15 : statut de maintenance ===== */
.pm-maintenance-public{
  display:flex;
  align-items:flex-start;
  gap:.75rem;
  width:100%;
  margin:0 0 16px;
  padding:.8rem .9rem;
  text-align:left;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(255,255,255,.04);
}
.pm-maintenance-public-icon{
  display:grid;
  place-items:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  border-radius:10px;
  background:rgba(255,255,255,.07);
}
.pm-maintenance-public-copy{display:grid;min-width:0;gap:.12rem}
.pm-maintenance-public-title{
  color:#9ea6b1;
  font-size:.72rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.pm-maintenance-public-status{color:#fff;font-size:.94rem;font-weight:800}
.pm-maintenance-public-date{color:#959da8;font-size:.72rem}
.pm-maintenance-public.is-active{border-color:rgba(52,211,153,.35)}
.pm-maintenance-public.is-active .pm-maintenance-public-icon{color:#61df91;background:rgba(52,211,153,.12)}
.pm-maintenance-public.is-occasional{border-color:rgba(250,204,21,.35)}
.pm-maintenance-public.is-occasional .pm-maintenance-public-icon{color:#facc15;background:rgba(250,204,21,.10)}
.pm-maintenance-public.is-finished{border-color:rgba(96,165,250,.35)}
.pm-maintenance-public.is-finished .pm-maintenance-public-icon{color:#60a5fa;background:rgba(96,165,250,.10)}
.pm-maintenance-public.is-abandoned{border-color:rgba(248,113,113,.35)}
.pm-maintenance-public.is-abandoned .pm-maintenance-public-icon{color:#f87171;background:rgba(248,113,113,.10)}
html[data-theme="light"] .pm-maintenance-public,
body.light-theme .pm-maintenance-public{background:#f7f8fa;border-color:#d8dde4}
html[data-theme="light"] .pm-maintenance-public-status,
body.light-theme .pm-maintenance-public-status{color:#20242a}

/* ===== Team associée au mod ===== */
.pm-mod-team-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  margin: .25rem 0 1rem;
  padding: .75rem .85rem;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.pm-mod-team-card.is-link:hover,
.pm-mod-team-card.is-link:focus {
  color: inherit;
  background: rgba(52,211,153,.08);
  border-color: rgba(52,211,153,.55);
  transform: translateY(-1px);
}
.pm-mod-team-card.is-private {
  opacity: .7;
  cursor: default;
}
.pm-mod-team-logo {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
}
.pm-mod-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pm-mod-team-logo span {
  font-size: 1.15rem;
  font-weight: 900;
}
.pm-mod-team-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 1px;
}
.pm-mod-team-copy small {
  color: #aeb5bf;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pm-mod-team-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-mod-team-uploader {
  display: block;
  margin-top: .22rem;
  color: #929aa6;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}
.pm-mod-team-uploader-name {
  color: inherit;
  font-weight: 750;
}
.pm-mod-team-arrow {
  flex: 0 0 auto;
  color: #61df91;
  font-size: .8rem;
}
.pm-mod-author-card .pm-mod-team-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.pm-mod-user-link {
  color: inherit;
  font-weight: 750;
  text-decoration: none;
}
.pm-mod-user-link:hover,
.pm-mod-user-link:focus {
  color: #61df91;
  text-decoration: underline;
}

html[data-theme="light"] .pm-mod-team-card,
body.light-theme .pm-mod-team-card {
  background: #f6f8fa;
  border-color: #d8dde4;
}
html[data-theme="light"] .pm-mod-team-copy strong,
body.light-theme .pm-mod-team-copy strong {
  color: #20242a;
}
html[data-theme="light"] .pm-mod-team-uploader,
body.light-theme .pm-mod-team-uploader {
  color: #6b7280;
}

@media (max-width: 576px) {
  .pm-comments-head { align-items: stretch; flex-direction: column; }
  .pm-comment-sort { width: 100%; }
  .pm-comment-compose, .pm-comment-list { padding-left: 1rem; padding-right: 1rem; }
  .pm-comment-actions { align-items: stretch; flex-direction: column; }
  .pm-comment-actions .btn { width: 100%; }
  .pm-comment-item { grid-template-columns: 40px minmax(0,1fr); }
  .pm-comment-avatar { width: 40px; height: 40px; }
}


/* ===== Roadmap publique du mod / WIP ===== */
.pm-roadmap{
  margin-top:24px;
  padding:18px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.025);
}
.pm-roadmap-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.pm-roadmap-head h4{margin:0 0 4px}
.pm-roadmap-head p{margin:0;color:#9da6af;font-size:.78rem}
.pm-roadmap-overall{
  min-width:170px;
  text-align:right;
}
.pm-roadmap-overall strong{
  display:block;
  font-size:1.35rem;
}
.pm-roadmap-overall small{color:#9da6af}
.pm-roadmap-overall-track,
.pm-roadmap-item-track{
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.09);
}
.pm-roadmap-overall-track{
  height:8px;
  margin-top:6px;
}
.pm-roadmap-overall-bar,
.pm-roadmap-item-bar{
  height:100%;
  background:linear-gradient(90deg,#3b82f6,#22c55e);
}
.pm-roadmap-list{
  position:relative;
  display:grid;
  gap:10px;
}
.pm-roadmap-item{
  position:relative;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:11px;
  background:rgba(0,0,0,.12);
}
.pm-roadmap-item.is-private{
  border-style:dashed;
  opacity:.86;
}
.pm-roadmap-item-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.pm-roadmap-item-title{
  display:flex;
  align-items:center;
  gap:7px;
  font-weight:850;
  line-height:1.3;
}
.pm-roadmap-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
  padding:5px 8px;
  border-radius:999px;
  font-size:.62rem;
  font-weight:900;
}
.pm-roadmap-status.planned{background:rgba(148,163,184,.10);color:#cbd5e1}
.pm-roadmap-status.progress{background:rgba(59,130,246,.11);color:#93c5fd}
.pm-roadmap-status.testing{background:rgba(168,85,247,.12);color:#d8b4fe}
.pm-roadmap-status.completed{background:rgba(34,197,94,.11);color:#86efac}
.pm-roadmap-status.paused{background:rgba(245,158,11,.11);color:#fcd34d}
.pm-roadmap-note{
  margin-top:7px;
  color:#b7bec7;
  font-size:.76rem;
  line-height:1.5;
  white-space:pre-line;
}
.pm-roadmap-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  margin-top:9px;
  color:#929ca7;
  font-size:.66rem;
}
.pm-roadmap-item-progress{
  margin-top:9px;
}
.pm-roadmap-item-progress-copy{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-bottom:4px;
  color:#aab3bc;
  font-size:.64rem;
}
.pm-roadmap-item-track{height:6px}
.pm-roadmap-private{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#fcd34d;
}
.pm-roadmap-flash{
  margin-bottom:10px;
  padding:9px 11px;
  border-radius:9px;
  font-size:.73rem;
}
.pm-roadmap-flash.success{
  border:1px solid rgba(34,197,94,.22);
  background:rgba(34,197,94,.07);
  color:#86efac;
}
.pm-roadmap-flash.error{
  border:1px solid rgba(239,68,68,.22);
  background:rgba(239,68,68,.07);
  color:#fda4af;
}
.pm-roadmap-manager{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}
.pm-roadmap-manager summary{
  cursor:pointer;
  font-weight:850;
}
.pm-roadmap-form-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px 120px 160px;
  gap:8px;
  margin-top:10px;
}
.pm-roadmap-field label{
  display:block;
  margin-bottom:4px;
  color:#9da6af;
  font-size:.62rem;
  font-weight:850;
  text-transform:uppercase;
}
.pm-roadmap-field input,
.pm-roadmap-field select,
.pm-roadmap-field textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:#17191c;
  color:#fff;
  padding:8px 9px;
}
.pm-roadmap-field textarea{
  min-height:80px;
  resize:vertical;
}
.pm-roadmap-wide{grid-column:1/-1}
.pm-roadmap-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}
.pm-roadmap-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:7px;
  background:#25282c;
  color:#fff;
  font:inherit;
  font-size:.67rem;
  font-weight:850;
  cursor:pointer;
}
.pm-roadmap-btn.primary{
  border-color:#2563eb;
  background:#2563eb;
}
.pm-roadmap-btn.danger{
  border-color:rgba(239,68,68,.35);
  background:rgba(239,68,68,.08);
  color:#fda4af;
}
.pm-roadmap-edit{
  margin-top:9px;
}
.pm-roadmap-edit summary{
  color:#a8b2bd;
  font-size:.7rem;
}
.pm-roadmap-empty{
  padding:18px;
  border:1px dashed rgba(255,255,255,.10);
  border-radius:10px;
  text-align:center;
  color:#929ca7;
  font-size:.76rem;
}
html[data-theme="light"] .pm-roadmap,
body.light-theme .pm-roadmap{
  border-color:#d5d9df;
  background:#fff;
}
html[data-theme="light"] .pm-roadmap-item,
body.light-theme .pm-roadmap-item{
  border-color:#dfe3e8;
  background:#f8f9fb;
}
html[data-theme="light"] .pm-roadmap-field input,
html[data-theme="light"] .pm-roadmap-field select,
html[data-theme="light"] .pm-roadmap-field textarea,
body.light-theme .pm-roadmap-field input,
body.light-theme .pm-roadmap-field select,
body.light-theme .pm-roadmap-field textarea{
  border-color:#d7dce2;
  background:#fff;
  color:#15171a;
}
@media(max-width:820px){
  .pm-roadmap-head{display:block}
  .pm-roadmap-overall{margin-top:10px;text-align:left}
  .pm-roadmap-form-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:540px){
  .pm-roadmap-form-grid{grid-template-columns:1fr}
  .pm-roadmap-wide{grid-column:auto}
  .pm-roadmap-item-top{display:block}
  .pm-roadmap-status{margin-top:7px}
}

.pm-mod-collection-box{margin-bottom:1rem;padding:10px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(255,255,255,.025);text-align:left}.pm-mod-collection-box label{display:block;margin-bottom:6px;color:#aab2bc;font-size:.68rem;font-weight:850;text-transform:uppercase}.pm-mod-collection-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.pm-mod-collection-row select{min-width:0;padding:7px 8px;border:1px solid rgba(255,255,255,.13);border-radius:7px;background:#17191c;color:#fff}.pm-mod-collection-help{margin-top:6px;color:#929ca7;font-size:.64rem;line-height:1.4}.pm-mod-collection-flash{margin-bottom:10px;padding:8px 9px;border-radius:8px;font-size:.68rem}.pm-mod-collection-flash.success{border:1px solid rgba(34,197,94,.22);background:rgba(34,197,94,.07);color:#86efac}.pm-mod-collection-flash.error{border:1px solid rgba(239,68,68,.22);background:rgba(239,68,68,.07);color:#fda4af}

/* ===== Partage du mod ===== */
.pm-mod-share-button{
  border-color:rgba(139,92,246,.6);
  color:#c4b5fd;
}
.pm-mod-share-button:hover,
.pm-mod-share-button:focus{
  color:#fff;
  background:#6d4bd6;
  border-color:#6d4bd6;
}
body.pm-mod-share-open{overflow:hidden}
.pm-mod-share-copy-fallback{position:fixed;left:-9999px;top:0;opacity:0}
.pm-mod-share-overlay{
  position:fixed;
  inset:0;
  z-index:2147483647;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(5,8,12,.84);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.pm-mod-share-overlay.is-open{display:flex}
.pm-mod-share-dialog{
  width:min(560px,calc(100vw - 28px));
  max-height:calc(100dvh - 28px);
  overflow:auto;
  color:#f5f7fa;
  background:linear-gradient(145deg,#202328,#15171b);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.55);
}
.pm-mod-share-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px 19px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.pm-mod-share-head h3{margin:0 0 4px;font-size:1.2rem}
.pm-mod-share-head p{margin:0;color:#9da6b2;font-size:.82rem}
.pm-mod-share-close{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}
.pm-mod-share-close:hover{background:rgba(255,255,255,.14)}
.pm-mod-share-body{padding:18px 19px 20px}
.pm-mod-share-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.pm-mod-share-action{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:11px;
  background:rgba(255,255,255,.045);
  color:#f5f7fa;
  font:inherit;
  font-size:.82rem;
  font-weight:800;
  text-align:left;
  cursor:pointer;
  text-decoration:none;
}
.pm-mod-share-action:hover,
.pm-mod-share-action:focus{
  color:#fff;
  border-color:rgba(139,92,246,.7);
  background:rgba(139,92,246,.13);
}
.pm-mod-share-action i{
  width:22px;
  text-align:center;
  font-size:1.08rem;
}
.pm-mod-share-team{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.09);
}
.pm-mod-share-team strong{display:block;margin-bottom:9px;font-size:.86rem}
.pm-mod-share-team-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.pm-mod-share-team select{
  min-width:0;
  min-height:43px;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:9px;
  background:#111419;
  color:#fff;
}
.pm-mod-share-team button{
  min-height:43px;
  border:0;
  border-radius:9px;
  padding:9px 12px;
  background:#6d4bd6;
  color:#fff;
  font-weight:850;
  cursor:pointer;
}
.pm-mod-share-team button:disabled{opacity:.55;cursor:not-allowed}
.pm-mod-share-status{
  min-height:20px;
  margin-top:10px;
  color:#aeb5bf;
  font-size:.76rem;
}
.pm-mod-share-status.is-success{color:#86efac}
.pm-mod-share-status.is-error{color:#fda4af}
html[data-theme="light"] .pm-mod-share-dialog,
body.light-theme .pm-mod-share-dialog{
  color:#20242a;
  background:#fff;
  border-color:#dce1e7;
}
html[data-theme="light"] .pm-mod-share-action,
body.light-theme .pm-mod-share-action{
  color:#20242a;
  background:#f7f8fa;
  border-color:#d9dde3;
}
html[data-theme="light"] .pm-mod-share-team select,
body.light-theme .pm-mod-share-team select{
  color:#20242a;
  background:#fff;
  border-color:#cfd4dc;
}
@media(max-width:520px){
  .pm-mod-share-actions{grid-template-columns:1fr}
  .pm-mod-share-team-row{grid-template-columns:1fr}
  .pm-mod-share-team button{width:100%}
}

.pm-r8-personal-compatibility{
          margin-top:16px;
          padding:14px;
          border:1px solid rgba(99,102,241,.22);
          border-radius:14px;
          background:linear-gradient(145deg,rgba(99,102,241,.075),rgba(15,23,42,.10));
        }
        .pm-r8-personal-head{
          display:flex;
          align-items:center;
          justify-content:space-between;
          gap:9px;
          margin-bottom:10px;
        }
        .pm-r8-personal-title{
          display:flex;
          align-items:center;
          gap:8px;
          margin:0;
          color:#ebe9ff;
          font-size:.86rem;
          font-weight:950;
        }
        .pm-r8-personal-title i{color:#a5b4fc}
        .pm-r8-personal-manage{
          color:#a5b4fc!important;
          font-size:.62rem;
          font-weight:850;
          text-decoration:none!important;
        }
        .pm-r8-personal-list{
          display:grid;
          gap:7px;
        }
        .pm-r8-personal-row{
          display:grid;
          grid-template-columns:minmax(0,1fr) auto;
          align-items:center;
          gap:8px;
          padding:8px 9px;
          border:1px solid rgba(255,255,255,.075);
          border-radius:9px;
          background:rgba(0,0,0,.08);
        }
        .pm-r8-personal-version{
          min-width:0;
        }
        .pm-r8-personal-version strong{
          display:block;
          color:#f0f2f5;
          font-size:.73rem;
        }
        .pm-r8-personal-version small{
          display:block;
          margin-top:2px;
          color:#838d99;
          font-size:.58rem;
          line-height:1.3;
        }
        .pm-r8-personal-state{
          display:inline-flex;
          align-items:center;
          gap:5px;
          padding:5px 7px;
          border-radius:999px;
          font-size:.58rem;
          font-weight:950;
          white-space:nowrap;
        }
        .pm-r8-personal-state.compatible{
          color:#baf5cf;
          background:rgba(34,197,94,.13);
        }
        .pm-r8-personal-state.issues{
          color:#fde4a4;
          background:rgba(245,158,11,.13);
        }
        .pm-r8-personal-state.incompatible{
          color:#fecaca;
          background:rgba(239,68,68,.14);
        }
        .pm-r8-personal-state.mixed{
          color:#ddd6fe;
          background:rgba(139,92,246,.14);
        }
        .pm-r8-personal-state.unknown{
          color:#cbd5e1;
          background:rgba(148,163,184,.12);
        }
        .pm-r8-personal-prompt{
          color:#9ca6b2;
          font-size:.67rem;
          line-height:1.5;
        }
        .pm-r8-personal-prompt a{
          color:#a5b4fc!important;
          font-weight:850;
          text-decoration:none!important;
        }
        html[data-theme="light"] .pm-r8-personal-compatibility,
        body.light-theme .pm-r8-personal-compatibility{
          background:#fafaff;
          border-color:#d9dafd;
        }
        html[data-theme="light"] .pm-r8-personal-title,
        html[data-theme="light"] .pm-r8-personal-version strong,
        body.light-theme .pm-r8-personal-title,
        body.light-theme .pm-r8-personal-version strong{
          color:#22252b;
        }
        @media(max-width:520px){
          .pm-r8-personal-row{
            grid-template-columns:1fr;
            align-items:flex-start;
          }
          .pm-r8-personal-state{
            justify-self:start;
          }
        }

/*
 * Roadmap + Compatibilité communautaire dans la colonne droite.
 */
.pm-mod-right-widgets{
  display:grid;
  gap:16px;
  margin-top:16px;
  margin-bottom:16px;
}

/* Roadmap */
.pm-mod-right-widgets .pm-roadmap{
  width:100%;
  margin:0;
  padding:14px;
}
.pm-mod-right-widgets .pm-roadmap-head{
  flex-direction:column;
  gap:10px;
}
.pm-mod-right-widgets .pm-roadmap-overall{
  width:100%;
  min-width:0;
  text-align:left;
}
.pm-mod-right-widgets .pm-roadmap-item-top{
  flex-direction:column;
  gap:7px;
}
.pm-mod-right-widgets .pm-roadmap-status{
  align-self:flex-start;
}
.pm-mod-right-widgets .pm-roadmap-form-grid{
  grid-template-columns:1fr;
}
.pm-mod-right-widgets .pm-roadmap-wide{
  grid-column:auto;
}

/* Compatibilité communautaire */
.pm-mod-right-widgets .pm-compatibility{
  width:100%;
  margin:0;
}
.pm-mod-right-widgets .pm-compatibility-card{
  border-radius:14px;
}
.pm-mod-right-widgets .pm-compatibility-head{
  padding:14px;
}
.pm-mod-right-widgets .pm-compatibility-title{
  gap:9px;
}
.pm-mod-right-widgets .pm-compatibility-icon{
  width:36px;
  height:36px;
  flex-basis:36px;
}
.pm-mod-right-widgets .pm-compatibility-head h3{
  font-size:.98rem;
}
.pm-mod-right-widgets .pm-compatibility-head p{
  font-size:.72rem;
}
.pm-mod-right-widgets .pm-compatibility-body{
  grid-template-columns:1fr;
  gap:10px;
  padding:12px 13px 14px;
}
.pm-mod-right-widgets .pm-compatibility-buttons{
  grid-template-columns:1fr;
}
.pm-mod-right-widgets .pm-compatibility-row-head{
  display:block;
}
.pm-mod-right-widgets .pm-compatibility-score{
  margin-top:8px;
  text-align:left;
}
.pm-mod-right-widgets .pm-compatibility-bar{
  grid-template-columns:88px minmax(0,1fr) 24px;
}
.pm-mod-right-widgets .pm-compatibility-myvote{
  align-items:flex-start;
  flex-direction:column;
}

@media(max-width:991.98px){
  /*
   * Lorsque Bootstrap empile les colonnes, les encadrés restent simplement
   * placés juste avant les versions dans le flux.
   */
  .pm-mod-right-widgets{
    margin-top:18px;
  }
}

.pm-right-widget-collapse{
  width:100%;
  margin:0;
  border:1px solid rgba(148,163,184,.28);
  border-radius:10px;
  overflow:hidden;
  background:rgba(19,20,22,.94);
}

.pm-right-widget-collapse + .pm-right-widget-collapse{
  margin-top:10px;
}

.pm-right-widget-collapse > summary{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:11px 14px;
  cursor:pointer;
  list-style:none;
  color:#f3f4f6;
  font-size:.93rem;
  font-weight:900;
  user-select:none;
}

.pm-right-widget-collapse > summary::-webkit-details-marker{
  display:none;
}

.pm-right-widget-collapse > summary::before{
  content:"▶";
  display:inline-block;
  flex:0 0 auto;
  font-size:.78rem;
  transition:transform .16s ease;
}

.pm-right-widget-collapse[open] > summary::before{
  transform:rotate(90deg);
}

.pm-right-widget-collapse > summary .pm-right-widget-summary-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#f3f4f6;
}

.pm-right-widget-collapse > .pm-right-widget-collapse-content{
  padding:0 10px 10px;
  border-top:1px solid rgba(148,163,184,.14);
}

.pm-right-widget-collapse .pm-roadmap,
.pm-right-widget-collapse .pm-compatibility{
  margin-top:10px;
  margin-bottom:0;
}

html[data-theme="light"] .pm-right-widget-collapse,
body.light-theme .pm-right-widget-collapse{
  background:#fff;
  border-color:#d7dee7;
}

html[data-theme="light"] .pm-right-widget-collapse > summary,
body.light-theme .pm-right-widget-collapse > summary{
  color:#20242a;
}

@media(max-width:560px){
  .pm-right-widget-collapse > summary{
    min-height:46px;
    padding:10px 12px;
    font-size:.88rem;
  }

  .pm-right-widget-collapse > .pm-right-widget-collapse-content{
    padding:0 7px 8px;
  }
}

.pm-mod-bug-card{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 10px;padding:12px 13px;border:1px solid rgba(148,163,184,.28);border-radius:10px;background:rgba(19,20,22,.94);color:#f3f4f6!important;text-decoration:none!important}
.pm-mod-bug-card:hover{border-color:rgba(96,165,250,.6);background:rgba(30,41,59,.96)}
.pm-mod-bug-card-icon{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border-radius:9px;background:rgba(239,68,68,.12);color:#f87171}
.pm-mod-bug-card-copy{display:grid;min-width:0;gap:2px;flex:1}
.pm-mod-bug-card-copy strong{font-size:.9rem}
.pm-mod-bug-card-copy small{color:#9ca3af;font-size:.64rem}
.pm-mod-bug-card-count{display:grid;place-items:center;min-width:29px;height:29px;padding:0 8px;border-radius:999px;background:rgba(239,68,68,.13);color:#fda4af;font-size:.7rem;font-weight:950}
html[data-theme="light"] .pm-mod-bug-card,body.light-theme .pm-mod-bug-card{background:#fff;border-color:#d7dee7;color:#20242a!important}

/*
     * R19 V1.1 :
     * ne pas utiliser .container ici.
     * Planet Mods redéfinit globalement .container en display:flex,
     * ce qui cassait complètement la disposition du bloc R19.
     */
    .pm-contextual-suggestions {
      display: block !important;
      width: min(calc(100% - 32px), 1380px);
      max-width: 1380px;
      margin: 30px auto 34px;
      padding: 0;
    }

    .pm-contextual-heading {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      margin: 0 0 26px;
    }

    .pm-contextual-subtitle {
      width: 100%;
      max-width: 760px;
      color: #9ea6b1;
      font-size: .88rem;
      line-height: 1.5;
    }

    .pm-contextual-line {
      width: 132px;
      height: 4px;
      border-radius: 999px;
      background: linear-gradient(90deg, #6d5efc, #00c4ff, #6d5efc);
      background-size: 200% auto;
      animation: pmContextualGradient 3s linear infinite;
    }

    @keyframes pmContextualGradient {
      0% { background-position: 0% center; }
      100% { background-position: 200% center; }
    }

    /*
     * Grille indépendante de Bootstrap.
     * Cela évite la règle .row > * { width:100% } qui empilait les
     * .masonry-item les uns sous les autres.
     */
    .pm-contextual-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      align-items: start;
      justify-items: center;
      gap: 30px 24px;
      width: 100%;
      margin: 0;
      padding: 0;
    }

    .pm-contextual-slot {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      width: 100%;
      min-width: 0;
    }

    .pm-contextual-item {
      position: relative;
      width: min(100%, 330px) !important;
      max-width: 330px !important;
      min-width: 0;
      margin: 0 auto;
      --rotate: 0deg !important;
    }

    /*
     * card_home.php fixe .small-card à max-width:320px.
     * On centre explicitement la carte dans son item.
     */
    .pm-contextual-item > .basic-card,
    .pm-contextual-item > .mod-card,
    .pm-contextual-item > .small-card {
      margin-right: auto;
      margin-left: auto;
      transform: rotate(0deg) !important;
    }

    .pm-contextual-privacy {
      display: block;
      width: 100%;
      margin-top: 22px;
      color: #87909d;
      font-size: .72rem;
      line-height: 1.45;
    }


    @media (max-width: 1180px) {
      .pm-contextual-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 900px) {
      .pm-contextual-suggestions {
        width: min(calc(100% - 24px), 760px);
      }

      .pm-contextual-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
      }
    }

    @media (max-width: 620px) {
      .pm-contextual-suggestions {
        width: min(calc(100% - 20px), 390px);
        margin-top: 24px;
      }

      .pm-contextual-heading {
        margin-bottom: 20px;
      }

      .pm-contextual-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
      }

      .pm-contextual-subtitle {
        font-size: .8rem;
      }


      .pm-contextual-privacy {
        margin-top: 18px;
      }
    }

/* Tablette / mobile (une seule colonne) : la galerie devient une bande horizontale au lieu d'une boîte
   à défilement vertical imbriqué de toute la hauteur de l'écran, qui repoussait les infos du mod hors de vue. */
@media (max-width: 991.98px) {
  .gallery-column {
    position: static;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-mask-image: none;
            mask-image: none;
    scroll-snap-type: x mandatory;
    padding-bottom: .75rem;
  }
  .gallery-column .masonry-gallery {
    display: flex;
    gap: 12px;
    columns: auto;
    column-count: auto;
  }
  .gallery-column .masonry-item2 {
    flex: 0 0 82%;
    margin: 0;
    scroll-snap-align: center;
    transform: none;
  }
  .gallery-column .mod-image { width: 100%; height: 220px; object-fit: cover; }
}
