/* iSrbija forum – arhiva */
:root {
  --bg: #f4f5f7; --card: #fff; --text: #1d1d1f; --muted: #6e6e73; --line: #e3e4e8;
  --accent: #0a66c2; --accent-2: #e8f0fb; --quote: #f6f7f9; --code: #f3f3f5; --note: #fff8e1; --note-line: #f2dc8c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214; --card: #1b1c1f; --text: #ececf0; --muted: #9a9aa2; --line: #2c2d31;
    --accent: #5aa2ff; --accent-2: #1c2a3d; --quote: #232428; --code: #232428; --note: #2a2516; --note-line: #4a3f1c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: .4em 0 .3em; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; margin: 0; }

.top { background: #1d1d1f; color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; }
.logo img { display: block; height: 50px; width: auto; }
.logo span { color: #a1a1a6; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; border-left: 1px solid #48484a; padding-left: 8px; }
.logo:hover { text-decoration: none; }
.srv { color: #fff; background: var(--accent); padding: 8px 16px; border-radius: 999px; font-size: 1rem; font-weight: 500; white-space: nowrap; }
.srv:hover { text-decoration: none; filter: brightness(1.1); }
.note { background: var(--note); border-bottom: 1px solid var(--note-line); font-size: 1rem; padding: 10px 0; }
.note .wrap { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; justify-content: space-between; }
.note .stats { white-space: nowrap; }
.note .stats b { font-weight: 700; }
.note .note-txt { color: var(--muted); font-size: .92rem; }
main { padding: 12px 16px 40px; }
.lead { color: var(--muted); margin-top: 0; }

.crumbs { font-size: .9rem; color: var(--muted); margin: 10px 0 0; overflow-wrap: anywhere; }
.crumbs .sep { margin: 0 2px; }

.cat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 16px 0; overflow: hidden; }
.cat > h2 { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--accent-2); }
.frow { display: flex; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.frow:first-child { border-top: 0; }
.fmain { flex: 1; min-width: 0; }
.ftitle { font-weight: 600; font-size: 1.02rem; }
.fdesc, .subs { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.subs a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); }
.fstat { display: flex; flex-direction: column; align-items: flex-end; font-size: .82rem; color: var(--muted); white-space: nowrap; }

.tlist { list-style: none; margin: 12px 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.trow { display: flex; gap: 16px; padding: 11px 16px; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.tmain { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tmain > a { font-weight: 600; }
.tmeta, .tpages { font-size: .82rem; color: var(--muted); }
.tpages a { margin: 0 2px; }
.tstat { display: flex; flex-direction: column; align-items: flex-end; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.prefix { display: inline-block; font-size: .75rem; font-weight: 600; background: var(--accent-2); color: var(--accent); padding: 1px 7px; border-radius: 6px; }
.sticky { display: inline-block; font-size: .75rem; font-weight: 600; background: #fde7c8; color: #8a4b00; padding: 1px 7px; border-radius: 6px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 12px 0; font-size: .9rem; }
.pager a, .pager .cur { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.pager .cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .pinfo { color: var(--muted); margin-right: 8px; }
.pager .gap { color: var(--muted); padding: 0 2px; }

.tinfo { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; padding: 14px 16px; }
.phead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: .88rem; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.author { font-weight: 700; color: var(--text); font-size: .95rem; }
.pnum { margin-left: auto; color: var(--muted); }
.ptitle { font-weight: 600; margin-bottom: 6px; }
.pbody { overflow-wrap: anywhere; }
.pbody img.pimg, .att-img img { max-width: 100%; height: auto; border-radius: 6px; vertical-align: middle; }
.pbody .att-img img { max-height: 520px; width: auto; }
.pbody img.smilie, .pbody img.emoji { height: 1.3em; width: auto; vertical-align: -.25em; }
.q { margin: 8px 0; padding: 8px 12px; background: var(--quote); border-left: 3px solid var(--accent); border-radius: 6px; }
.q-h { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.q-go { margin-left: 4px; }
.code { margin: 8px 0; }
.code-h { font-size: .8rem; color: var(--muted); }
.code pre { margin: 2px 0 0; padding: 10px 12px; background: var(--code); border-radius: 6px; overflow-x: auto; font-size: .85rem; }
.al-center { text-align: center; } .al-right { text-align: right; }
.indent { margin-left: 24px; }
.sz1 { font-size: .8em; } .sz3 { font-size: 1.15em; } .sz4 { font-size: 1.3em; } .sz5 { font-size: 1.5em; } .sz6, .sz7 { font-size: 1.7em; }
.tbl { overflow-x: auto; } .tbl table { border-collapse: collapse; } .tbl td { border: 1px solid var(--line); padding: 4px 8px; }
.spoiler summary { cursor: pointer; color: var(--accent); }
.yt { position: relative; display: inline-block; max-width: 480px; width: 100%; margin: 6px 0; }
.yt img { width: 100%; border-radius: 8px; display: block; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 44px; border-radius: 12px; background: rgba(255,0,0,.85);
  color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.atts { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.atts-h { width: 100%; font-size: .82rem; color: var(--muted); }
.atts .att-img img { max-height: 160px; width: auto; }
.img-dead { display: inline-block; font-size: .85rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 4px 10px; margin: 2px 0; }
.att-file span { color: var(--muted); font-size: .85em; }
.back { margin-top: 20px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 18px 0 30px; }

@media (max-width: 640px) {
  h1 { font-size: 1.3rem; }
  .frow, .trow { flex-direction: column; gap: 4px; }
  .fstat, .tstat { flex-direction: row; gap: 10px; align-items: flex-start; }
  .post { padding: 12px; border-radius: 10px; }
  .logo span { display: none; }
  .top .wrap { height: 60px; }
  .logo img { height: 42px; }
  .srv { font-size: .9rem; padding: 7px 12px; }
}
