/* yesporn.vip — GIF pages (wall /gifs/, one GIF /gifs/ID/name/). Loaded only on those two pages; every rule is scoped to
   html:is(.yp-new, .ypg-live) .ypg. Design: backups/design/gifs-2026-11 — main page = v4 "tags first" (v4-*.png), one GIF = boards 2-3.
   Tokens (--yn-*) and shared states (focus ring, .yp-btn, .yp-av) come from yp-new.css.
   One owner per component: title line, picture-tag row, toolbar, wall + tile, one GIF. */
html:is(.yp-new, .ypg-live) .ypg { padding-top: 20px; padding-bottom: 36px; color: var(--yn-text); font-family: Roboto, system-ui, sans-serif; }
html:is(.yp-new, .ypg-live) .ypg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html:is(.yp-new, .ypg-live) .ypg-sprite { position: absolute; }
html:is(.yp-new, .ypg-live) .ypg a { color: inherit; text-decoration: none; }
html:is(.yp-new, .ypg-live) .ypg :is(a, button, summary, .ypg-bar):focus-visible { outline: 2px solid var(--yn-brand-hi); outline-offset: 2px; }

/* ---- title line (v4): name, count, search ---- */
html:is(.yp-new, .ypg-live) .ypg-top { display: flex; align-items: center; gap: 8px 14px; }
html:is(.yp-new, .ypg-live) .ypg-top h1 { margin: 0; font: 900 30px/1.1 Roboto, sans-serif; letter-spacing: -.02em; color: var(--yn-text); overflow-wrap: anywhere; }
html:is(.yp-new, .ypg-live) .ypg-cnt { flex: none; font-size: 13.5px; color: var(--yn-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
html:is(.yp-new, .ypg-live) .ypg-top .ypg-cnt { align-self: flex-end; margin-bottom: 5px; }
html:is(.yp-new, .ypg-live) .ypg-search { position: relative; flex: 0 1 520px; min-width: 0; margin-left: auto; display: flex; align-items: center; height: 44px; border: 1px solid var(--yn-line); border-radius: 22px; background: var(--yn-s1); transition: border-color .15s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-search:focus-within { border-color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-search > svg { margin-left: 16px; color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-search input[type="search"] { flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 10px; border: 0; background: transparent; color: var(--yn-text); font: 400 14.5px Roboto, sans-serif; outline: none; -webkit-appearance: none; appearance: none; }
html:is(.yp-new, .ypg-live) .ypg-search input::placeholder { color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-search input::-webkit-search-cancel-button { display: none; }
html:is(.yp-new, .ypg-live) .ypg-search kbd { flex: none; margin-right: 12px; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--yn-line); border-radius: 6px; font: 500 12px/20px Roboto, sans-serif; text-align: center; color: var(--yn-dim); background: transparent; box-shadow: none; }
html:is(.yp-new, .ypg-live) .ypg-search:focus-within kbd { display: none; }
html:is(.yp-new, .ypg-live) .ypg-sx { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: 2px; color: var(--yn-muted); }
html:is(.yp-new, .ypg-live) .ypg-sx svg { width: 16px; height: 16px; }

/* ---- picture-tag row (v4): "All GIFs" first, then tags; the open tag gets a ring (rule printed by gifs.tpl) ---- */
html:is(.yp-new, .ypg-live) .ypg-trow { position: relative; margin-top: 18px; }
html:is(.yp-new, .ypg-live) .ypg-pts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 4px; margin: -4px; padding: 4px; }
html:is(.yp-new, .ypg-live) .ypg-pts::-webkit-scrollbar { display: none; }
html:is(.yp-new, .ypg-live) .ypg-pt { position: relative; flex: 0 0 calc((100% - 72px) / 10); min-width: 124px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--yn-s2); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 12px 10px; color: #fff !important; scroll-snap-align: start; isolation: isolate; }
html:is(.yp-new, .ypg-live) .ypg-pt img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; display: block; }
html:is(.yp-new, .ypg-live) .ypg-pt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0, 0, 0, .08) 10%, rgba(0, 0, 0, .8)); }
html:is(.yp-new, .ypg-live) .ypg-pt b { font: 700 15px/1.2 Roboto, sans-serif; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:is(.yp-new, .ypg-live) .ypg-pt span { margin-top: 2px; font: 400 12px/1.2 Roboto, sans-serif; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
html:is(.yp-new, .ypg-live) .ypg-pt-all { color: var(--yn-text) !important; }
html:is(.yp-new, .ypg-live) .ypg-pt-all::before { display: none; }
html:is(.yp-new, .ypg-live) .ypg-pt-all span { color: var(--yn-muted); }
html:is(.yp-new, .ypg-live) .ypg-pt-all.on { background: var(--yn-brand); color: #fff !important; box-shadow: 0 0 0 2px var(--yn-bg), 0 0 0 4px var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg-pt-all.on span { color: #ffd5df; }
html:is(.yp-new, .ypg-live) .ypg-tar { position: absolute; z-index: 2; top: 50%; margin-top: -20px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 20px; background: #F4F4F5; color: #0E0E10; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); cursor: pointer; }
html:is(.yp-new, .ypg-live) .ypg-tnx { right: -6px; }
html:is(.yp-new, .ypg-live) .ypg-tpv { left: -6px; }

/* ---- toolbar (v4): order, shape, filters, count, tile size ---- */
html:is(.yp-new, .ypg-live) .ypg-bar2 { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 0; border-top: 1px solid var(--yn-line); border-bottom: 1px solid var(--yn-line); }
html:is(.yp-new, .ypg-live) .ypg-seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--yn-s1); flex: none; }
html:is(.yp-new, .ypg-live) .ypg-seg a { display: flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 9px; font: 500 13.5px Roboto, sans-serif; color: var(--yn-muted); white-space: nowrap; transition: background-color .15s ease-out, color .15s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-seg a:hover { color: var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg-seg a.on { background: var(--yn-line); color: var(--yn-text); font-weight: 600; }
html:is(.yp-new, .ypg-live) .ypg-ord { display: none; }
html:is(.yp-new, .ypg-live) .ypg-shp, html:is(.yp-new, .ypg-live) .ypg-den { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--yn-s1); flex: none; }
html:is(.yp-new, .ypg-live) .ypg-shp { margin-left: 6px; }
html:is(.yp-new, .ypg-live) .ypg-shp a, html:is(.yp-new, .ypg-live) .ypg-den button { display: flex; align-items: center; justify-content: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--yn-dim); cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-shp a:hover, html:is(.yp-new, .ypg-live) .ypg-den button:hover { color: var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg-shp a.on, html:is(.yp-new, .ypg-live) .ypg-den button[aria-pressed="true"] { background: var(--yn-line); color: var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg :is(.ypg-shp, .ypg-den) svg { width: 16px; height: 16px; }
html:is(.yp-new, .ypg-live) .ypg-flt { display: flex; align-items: center; gap: 8px; min-width: 0; }
html:is(.yp-new, .ypg-live) .ypg-fbtn { display: none; }
html:is(.yp-new, .ypg-live) .ypg-f { position: relative; }
html:is(.yp-new, .ypg-live) .ypg-f > summary, html:is(.yp-new, .ypg-live) a.ypg-f { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 14px; border: 1px solid var(--yn-line); border-radius: 19px; font: 500 13.5px Roboto, sans-serif; color: var(--yn-text); white-space: nowrap; cursor: pointer; list-style: none; user-select: none; transition: background-color .15s ease-out, border-color .15s ease-out; }
html:is(.yp-new, .ypg-live) a.ypg-f { padding-right: 14px; }
html:is(.yp-new, .ypg-live) .ypg-f > summary::-webkit-details-marker { display: none; }
html:is(.yp-new, .ypg-live) .ypg-f > summary:hover, html:is(.yp-new, .ypg-live) a.ypg-f:hover { background: var(--yn-s1); border-color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-f svg { width: 16px; height: 16px; color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-f .cv { width: 14px; height: 14px; transition: transform .15s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-f[open] .cv { transform: rotate(180deg); }
html:is(.yp-new, .ypg-live) .ypg-f b { font-weight: 600; color: var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg-f.set > summary, html:is(.yp-new, .ypg-live) a.ypg-f.set { background: var(--yn-s2); border-color: var(--yn-dim); color: var(--yn-muted); }
html:is(.yp-new, .ypg-live) a.ypg-f.set { color: var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg-f.set > summary > svg:first-child, html:is(.yp-new, .ypg-live) a.ypg-f.set > svg { color: var(--yn-brand-hi); }
html:is(.yp-new, .ypg-live) .ypg-f[open] > summary { border-color: var(--yn-dim); background: var(--yn-s1); }
html:is(.yp-new, .ypg-live) .ypg-pop { position: absolute; z-index: 30; top: 44px; left: 0; display: flex; gap: 6px; padding: 10px; border: 1px solid var(--yn-line); border-radius: 14px; background: var(--yn-s1); box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
html:is(.yp-new, .ypg-live) .ypg-pop a { display: flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--yn-line); border-radius: 10px; font: 500 13px Roboto, sans-serif; color: var(--yn-text); white-space: nowrap; }
html:is(.yp-new, .ypg-live) .ypg-pop a:hover { border-color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-pop a.on { background: var(--yn-text); border-color: var(--yn-text); color: var(--yn-bg); }
html:is(.yp-new, .ypg-live) .ypg-clear { display: flex; align-items: center; height: 38px; padding: 0 6px; font: 500 13.5px Roboto, sans-serif; color: var(--yn-muted) !important; white-space: nowrap; }
html:is(.yp-new, .ypg-live) .ypg-clear:hover { color: var(--yn-text) !important; }
html:is(.yp-new, .ypg-live) .ypg-cnt2 { margin-left: auto; }
html:is(.yp-new, .ypg-live) .ypg-den { margin-left: 6px; }

/* ---- wall: six columns on a wide screen (eight with smaller tiles); yp-gifs.js fills the columns shortest-first ---- */
html:is(.yp-new, .ypg-live) .ypg-wall { margin-top: 12px; columns: 6 190px; column-gap: 12px; }
html:is(.yp-new, .ypg-live) .ypg-wall > .ypg-i { break-inside: avoid; margin-bottom: 12px; }
html:is(.yp-new, .ypg-live) .ypg-wall.js { columns: auto; display: flex; align-items: flex-start; gap: 12px; }
html:is(.yp-new, .ypg-live) .ypg-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
html:is(.yp-new, .ypg-live) .ypg-dense .ypg-wall.js, html:is(.yp-new, .ypg-live) .ypg-dense .ypg-col { gap: 8px; }
html:is(.yp-new, .ypg-live) .ypg-dense .ypg-t { border-radius: 10px; }

/* ---- tile ---- */
html:is(.yp-new, .ypg-live) .ypg-i { position: relative; }
html:is(.yp-new, .ypg-live) .ypg-t { position: relative; display: block; width: 100%; border-radius: 14px; overflow: hidden; background: var(--yn-s1); transition: transform .18s var(--yn-ease, ease-out), box-shadow .18s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-t img, html:is(.yp-new, .ypg-live) .ypg-t video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
html:is(.yp-new, .ypg-live) .ypg-t video { opacity: 0; transition: opacity .2s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-t.playing video { opacity: 1; }
html:is(.yp-new, .ypg-live) .ypg-t::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; z-index: 4; }
html:is(.yp-new, .ypg-live) .ypg-tl { position: absolute; left: 8px; top: 8px; z-index: 3; display: flex; gap: 6px; }
html:is(.yp-new, .ypg-live) .ypg-br { position: absolute; right: 8px; bottom: 8px; z-index: 3; display: flex; gap: 4px; transition: transform .18s ease-out; }
html:is(.yp-new, .ypg-live) :is(.ypg-du, .ypg-sn, .ypg-fv) { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 6px; background: rgba(0, 0, 0, .68); color: #fff; font: 600 11.5px/1 Roboto, sans-serif; font-variant-numeric: tabular-nums; }
html:is(.yp-new, .ypg-live) .ypg-sn { padding: 0 4px; }
html:is(.yp-new, .ypg-live) .ypg :is(.ypg-sn, .ypg-fv) svg { width: 12px; height: 12px; }
html:is(.yp-new, .ypg-live) .ypg-fv { font-weight: 500; }
html:is(.yp-new, .ypg-live) .ypg-ov { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 34px 10px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; opacity: 0; transition: opacity .18s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-tg { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
html:is(.yp-new, .ypg-live) .ypg-tg span { height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(255, 255, 255, .18); font: 500 12px/22px Roboto, sans-serif; white-space: nowrap; }
html:is(.yp-new, .ypg-live) .ypg-lk { display: inline-flex; align-items: center; gap: 4px; font: 600 12.5px Roboto, sans-serif; }
html:is(.yp-new, .ypg-live) .ypg .ypg-lk svg { width: 14px; height: 14px; fill: #fff; }
html:is(.yp-new, .ypg-live) .ypg-lp { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 3px; background: rgba(255, 255, 255, .22); opacity: 0; }
html:is(.yp-new, .ypg-live) .ypg-lp i { display: block; width: 0; height: 100%; background: #fff; }
html:is(.yp-new, .ypg-live) .ypg-t.playing .ypg-lp { opacity: 1; }
/* owner 2026-11-16: "don't like the hover effect on gifs, make them nothing" - no lift, shadow, outline or overlay under the pointer.
   Keyboard focus keeps its ring (it is not a hover effect; it shows where you are). */
html:is(.yp-new, .ypg-live) .ypg-t:focus-visible::after { box-shadow: inset 0 0 0 2px #fff; }
html:is(.yp-new, .ypg-live) .ypg-more { display: flex; justify-content: center; margin-top: 24px; }
html:is(.yp-new, .ypg-live) .ypg-more .yp-btn { color: var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg-more .yp-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
html:is(.yp-new, .ypg-live) .ypg-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:is(.yp-new, .ypg-live) .ypg-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 56px auto; max-width: 420px; text-align: center; color: var(--yn-muted); }
html:is(.yp-new, .ypg-live) .ypg .ypg-empty > svg { width: 34px; height: 34px; color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-empty strong { font: 700 18px/1.3 Roboto, sans-serif; color: var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg-empty span { font-size: 14px; }
html:is(.yp-new, .ypg-live) .ypg-empty .yp-btn { margin-top: 10px; }

/* ---- one GIF ---- */
html:is(.yp-new, .ypg-live) .ypg-crumb { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-crumb a { color: var(--yn-muted); flex: none; }
html:is(.yp-new, .ypg-live) .ypg-crumb a:hover { color: var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg .ypg-crumb svg { width: 13px; height: 13px; }
html:is(.yp-new, .ypg-live) .ypg-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:is(.yp-new, .ypg-live) .ypg-vgrid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; margin-top: 14px; }
html:is(.yp-new, .ypg-live) .ypg-stage { position: relative; height: min(720px, calc(100vh - 262px)); min-height: 420px; border-radius: 18px; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
html:is(.yp-new, .ypg-live) .ypg-blur { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(50px) brightness(.45); }
html:is(.yp-new, .ypg-live) .ypg-media { position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: 100%; aspect-ratio: var(--ypg-ar); object-fit: contain; cursor: pointer; }
html:is(.yp-new, .ypg-live) .ypg-stage:not(.tall) .ypg-media { width: 100%; height: auto; }
html:is(.yp-new, .ypg-live) .ypg [hidden] { display: none !important; }
html:is(.yp-new, .ypg-live) .ypg-gif { background: center / contain no-repeat; cursor: default; }
html:is(.yp-new, .ypg-live) .ypg-stage:not(.hd) .ypg-ctl { display: none; }
html:is(.yp-new, .ypg-live) .ypg-nv { position: absolute; z-index: 3; top: 50%; margin-top: -24px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 24px; background: rgba(0, 0, 0, .55); color: #fff !important; transition: background-color .15s ease-out, transform .15s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-nv:hover { background: rgba(0, 0, 0, .8); transform: scale(1.06); }
html:is(.yp-new, .ypg-live) .ypg .ypg-nv svg { width: 22px; height: 22px; }
html:is(.yp-new, .ypg-live) .ypg-pv { left: 16px; }
html:is(.yp-new, .ypg-live) .ypg-nx { right: 16px; }
html:is(.yp-new, .ypg-live) .ypg-ctl { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 8px; border-radius: 14px; background: rgba(14, 14, 16, .8); color: #fff; }
html:is(.yp-new, .ypg-live) .ypg-cb { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; transition: background-color .15s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-cb:hover { background: rgba(255, 255, 255, .14); }
html:is(.yp-new, .ypg-live) .ypg-cb.ypg-txt { width: auto; min-width: 40px; padding: 0 6px; font: 600 13px Roboto, sans-serif; font-variant-numeric: tabular-nums; }
html:is(.yp-new, .ypg-live) .ypg-bar { flex: 1; height: 20px; margin: 0 8px; display: flex; align-items: center; cursor: pointer; border-radius: 4px; touch-action: none; }
html:is(.yp-new, .ypg-live) .ypg-bar { background: linear-gradient(rgba(255, 255, 255, .24), rgba(255, 255, 255, .24)) center / 100% 4px no-repeat; }
html:is(.yp-new, .ypg-live) .ypg-bar i { display: block; width: 0; height: 4px; border-radius: 2px; background: var(--yn-brand); }
html:is(.yp-new, .ypg-live) .ypg-tm { margin-right: 4px; font: 500 12.5px Roboto, sans-serif; font-variant-numeric: tabular-nums; color: #d6d6dc; white-space: nowrap; }
html:is(.yp-new, .ypg-live) .ypg-wait { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; text-align: center; color: #a1a1aa; }
html:is(.yp-new, .ypg-live) .ypg .ypg-wait svg { width: 34px; height: 34px; }
html:is(.yp-new, .ypg-live) .ypg-wait strong { font: 700 18px Roboto, sans-serif; color: #fff; }
html:is(.yp-new, .ypg-live) .ypg-side h1 { margin: 0; font: 800 24px/1.2 Roboto, sans-serif; letter-spacing: -.01em; color: var(--yn-text); text-wrap: balance; overflow-wrap: anywhere; }
html:is(.yp-new, .ypg-live) .ypg-by { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
html:is(.yp-new, .ypg-live) .ypg-by .yp-av { width: 28px; height: 28px; font-size: 12px; }
html:is(.yp-new, .ypg-live) .ypg-byn { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
html:is(.yp-new, .ypg-live) .ypg-by b { font: 600 14px/1.3 Roboto, sans-serif; color: var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg-by small { font-size: 13px; color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-sm { display: none; }
html:is(.yp-new, .ypg-live) .ypg-actrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
html:is(.yp-new, .ypg-live) .ypg-acts, html:is(.yp-new, .ypg-live) .ypg-extra { display: contents; }
html:is(.yp-new, .ypg-live) .ypg-a { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--yn-s1); color: var(--yn-text) !important; font: 500 13.5px Roboto, sans-serif; cursor: pointer; transition: background-color .15s ease-out, transform .15s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-a:hover { background: var(--yn-s2); }
html:is(.yp-new, .ypg-live) .ypg-a:active { transform: scale(.97); }
html:is(.yp-new, .ypg-live) .ypg-a svg { width: 17px; height: 17px; }
html:is(.yp-new, .ypg-live) .ypg-a b { font-weight: 600; font-variant-numeric: tabular-nums; }
html:is(.yp-new, .ypg-live) .ypg-like[aria-pressed="true"] { background: var(--yn-brand); color: #fff !important; }
html:is(.yp-new, .ypg-live) .ypg-like[aria-pressed="true"] svg { fill: #fff; }
html:is(.yp-new, .ypg-live) .ypg-a[data-ypg="hd"][aria-pressed="true"] { background: var(--yn-text); color: var(--yn-bg) !important; }
html:is(.yp-new, .ypg-live) .ypg-hint { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 2px 0 0; padding: 10px 12px; border: 1px solid var(--yn-line); border-radius: 12px; font-size: 13px; line-height: 1.4; color: var(--yn-muted); }
html:is(.yp-new, .ypg-live) .ypg .ypg-hint > svg { width: 16px; height: 16px; color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-hint span { flex: 1 1 180px; }
html:is(.yp-new, .ypg-live) .ypg-hint-a { font-weight: 600; color: var(--yn-text) !important; text-decoration: underline !important; text-underline-offset: 3px; white-space: nowrap; cursor: pointer; }
html:is(.yp-new, .ypg-live) .ypg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 12px; font-size: 12.5px; color: var(--yn-dim); font-variant-numeric: tabular-nums; }
html:is(.yp-new, .ypg-live) .ypg-meta span { display: inline-flex; align-items: center; gap: 5px; }
html:is(.yp-new, .ypg-live) .ypg-meta span + span::before { content: "·"; margin: 0 7px; }
html:is(.yp-new, .ypg-live) .ypg .ypg-meta svg { width: 14px; height: 14px; }
html:is(.yp-new, .ypg-live) .ypg-fullv { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 18px; padding: 10px; border: 1px solid var(--yn-line); border-radius: 14px; background: var(--yn-s1); transition: border-color .15s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-fullv:hover { border-color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--yn-s2); }
html:is(.yp-new, .ypg-live) .ypg-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
html:is(.yp-new, .ypg-live) .ypg-th .ypg-du { position: absolute; right: 4px; bottom: 4px; height: 17px; font-size: 10.5px; }
html:is(.yp-new, .ypg-live) .ypg-fx { display: flex; flex-direction: column; min-width: 0; }
html:is(.yp-new, .ypg-live) .ypg-fx small { font-size: 12px; color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-fx b { font: 600 14px/1.3 Roboto, sans-serif; color: var(--yn-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html:is(.yp-new, .ypg-live) .ypg-fx span { font-size: 12.5px; color: var(--yn-muted); }
html:is(.yp-new, .ypg-live) .ypg-go { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 11px; background: var(--yn-text); color: var(--yn-bg); font: 600 14px Roboto, sans-serif; }
html:is(.yp-new, .ypg-live) .ypg .ypg-go svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
html:is(.yp-new, .ypg-live) .ypg-lab { margin: 20px 0 9px; font: 600 13px Roboto, sans-serif; color: var(--yn-muted); }
html:is(.yp-new, .ypg-live) .ypg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
html:is(.yp-new, .ypg-live) .ypg-tags a { height: 32px; padding: 0 12px; border-radius: 16px; background: var(--yn-s1); font: 500 13px/32px Roboto, sans-serif; color: var(--yn-text); transition: background-color .15s ease-out; }
html:is(.yp-new, .ypg-live) .ypg-tags a:hover { background: var(--yn-s2); }
html:is(.yp-new, .ypg-live) .ypg-keys { margin: 22px 0 0; font-size: 12px; color: var(--yn-dim); }
html:is(.yp-new, .ypg-live) .ypg-rel { margin-top: 34px; }
html:is(.yp-new, .ypg-live) .ypg-rel h2 { margin: 0; font: 800 20px/1.2 Roboto, sans-serif; color: var(--yn-text); }
html:is(.yp-new, .ypg-live) .ypg ::selection { background: var(--yn-brand); color: #fff; }

/* ---- smaller screens ---- */
@media (max-width: 1100px) {
  html:is(.yp-new, .ypg-live) .ypg-cnt2 { display: none; }
  html:is(.yp-new, .ypg-live) .ypg-den { margin-left: auto; }
  html:is(.yp-new, .ypg-live) .ypg-search { flex-basis: 380px; }
  html:is(.yp-new, .ypg-live) .ypg-vgrid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  html:is(.yp-new, .ypg-live) .ypg-keys { display: none; }
}
@media (max-width: 700px) {
  html:is(.yp-new, .ypg-live) .ypg { padding-top: 14px; }
  html:is(.yp-new, .ypg-live) .ypg-top { flex-wrap: wrap; }
  html:is(.yp-new, .ypg-live) .ypg-top h1 { font-size: 26px; }
  html:is(.yp-new, .ypg-live) .ypg-search { flex: 1 1 100%; margin-left: 0; }
  html:is(.yp-new, .ypg-live) .ypg-search kbd { display: none; }
  html:is(.yp-new, .ypg-live) .ypg-trow { margin-top: 12px; }
  html:is(.yp-new, .ypg-live) .ypg-pt { flex: 0 0 104px; min-width: 0; height: 66px; border-radius: 12px; padding: 0 10px 8px; }
  html:is(.yp-new, .ypg-live) .ypg-pt b { font-size: 14px; }
  html:is(.yp-new, .ypg-live) .ypg-tar { display: none !important; }
  /* toolbar on a phone: order menu, shape icons, "Filters" button; the filters open as a second line */
  html:is(.yp-new, .ypg-live) .ypg-bar2 { flex-wrap: wrap; margin-top: 12px; padding: 0; border: 0; }
  html:is(.yp-new, .ypg-live) .ypg-seg { display: none; }
  html:is(.yp-new, .ypg-live) .ypg-ord { display: block; flex: 1 1 0; min-width: 0; }
  html:is(.yp-new, .ypg-live) .ypg-ord > summary { border-radius: 12px; background: var(--yn-s1); }
  html:is(.yp-new, .ypg-live) .ypg-ord > summary > svg:first-child { color: var(--yn-brand-hi); }
  html:is(.yp-new, .ypg-live) .ypg-ord > summary .cv { margin-left: auto; }
  html:is(.yp-new, .ypg-live) .ypg-shp { margin-left: 0; padding: 2px; }
  html:is(.yp-new, .ypg-live) .ypg-shp a { width: 36px; height: 40px; }
  html:is(.yp-new, .ypg-live) .ypg-den { display: none !important; }
  html:is(.yp-new, .ypg-live) .ypg-fbtn:not([hidden]) { position: relative; display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--yn-line); border-radius: 12px; background: transparent; color: var(--yn-text); cursor: pointer; }
  html:is(.yp-new, .ypg-live) .ypg-fbtn[aria-expanded="true"] { background: var(--yn-s2); border-color: var(--yn-dim); }
  html:is(.yp-new, .ypg-live) .ypg-fbtn b { position: absolute; right: -5px; top: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--yn-brand); color: #fff; font: 600 11px/18px Roboto, sans-serif; text-align: center; }
  html:is(.yp-new, .ypg-live) .ypg-flt { flex: 1 1 100%; flex-wrap: wrap; }
  html:is(.yp-new, .ypg-live) .ypg-fbtn:not([hidden]) ~ .ypg-flt:not(.open) { display: none; }
  html:is(.yp-new, .ypg-live) .ypg-f > summary, html:is(.yp-new, .ypg-live) a.ypg-f, html:is(.yp-new, .ypg-live) .ypg-clear { height: 44px; }
  html:is(.yp-new, .ypg-live) .ypg-flt .ypg-f > summary, html:is(.yp-new, .ypg-live) .ypg-flt a.ypg-f { height: 40px; border-radius: 12px; }
  html:is(.yp-new, .ypg-live) .ypg-search input[type="search"] { font-size: 16px; }
  html:is(.yp-new, .ypg-live) .ypg-flt .ypg-pop { top: 46px; }
  html:is(.yp-new, .ypg-live) .ypg-wall.js, html:is(.yp-new, .ypg-live) .ypg-col { gap: 10px; }
  html:is(.yp-new, .ypg-live) .ypg-pop a { height: 40px; }
  html:is(.yp-new, .ypg-live) .ypg-wall { columns: 2; column-gap: 10px; }
  html:is(.yp-new, .ypg-live) .ypg-t { border-radius: 12px; }
  html:is(.yp-new, .ypg-live) .ypg-stage { height: auto; min-height: 0; max-height: calc(100vh - 150px); aspect-ratio: var(--ypg-ar); margin: 0 -16px; border-radius: 0; }
  html:is(.yp-new, .ypg-live) .ypg-stage:not(.tall) { max-height: none; }
  html:is(.yp-new, .ypg-live) .ypg-ctl { left: 8px; right: 8px; bottom: 8px; }
  html:is(.yp-new, .ypg-live) .ypg-nv { width: 44px; height: 44px; margin-top: -22px; }
  html:is(.yp-new, .ypg-live) .ypg-pv { left: 8px; }
  html:is(.yp-new, .ypg-live) .ypg-nx { right: 8px; }
  /* one GIF, compact: everything under the picture in as few lines as possible */
  html:is(.yp-new, .ypg-live) .ypg-vgrid { gap: 12px; }
  html:is(.yp-new, .ypg-live) .ypg-side h1 { font-size: 19px; line-height: 1.25; }
  html:is(.yp-new, .ypg-live) .ypg-by { margin-top: 6px; }
  html:is(.yp-new, .ypg-live) .ypg-by .yp-av { width: 24px; height: 24px; font-size: 11px; }
  html:is(.yp-new, .ypg-live) .ypg-actrow { flex-wrap: nowrap; margin-top: 10px; }
  html:is(.yp-new, .ypg-live) .ypg-a { height: 40px; padding: 0 10px; flex: 1 1 0; min-width: 0; justify-content: center; gap: 6px; }
  html:is(.yp-new, .ypg-live) .ypg-a[data-ypg="share"] { flex: 0 0 44px; padding: 0; }
  html:is(.yp-new, .ypg-live) .ypg-lg { display: none; }
  html:is(.yp-new, .ypg-live) .ypg-sm { display: inline; }
  html:is(.yp-new, .ypg-live) .ypg-actrow:has(.ypg-hint:not([hidden])) { flex-wrap: wrap; }
  html:is(.yp-new, .ypg-live) .ypg-hint { padding: 7px 10px; font-size: 12.5px; flex-wrap: nowrap; }
  html:is(.yp-new, .ypg-live) .ypg-hint span { flex: 1 1 auto; }
  html:is(.yp-new, .ypg-live) .ypg-meta { margin-top: 8px; font-size: 12px; }
  html:is(.yp-new, .ypg-live) .ypg-meta span:nth-child(n+4) { display: none; }
  html:is(.yp-new, .ypg-live) .ypg-fullv { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 10px; margin-top: 10px; padding: 6px 8px 6px 6px; border-radius: 12px; }
  html:is(.yp-new, .ypg-live) .ypg-fx small { display: none; }
  html:is(.yp-new, .ypg-live) .ypg-fx b { font-size: 13px; -webkit-line-clamp: 1; }
  html:is(.yp-new, .ypg-live) .ypg-fx span { font-size: 12px; }
  html:is(.yp-new, .ypg-live) .ypg-go { grid-column: auto; height: 36px; padding: 0 12px; border-radius: 18px; font-size: 13px; gap: 6px; }
  html:is(.yp-new, .ypg-live) .ypg-lab { display: none; }
  html:is(.yp-new, .ypg-live) .ypg-tags { margin-top: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  html:is(.yp-new, .ypg-live) .ypg-tags::-webkit-scrollbar { display: none; }
  html:is(.yp-new, .ypg-live) .ypg-tags + .ypg-tags { margin-top: 6px; }
  html:is(.yp-new, .ypg-live) .ypg-rel { margin-top: 20px; }
  html:is(.yp-new, .ypg-live) .ypg-rel h2 { font-size: 17px; }
  html:is(.yp-new, .ypg-live) .ypg-tags a { flex: none; height: 34px; line-height: 34px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html:is(.yp-new, .ypg-live) .ypg *, html:is(.yp-new, .ypg-live) .ypg *::before, html:is(.yp-new, .ypg-live) .ypg *::after { transition-duration: .01ms !important; }
  html:is(.yp-new, .ypg-live) .ypg-t:hover, html:is(.yp-new, .ypg-live) .ypg-t:focus-visible, html:is(.yp-new, .ypg-live) .ypg-nv:hover { transform: none; }
}

/* ---------- OWNER VERDICT (KVS admin only): Good / Bad on the GIF's own page. Markup comes from yp-gifs.js part 7 ---------- */
html:is(.yp-new, .ypg-live) .ypg-adm { display: flex; gap: 8px; }
html:is(.yp-new, .ypg-live) .ypg-adm button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px 0 12px; border: 1px dashed var(--yn-dim); border-radius: 20px; background: var(--yn-s1); color: var(--yn-text); cursor: pointer; font: 600 13.5px Roboto, sans-serif; }
html:is(.yp-new, .ypg-live) .ypg-adm button svg { width: 16px; height: 16px; flex: none; }
html:is(.yp-new, .ypg-live) .ypg-adm [data-adm-v="good"]:hover, html:is(.yp-new, .ypg-live) .ypg-adm [data-adm-v="good"][aria-pressed="true"] { background: #17794a; color: #fff; border-color: #17794a; border-style: solid; }
html:is(.yp-new, .ypg-live) .ypg-adm [data-adm-v="bad"]:hover, html:is(.yp-new, .ypg-live) .ypg-adm [data-adm-v="bad"][aria-pressed="true"] { background: #c9302c; color: #fff; border-color: #c9302c; border-style: solid; }
