/* V327 — Hub communautaire : recherche, commentaires, tier list, stats, notifications, admin */
.mhurHubButtons{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 18px}
.mhurHubButtons button,.mhurHubBtn{border:3px solid #000;border-radius:11px;padding:9px 13px;background:#17253c;color:#fff;font-weight:1000;box-shadow:0 3px 0 #000}
.mhurHubButtons button:hover,.mhurHubBtn:hover{outline:3px solid #19e6ff}.mhurHubButtons .primary{background:#ffe100;color:#000}
.mhurHubOverlay{position:fixed;inset:0;z-index:12000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.88)}.mhurHubOverlay.open{display:flex}
.mhurHubPanel{position:relative;width:min(1200px,97vw);max-height:94vh;overflow:auto;border:5px solid #000;border-radius:18px;background:#0e1725;color:#fff;box-shadow:0 0 0 3px #405d84}
.mhurHubClose{position:sticky;float:right;top:10px;right:10px;z-index:5;width:45px;height:45px;border:4px solid #000;border-radius:50%;background:#e84f48;color:#fff;font-size:25px;font-weight:1000}
.mhurHubHead{padding:20px 70px 16px 20px;background:linear-gradient(90deg,#11223a,#1c4774)}.mhurHubHead h2{margin:0;font-size:32px}.mhurHubHead p{margin:5px 0 0;color:#cbdaf0;font-weight:800}
.mhurHubBody{padding:18px}.mhurHubInput{width:100%;padding:12px 14px;border:2px solid #45658f;border-radius:10px;background:#07101c;color:#fff;font-size:17px}
.mhurSearchResults{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:14px}.mhurSearchCard{padding:13px;border:3px solid #000;border-radius:12px;background:#17253c;color:#fff;text-align:left}.mhurSearchCard b,.mhurSearchCard small{display:block}.mhurSearchCard small{margin-top:5px;color:#a9bdd9}
.mhurCommentBox{margin:18px;padding:15px;border:4px solid #000;border-radius:13px;background:#111b2b}.mhurCommentBox h3{margin:0 0 11px;color:#ffe100}.mhurCommentComposer{display:grid;grid-template-columns:1fr auto;gap:9px}.mhurCommentComposer textarea{min-height:70px;resize:vertical}.mhurCommentComposer button{padding:10px 16px;border:3px solid #000;border-radius:10px;background:#ffe100;color:#000;font-weight:1000}.mhurCommentList{display:flex;flex-direction:column;gap:9px;margin-top:12px}.mhurComment{padding:10px;border:2px solid #334b70;border-radius:10px;background:#0b1421}.mhurCommentHead{display:flex;align-items:center;gap:8px}.mhurCommentAvatar{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#263b5b;display:grid;place-items:center;font-weight:1000}.mhurCommentHead small{margin-left:auto;color:#9fb0c7}.mhurComment p{margin:7px 0 0;white-space:pre-wrap}.mhurCommentDelete{margin-left:6px;background:#8e2430;color:#fff;border-radius:6px;padding:3px 6px;font-size:10px;font-weight:900}
.mhurTierControls{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px}.mhurTierControls select{padding:9px;border-radius:9px;background:#111d2e;color:#fff;border:2px solid #405d84}.mhurTierList{display:flex;flex-direction:column;gap:8px}.mhurTierRow{display:grid;grid-template-columns:70px 1fr;border:3px solid #000;border-radius:10px;overflow:hidden;min-height:82px}.mhurTierLabel{display:grid;place-items:center;font-size:32px;font-weight:1000;color:#000}.mhurTierLabel.S{background:#ff6b6b}.mhurTierLabel.A{background:#ffad66}.mhurTierLabel.B{background:#ffe066}.mhurTierLabel.C{background:#a9e36f}.mhurTierLabel.D{background:#70c8e8}.mhurTierItems{display:flex;gap:8px;flex-wrap:wrap;padding:8px;background:#1a2534}.mhurTierItem{width:74px;padding:3px;border:2px solid #000;border-radius:8px;background:#0b1421;color:#fff}.mhurTierItem img{width:100%;height:58px;object-fit:contain;background:#cfd6d4;border-radius:5px}.mhurTierItem small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.mhurTierVote{display:flex;gap:3px;margin-top:3px}.mhurTierVote button{flex:1;padding:2px;background:#273b58;color:#fff;border-radius:4px;font-size:9px;font-weight:900}
.mhurStatsGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.mhurStatCard{padding:16px;border:3px solid #000;border-radius:12px;background:linear-gradient(145deg,#172b47,#0a111d);text-align:center}.mhurStatCard b{display:block;font-size:31px;color:#ffe100}.mhurStatCard span{font-weight:900}.mhurStatsTable{width:100%;border-collapse:collapse;margin-top:15px}.mhurStatsTable th,.mhurStatsTable td{padding:9px;border:1px solid #40516a;text-align:left}.mhurStatsTable th{background:#17253c;color:#ffe100}
.mhurNoticeBell{position:fixed;right:18px;bottom:94px;z-index:9998;width:52px;height:52px;border:4px solid #000;border-radius:50%;background:#ffe100;color:#000;font-size:23px;font-weight:1000;box-shadow:0 4px 0 #000}.mhurNoticeBell[data-count]:after{content:attr(data-count);position:absolute;right:-5px;top:-7px;min-width:22px;height:22px;padding:0 4px;border:2px solid #000;border-radius:999px;background:#ff2d5b;color:#fff;font-size:12px;display:grid;place-items:center}.mhurNoticeItem{padding:11px;border-bottom:1px solid #334b70}.mhurNoticeItem.unread{border-left:6px solid #ffe100}.mhurNoticeItem b,.mhurNoticeItem small{display:block}.mhurNoticeItem small{margin-top:4px;color:#a8b9cf}
.mhurAdminTabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.mhurAdminTabs button{padding:8px 11px;border-radius:8px;background:#17253c;color:#fff;font-weight:900}.mhurAdminRow{display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px;border:2px solid #334b70;border-radius:9px;margin-bottom:8px}.mhurAdminActions{display:flex;gap:5px;align-items:center}.mhurAdminActions button{padding:6px 8px;border-radius:6px;background:#253b59;color:#fff;font-weight:900}.mhurAdminActions .danger{background:#8e2430}.mhurAdminActions .ok{background:#08743b}
@media(max-width:700px){.mhurCommentComposer{grid-template-columns:1fr}.mhurTierRow{grid-template-columns:50px 1fr}.mhurTierLabel{font-size:24px}.mhurAdminRow{grid-template-columns:1fr}}


/* V328 — Tier List : styles sans vote dans Non classés */
.mhurTierRow.unranked{margin-top:16px;border-top:3px dashed #56657a;padding-top:14px}
.mhurTierLabel.U{min-width:118px;background:#34445b;color:#fff;font-size:14px;line-height:1.05;text-align:center;padding:8px}
.mhurTierVoteCount{display:block;color:#9fb0c8;font-size:10px;font-weight:800;margin:2px 0 4px}


/* V331 — Tier List agrandie et libellé Non classés entièrement visible */
#mhurTierModal .mhurHubPanel{width:min(1420px,98vw)!important}
#mhurTierModal .mhurHubBody{padding:22px!important}
.mhurTierList{gap:10px!important}
.mhurTierRow{grid-template-columns:90px minmax(0,1fr)!important;min-height:96px!important}
.mhurTierRow.unranked{grid-template-columns:132px minmax(0,1fr)!important}
.mhurTierLabel{font-size:38px!important;min-width:0!important}
.mhurTierLabel.U{
  width:132px!important;
  min-width:132px!important;
  padding:10px 8px!important;
  font-size:17px!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow:visible!important;
  word-break:normal!important;
}
.mhurTierItems{gap:10px!important;padding:10px!important}
.mhurTierItem{width:86px!important;padding:4px!important}
.mhurTierItem img{height:68px!important}
.mhurTierItem small{font-size:10px!important}
.mhurTierVoteCount{font-size:10px!important}
.mhurTierVote button{font-size:10px!important;padding:3px 2px!important}
@media(max-width:700px){
  .mhurTierRow{grid-template-columns:62px minmax(0,1fr)!important}
  .mhurTierRow.unranked{grid-template-columns:92px minmax(0,1fr)!important}
  .mhurTierLabel.U{width:92px!important;min-width:92px!important;font-size:13px!important}
  .mhurTierItem{width:78px!important}
}

/* V338 — Tier List : cartes plus grandes et classement par glisser-déposer */
#mhurTierModal .mhurHubPanel{width:min(1540px,99vw)!important}
#mhurTierModal .mhurHubBody{padding:24px!important}
.mhurTierDragHelp{
  margin:0 0 14px;
  padding:11px 14px;
  border:2px solid #4d6f9b;
  border-radius:10px;
  background:#101d30;
  color:#dceaff;
  font-size:15px;
  font-weight:900;
  text-align:center;
}
.mhurTierRow{min-height:128px!important}
.mhurTierItems{
  min-height:122px!important;
  gap:12px!important;
  padding:12px!important;
  align-content:flex-start;
  transition:background .14s,box-shadow .14s;
}
.mhurTierItems.dragOver{
  background:#263c59!important;
  box-shadow:inset 0 0 0 4px #19e6ff;
}
.mhurTierItem{
  width:112px!important;
  padding:6px!important;
  border-radius:10px!important;
  cursor:grab;
  user-select:none;
  transition:transform .12s,opacity .12s,box-shadow .12s;
}
.mhurTierItem:active{cursor:grabbing}
.mhurTierItem:hover{transform:translateY(-3px);box-shadow:0 4px 0 #000}
.mhurTierItem.dragging{opacity:.35;transform:scale(.94)}
.mhurTierItem img{height:88px!important;border-radius:7px!important}
.mhurTierItem small{
  margin-top:4px;
  font-size:12px!important;
  line-height:1.05;
  font-weight:900;
}
.mhurTierVoteCount{font-size:11px!important;margin-top:3px!important}
.mhurTierVote{display:none!important}
.mhurTierDropHint{
  display:none;
  align-self:stretch;
  min-width:115px;
  place-items:center;
  border:3px dashed #19e6ff;
  border-radius:9px;
  color:#9eefff;
  font-weight:1000;
}
.mhurTierItems.dragOver .mhurTierDropHint{display:grid}
@media(max-width:700px){
  .mhurTierRow{min-height:112px!important}
  .mhurTierItems{min-height:106px!important;gap:8px!important;padding:8px!important}
  .mhurTierItem{width:94px!important}
  .mhurTierItem img{height:72px!important}
  .mhurTierItem small{font-size:10px!important}
  .mhurTierDragHelp{font-size:12px}
}

/* V340 — Tier List sur une vraie page pleine largeur */
.mhurTierPage{
  width:calc(100vw - 36px);
  margin-left:calc(50% - 50vw + 18px);
  min-height:calc(100vh - 110px);
  padding:24px;
  border:4px solid #000;
  border-radius:20px;
  background:linear-gradient(145deg,#14243a,#070d17 58%,#03060c);
  box-shadow:0 8px 0 #000,0 0 0 3px rgba(25,201,222,.18) inset;
}
.mhurTierPageTop{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 230px;
  gap:20px;
  align-items:center;
  margin-bottom:20px;
  padding:20px;
  border:3px solid #000;
  border-radius:16px;
  background:linear-gradient(100deg,#172a45,#0d1828);
}
.mhurTierBack{
  align-self:start;
  padding:11px 17px;
  border:3px solid #000;
  border-radius:11px;
  background:#253b5c;
  color:#fff;
  font-weight:1000;
}
.mhurTierKicker{
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  background:#ffe100;
  color:#000;
  font-size:12px;
  font-weight:1000;
}
.mhurTierPageTop h1{
  margin:7px 0 4px;
  font-size:clamp(34px,4vw,58px);
  line-height:1;
  text-shadow:3px 3px 0 #000;
}
.mhurTierPageTop p{margin:0;color:#cbd9ee;font-size:17px;font-weight:800}
.mhurTierFilter{color:#ffe100;font-size:13px;font-weight:1000}
.mhurTierFilter select{
  display:block;
  width:100%;
  margin-top:6px;
  padding:12px;
  border:3px solid #405d84;
  border-radius:10px;
  background:#091220;
  color:#fff;
  font-weight:900;
}
.mhurTierListPage{gap:13px!important}
.mhurTierListPage .mhurTierRow{
  grid-template-columns:105px minmax(0,1fr)!important;
  min-height:158px!important;
  border-radius:14px!important;
}
.mhurTierListPage .mhurTierRow.unranked{
  grid-template-columns:155px minmax(0,1fr)!important;
}
.mhurTierListPage .mhurTierLabel{font-size:48px!important}
.mhurTierListPage .mhurTierLabel.U{
  width:auto!important;
  min-width:0!important;
  font-size:18px!important;
  padding:12px!important;
}
.mhurTierListPage .mhurTierItems{
  min-height:150px!important;
  gap:12px!important;
  padding:12px!important;
  align-content:flex-start;
}
.mhurTierListPage .mhurTierItem{
  width:128px!important;
  padding:6px!important;
  border-radius:11px!important;
}
.mhurTierListPage .mhurTierItem img{
  height:102px!important;
  object-fit:contain!important;
}
.mhurTierListPage .mhurTierItem small{
  margin-top:5px;
  font-size:12px!important;
  line-height:1.1;
}
.mhurTierStyleName{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#ffe100;
  font-size:10px;
  font-weight:900;
}
.mhurTierListPage .mhurTierVoteCount{font-size:10px!important}
.mhurTierListPage .mhurTierDragHelp{
  position:sticky;
  top:82px;
  z-index:6;
  margin-bottom:4px;
  padding:12px 16px;
  font-size:14px;
  box-shadow:0 3px 0 #000;
}
@media(max-width:900px){
  .mhurTierPage{width:calc(100vw - 14px);margin-left:calc(50% - 50vw + 7px);padding:10px}
  .mhurTierPageTop{grid-template-columns:1fr;gap:12px;padding:14px}
  .mhurTierBack{justify-self:start}
  .mhurTierListPage .mhurTierRow{grid-template-columns:65px minmax(0,1fr)!important;min-height:130px!important}
  .mhurTierListPage .mhurTierRow.unranked{grid-template-columns:95px minmax(0,1fr)!important}
  .mhurTierListPage .mhurTierLabel{font-size:34px!important}
  .mhurTierListPage .mhurTierLabel.U{font-size:13px!important}
  .mhurTierListPage .mhurTierItems{min-height:124px!important;padding:8px!important;gap:8px!important}
  .mhurTierListPage .mhurTierItem{width:96px!important}
  .mhurTierListPage .mhurTierItem img{height:74px!important}
  .mhurTierListPage .mhurTierItem small{font-size:10px!important}
  .mhurTierStyleName{font-size:9px}
}

/* V347 — Tier List personnelle + publication volontaire */
.mhurTierTopActions{display:flex;flex-direction:column;gap:10px;align-items:stretch;min-width:310px}
.mhurTierActionButtons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mhurTierActionButtons button{border:3px solid #000;border-radius:12px;padding:11px 12px;font-weight:1000;cursor:pointer;box-shadow:0 4px 0 #000}
.mhurTierPublishBtn{background:#43c7ef;color:#07111d}
.mhurTierPublishedBtn{background:#182b46;color:#fff;border-color:#5d789e!important}
.mhurTierResetBtn{background:#ff6262;color:#fff;grid-column:1/-1}
.mhurPublishedTierCard{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px;padding:12px;border:2px solid #405d84;border-radius:12px;background:#101b2b;margin-bottom:10px}
.mhurPublishedTierAuthor{display:flex;gap:10px;align-items:center}.mhurPublishedTierAuthor img,.mhurPublishedTierAuthor>span{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#28415f;display:grid;place-items:center;font-weight:1000}.mhurPublishedTierAuthor small{display:block;color:#aebed2;margin-top:3px}
.mhurPublishedTierCounts{display:flex;gap:5px;flex-wrap:wrap}.mhurPublishedTierCounts b{padding:5px 7px;border-radius:6px;color:#000}.mhurPublishedTierCounts .S{background:#ff6b6b}.mhurPublishedTierCounts .A{background:#ffad66}.mhurPublishedTierCounts .B{background:#ffe066}.mhurPublishedTierCounts .C{background:#a9e36f}.mhurPublishedTierCounts .D{background:#70c8e8}
.mhurPublishedTierCard>button{background:#43c7ef;border:2px solid #000;border-radius:9px;padding:8px 14px;font-weight:1000}
.mhurPublishedTierRow{display:grid;grid-template-columns:62px 1fr;min-height:92px;border:2px solid #000;margin-bottom:7px;background:#1a2534}.mhurPublishedTierRow>div:last-child{display:flex;gap:7px;flex-wrap:wrap;padding:8px}.mhurPublishedMini{width:70px;background:#0b1421;border:2px solid #000;border-radius:7px;padding:3px}.mhurPublishedMini img{width:100%;height:58px;object-fit:contain;background:#d3d9d8}.mhurPublishedMini small{display:block;color:#fff;font-size:9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:800px){.mhurTierTopActions{min-width:0}.mhurTierActionButtons{grid-template-columns:1fr}.mhurTierResetBtn{grid-column:auto}.mhurPublishedTierCard{grid-template-columns:1fr}.mhurPublishedTierCounts{justify-content:flex-start}}

/* V393 — Classement des créateurs : fenêtre mobile lisible et sans chevauchement */
#mhurLeaderboardModalV370{
  padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));
  align-items:center;
}
#mhurLeaderboardModalV370 .mhurHubPanel{
  width:min(760px,calc(100vw - 24px));
  max-height:min(82vh,720px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
#mhurLeaderboardModalV370 .mhurHubClose{
  position:absolute;
  float:none;
  top:12px;
  right:12px;
  width:48px;
  height:48px;
  margin:0;
  z-index:10;
}
#mhurLeaderboardModalV370 .mhurHubHead{
  flex:0 0 auto;
  min-width:0;
  padding:18px 72px 15px 18px;
}
#mhurLeaderboardModalV370 .mhurHubHead h2{
  margin:0;
  max-width:100%;
  font-size:clamp(24px,5vw,34px);
  line-height:1.08;
  overflow-wrap:anywhere;
}
#mhurLeaderboardModalV370 .mhurHubHead p{
  display:block;
  clear:both;
  margin:9px 0 0;
  font-size:15px;
  line-height:1.35;
}
#mhurLeaderboardModalV370 .mhurHubBody{
  flex:1 1 auto;
  min-height:90px;
  overflow:auto;
  padding:16px 18px 20px;
}
#mhurLeaderboardModalV370 .mhurLeaderboardGrid{
  display:flex;
  flex-direction:column;
  gap:9px;
  min-width:0;
  font-size:16px;
  line-height:1.35;
}
@media(max-width:700px){
  #mhurLeaderboardModalV370{
    padding:10px;
  }
  #mhurLeaderboardModalV370 .mhurHubPanel{
    width:calc(100vw - 20px);
    max-height:78vh;
    border-width:4px;
    border-radius:17px;
  }
  #mhurLeaderboardModalV370 .mhurHubClose{
    top:10px;
    right:10px;
    width:45px;
    height:45px;
    font-size:25px;
  }
  #mhurLeaderboardModalV370 .mhurHubHead{
    padding:16px 62px 14px 15px;
  }
  #mhurLeaderboardModalV370 .mhurHubHead h2{
    font-size:clamp(22px,7vw,30px);
    line-height:1.08;
  }
  #mhurLeaderboardModalV370 .mhurHubHead p{
    margin-top:8px;
    font-size:13px;
    line-height:1.3;
  }
  #mhurLeaderboardModalV370 .mhurHubBody{
    padding:14px 15px 18px;
  }
  #mhurLeaderboardModalV370 .mhurLeaderboardGrid{
    font-size:14px;
  }
}

/* Google Analytics consent */
#mhurAnalyticsConsent{position:fixed;left:16px;right:16px;bottom:16px;z-index:100000;display:flex;gap:16px;align-items:center;justify-content:space-between;padding:16px 18px;background:#0d1727;color:#fff;border:2px solid #405d84;border-radius:14px;box-shadow:0 10px 40px #000a;font-family:Arial,sans-serif}#mhurAnalyticsConsent>div:first-child{display:flex;flex-direction:column;gap:4px}#mhurAnalyticsConsent span{color:#c7d7ee;font-size:14px}#mhurAnalyticsConsent button{margin-left:8px;padding:10px 14px;border-radius:10px;border:1px solid #5877a3;background:#1a2a43;color:#fff;font-weight:800}#mhurAnalyticsConsent button[data-yes]{background:#ffe100;color:#000;border-color:#ffe100}@media(max-width:680px){#mhurAnalyticsConsent{flex-direction:column;align-items:stretch}#mhurAnalyticsConsent>div:last-child{display:flex}#mhurAnalyticsConsent button{flex:1;margin:0 4px}}

/* V433 — pièces jointes dans les commentaires */
.mhurCommentTools{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.mhurCommentFile{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border:2px solid #47688f;border-radius:10px;background:#172944;font-weight:900;cursor:pointer}.mhurCommentFile input{display:none}#mhurCommentFileName{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b9cbe2;font-size:12px}.mhurCommentProgress{width:130px}.mhurCommentMedia{display:block;max-width:min(100%,620px);max-height:460px;margin-top:10px;border:2px solid #36577e;border-radius:12px;background:#020710;object-fit:contain}.mhurCommentMediaLink{display:block;width:max-content;max-width:100%}@media(max-width:700px){.mhurCommentTools{align-items:stretch}.mhurCommentTools button,.mhurCommentFile{justify-content:center}.mhurCommentMedia{width:100%}}
