.ffm-wrap{--ink:#0b1739;--muted:#64748b;--line:#e2e8f0;--blue:#0d4ea6;--bg:#f8fafc;max-width:1180px;margin:24px auto;font-family:inherit;color:var(--ink)}
.ffm-hero{padding:30px;border-radius:26px;background:linear-gradient(135deg,#071b44 0%,#0d4ea6 55%,#6536d9 100%);color:#fff;box-shadow:0 18px 50px rgba(11,23,57,.18)}
.ffm-kicker{font-weight:900;font-size:12px;letter-spacing:.13em;opacity:.85}
.ffm-hero h2{margin:.35rem 0 .55rem;font-size:clamp(32px,5vw,56px);line-height:1.03;color:#fff}
.ffm-hero p{margin:0 0 18px;font-size:17px;opacity:.94;max-width:850px}
.ffm-searchrow{display:flex;background:#fff;border-radius:17px;padding:6px;gap:6px}
.ffm-searchrow input{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;padding:14px 15px;font-size:16px;background:transparent}
.ffm-searchrow button{border:0;border-radius:12px;background:#eef2f7;padding:0 16px;cursor:pointer;font-size:18px}
.ffm-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.ffm-actions button,.ffm-actions a,.ffm-themehead button{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.13);color:#fff;padding:9px 13px;border-radius:999px;cursor:pointer;font-weight:800;text-decoration:none}
.ffm-actions .ffm-pdf{background:#fff;color:#0d4ea6}
.ffm-themebox{margin-top:18px;border:1px solid var(--line);background:#fff;border-radius:22px;padding:18px;box-shadow:0 8px 28px rgba(15,23,42,.05)}
.ffm-themehead{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:14px}
.ffm-themehead strong{display:block;font-size:19px}.ffm-themehead span{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.ffm-themehead button{background:#0f172a;border-color:#0f172a}
.ffm-themes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.ffm-theme,.ffm-catgrid button{border:1px solid var(--line);background:#f8fafc;color:var(--ink);padding:10px 11px;border-radius:13px;text-align:left;cursor:pointer;font-weight:750;line-height:1.2}
.ffm-theme:hover,.ffm-theme.is-active,.ffm-catgrid button:hover,.ffm-catgrid button.is-active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}
.ffm-theme span{margin-right:4px}
.ffm-cats{margin-top:14px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:0 16px}
.ffm-cats summary{cursor:pointer;font-weight:850;padding:15px 0}
.ffm-catgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 0 16px}
.ffm-catgrid button{display:flex;justify-content:space-between;gap:8px}.ffm-catgrid small{opacity:.6}
.ffm-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px 2px 10px}
.ffm-toolbar select{margin-left:8px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff}
.ffm-active{display:inline-block;margin-left:8px;color:#2563eb;font-size:13px}
.ffm-status{padding:22px;border:1px dashed var(--line);border-radius:16px;text-align:center;background:var(--bg);color:var(--muted)}
.ffm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ffm-card{display:flex;flex-direction:column;border:1px solid var(--line);background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 30px rgba(15,23,42,.06);min-height:100%}
.ffm-thumb{aspect-ratio:16/9;background:#e9eef5;overflow:hidden}.ffm-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ffm-placeholder{display:flex;align-items:center;justify-content:center;font-size:42px}
.ffm-body{padding:16px;display:flex;flex-direction:column;gap:9px;height:100%}
.ffm-meta{font-size:12px;color:var(--muted);font-weight:800}.ffm-type{display:inline-block;background:#eef2ff;color:#4338ca;border-radius:999px;padding:2px 7px;margin-right:5px}
.ffm-title{font-size:20px;line-height:1.2;margin:0}.ffm-title a{color:var(--ink);text-decoration:none}
.ffm-excerpt{color:#475569;line-height:1.55;font-size:14px}.ffm-read{margin-top:auto;font-weight:850;text-decoration:none}
.ffm-bottom{text-align:center}.ffm-more{margin:22px auto 0;border:0;border-radius:999px;background:#0d4ea6;color:#fff;padding:12px 24px;font-weight:850;cursor:pointer}
.ffm-empty{grid-column:1/-1;padding:34px;text-align:center;border:1px dashed var(--line);border-radius:16px;background:var(--bg)}
@media(max-width:1000px){.ffm-themes{grid-template-columns:repeat(3,minmax(0,1fr))}.ffm-catgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.ffm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.ffm-grid{grid-template-columns:1fr}.ffm-themes,.ffm-catgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.ffm-hero{padding:21px;border-radius:19px}.ffm-toolbar,.ffm-themehead{align-items:flex-start;flex-direction:column}.ffm-hero h2{font-size:35px}}
@media(max-width:420px){.ffm-themes,.ffm-catgrid{grid-template-columns:1fr}}

.ffm-reason{font-size:12px;line-height:1.35;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;color:#475569;font-weight:700}
