/* film.css — the فیلم و سریال section. Paper-first: cream ground, ink lines,
   white cards; the only colour on the page is the poster art. Reuses .lsect/.lh
   and .strp from landing.css for the section heads and the strips. */

.fwrap { max-width: 1100px; margin: 0 auto; padding: 14px 14px 40px; }

/* ── heads ─────────────────────────────────────────────────────────────── */
.fhead { margin: 6px 0 16px; }
.fkick { font-size: .78rem; color: var(--muted, rgba(31,31,31,.55)); letter-spacing: .02em; }
.fkick a { color: inherit; text-decoration: none; }
.fkick a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fh1 { font-size: 1.55rem; font-weight: 800; line-height: 1.25; margin: 4px 0 0; }
.fh1 .fcount { font-size: .8rem; font-weight: 400; color: var(--muted, rgba(31,31,31,.55)); margin-inline-start: 6px; }
.fsub { margin-top: 6px; font-size: .86rem; color: var(--muted, rgba(31,31,31,.55)); }
.fen { font-size: .82rem; color: var(--muted, rgba(31,31,31,.55)); margin-top: 3px; }
.fempty { color: var(--muted, rgba(31,31,31,.55)); padding: 30px 0; text-align: center; }

/* ── tiles ─────────────────────────────────────────────────────────────── */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
@media (max-width: 560px) { .fgrid { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; } }
.fstrp .ftile { width: 150px; }
@media (max-width: 560px) { .fstrp .ftile { width: 124px; } }

.ftile { display: block; color: inherit; text-decoration: none; min-width: 0; }
.fpost { display: block; position: relative; aspect-ratio: 2 / 3; overflow: hidden;
         background: #fff; border: 1px solid var(--line, #1f1f1f); border-radius: 2px;
         box-shadow: 2px 2px 0 var(--line, #1f1f1f); transition: transform .12s, box-shadow .12s; }
.ftile:hover .fpost { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line, #1f1f1f); }
.fpost img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fnop { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2.2rem; font-weight: 800; color: rgba(31,31,31,.25); }
.ftt { display: block; margin-top: 8px; font-size: .86rem; font-weight: 700; line-height: 1.35;
       overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fmt { display: block; margin-top: 2px; font-size: .74rem; color: var(--muted, rgba(31,31,31,.55)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the episode number stamped on the series poster */
.fepn { position: absolute; right: 6px; bottom: 6px; padding: 3px 8px; font-size: .74rem; font-weight: 700;
        background: #1f1f1f; color: #fbfaf5; border-radius: 2px; }

/* ── chips ─────────────────────────────────────────────────────────────── */
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.fchips.fsmall { margin: 8px 0 10px; }
.fchip { display: inline-flex; gap: 5px; align-items: baseline; padding: 4px 10px; font-size: .8rem;
         color: inherit; text-decoration: none; border: 1px solid var(--line, #1f1f1f); border-radius: 999px; background: #fff; }
.fchip span { font-size: .7rem; color: var(--muted, rgba(31,31,31,.55)); }
.fchip.on { background: #1f1f1f; color: #fbfaf5; }
.fchip.on span { color: rgba(251,250,245,.7); }

/* ── player pages ──────────────────────────────────────────────────────── */
.fplayer { margin: 4px 0 14px; border: 1px solid var(--line, #1f1f1f); border-radius: 2px; background: #000;
           box-shadow: 3px 3px 0 var(--line, #1f1f1f); overflow: hidden; }
.fplayer video, .fplayer .fyt { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; background: #000; border: 0; }
.fnovid { padding: 40px 16px; text-align: center; color: #fbfaf5; background: #1f1f1f; }
.fmeta { margin-bottom: 22px; }
.fbody { margin-top: 12px; font-size: .92rem; line-height: 1.8; max-width: 720px; }
.fbody p { margin: 0 0 .8em; }
.fviews { margin-top: 8px; font-size: .76rem; color: var(--muted, rgba(31,31,31,.55)); }

.fbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: .84rem; font-weight: 700;
        color: inherit; text-decoration: none; border: 1px solid var(--line, #1f1f1f); border-radius: 2px; background: #fff;
        box-shadow: 2px 2px 0 var(--line, #1f1f1f); }
.fbtn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line, #1f1f1f); }
.fbtn.fplay { background: #1f1f1f; color: #fbfaf5; margin-top: 10px; }
.fepnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }

/* ── one series ────────────────────────────────────────────────────────── */
.fshow { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.fshowpost { flex: 0 0 180px; aspect-ratio: 2 / 3; border: 1px solid var(--line, #1f1f1f); border-radius: 2px; background: #fff;
             box-shadow: 3px 3px 0 var(--line, #1f1f1f); overflow: hidden; }
.fshowpost img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fshowtxt { min-width: 0; flex: 1; }
@media (max-width: 560px) { .fshow { gap: 12px; } .fshowpost { flex-basis: 112px; } }

.fseason { font-size: .9rem; font-weight: 800; margin: 14px 0 6px; }
.feplist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, #1f1f1f); }
.feplist li a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 4px;
                color: inherit; text-decoration: none; border-bottom: 1px solid rgba(31,31,31,.18); }
.feplist li a:hover { background: #fff; }
.feplist li.on a { background: #1f1f1f; color: #fbfaf5; }
.feplist li.on .fepdt { color: rgba(251,250,245,.7); }
.fepno { font-weight: 700; font-size: .9rem; }
.fepdt { font-size: .74rem; color: var(--muted, rgba(31,31,31,.55)); white-space: nowrap; }

/* ── pager ─────────────────────────────────────────────────────────────── */
.fpager { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; font-size: .84rem; }
.fpager a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line, #1f1f1f); }
.fpg { color: var(--muted, rgba(31,31,31,.55)); }
