@font-face { font-family: Montserrat; src: url(/static/Montserrat-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --bg: #f3f3f3; --card: #fff; --fg: #1d1d1d; --muted: #6b6b6b; --line: #e3e3e3; --accent: #c8102e; --tg: #229ED9; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #121212; --card: #1e1e1e; --fg: #f1f1f1; --muted: #a3a3a3; --line: #2e2e2e; --accent: #ff5a6e; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 Montserrat, -apple-system, "Segoe UI", Arial, sans-serif; }
a { color: var(--tg); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; flex-shrink: 0; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.top { background: #000; position: sticky; top: 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo img { display: block; height: 26px; width: auto; max-width: 62vw; }
h1 { font-size: 22px; font-weight: 700; margin: 20px 0 12px; }
.tgbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--tg); color: #fff; text-decoration: none;
  font-weight: 700; border-radius: 10px; padding: 11px 18px; }
.tgbtn.small { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.tgbtn:hover { background: #1c8cc2; }
.post { background: var(--card); border-radius: 14px; padding: 16px; margin: 0 0 12px; overflow-wrap: anywhere; }
.meta { display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.views { display: inline-flex; gap: 4px; align-items: center; }
.views svg { width: 15px; height: 15px; vertical-align: 0; }
.reply, .fwd { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.reply svg { width: 15px; height: 15px; vertical-align: 0; }
.media { display: grid; gap: 3px; border-radius: 10px; overflow: hidden; margin: 4px 0 12px; }
.media.two { grid-template-columns: 1fr 1fr; }
.media.many { grid-template-columns: repeat(3, 1fr); }
.media.many .m:first-child { grid-column: 1 / -1; }
.media .m { position: relative; display: block; background: var(--line); }
.media img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.media.two img, .media.many .m:not(:first-child) img { aspect-ratio: 1; height: 100%; }
.media .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.55);
  color: #fff; display: flex; align-items: center; justify-content: center; }
.media .play svg { width: 26px; height: 26px; vertical-align: 0; }
.media .dur { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.text { white-space: normal; }
.text b { font-weight: 700; }
.text .spoiler { background: var(--fg); color: transparent; border-radius: 3px; cursor: pointer; }
.text .spoiler.shown { background: none; color: inherit; }
.poll { margin: 10px 0; }
.poll .q { font-weight: 700; margin-bottom: 8px; }
.poll .opt { position: relative; padding: 6px 8px; margin-bottom: 4px; border-radius: 6px; overflow: hidden; font-size: 14px; }
.poll .bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--tg) 16%, transparent); z-index: 0; }
.poll .pc { font-weight: 700; position: relative; }
.lp { display: block; border-left: 3px solid var(--tg); padding: 4px 10px; margin: 10px 0; text-decoration: none; color: var(--fg); }
.lp b, .lp span, .lp small { display: block; }
.lp b { color: var(--tg); font-size: 13px; }
.lp small { color: var(--muted); }
.btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin: 10px 0 0; }
.btns a { text-align: center; text-decoration: none; background: color-mix(in srgb, var(--tg) 12%, transparent); border-radius: 8px; padding: 8px; font-weight: 600; font-size: 14px; }
.open { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-weight: 700; font-size: 14px; text-decoration: none; }
.more { display: block; text-align: center; padding: 14px; color: var(--muted); }
.end { background: var(--card); border-radius: 14px; padding: 22px 16px; text-align: center; margin-bottom: 12px; }
.end p { margin: 0 0 14px; }
.foot { color: var(--muted); font-size: 13px; padding-top: 8px; padding-bottom: 32px; text-align: center; }
.foot a { color: var(--muted); }
