/* FSS Releases v1.1 - styles fiche film/serie - single line layout */
.commu-rel-block { margin-top: 12px; padding: 14px 12px; border-top: 1px dashed rgba(244,134,37,.3); color: #ddd; }
.commu-rel-divider { text-align: center; color: #888; font-size: 11px; letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase; }
.commu-rel-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.commu-rel-empty { text-align: center; color: #777; font-size: 12px; padding: 8px; font-style: italic; }

.commu-rel-item { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 6px; padding: 10px 12px; transition: border-color .15s; }
.commu-rel-item:hover { border-color: rgba(244,134,37,.3); }
.commu-rel-item.is-mine { border-color: rgba(244,134,37,.2); background: rgba(244,134,37,.04); }

.commu-rel-main { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.commu-rel-name { flex: 1 1 auto; min-width: 0; font-family: 'Courier New', monospace; font-size: 12px; color: #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.commu-rel-q { flex: 0 0 auto; background: #f48625; color: #0a0a0a; padding: 3px 8px; border-radius: 3px; font-weight: 800; font-size: 10px; letter-spacing: .5px; }
.commu-rel-sz { flex: 0 0 auto; color: #aaa; font-size: 11px; }

.commu-rel-dl { flex: 0 0 auto; background: linear-gradient(135deg, #f48625, #ff8c00); color: #0a0a0a !important; padding: 6px 12px; border-radius: 5px; text-decoration: none !important; font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; transition: filter .15s; white-space: nowrap; }
.commu-rel-dl:hover { filter: brightness(1.15); }
.commu-rel-vote { flex: 0 0 auto; background: rgba(255,255,255,.05); color: #aaa; border: 1px solid rgba(255,255,255,.08); padding: 5px 9px; border-radius: 5px; font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all .15s; }
.commu-rel-vote:hover:not(.is-own) { background: rgba(255,255,255,.1); color: #fff; }
.commu-rel-vote.active { background: rgba(244,134,37,.2); color: #f48625; border-color: rgba(244,134,37,.5); }
.commu-rel-vote.is-own { opacity: .35; cursor: not-allowed; }
.commu-rel-vote.shake { animation: rel-shake .3s; }
@keyframes rel-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.commu-rel-del { flex: 0 0 auto; background: rgba(231,76,60,.1); color: #e74c3c; border: 1px solid rgba(231,76,60,.3); padding: 5px 8px; border-radius: 5px; cursor: pointer; font-size: 11px; }
.commu-rel-del:hover { background: rgba(231,76,60,.2); }

.commu-rel-by { flex: 0 0 auto; font-size: 10px; color: #888; padding-left: 4px; margin-left: 4px; border-left: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.commu-rel-by b { color: #ccc; font-weight: 600; }

.commu-rel-add-row { text-align: center; margin: 8px 0; }
.commu-rel-toggle { background: transparent; color: #f48625; border: 1px dashed rgba(244,134,37,.5); padding: 8px 16px; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; }
.commu-rel-toggle:hover { background: rgba(244,134,37,.1); border-style: solid; }

.commu-rel-form { margin-top: 12px; padding: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(244,134,37,.2); border-radius: 6px; }
.commu-rel-form[hidden] { display: none; }
.commu-rel-form-grid { display: grid; grid-template-columns: 1fr 1fr 80px; gap: 6px; margin-bottom: 8px; }
.commu-rel-input { 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-rel-input:focus { outline: none; border-color: #f48625; }
.commu-rel-form-grid .commu-rel-input { margin-bottom: 0; }
#commu-rel-quality-custom[hidden] { display: none; }
#commu-rel-quality-custom { margin-top: 6px; }
.commu-rel-form-actions { display: flex; gap: 6px; margin-top: 8px; }
.commu-rel-btn-save { flex: 1; background: #f48625; color: #0a0a0a; border: none; padding: 9px 14px; border-radius: 5px; font-weight: 700; font-size: 12px; cursor: pointer; }
.commu-rel-btn-save:hover { background: #ff8c00; }
.commu-rel-btn-save:disabled { opacity: .5; cursor: not-allowed; }
.commu-rel-btn-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-rel-btn-cancel:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.commu-rel-msg { margin-top: 8px; font-size: 12px; min-height: 16px; }
.commu-rel-msg.ok { color: #2ecc71; }
.commu-rel-msg.err { color: #e74c3c; }

@media (max-width: 700px) {
  .commu-rel-main { flex-wrap: wrap; }
  .commu-rel-name { flex-basis: 100%; }
  .commu-rel-form-grid { grid-template-columns: 1fr; }
}


/* Custom quality input narrower (max 10 chars) */
.commu-rel-input-narrow { max-width: 200px !important; margin-top: 6px !important; }

/* NFO toggle + textarea + button vue */
.commu-rel-nfo-toggle { background: transparent; color: #f48625; border: 1px dashed rgba(244,134,37,.4); padding: 6px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; }
.commu-rel-nfo-toggle:hover { background: rgba(244,134,37,.1); border-style: solid; }
#commu-rel-nfo-textarea { display: block; width: 100%; min-height: 140px; max-height: 300px; background: #060606; color: #ddd; border: 1px solid rgba(244,134,37,.25); border-radius: 4px; padding: 10px; font-family: 'Courier New', monospace; font-size: 11px; line-height: 1.45; margin-top: 8px; resize: vertical; box-sizing: border-box; }
#commu-rel-nfo-textarea[hidden] { display: none; }
.commu-rel-nfo-view { background: rgba(52,152,219,.12); color: #3498db; border: 1px solid rgba(52,152,219,.3); padding: 5px 9px; border-radius: 5px; cursor: pointer; font-size: 11px; }
.commu-rel-nfo-view:hover { background: rgba(52,152,219,.22); color: #fff; }

/* NFO modal viewer */
.commu-rel-modal-bg { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.78); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.commu-rel-modal { background: #0d0d0d; border: 1px solid rgba(244,134,37,.3); border-radius: 8px; max-width: 760px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; }
.commu-rel-modal-head { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; }
.commu-rel-modal-head h4 { color: #f48625; margin: 0; font-size: 14px; }
.commu-rel-modal-close { background: transparent; color: #888; border: none; font-size: 22px; cursor: pointer; line-height: 1; }
.commu-rel-modal-close:hover { color: #fff; }
.commu-rel-nfo-content { background: #060606; color: #ccc; font-family: 'Courier New', monospace; font-size: 11px; line-height: 1.4; padding: 16px; margin: 0; overflow: auto; flex: 1; white-space: pre; min-height: 200px; }

/* Shake animation pour bouton locked + boutons vote disabled */
.commu-rel-toggle.shake { animation: rel-shake .35s; }

/* Group 5 - bloc locked */
.commu-rel-block-locked { opacity: .85; }
.commu-rel-block-locked .commu-rel-toggle { color: #888; border-color: rgba(255,255,255,.15); }
.commu-rel-block-locked .commu-rel-toggle:hover { color: #f48625; border-color: rgba(244,134,37,.5); background: transparent; }
