/* Forum: stesso layout di sempre, solo aspetto più curato */
#fm-app,#fm-toast{--ink:#f5f6fb;--muted:#a9abbd;--pink:#ff6384;--panel:#151824;--panel2:#1a1e2c;--bg:#0a0c13;--line:rgba(255,255,255,.09);--ok:#3ddc97;--warn:#ffb84d;--bad:#ff5c6c}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
#fm-app a{color:inherit}
#fm-badge{background:var(--pink);color:#fff;border-radius:999px;padding:1px 7px;font-size:.75rem}
#fm-app{max-width:980px;margin:0 auto;padding:24px 16px 64px}
#fm-app h1{margin:.15em 0 .1em;font-size:clamp(1.6rem,4vw,2.1rem);letter-spacing:-.01em;line-height:1.15}
.fm-note,.fm-muted{color:var(--muted)}
.fm-crumbs{color:var(--muted);font-size:.9rem;margin-bottom:8px}
.fm-crumbs a{color:var(--muted);text-decoration:none}.fm-crumbs a:hover{color:#fff}
/* schede */
.fm-card{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:14px;padding:15px 18px;margin:11px 0;box-shadow:0 1px 0 rgba(255,255,255,.03) inset,0 6px 18px rgba(0,0,0,.22)}
.fm-board,.fm-thread{display:flex;justify-content:space-between;gap:14px;align-items:center;text-decoration:none;transition:border-color .15s,transform .15s,box-shadow .15s}
.fm-board:hover,.fm-thread:hover{border-color:rgba(255,99,132,.55);transform:translateY(-1px);box-shadow:0 10px 26px rgba(0,0,0,.35)}
.fm-board strong{font-size:1.08rem}
.fm-board{border-left:3px solid var(--pink)}
.fm-stat{text-align:right;color:var(--muted);font-size:.85rem;white-space:nowrap;line-height:1.4}
.fm-thread.unread{border-left:3px solid var(--pink)}
.fm-thread.unread strong{color:#fff}
.fm-thread:not(.unread) strong{font-weight:600;color:#e4e5ef}
.fm-tag{display:inline-block;border:1px solid currentColor;border-radius:999px;padding:0 9px;font-size:.72rem;margin-right:7px;color:var(--warn);vertical-align:middle}
.fm-new{background:var(--pink);color:#fff;border-radius:999px;padding:1px 9px;font-size:.72rem;margin-left:8px;font-weight:600;vertical-align:middle}
/* controlli */
.fm-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
#fm-app input,#fm-app textarea,#fm-app select{background:#0e111b;color:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;width:100%;transition:border-color .15s,box-shadow .15s}
#fm-app input:focus,#fm-app textarea:focus{border-color:var(--pink);box-shadow:0 0 0 3px rgba(255,99,132,.18);outline:none}
.fm-toolbar input{flex:1 1 220px;width:auto}
#fm-app textarea{min-height:120px;resize:vertical}
#fm-app button{background:var(--pink);color:#fff;border:0;border-radius:10px;padding:9px 18px;font:inherit;font-weight:600;cursor:pointer;transition:filter .15s,transform .15s}
#fm-app button:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}
#fm-app button.ghost{background:rgba(255,255,255,.06);border:1px solid var(--line);font-weight:500}
#fm-app button.danger{background:#b3202f}
#fm-app button.small{padding:4px 11px;font-size:.82rem;border-radius:8px}
#fm-app button:disabled{opacity:.45;cursor:not-allowed}
#fm-app button:focus-visible,#fm-app a:focus-visible,#fm-app input:focus-visible,#fm-app textarea:focus-visible{outline:2px solid var(--pink);outline-offset:2px}
/* messaggi */
.fm-post{display:grid;grid-template-columns:150px 1fr;gap:16px;padding:0;overflow:hidden}
.fm-post>.fm-author{background:rgba(0,0,0,.2);padding:15px 14px;border-right:1px solid var(--line)}
.fm-post>div:last-child{padding:15px 16px 15px 0;min-width:0}
.fm-author{color:var(--muted);font-size:.85rem;overflow-wrap:anywhere}
.fm-author b{color:#fff;display:block;font-size:.97rem;margin-bottom:2px}
.fm-staff{color:var(--ok)!important}
.fm-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.fm-deleted{color:var(--muted);font-style:italic}
.fm-actions{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap;align-items:center}
.fm-pager{display:flex;justify-content:space-between;align-items:center;margin:14px 0;color:var(--muted);gap:8px;flex-wrap:wrap}
.fm-count{text-align:right;color:var(--muted);font-size:.8rem;margin:4px 0}
.fm-err{color:var(--bad);min-height:1.2em}
.fm-modbar{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
#fm-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#1f6f4a;color:#fff;padding:10px 18px;border-radius:10px;max-width:90vw;box-shadow:0 8px 26px rgba(0,0,0,.5);z-index:50}
#fm-toast.bad{background:#a32030}
@media(max-width:640px){
.fm-post{grid-template-columns:1fr;gap:0}
.fm-post>.fm-author{border-right:0;border-bottom:1px solid var(--line)}
.fm-post>div:last-child{padding:14px 16px}
.fm-thread,.fm-board{flex-direction:column;align-items:flex-start}.fm-stat{text-align:left}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ---- logo, icone e disposizione del testo ---- */
.fm-titlebar{display:flex;align-items:center;gap:16px;margin:4px 0 14px}
.fm-titlebar h1{margin:0}
.fm-titlebar .fm-note{margin:2px 0 0;max-width:52ch}
.fm-bigLogo{width:64px;height:64px;border-radius:16px;flex:none;box-shadow:0 8px 24px rgba(255,99,132,.28)}
.fm-tile{flex:none;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,rgba(255,99,132,.32),rgba(255,138,92,.16));border:1px solid rgba(255,99,132,.35)}
.fm-tile-lg{width:56px;height:56px;border-radius:16px}
.fm-ico{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fm-tile-lg .fm-ico{width:28px;height:28px}
.fm-tile-richieste{background:linear-gradient(135deg,rgba(255,99,132,.32),rgba(255,138,92,.14));border-color:rgba(255,99,132,.4)}
.fm-tile-novita{background:linear-gradient(135deg,rgba(255,184,77,.32),rgba(255,138,92,.12));border-color:rgba(255,184,77,.45);color:#ffe2ad}
.fm-tile-attivazioni{background:linear-gradient(135deg,rgba(106,183,255,.3),rgba(106,183,255,.1));border-color:rgba(106,183,255,.45);color:#cfe6ff}
.fm-tile-generale{background:linear-gradient(135deg,rgba(61,220,151,.28),rgba(61,220,151,.08));border-color:rgba(61,220,151,.42);color:#c9f7e2}
.fm-tile-segnalazioni{background:linear-gradient(135deg,rgba(255,92,108,.3),rgba(255,92,108,.1));border-color:rgba(255,92,108,.45);color:#ffd2d7}
.fm-board{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;border-left:1px solid var(--line)}
.fm-binfo strong{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:1.1rem;line-height:1.3}
.fm-binfo .fm-new{margin-left:0}
.fm-binfo .fm-muted{margin-top:2px;font-size:.92rem;max-width:56ch}
.fm-stat b{color:#fff;font-size:1.05rem}
.fm-tinfo{flex:1;min-width:0}
.fm-tinfo>strong{display:inline;font-size:1.05rem;line-height:1.4;overflow-wrap:anywhere}
.fm-tinfo .fm-muted{margin-top:3px;font-size:.84rem}
.fm-thread{gap:18px}
.fm-pbody{padding-top:15px}
.fm-body{font-size:1.02rem;line-height:1.72;max-width:72ch}
.fm-author{display:flex;flex-direction:column;gap:2px;font-size:.8rem}
.fm-author b{font-size:1rem;margin-bottom:4px}
#fm-app h1{font-size:clamp(1.6rem,4vw,2.2rem)}
.fm-crumbs{margin-bottom:10px;font-size:.86rem}
@media(max-width:640px){
.fm-board{grid-template-columns:auto 1fr;}.fm-board .fm-stat{grid-column:1/-1;text-align:left}
.fm-bigLogo{width:52px;height:52px}.fm-titlebar{gap:12px}
}

/* ---- v3: icone più piccole e più colorate, testo delle discussioni ---- */
.fm-bigLogo{width:44px;height:44px;border-radius:12px;box-shadow:0 4px 14px rgba(255,99,132,.3)}
.fm-titlebar{gap:12px}
.fm-tile{width:38px;height:38px;border-radius:11px;border:0;color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.35)}
.fm-tile-lg{width:42px;height:42px;border-radius:12px}
.fm-tile-sm{width:32px;height:32px;border-radius:9px}
.fm-ico{width:20px;height:20px;stroke-width:2}.fm-tile-lg .fm-ico{width:23px;height:23px}.fm-tile-sm .fm-ico{width:17px;height:17px}
.fm-tile-richieste{background:linear-gradient(135deg,#ff4f7b,#ff8a3d)}
.fm-tile-novita{background:linear-gradient(135deg,#ffb020,#ffe14d);color:#3a2600}
.fm-tile-attivazioni{background:linear-gradient(135deg,#2f8bff,#27d3e6)}
.fm-tile-generale{background:linear-gradient(135deg,#1fc28a,#7be04f)}
.fm-tile-segnalazioni{background:linear-gradient(135deg,#ff3b57,#d63aa5)}
.fm-tile-pin{background:linear-gradient(135deg,#ffb020,#ff7a33)}
.fm-tile-lock{background:linear-gradient(135deg,#6b7088,#4a4f66)}
.fm-board{gap:14px;padding:13px 16px}
.fm-binfo strong{font-size:1.05rem}
.fm-mi{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-2px;margin-right:5px;flex:none}
/* elenco discussioni */
.fm-thread{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:12px 16px}
.fm-ttl{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.fm-ttl strong{font-size:1.05rem;line-height:1.35;overflow-wrap:anywhere}
.fm-ttl .fm-tag,.fm-ttl .fm-new{margin:0}
.fm-tag-off{color:var(--muted)}
.fm-meta{display:flex;flex-wrap:wrap;gap:4px 16px;color:#8e90a6;font-size:.82rem;margin-top:4px}
.fm-meta span{display:inline-flex;align-items:center}
.fm-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.fm-chip{display:inline-flex;align-items:center;background:rgba(106,183,255,.14);color:#9fd0ff;border-radius:999px;padding:2px 11px;font-weight:700;font-size:.9rem}
.fm-chip .fm-mi{margin-right:6px}
.fm-side small{color:#8e90a6;display:inline-flex;align-items:center;font-size:.75rem;white-space:nowrap}
/* discussione aperta */
.fm-titlebar .fm-meta{margin-top:2px}
.fm-titlebar h1{font-size:clamp(1.35rem,3.4vw,1.9rem);overflow-wrap:anywhere}
.fm-pmeta{display:flex;align-items:center;color:#8e90a6;font-size:.8rem;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.fm-pmeta em{font-style:normal;margin-left:4px}
.fm-author b{display:flex;align-items:center;font-size:.98rem}
.fm-author .fm-mi{color:var(--pink);width:16px;height:16px}
.fm-role{align-self:flex-start;font-size:.68rem;border-radius:999px;padding:1px 9px;background:rgba(61,220,151,.16);color:var(--ok);margin-top:4px}
.fm-role-op{background:rgba(255,99,132,.18);color:var(--pink)}
.fm-actions button .fm-mi{margin-right:4px;width:13px;height:13px}
@media(max-width:640px){
.fm-thread{grid-template-columns:auto 1fr}.fm-side{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}
}

/* ---- avatar ---- */
.fm-av{display:inline-grid;place-items:center;border-radius:50%;color:#fff;font-weight:700;flex:none;box-shadow:inset 0 0 0 2px rgba(255,255,255,.15)}
.fm-av-xs{width:20px;height:20px;font-size:.65rem;margin-right:6px}
.fm-av-md{width:46px;height:46px;font-size:1.2rem;margin-bottom:6px}
.fm-av-xl{width:72px;height:72px;font-size:1.9rem}
.fm-avi{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fm-av-xs .fm-avi{width:12px;height:12px}.fm-av-md .fm-avi{width:26px;height:26px}.fm-av-xl .fm-avi{width:40px;height:40px}
.fm-av-staff{background:linear-gradient(135deg,#ff4f7b,#ffb020)}
.fm-avc0{background:linear-gradient(135deg,#ff4f7b,#ff8a3d)}.fm-avc1{background:linear-gradient(135deg,#2f8bff,#27d3e6)}
.fm-avc2{background:linear-gradient(135deg,#1fc28a,#7be04f)}.fm-avc3{background:linear-gradient(135deg,#a855f7,#ec4899)}
.fm-avc4{background:linear-gradient(135deg,#ffb020,#ff7a33)}.fm-avc5{background:linear-gradient(135deg,#14b8a6,#3b82f6)}
.fm-avc6{background:linear-gradient(135deg,#ef4444,#d63aa5)}.fm-avc7{background:linear-gradient(135deg,#6366f1,#8b5cf6)}
.fm-author{align-items:flex-start}
.fm-author b{display:block}
.fm-avbtn{margin-left:auto;align-self:flex-start}
.fm-picker h2{margin:0 0 10px;font-size:1.15rem}.fm-picker h3{margin:14px 0 6px;font-size:.85rem;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.08em}
.fm-pvw{display:flex;align-items:center;gap:14px}
.fm-avgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:8px}
.fm-avopt{background:rgba(255,255,255,.06);border:1px solid var(--line);border-radius:12px;padding:10px;display:grid;place-items:center;color:#fff}
.fm-avopt .fm-avi{width:26px;height:26px}
.fm-avopt.on{border-color:var(--pink);box-shadow:0 0 0 2px rgba(255,99,132,.35);background:rgba(255,99,132,.16)}
.fm-swatches{display:flex;flex-wrap:wrap;gap:10px}
.fm-sw{width:34px;height:34px;border-radius:50%;padding:0;border:2px solid transparent}
.fm-sw.on{border-color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.25)}
@media(max-width:640px){.fm-avbtn{margin-left:0}.fm-titlebar{flex-wrap:wrap}}

/* ---- release torrent ---- */
.fm-tile-torrent{background:linear-gradient(135deg,#7c4dff,#2f8bff)}
.fm-thumb{width:38px;height:56px;object-fit:cover;border-radius:6px;flex:none;box-shadow:0 3px 10px rgba(0,0,0,.4);background:#0e111b}
.fm-release{display:grid;grid-template-columns:170px 1fr;gap:20px;padding:16px}
.fm-poster{width:170px;aspect-ratio:2/3;object-fit:cover;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.45);background:#0e111b}
.fm-poster-none{display:grid;place-items:center;color:var(--muted)}.fm-poster-none .fm-ico{width:48px;height:48px;stroke:currentColor;fill:none}
.fm-rbody h2{margin:0 0 2px;font-size:1.35rem;line-height:1.25}
.fm-rnotes{display:inline-block;margin:8px 0 2px;background:rgba(124,77,255,.18);color:#d2c3ff;border-radius:999px;padding:2px 12px;font-size:.85rem}
.fm-facts{display:grid;grid-template-columns:max-content 1fr;gap:5px 16px;margin:12px 0}
.fm-facts dt{color:var(--muted);font-size:.85rem}.fm-facts dd{margin:0;overflow-wrap:anywhere}
.fm-ractions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 6px}
.fm-btn{display:inline-block;background:var(--pink);color:#fff;border-radius:10px;padding:9px 18px;font-weight:600;text-decoration:none;transition:filter .15s}
.fm-btn:hover{filter:brightness(1.1)}
.fm-rlinks{display:flex;gap:14px}.fm-rlinks a{color:#9fd0ff;text-decoration:none;font-size:.9rem}
.fm-rhint{color:#8e90a6;font-size:.8rem;margin:10px 0 0;max-width:60ch}
@media(max-width:640px){.fm-release{grid-template-columns:110px 1fr;gap:12px}.fm-poster{width:110px}.fm-rbody h2{font-size:1.15rem}}

#fm-app{color:var(--ink);font:16px/1.55 Inter,Segoe UI,system-ui,-apple-system,sans-serif}
#fm-badge{background:var(--pink,#ff6384);color:#fff;border-radius:999px;padding:1px 7px;font-size:.75rem}
/* scheda novità */
.fm-media .fm-overview{margin:12px 0;line-height:1.6;color:var(--text,#e9edf7)}
.fm-trailer{margin:14px 0 6px;max-width:560px}
.fm-trailer .fm-tbtn{position:relative;display:block;width:100%;padding:0!important;border:1px solid #3a4560!important;border-radius:14px;overflow:hidden;cursor:pointer;background:#0b0e16!important;aspect-ratio:16/9;min-height:0}
.fm-tbtn img{width:100%;height:100%;object-fit:cover;opacity:.85;display:block}
.fm-play{position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;background:var(--pink,#ff4f79);color:#fff;font-size:26px;display:grid;place-items:center;padding-left:4px;box-shadow:0 8px 28px rgba(0,0,0,.5)}
.fm-tlabel{position:absolute;left:10px;bottom:10px;right:10px;text-align:left;font-size:.85rem;font-weight:700;color:#fff;text-shadow:0 1px 6px #000}
.fm-trailer iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:14px;display:block}

