/* ==========================================================================
   AA-FILES1 (13/10/2026) : free PDF / ZIP posts (js/aa-files1.js)
   ========================================================================== */
/* ---- the file block inside the post frame (feed, profiles, post window, public pages) ---- */
.f1f-card .f2-tblock { aspect-ratio: auto !important; max-height: none !important; min-height: 0; padding-top: 44px; padding-bottom: 22px; }
.f1f-card .f2-tt { -webkit-line-clamp: unset !important; max-height: calc(6em + 2px); overflow: hidden; font-size: 1.02rem; }
.f1f-card .f2-tin.open .f2-tt { max-height: none; }
.f1f-box {
    width: 100%; max-width: 330px; margin: 10px auto 2px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 14px 14px 16px; border-radius: 18px; text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 26px rgba(0, 0, 0, .35);
}
/* fixed size: nothing moves when the preview arrives */
.f1f-doc {
    position: relative; width: 132px; height: 172px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(120% 90% at 50% 0%, rgba(255, 107, 53, .22), transparent 70%), #141414;
    border: 1px solid rgba(255, 140, 90, .28); box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.f1f-doc.f1f-has { background: #fff; border-color: rgba(255, 255, 255, .25); }
.f1f-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; margin: 0; border-radius: 0; max-height: none; }
.f1f-tag {
    position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; background: rgba(10, 10, 10, .78); box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.f1f-big { display: flex; filter: drop-shadow(0 0 14px rgba(255, 107, 53, .35)); }
.f1f-svg { display: block; }
.f1f-meta { display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: 100%; min-width: 0; }
.f1f-name { display: flex; justify-content: center; max-width: 100%; min-width: 0; color: #fff; font: 700 .95rem/1.25 var(--font-body, 'Inter', sans-serif); white-space: nowrap; }
.f1f-nb { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.f1f-ne { flex: 0 0 auto; }
.f1f-sub { color: rgba(255, 255, 255, .6); font: 600 .74rem/1.2 var(--font-body, 'Inter', sans-serif); letter-spacing: .02em; }
.f1f-dl {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 168px; height: 42px; padding: 0 22px; box-sizing: border-box;
    border-radius: 999px; text-decoration: none !important; color: #0A0A0A !important; cursor: pointer;
    background: linear-gradient(135deg, #FF6B35, #F7C948); box-shadow: 0 6px 18px rgba(255, 107, 53, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
    font: 800 .86rem/1 var(--font-sub, 'Rajdhani', sans-serif); letter-spacing: .06em; text-transform: uppercase;
}
.f1f-dl:hover { box-shadow: 0 8px 24px rgba(255, 107, 53, .5), inset 0 1px 0 rgba(255, 255, 255, .45); }
.f1f-ssr { margin: 4px 12px 12px; }
.f1f-dl:focus-visible { outline: 2px solid #F7C948; outline-offset: 3px; }
@media (max-width: 768px) {
    .f1f-box { max-width: 300px; padding: 12px 12px 14px; }
    .f1f-doc { width: 118px; height: 154px; }
}

/* ---- composer: the chosen file, its upload, remove ---- */
.f1f-chip {
    display: grid; grid-template-columns: 38px minmax(0, 1fr) 30px; align-items: center; gap: 10px; margin: 8px 0; padding: 9px 10px;
    border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 140, 90, .28); box-sizing: border-box;
}
.f1f-chip.is-err { border-color: rgba(255, 68, 68, .55); }
.f1f-ci { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #141414; }
.f1f-ct { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.f1f-ct b { color: #fff; font: 700 .86rem/1.2 var(--font-body, 'Inter', sans-serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f1f-ct small { color: rgba(255, 255, 255, .6); font-size: .72rem; }
.f1f-ct em { font-style: normal; color: #F7C948; font-weight: 700; }
.f1f-ct em.f1f-ok { color: #3DFF8F; }
.f1f-ct em.f1f-err { color: #FF6B6B; }
.f1f-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 3px; }
.f1f-bar u { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FF6B35, #F7C948); transition: width .2s linear; }
.f1f-cx { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; font-size: 1.1rem; line-height: 1; background: rgba(255, 255, 255, .1); }
.f1f-cx:hover { background: rgba(255, 68, 68, .35); }
