/* Предпросмотр поста в стиле Telegram на смартфоне */
#tgp-dialog{padding:0;border:0;background:transparent;max-width:none;max-height:none;overflow:visible}
#tgp-dialog::backdrop{background:rgba(15,23,42,.55)}
.tgp-phone{width:390px;height:min(820px,92vh);border-radius:38px;border:10px solid #111827;background:#111827;
  display:flex;flex-direction:column;overflow:hidden;box-shadow:0 25px 60px rgba(0,0,0,.45);font-family:-apple-system,
  "Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.tgp-top{display:flex;align-items:center;gap:.6rem;background:#fff;padding:.7rem .9rem;border-bottom:1px solid #e5e7eb}
.tgp-back{font-size:28px;line-height:1;color:#2481cc;cursor:pointer}
.tgp-x{margin-left:auto;cursor:pointer;color:#9ca3af;font-size:16px}
.tgp-name{font-weight:600;font-size:15px;color:#111}
.tgp-sub{font-size:12px;color:#8e8e93}
.tgp-chat{flex:1;overflow-y:auto;padding:12px 10px 18px;background:#a8c99a linear-gradient(160deg,#c9dfa8 0%,#9ec29a 55%,#8fbcb0 100%)}
.tgp-bubble{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 1px rgba(0,0,0,.12);max-width:100%}
.tgp-media{position:relative;background:#000}
.tgp-media img,.tgp-media video{display:block;width:100%;max-height:420px;object-fit:cover}
.tgp-yt{height:200px;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center}
.tgp-play{width:64px;height:44px;border-radius:12px;background:#ff0033;color:#fff;font-size:22px;display:flex;
  align-items:center;justify-content:center}
.tgp-badge{position:absolute;left:8px;top:8px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;padding:1px 7px;border-radius:9px}
.tgp-text{padding:8px 11px 2px;font-size:15px;line-height:1.38;color:#000;white-space:pre-wrap;word-wrap:break-word}
.tgp-text a{color:#2481cc;text-decoration:none}
.tgp-text b{font-weight:600}
.tgp-quote{margin:4px 0;padding:3px 26px 3px 9px;border-left:3px solid #2481cc;background:#e9f2fb;border-radius:4px;
  font-size:14.5px;position:relative;white-space:pre-wrap}
.tgp-quote::after{content:"❞";position:absolute;right:7px;top:2px;color:#2481cc;font-size:14px}
.tgp-quote.tgp-exp{max-height:4.2em;overflow:hidden;cursor:pointer}
.tgp-quote.tgp-exp.open{max-height:none}
.tgp-spoiler{filter:blur(5px);background:rgba(0,0,0,.08);border-radius:3px;cursor:pointer;transition:filter .2s}
.tgp-spoiler.open{filter:none;background:none}
.tgp-code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13.5px;color:#b5179e;background:#f3f4f6;
  padding:0 3px;border-radius:3px;cursor:pointer}
.tgp-pre{margin:4px 0;border-radius:6px;background:#f1f5f9;border-left:3px solid #2481cc;overflow:hidden}
.tgp-pre-h{display:flex;justify-content:space-between;font-size:11px;color:#2481cc;padding:3px 8px 0}
.tgp-copy{cursor:pointer}
.tgp-pre pre{margin:0;padding:4px 8px 6px;background:none;font-size:12.5px;white-space:pre-wrap;color:#111}
.tgp-meta{text-align:right;font-size:11.5px;color:#8e8e93;padding:0 10px 6px}
.tgp-note{background:#fff7e6;color:#92400e;font-size:12px;border-radius:8px;padding:6px 9px;margin-bottom:8px}
@media (max-width:440px){.tgp-phone{width:100vw;height:100vh;border-radius:0;border:0}}
.tgp-comments{display:flex;justify-content:space-between;border-top:1px solid #eef0f2;padding:8px 12px;color:#2481cc;font-size:14px}
.tgp-btn{margin-top:4px;background:rgba(0,0,0,.18);color:#fff;text-align:center;border-radius:10px;padding:9px;font-size:14px;font-weight:500}
