
/* fss_global_hidden : force tous les [hidden] en display none */
#commu-app [hidden], #commu-wizard [hidden] { display: none !important; }

/* fss_force_hidden : la skin FSS impose display:block sur certains containers, on force [hidden] */
#commu-app .commu-section { display: block; }
#commu-app .commu-section[hidden] { display: none !important; }
#commu-app section[hidden] { display: none !important; }
#commu-wizard:empty { display: none; }
/* FSS Commu v1 — black + orange #f48625 — center alignment, fa icons */
#commu-app { max-width: 1200px; margin: 0 auto; padding: 30px 20px; color: #e8e8e8; }
.commu-empty { text-align: center; padding: 60px 20px; color: #aaa; }
.commu-noauth { text-align: center; padding: 80px 20px; }
.commu-noauth h1 { font-size: 32px; color: #f48625; margin: 0 0 16px; }
.commu-noauth p { color: #aaa; max-width: 500px; margin: 0 auto 20px; line-height: 1.5; }
.commu-btn-primary { display: inline-block; padding: 12px 28px; background: #f48625; color: #0a0a0a; font-weight: 700; text-decoration: none; border-radius: 6px; transition: transform .2s, background .2s; border: none; cursor: pointer; }
.commu-btn-primary:hover { transform: translateY(-2px); background: #ff8c00; color: #0a0a0a; }

.commu-header { padding: 20px 0 24px; border-bottom: 1px solid #1f1f1f; margin-bottom: 24px; text-align: center; }
.commu-header h1 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.commu-header h1 .fa { color: #f48625; margin-right: 10px; }
.commu-sub { margin: 0; color: #888; font-size: 13px; }

.commu-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; justify-content: center; }
.commu-tab { position: relative; padding: 12px 22px 14px; background: transparent; color: #888; border: none; border-radius: 0; cursor: pointer; font: 600 14px sans-serif; transition: color .2s; }
.commu-tab:hover { color: #ccc; }
.commu-tab.active { color: #fff; }
.commu-tab.active::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent 0%, rgba(244,134,37,.3) 15%, #f48625 50%, rgba(244,134,37,.3) 85%, transparent 100%); border-radius: 2px; }
.commu-tab.active .fa { color: #f48625; }
.commu-tab .fa { margin-right: 6px; }

.commu-section h2 { margin: 0 0 8px; font-size: 20px; color: #f48625; text-align: center; }
.commu-section-sub { color: #888; margin: 0 0 24px; font-size: 13px; text-align: center; }

.commu-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; max-width: 1300px; margin: 0 auto; }
@media (max-width: 1400px) { .commu-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1150px) { .commu-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 850px)  { .commu-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 600px)  { .commu-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 380px)  { .commu-grid { grid-template-columns: 1fr; } }
.commu-req-card {
  position: relative;
  aspect-ratio: 2/3;
  background: #0a0a0a center/cover no-repeat;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.commu-req-card:hover { transform: translateY(-3px); border-color: #f48625; box-shadow: 0 6px 22px rgba(244,134,37,.2); }
.commu-req-card .commu-tl { position: absolute; top: 6px; left: 6px; padding: 3px 8px; background: rgba(0,0,0,.85); color: #fff; font-size: 10px; font-weight: 700; border-radius: 3px; z-index: 3; }
.commu-req-card .commu-tr { position: absolute; top: 6px; right: 6px; padding: 3px 8px; background: rgba(0,0,0,.85); color: #fff; font-size: 10px; font-weight: 700; border-radius: 3px; z-index: 3; text-transform: uppercase; }
.commu-req-card .commu-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 32px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.97) 0%, rgba(0,0,0,.85) 50%, rgba(0,0,0,.4) 85%, transparent 100%);
  z-index: 2;
}
.commu-req-card .commu-pseudo-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.commu-req-card .commu-pseudo { color: #f48625; font-size: 11px; font-weight: 700; }
.commu-req-card .commu-pseudo .fa { margin-right: 3px; }
.commu-req-card .commu-top-user { padding: 2px 6px; background: linear-gradient(135deg, #ffd700, #ffa500); color: #0a0a0a; font-size: 9px; font-weight: 800; border-radius: 3px; text-transform: uppercase; box-shadow: 0 0 6px rgba(255,215,0,.4); }
.commu-req-card .commu-status-line { font-size: 10px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.commu-req-card .commu-status-line .commu-badge { display: inline-block; padding: 2px 6px; background: rgba(244,134,37,.2); color: #f48625; border-radius: 3px; font-weight: 700; font-size: 9px; }
.commu-req-card .commu-status-line .commu-badge.taken { background: rgba(155,89,182,.2); color: #bb86fc; }
.commu-req-card .commu-req-title { color: #fff; font-weight: 700; font-size: 13px; line-height: 1.25; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.commu-req-card .commu-req-actions { display: flex; gap: 6px; }
.commu-req-card .commu-req-actions button { flex: 1; padding: 7px 8px; font-size: 11px; border: none; font-weight: 700; border-radius: 4px; cursor: pointer; transition: background .15s; }
.commu-req-card .commu-req-actions .commu-btn-take { background: #f48625; color: #0a0a0a; }
.commu-req-card .commu-req-actions .commu-btn-take:hover { background: #ff8c00; }
.commu-req-card .commu-req-actions .commu-btn-take:disabled { background: rgba(0,0,0,.7); color: #888; cursor: not-allowed; }
.commu-req-card .commu-req-actions .commu-btn-finalize { background: #2ecc71; color: #0a0a0a; }
.commu-req-card .commu-req-actions .commu-btn-finalize:hover { background: #27ae60; }
.commu-req-card .commu-req-actions .commu-btn-release { background: rgba(0,0,0,.7); color: #fff; border: 1px solid rgba(255,255,255,.2); padding: 7px 9px; flex: 0; }
@media (max-width: 600px) {
  .commu-req-card .commu-tl, .commu-req-card .commu-tr { font-size: 9px; padding: 2px 6px; }
  .commu-req-card .commu-req-title { font-size: 12px; }
  .commu-req-card .commu-req-meta-line { font-size: 10px; margin-bottom: 6px; }
  .commu-req-card .commu-req-actions button { font-size: 10px; padding: 6px; }
}
.commu-btn-take, .commu-btn-release, .commu-btn-finalize { flex: 1; padding: 8px 10px; border: none; font-weight: 700; border-radius: 4px; cursor: pointer; font-size: 12px; transition: background .15s; }
.commu-btn-take { background: #f48625; color: #0a0a0a; }
.commu-btn-take:hover { background: #ff8c00; }
.commu-btn-take:disabled { background: #333; color: #666; cursor: not-allowed; }
.commu-btn-release { background: #1f1f1f; color: #ccc; border: 1px solid #333; }
.commu-btn-release:hover { background: #2a2a2a; }
.commu-btn-finalize { background: #2ecc71; color: #0a0a0a; }
.commu-btn-finalize:hover { background: #27ae60; }

.commu-type-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.commu-type-card { position: relative; padding: 18px 20px 22px; background: transparent; border: none; cursor: pointer; transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #888; }
.commu-type-card .fa { font-size: 30px; color: #888; transition: color .2s; }
.commu-type-card span { font-weight: 600; font-size: 13px; }
.commu-type-card:hover { color: #fff; }
.commu-type-card:hover .fa { color: #ccc; }
.commu-type-card.active { color: #fff; }
.commu-type-card.active .fa { color: #f48625; }
.commu-type-card { padding-bottom: 14px; margin-bottom: 8px; }
.commu-type-card.active::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -6px; height: 3px; background: linear-gradient(90deg, transparent 0%, rgba(244,134,37,.3) 15%, #f48625 50%, rgba(244,134,37,.3) 85%, transparent 100%); border-radius: 2px; }

.commu-search-row { display: flex; gap: 10px; max-width: 700px; margin: 0 auto 20px; }
.commu-search-row select, .commu-search-row input { padding: 12px; background: #131313; border: 1px solid #222; color: #fff; border-radius: 6px; font-size: 14px; }
.commu-search-row input { flex: 1; }
.commu-search-row input:focus, .commu-search-row select:focus { outline: none; border-color: #f48625; }

.commu-tmdb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto; }
.commu-tmdb-card { background: #131313; border: 1px solid #222; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform .2s, border-color .2s; position: relative; }
.commu-tmdb-card:hover { transform: translateY(-3px); border-color: #f48625; }
.commu-tmdb-poster { width: 100%; aspect-ratio: 2/3; background: #0a0a0a center/cover no-repeat; }
.commu-tmdb-info { padding: 8px 10px; }
.commu-tmdb-title { font-size: 13px; font-weight: 700; margin: 0 0 2px; line-height: 1.2; }
.commu-tmdb-year { font-size: 11px; color: #888; }
.commu-tmdb-card .commu-tmdb-already { position: absolute; top: 8px; left: 8px; padding: 4px 9px; background: rgba(46,204,113,.95); color: #0a0a0a; font-size: 10px; font-weight: 700; border-radius: 3px; z-index: 2; }
.commu-tmdb-card .commu-tmdb-already .fa { margin-right: 4px; }

/* === Wizard === */
.commu-wizard { max-width: 800px; margin: 28px auto 0; background: #0e0e0e; padding: 28px; border-radius: 10px; border: 1px solid #1f1f1f; }
.commu-wizard h3 { margin: 0 0 12px; color: #f48625; text-align: center; }
.commu-wizard p.lead { color: #aaa; text-align: center; margin: 0 0 24px; }
.commu-step-bubbles { display: flex; justify-content: center; gap: 8px; margin: 28px 0 0; flex-wrap: wrap; }
.commu-bubble { width: 30px; height: 30px; border-radius: 50%; background: #1f1f1f; color: #888; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; cursor: pointer; transition: all .2s; border: 2px solid #222; }
.commu-bubble.active { background: #f48625; color: #0a0a0a; border-color: #f48625; }
.commu-bubble.done { background: #2ecc71; color: #0a0a0a; border-color: #2ecc71; }
.commu-bubble:hover { border-color: #f48625; }

.commu-form-row { margin-bottom: 16px; }
.commu-form-row label { display: block; margin-bottom: 6px; color: #ccc; font-weight: 600; font-size: 13px; }
.commu-form-row input, .commu-form-row select, .commu-form-row textarea { width: 100%; padding: 10px 12px; background: #131313; border: 1px solid #222; color: #fff; border-radius: 6px; font-size: 14px; }
.commu-form-row input:focus, .commu-form-row select:focus, .commu-form-row textarea:focus { outline: none; border-color: #f48625; }

.commu-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.commu-choice-btn { padding: 14px; background: #131313; border: 2px solid #222; color: #ccc; cursor: pointer; border-radius: 8px; transition: all .15s; font-weight: 600; }
.commu-choice-btn:hover { border-color: #f48625; color: #fff; }
.commu-choice-btn.active { background: rgba(244,134,37,.1); border-color: #f48625; color: #fff; }

.commu-wizard-actions { display: flex; justify-content: space-between; margin-top: 24px; gap: 10px; }
.commu-wizard-actions .commu-btn-back { background: #1f1f1f; color: #ccc; border: 1px solid #333; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.commu-wizard-actions .commu-btn-next { background: #f48625; color: #0a0a0a; border: none; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-weight: 700; }
.commu-wizard-actions .commu-btn-next:disabled { background: #333; color: #666; cursor: not-allowed; }

.commu-ep-list { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; padding-right: 4px; }
.commu-ep-row { display: flex; gap: 10px; align-items: center; padding: 10px; background: #131313; border: 1px solid #222; border-radius: 6px; }
.commu-ep-row.filled { border-color: #2ecc71; background: rgba(46,204,113,.05); }
.commu-ep-num { font-weight: 700; min-width: 56px; color: #f48625; text-align: center; }
.commu-ep-title { flex: 1; min-width: 100px; font-size: 13px; color: #ccc; }
.commu-ep-row input { flex: 2; padding: 7px 10px; background: #0a0a0a; border: 1px solid #222; color: #fff; border-radius: 4px; font-size: 12px; min-width: 200px; }
.commu-ep-row .fa-check { color: #2ecc71; font-size: 16px; }

.commu-toast { position: fixed; bottom: 24px; right: 24px; background: rgba(244,134,37,.95); color: #0a0a0a; padding: 12px 20px; border-radius: 8px; font-weight: 700; z-index: 99999; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.commu-toast.err { background: rgba(231,76,60,.95); color: #fff; }
.commu-toast.ok { background: rgba(46,204,113,.95); color: #0a0a0a; }

/* Mes contributions */
.commu-mine-section { margin-bottom: 32px; }
.commu-mine-section h3 { color: #f48625; font-size: 16px; margin: 0 0 12px; text-align: center; }
.commu-mine-card { display: flex; gap: 14px; background: #131313; border: 1px solid #222; border-radius: 8px; padding: 12px; align-items: center; margin-bottom: 8px; }
.commu-mine-poster { width: 60px; aspect-ratio: 2/3; background: #0a0a0a center/cover no-repeat; border-radius: 4px; flex-shrink: 0; }
.commu-mine-info { flex: 1; }
.commu-mine-title { font-weight: 700; }
.commu-mine-meta { font-size: 12px; color: #888; }
.commu-mine-actions { display: flex; gap: 6px; }
.commu-mine-actions button { padding: 6px 12px; font-size: 11px; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; }
.commu-mine-actions .commu-btn-resume { background: #f48625; color: #0a0a0a; }
.commu-mine-actions .commu-btn-del { background: #1f1f1f; color: #ccc; border: 1px solid #333; }

@media (max-width: 600px) {
  .commu-header h1 { font-size: 18px; }
  .commu-tabs { gap: 4px; }
  .commu-tab { padding: 8px 12px; font-size: 12px; }
}

/* Underline-style inputs (jolie : trait orange en bas, pas d'encadrement) */
.commu-underline input, .commu-underline-input {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid #333 !important;
  border-radius: 0 !important;
  padding: 12px 4px !important;
  color: #fff !important;
  font-size: 15px !important;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s !important;
}
.commu-underline input:focus, .commu-underline-input:focus {
  outline: none !important;
  border-bottom-color: #f48625 !important;
}

/* TMDB results responsive 6->1 */
.commu-tmdb-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 1400px) { .commu-tmdb-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1150px) { .commu-tmdb-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 850px)  { .commu-tmdb-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 600px)  { .commu-tmdb-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 380px)  { .commu-tmdb-grid { grid-template-columns: 1fr; } }

/* Bubbles : non-clickable for future */
.commu-bubble:not(.clickable):not(.active) { cursor: not-allowed; opacity: .55; }
.commu-bubble.clickable { cursor: pointer; }
.commu-bubble.active { cursor: default; }

/* Upload zone */
.commu-upload-zone {
  margin: 0 auto;
  max-width: 600px;
  background: #131313;
  border: 2px dashed #333;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.commu-upload-zone:hover { border-color: #f48625; background: #161616; }
.commu-upload-zone.drag { border-color: #f48625; background: rgba(244,134,37,.05); }
.commu-upload-content { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.commu-upload-label { font-weight: 600; color: #ccc; }
.commu-upload-hint { font-size: 12px; color: #888; }
.commu-upload-progress { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.commu-upload-pct { font-size: 36px; font-weight: 800; color: #f48625; }
.commu-upload-bar { width: 100%; max-width: 400px; height: 8px; background: #1f1f1f; border-radius: 4px; overflow: hidden; }
.commu-upload-bar.mini { height: 4px; }
.commu-upload-fill { height: 100%; background: linear-gradient(90deg, #f48625 0%, #ffa500 100%); transition: width .25s linear; box-shadow: 0 0 8px rgba(244,134,37,.6); }
.commu-upload-status { color: #aaa; font-size: 13px; }

/* Episodes upload grid */
.commu-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
  padding: 4px;
}
.commu-ep-card {
  background: #131313;
  border: 2px solid #222;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.commu-ep-card:hover { border-color: #f48625; }
.commu-ep-card.done { border-color: #2ecc71; background: rgba(46,204,113,.05); cursor: default; }
.commu-ep-card.uploading { border-color: #f48625; background: rgba(244,134,37,.05); cursor: default; }
.commu-ep-num { font-weight: 800; color: #f48625; margin-bottom: 6px; }
.commu-ep-icon { font-size: 22px; margin-bottom: 6px; }
.commu-ep-status { font-size: 11px; color: #888; }

/* Faire une demande / un ajout : re-style boutons type-cards centrés */
.commu-type-choice { max-width: 900px; margin: 0 auto 10px; }


/* Film preview riche */
.commu-film-preview { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 22px; align-items: start; }
.commu-film-preview .preview-poster { width: 100%; aspect-ratio: 2/3; background: #0a0a0a center/cover no-repeat; border-radius: 8px; }
.commu-film-preview .preview-info h4 { margin: 0 0 4px; color: #f48625; font-size: 22px; font-weight: 700; }
.commu-film-preview .preview-info .preview-original { font-size: 12px; color: #888; font-style: italic; margin-bottom: 12px; }
.commu-film-preview .preview-info .preview-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12px; color: #aaa; }
.commu-film-preview .preview-info .preview-meta .fa { color: #f48625; margin-right: 5px; }
.commu-film-preview .preview-info .preview-section { margin-bottom: 14px; }
.commu-film-preview .preview-info .preview-section-title { font-size: 11px; text-transform: uppercase; color: #888; margin-bottom: 4px; letter-spacing: .5px; }
.commu-film-preview .preview-info .preview-section-content { font-size: 13px; color: #ddd; line-height: 1.5; }
.commu-film-preview .preview-actors { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.commu-film-preview .preview-actor { display: flex; flex-direction: column; align-items: center; width: 76px; }
.commu-film-preview .preview-actor img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #1f1f1f; border: 2px solid #222; }
.commu-film-preview .preview-actor .actor-name { font-size: 10px; color: #ccc; text-align: center; margin-top: 4px; line-height: 1.2; }
@media (max-width: 700px) {
  .commu-film-preview { grid-template-columns: 140px 1fr; gap: 14px; }
  .commu-film-preview .preview-info h4 { font-size: 18px; }
}

/* Pagination */
.commu-pagination { display: flex; justify-content: center; gap: 6px; margin: 22px 0; flex-wrap: wrap; }
.commu-pagination button { padding: 8px 14px; background: #131313; color: #ccc; border: 1px solid #222; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; }
.commu-pagination button:hover { border-color: #f48625; color: #fff; }
.commu-pagination button.active { background: #f48625; color: #0a0a0a; border-color: #f48625; }
.commu-pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* Upload completed state */
.commu-upload-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; }
.commu-upload-done .fa-check-circle { font-size: 48px; color: #2ecc71; }
.commu-upload-done .upload-done-text { color: #2ecc71; font-weight: 700; font-size: 16px; }
.commu-upload-done .upload-done-link { font-size: 11px; color: #888; word-break: break-all; }


/* Card wrap : poster top + bouton hors-poster bottom */
.commu-req-wrap { display: flex; flex-direction: column; gap: 8px; }
.commu-req-actions-out { display: flex; gap: 6px; }
.commu-req-actions-out button { flex: 1; padding: 9px 10px; font-size: 12px; border: none; font-weight: 700; border-radius: 6px; cursor: pointer; transition: background .15s; }
.commu-req-actions-out .commu-btn-take { background: #f48625; color: #0a0a0a; }
.commu-req-actions-out .commu-btn-take:hover { background: #ff8c00; }
.commu-req-actions-out .commu-btn-take:disabled { background: #1f1f1f; color: #666; cursor: not-allowed; border: 1px solid #333; }
.commu-req-actions-out .commu-btn-finalize { background: #2ecc71; color: #0a0a0a; }
.commu-req-actions-out .commu-btn-finalize:hover { background: #27ae60; }
.commu-req-actions-out .commu-btn-release { background: #1f1f1f; color: #ccc; border: 1px solid #333; padding: 9px 12px; flex: 0; }


/* Mine - section priority */
.commu-mine-priority h3 { color: #f48625; }
.commu-mine-priority { background: linear-gradient(135deg, rgba(244,134,37,.05), transparent 80%); border: 1px solid rgba(244,134,37,.2); border-radius: 10px; padding: 16px; margin-bottom: 22px; }
.commu-mine-active { border-color: rgba(244,134,37,.3) !important; }
.commu-countdown { color: #f48625; font-size: 12px; font-weight: 700; margin-top: 4px; }
.commu-countdown .fa { margin-right: 4px; }
.commu-btn-attack { background: linear-gradient(135deg, #f48625, #ff8c00); color: #0a0a0a; border: none; padding: 9px 14px; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: 12px; box-shadow: 0 0 12px rgba(244,134,37,.3); }
.commu-btn-attack:hover { box-shadow: 0 0 18px rgba(244,134,37,.5); transform: translateY(-1px); }
.commu-mine-link { text-decoration: none; color: inherit; transition: transform .15s; }
.commu-mine-link:hover { transform: translateX(2px); border-color: #f48625 !important; }

/* === TOP CONTRIBUTEURS === */
.commu-top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; max-width: 1200px; margin: 0 auto; }
.commu-top-card { position: relative; background: #131313; border: 1px solid #222; border-radius: 10px; padding: 18px 14px 14px; text-align: center; transition: transform .2s, border-color .2s; }
.commu-top-card:hover { transform: translateY(-3px); border-color: #f48625; }
.commu-top-card.trust { border-color: rgba(244,134,37,.5); background: linear-gradient(180deg, rgba(244,134,37,.06) 0%, transparent 60%); }
.commu-top-card.ultra { border-color: rgba(255,215,0,.6); background: linear-gradient(180deg, rgba(255,215,0,.08) 0%, transparent 60%); box-shadow: 0 0 14px rgba(255,215,0,.15); }
.commu-top-rank { position: absolute; top: 8px; left: 10px; font-size: 13px; font-weight: 800; color: #f48625; }
.commu-top-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #1f1f1f; border: 2px solid #333; margin: 4px auto 10px; display: block; }
.commu-top-card.trust .commu-top-avatar { border-color: #f48625; }
.commu-top-card.ultra .commu-top-avatar { border-color: #ffd700; }
.commu-top-name { font-weight: 700; color: #fff; margin-bottom: 6px; font-size: 14px; }
.commu-top-badge { display: inline-block; padding: 1px 6px; font-size: 9px; font-weight: 800; border-radius: 3px; margin-left: 4px; vertical-align: middle; }
.commu-top-badge.trust { background: #f48625; color: #0a0a0a; }
.commu-top-badge.ultra { background: linear-gradient(135deg, #ffd700, #ffa500); color: #0a0a0a; }
.commu-top-meta { font-size: 11px; color: #aaa; margin-bottom: 4px; }
.commu-top-meta .fa { color: #888; margin-right: 4px; }
.commu-top-actions { display: flex; gap: 4px; margin-top: 10px; }
.commu-trust-btn { flex: 1; padding: 6px 4px; font-size: 10px; font-weight: 700; border: 1px solid #2a2a2a; background: #1a1a1a; color: #aaa; border-radius: 4px; cursor: pointer; transition: all .15s; }
.commu-trust-btn:hover { border-color: #f48625; color: #fff; }
.commu-trust-btn.active { background: #2a2a2a; color: #fff; border-color: #444; }
.commu-trust-btn.trust.active { background: #f48625; color: #0a0a0a; border-color: #f48625; }
.commu-trust-btn.ultra.active { background: linear-gradient(135deg, #ffd700, #ffa500); color: #0a0a0a; border-color: #ffd700; }
.commu-top-link { display: inline-block; margin-top: 10px; padding: 5px 10px; font-size: 11px; color: #aaa; text-decoration: none; border: 1px solid #2a2a2a; border-radius: 4px; transition: all .15s; }
.commu-top-link:hover { border-color: #f48625; color: #f48625; }
.commu-top-link .fa { margin-right: 4px; }

/* === TOP CONTRIBUTEURS PODIUM === */
.commu-top-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; max-width: 900px; margin-left: auto; margin-right: auto; }
.commu-top-card.podium { padding: 28px 18px 18px; transform: scale(1); transition: transform .25s; border-width: 2px; }
.commu-top-card.podium:hover { transform: scale(1.02) translateY(-3px); }
.commu-top-card.podium .commu-top-avatar { width: 84px; height: 84px; border-width: 3px; }
.commu-top-card.podium .commu-top-name { font-size: 16px; }
.commu-top-rank.podium-1 { font-size: 22px; color: #ffd700; text-shadow: 0 0 12px rgba(255,215,0,.5); }
.commu-top-rank.podium-2 { font-size: 19px; color: #c0c0c0; }
.commu-top-rank.podium-3 { font-size: 17px; color: #cd7f32; }
.commu-top-rank.podium-1::before { content: '\f521  '; font-family: FontAwesome; margin-right: 4px; }
.commu-top-rank.podium-2::before { content: '\f559  '; font-family: FontAwesome; margin-right: 4px; }
.commu-top-rank.podium-3::before { content: '\f091  '; font-family: FontAwesome; margin-right: 4px; }
.commu-top-rest { max-width: 1100px; margin: 0 auto; }
.commu-top-rest .commu-top-card { padding: 14px 12px; }
.commu-top-rest .commu-top-avatar { width: 56px; height: 56px; }
.commu-top-rest .commu-top-name { font-size: 13px; }
@media (max-width: 700px) {
  .commu-top-podium { grid-template-columns: 1fr; }
}


/* Sous-onglets Demandes : trait fondu en bas, pas de cadre, pas de box-shadow */
.commu-subtabs { display: flex; gap: 4px; margin: 18px 0 22px; flex-wrap: wrap; }
.commu-subtab { position: relative; background: transparent; border: none; color: #888; padding: 12px 18px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.commu-subtab .fa { font-size: 14px; }
.commu-subtab:hover { color: #ccc; }
.commu-subtab.active { color: #fff; }
.commu-subtab.active::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent 0%, rgba(244,134,37,.3) 15%, #f48625 50%, rgba(244,134,37,.3) 85%, transparent 100%); border-radius: 2px; }
.commu-subtab.active .fa { color: #f48625; }
.commu-subtab-count { background: #1a1a1a; color: #888; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 700; min-width: 18px; text-align: center; }
.commu-subtab.active .commu-subtab-count { background: rgba(244,134,37,.15); color: #f48625; }
@media (max-width: 600px) {
  .commu-subtab { padding: 10px 12px; font-size: 12px; flex: 1; justify-content: center; }
  .commu-subtab-count { display: none; }
}


/* Hide top tabs add/ask : accessibles via menu login uniquement, l'onglet par defaut est Demandes (sous-onglets pending/taken/done) */
.commu-tab[data-tab="add"],
.commu-tab[data-tab="ask"] { display: none !important; }


.commu-req-card::after { opacity: .35; }
}


/* Overlay actions centre poster - hover desktop, toujours visible mobile */
.commu-req-card { position: relative; overflow: hidden; }
.commu-req-card::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
}
.commu-req-card::after {
  content: ''; position: absolute; inset: 0; z-index: 3;
  background: rgba(8,8,8,.78); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.commu-req-card:hover::after { opacity: 1; }

.commu-card-action {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease, transform .25s ease;
  transform: scale(.96);
  pointer-events: none;
  padding: 16px;
}
.commu-req-card:hover .commu-card-action,
.commu-card-action:focus-within {
  opacity: 1; transform: scale(1); pointer-events: auto;
}
.commu-act-stack { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 220px; }
.commu-act-admin { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.12); }

.commu-act-primary, .commu-act-secondary {
  border: none; border-radius: 6px; cursor: pointer; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; transition: background .15s, transform .1s, color .15s;
  font: 700 13px/1 system-ui, sans-serif;
}
.commu-act-primary { padding: 12px 14px; font-size: 13px; background: #f48625; color: #0a0a0a; }
.commu-act-primary:hover { background: #ff8c00; transform: translateY(-1px); }
.commu-act-primary:disabled { background: rgba(40,40,40,.85); color: #888; cursor: not-allowed; }
.commu-act-primary.commu-btn-finalize { background: #2ecc71; }
.commu-act-primary.commu-btn-finalize:hover { background: #27ae60; }

.commu-act-secondary { padding: 9px 12px; font-size: 12px; background: rgba(255,255,255,.08); color: #ddd; backdrop-filter: blur(4px); }
.commu-act-secondary:hover { background: rgba(255,255,255,.16); color: #fff; }
.commu-act-secondary.commu-btn-admin-done { color: #2ecc71; }
.commu-act-secondary.commu-btn-admin-done:hover { background: rgba(46,204,113,.18); color: #fff; }
.commu-act-secondary.commu-btn-admin-del { color: #e74c3c; }
.commu-act-secondary.commu-btn-admin-del:hover { background: rgba(231,76,60,.2); color: #fff; }
.commu-act-secondary.commu-btn-release { background: rgba(255,255,255,.06); color: #aaa; }
.commu-act-secondary.commu-btn-release:hover { background: rgba(231,76,60,.18); color: #fff; }

/* Mobile : actions toujours visibles (pas de hover) */
@media (max-width: 768px) {
  .commu-req-card::after { opacity: .65; }
  .commu-card-action { opacity: 1; transform: scale(1); pointer-events: auto; }
}


/* Titre visible meme sous le voile sombre (z-index au-dessus de ::after) */
.commu-req-card .commu-overlay { z-index: 4 !important; position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.85) 100%); }
.commu-req-card .commu-req-title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.25; text-shadow: 0 1px 4px rgba(0,0,0,.85); }
.commu-req-card:hover .commu-req-title { color: #fff; }
.commu-req-card .commu-pseudo-row { font-size: 11px; color: #ccc; }
.commu-req-card .commu-status-line { font-size: 11px; margin: 4px 0; }

/* Bouton TMDB (lien details) */
.commu-act-tmdb {
  margin-top: 6px; padding: 8px 12px; font-size: 11px; font-weight: 700;
  background: rgba(1,180,228,.12); color: #01b4e4; border: 1px solid rgba(1,180,228,.4); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; transition: background .15s, color .15s;
  letter-spacing: .5px;
}
.commu-act-tmdb:hover { background: rgba(1,180,228,.25); color: #fff; border-color: #01b4e4; }
.commu-tmdb-logo { background: linear-gradient(90deg, #90cea1 0%, #01b4e4 50%, #0d253f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; letter-spacing: 1px; font-size: 12px; }
.commu-act-tmdb:hover .commu-tmdb-logo { color: #fff; -webkit-background-clip: initial; background-clip: initial; background: none; }


/* Ligne 'Par {pseudo}' sous le titre dans l'overlay */
.commu-req-by { font-size: 11px; color: #b5b5b5; margin-top: 4px; letter-spacing: .3px; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.commu-req-by .commu-pseudo-name { color: #fff; font-weight: 700; }
.commu-req-by .commu-top-user { background: linear-gradient(135deg, #f48625, #ff8c00); color: #0a0a0a; font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 3px; margin-left: 6px; letter-spacing: .5px; vertical-align: middle; }


/* === Wizard 1fichier optionnel (P2C) === */
.commu-1f-block { margin-top: 14px; padding: 14px; background: rgba(244,134,37,.04); border: 1px solid rgba(244,134,37,.2); border-radius: 8px; }
.commu-1f-toggle { width: 100%; background: transparent; color: #f48625; border: none; padding: 4px 0; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 8px; }
.commu-1f-toggle:hover { color: #ff8c00; }
.commu-1f-toggle .fa { font-size: 16px; }
.commu-1f-form { margin-top: 12px; }
.commu-1f-form[hidden] { display: none; }
.commu-1f-grid { display: grid; grid-template-columns: 1fr 1fr 80px; gap: 6px; margin-bottom: 8px; }
.commu-1f-form input, .commu-1f-form select { background: #0a0a0a; color: #fff; border: 1px solid rgba(255,255,255,.1); padding: 9px 10px; border-radius: 4px; font-size: 12px; width: 100%; box-sizing: border-box; margin-bottom: 6px; font-family: inherit; }
.commu-1f-form input:focus, .commu-1f-form select:focus { outline: none; border-color: #f48625; }
.commu-1f-form .commu-1f-grid input, .commu-1f-form .commu-1f-grid select { margin-bottom: 0; }
.commu-1f-actions { display: flex; gap: 6px; margin-top: 8px; }
.commu-1f-save { flex: 1; background: #f48625; color: #0a0a0a; border: none; padding: 9px 14px; border-radius: 5px; font-weight: 700; font-size: 12px; cursor: pointer; }
.commu-1f-save:hover { background: #ff8c00; }
.commu-1f-remove { background: rgba(231,76,60,.15); color: #e74c3c; border: 1px solid rgba(231,76,60,.3); padding: 9px 14px; border-radius: 5px; font-size: 12px; cursor: pointer; }
.commu-1f-remove:hover { background: rgba(231,76,60,.25); }
.commu-1f-cancel { background: transparent; color: #aaa; border: 1px solid rgba(255,255,255,.15); padding: 9px 14px; border-radius: 5px; font-size: 12px; cursor: pointer; }
.commu-1f-msg { margin-top: 8px; font-size: 12px; min-height: 16px; }
.commu-1f-msg.ok { color: #2ecc71; }
.commu-1f-msg.err { color: #e74c3c; }

/* Bouton 1fichier sur EP card */
.commu-ep-1f { margin-top: 6px; background: transparent; color: #f48625; border: 1px dashed rgba(244,134,37,.4); border-radius: 4px; padding: 4px 10px; font-size: 10px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.commu-ep-1f:hover { background: rgba(244,134,37,.1); border-style: solid; }

/* Modal pour 1fichier episode */
.commu-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.commu-modal-card { background: #131313; border: 1px solid rgba(244,134,37,.3); border-radius: 8px; padding: 22px; max-width: 440px; width: 100%; box-sizing: border-box; }
.commu-modal-card h3 { color: #f48625; margin: 0 0 14px; font-size: 16px; }
.commu-modal-actions { display: flex; gap: 6px; margin-top: 8px; }

@media (max-width: 600px) {
  .commu-1f-grid { grid-template-columns: 1fr; }
}

/* === FSS commu cleanup v1 — boutons mes demandes + actions === */
.commu-mine-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.commu-btn-cancel-mine{position:relative;background:transparent;color:#ff8c00;border:0;padding:6px 14px 8px;font-size:12px;font-weight:600;letter-spacing:.4px;cursor:pointer;text-transform:uppercase;font-family:inherit;transition:color .25s ease,text-shadow .25s ease;overflow:visible}
.commu-btn-cancel-mine::after{content:'';position:absolute;left:50%;bottom:0;width:0;height:2px;transform:translateX(-50%);background:linear-gradient(90deg,transparent 0%,rgba(255,140,0,.55) 25%,#ff8c00 50%,rgba(255,140,0,.55) 75%,transparent 100%);transition:width .3s cubic-bezier(.4,0,.2,1),opacity .25s ease;border-radius:2px;pointer-events:none;opacity:.85}
.commu-btn-cancel-mine:hover{color:#ffb066;text-shadow:0 0 10px rgba(255,140,0,.35)}
.commu-btn-cancel-mine:hover::after{width:80%;opacity:1;box-shadow:0 0 10px rgba(255,140,0,.45)}
.commu-btn-cancel-mine i{margin-right:4px}

.commu-mine-card{position:relative}
.commu-mine-info{display:flex;flex-direction:column;gap:4px}
.commu-mine-meta{line-height:1.4}


/* FSS_COMMU_4FIX_V1 : loader + dup modal + hide tabs on ask */
.commu-loader-overlay{position:fixed;inset:0;background:rgba(8,6,6,0.75);backdrop-filter:blur(8px);z-index:99996;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .25s ease}
.commu-loader-overlay.show{opacity:1;pointer-events:auto}
.commu-loader-card{background:linear-gradient(180deg,#1a1a1a 0%,#0a0a0a 100%);border:1px solid rgba(255,140,0,0.3);border-radius:14px;padding:30px 40px;display:flex;flex-direction:column;align-items:center;gap:16px;box-shadow:0 20px 60px rgba(0,0,0,0.6)}
.commu-loader-spin{width:48px;height:48px;border-radius:50%;border:3px solid transparent;border-top-color:#ff8c00;border-right-color:#ff8c00;animation:commuLoaderSpin 1s linear infinite}
.commu-loader-spin::after{content:'';position:absolute;inset:25%;border-radius:50%;border:3px solid transparent;border-bottom-color:#ff6600;border-left-color:#ff6600;animation:commuLoaderSpin 0.8s linear infinite reverse}
.commu-loader-card{position:relative}
.commu-loader-txt{font-size:14px;color:#ddd;font-weight:500}
@keyframes commuLoaderSpin{to{transform:rotate(360deg)}}

.commu-dup-modal-ov{position:fixed;inset:0;background:rgba(8,6,6,0.65);backdrop-filter:blur(10px);z-index:99997;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;pointer-events:none;transition:opacity .3s ease}
.commu-dup-modal-ov.show{opacity:1;pointer-events:auto}
.commu-dup-modal{width:min(540px,calc(100vw - 40px));max-height:calc(100vh - 40px);background:linear-gradient(165deg,rgba(28,22,18,0.9) 0%,rgba(10,8,8,0.95) 100%);backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,0.08);border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,0.65),0 0 0 1px rgba(255,255,255,0.04) inset;color:#e8e8ea;display:flex;flex-direction:column;overflow:hidden;transform:translateY(20px) scale(.96);transition:transform .35s cubic-bezier(0.22,1,0.36,1);position:relative}
.commu-dup-modal-ov.show .commu-dup-modal{transform:translateY(0) scale(1)}
.commu-dup-close{position:absolute;top:14px;right:16px;width:32px;height:32px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);border-radius:8px;color:#9a9a9e;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:5;transition:all .15s}
.commu-dup-close:hover{background:rgba(255,255,255,0.08);color:#fff}
.commu-dup-poster{width:100%;height:180px;background-size:cover;background-position:center;background-color:#1a1a1a;position:relative}
.commu-dup-poster::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(10,8,8,0.95) 100%)}
.commu-dup-body{padding:0 28px 26px;text-align:center}
.commu-dup-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;background:rgba(255,140,0,0.15);border:1px solid rgba(255,140,0,0.4);border-radius:20px;color:#ff8c00;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin:-20px 0 12px;position:relative;z-index:2}
.commu-dup-modal h3{margin:0 0 8px;font-size:20px;font-weight:700;color:#fff;letter-spacing:-.2px}
.commu-dup-sub{color:#a8a8ad;font-size:13px;line-height:1.55;margin:0 0 22px}
.commu-dup-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.commu-dup-btn-ghost,.commu-dup-btn-cancel,.commu-dup-btn-confirm{padding:11px 18px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;border:none;transition:all .15s;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.commu-dup-btn-ghost{background:transparent;color:#9a9a9e;border:1px solid rgba(255,255,255,0.12)}
.commu-dup-btn-ghost:hover{background:rgba(255,255,255,0.05);color:#fff}
.commu-dup-btn-cancel{background:transparent;color:#9a9a9e;border:1px solid rgba(255,255,255,0.12)}
.commu-dup-btn-cancel:hover{background:rgba(255,255,255,0.05);color:#fff}
.commu-dup-btn-confirm{background:linear-gradient(135deg,#f6821f 0%,#faae40 100%);color:#0d0907;font-weight:700;box-shadow:0 4px 14px rgba(246,130,31,0.25)}
.commu-dup-btn-confirm:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(246,130,31,0.4)}
@media(max-width:560px){.commu-dup-poster{height:140px}.commu-dup-body{padding:0 18px 22px}.commu-dup-modal h3{font-size:17px}.commu-dup-actions{flex-direction:column}.commu-dup-btn-ghost,.commu-dup-btn-cancel,.commu-dup-btn-confirm{width:100%;justify-content:center}}

/* Quand on est sur l'onglet "Faire une demande" (ask), masquer les autres tabs */
#commu-app[data-active-tab="ask"] .commu-tabs .commu-tab[data-tab="requests"],
#commu-app[data-active-tab="ask"] .commu-tabs .commu-tab[data-tab="mine"],
#commu-app[data-active-tab="ask"] .commu-tabs .commu-tab[data-tab="top"]{display:none !important}
