/* v1.3.16 / v1.3.17 — video timer ("0:12 / 0:45") sits just above the thin seek bar and never moves.
   The back / forward 15 s buttons are on the PAUSED screen next to the play button (Reels + viewer). */
.vbar { display: flex; align-items: center; justify-content: center; direction: ltr; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.vbar .vb-time { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; letter-spacing: .2px; display: inline-flex; gap: 4px; align-items: baseline; line-height: 1.3; }
.vbar .vb-time i { font-style: normal; opacity: .65; }
.vbar .vb-time span { opacity: .8; }

/* viewer (Explore / profile): the time sits right above the thin seek bar, always */
.w-progress { display: flex; flex-direction: column; gap: 0; }
.w-progress .vbar { pointer-events: auto; }
.w-progress input[type="range"] { margin: 0; }
.w-slide:has(.w-progress) .w-info { bottom: calc(env(safe-area-inset-bottom) + 46px); }
.w-slide:has(.w-progress):has(.w-owner) .w-info { bottom: calc(env(safe-area-inset-bottom) + 104px); }
.w-slide:has(.w-progress) .w-rail { bottom: calc(env(safe-area-inset-bottom) + 118px); }
.w-slide:has(.w-progress):has(.w-owner) .w-rail { bottom: calc(env(safe-area-inset-bottom) + 176px); }
/* your own video: the time / seek bar sit ABOVE the black stats bar, not under it */
.w-slide:has(.w-owner) .w-progress { bottom: calc(env(safe-area-inset-bottom) + 66px); }

/* paused screen — one set for Reels and the viewer: speaker above, then ⟲15  ▶  ⟳15 */
.vp-skip, .vp-sound {
  border: 0; border-radius: 50%; display: grid; place-items: center; padding: 0; color: #fff; cursor: pointer;
  background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .12s ease;
}
.vp-skip { width: 48px; height: 48px; }
.vp-skip svg { width: 26px; height: 26px; }
.vp-skip:active, .vp-sound:active { transform: scale(.92); background: rgba(255,255,255,.22); }
.vp-sound { width: 44px; height: 44px; }
.vp-sound svg { width: 20px; height: 20px; }
.no-skip .vp-skip { display: none; }

/* viewer (Explore / profile) */
.w-pctl { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 22px; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.w-slide.paused .w-pctl { opacity: 1; }
.w-slide.paused .w-pctl .vp-skip, .w-slide.paused .w-pctl .vp-sound { pointer-events: auto; }
.w-slide.sheet-up .w-pctl { display: none; }
.w-pctl .vp-sound svg { width: 20px; height: 20px; }
.w-pctl .vp-row { display: flex; align-items: center; justify-content: center; gap: 14px; direction: ltr; }
.w-pctl .w-paused { position: static; width: 76px; height: 76px; border-radius: 50%; background: rgba(0,0,0,.38);
  opacity: 1; color: #fff; display: grid; place-items: center; }
.w-pctl .w-paused svg { width: 34px; height: 34px; fill: #fff; margin-inline-start: 4px; }
body.sg-clear-display .w-pctl { display: none; }

/* Reels: the two buttons sit either side of the existing play button */
.reel-pskip { position: absolute; z-index: 7; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; pointer-events: none; transition: opacity .14s ease; }
.reel-pskip .vp-skip { position: absolute; top: -24px; }
.reel-pskip .vp-back { left: -100px; }
.reel-pskip .vp-fwd { left: 52px; }
.reel.is-paused .reel-pskip { opacity: 1; }
.reel.is-paused .reel-pskip .vp-skip { pointer-events: auto; }
.reel.sheet-up .reel-pskip, body.sg-clear-display .reel-pskip { display: none; }

/* v1.3.16 — reason picker for staff actions */
.viol-hint { font-size: 12px; opacity: .75; margin: 0 0 10px; line-height: 1.45; }
.viol-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.viol-reason { border: 1px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: inherit;
  border-radius: 999px; padding: 7px 12px; font-size: 12.5px; cursor: pointer; text-align: start; }
.viol-reason.active { background: var(--brand, #7c5cff); border-color: transparent; color: #fff; }

/* v1.3.16 — notices / appeals */
.ap-links { font-size: 13px; }
.ap-links a { color: var(--brand, #7c8cff); text-decoration: underline; }
.ap-quote { font-size: 13px; padding: 8px 10px; border-inline-start: 3px solid rgba(128,128,128,.4); opacity: .85; overflow-wrap: anywhere; margin-top: 8px; }
.ap-list { display: grid; gap: 8px; margin-bottom: 12px; }
.ap-row { display: grid; gap: 2px; text-align: start; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(128,128,128,.25); background: transparent; color: inherit; }

/* v1.3.16 — Support tickets (chat bar + "New request" sheet) and the reason tabs */
.tk-bar { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 12.5px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); border-inline-start: 3px solid #3b9bff; background: rgba(59,155,255,.07); }
.tk-bar b { font-variant-numeric: tabular-nums; }
.tk-bar .tk-state { margin-inline-start: auto; font-size: 11px; opacity: .8; }
.tk-bar.tk-question { border-inline-start-color: #2dd4bf; background: rgba(45,212,191,.07); }
.tk-bar.tk-problem { border-inline-start-color: #fb923c; background: rgba(251,146,60,.07); }
.tk-bar.tk-verification { border-inline-start-color: #22c55e; background: rgba(34,197,94,.07); }
.tk-bar.tk-appeal { border-inline-start-color: #a78bfa; background: rgba(167,139,250,.08); }
.tk-none { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); font-size: 13px; }
.tk-none span { flex: 1; opacity: .85; }
.tk-form { display: grid; gap: 10px; }
.tk-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-cat { border: 1px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: inherit; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.tk-cat.on { background: #3b9bff; border-color: #3b9bff; color: #fff; }
.tk-cat.tk-question.on { background: #14b8a6; border-color: #14b8a6; }
.tk-cat.tk-problem.on { background: #f97316; border-color: #f97316; }
.tk-verify { background: none; border: 0; color: #7cc4ff; font-size: 12.5px; padding: 4px 0; text-align: start; }
.viol-tabs { display: flex; gap: 6px; margin: 10px 0 8px; }
.viol-tab { flex: 1; border: 1px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: inherit; border-radius: 10px; padding: 7px 4px; font-size: 12.5px; }
.viol-tab.active { background: #3b9bff; border-color: #3b9bff; color: #fff; }
.ap-ack { display: flex; gap: 8px; margin-top: 4px; }
.ap-ack .btn { flex: 1; }

/* v1.3.17 — Support chat, calmer and tidier: ticket notices are small status cards,
   the ticket bar and the "New request" strip line up with the message box, buttons are compact. */
.tk-note-row { display: flex; justify-content: center; padding: 6px 14px; }
.tk-note { display: flex; align-items: center; gap: 10px; width: min(100%, 330px); box-sizing: border-box; padding: 9px 12px;
  border-radius: 14px; background: var(--surface-2, #14172b); border: 1px solid var(--line, rgba(255,255,255,.08)); }
.tk-note-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(59,155,255,.16); color: #6db3ff; }
.tk-note-closed .tk-note-ic { background: rgba(52,201,138,.16); color: #46d39a; }
.tk-note-reopened .tk-note-ic { background: rgba(245,166,35,.16); color: #f5a623; }
.tk-note-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tk-note-txt b { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.tk-note-txt small { font-size: 12px; line-height: 1.3; opacity: .62; }
.tk-note time { flex: none; align-self: flex-start; font-size: 11px; opacity: .45; font-variant-numeric: tabular-nums; }

.tk-bar { gap: 8px; padding: 9px 14px; font-size: 13px; background: var(--surface-2, #14172b); border-top: 1px solid var(--line, rgba(255,255,255,.08)); border-inline-start: 0; position: relative; }
.tk-bar::before { content: ""; width: 3px; align-self: stretch; border-radius: 3px; background: #3b9bff; margin-inline-end: 2px; }
.tk-bar.tk-question::before { background: #2dd4bf; } .tk-bar.tk-problem::before { background: #fb923c; }
.tk-bar.tk-verification::before { background: #22c55e; } .tk-bar.tk-appeal::before { background: #a78bfa; }
.tk-bar.tk-question, .tk-bar.tk-problem, .tk-bar.tk-verification, .tk-bar.tk-appeal { background: var(--surface-2, #14172b); }
.tk-bar span:not(.tk-state) { opacity: .7; }
.tk-bar .tk-state { opacity: 1; font-size: 11.5px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: rgba(52,201,138,.14); color: #46d39a; display: inline-flex; align-items: center; gap: 6px; }
.tk-bar .tk-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tk-none { padding: 10px 14px; gap: 12px; background: var(--surface-2, #14172b); }
.tk-none span { font-size: 13px; opacity: .7; line-height: 1.3; }
.tk-none .btn { height: 36px; min-height: 0; padding: 0 18px; font-size: 13.5px; font-weight: 700; border-radius: 999px; flex: none; }

.tk-form .small { opacity: .72; line-height: 1.5; margin: 0; }
.tk-cat { padding: 6px 15px; font-size: 13px; font-weight: 600; }
.tk-form .input { border-radius: 12px; font-size: 15px; }
#tkGo { height: 44px; min-height: 0; border-radius: 12px; font-size: 15px; font-weight: 700; margin-top: 4px !important; }
.tk-verify { padding: 6px 0 2px; }

/* v1.3.17 — ONE tap shows the video buttons for 3 s (the video keeps playing); the middle button pauses / plays */
.reel-paused-icon, .w-pctl .w-paused { border: 0; padding: 0; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.reel-paused-icon .pp-play, .w-paused .pp-play { display: none; }
.reel-paused-icon .pp-pause, .w-paused .pp-pause { display: block; margin: 0 !important; }
.reel.is-paused .reel-paused-icon .pp-play, .w-slide.paused .w-paused .pp-play { display: block; }
.reel.is-paused .reel-paused-icon .pp-pause, .w-slide.paused .w-paused .pp-pause { display: none; }
.reel.ctl-on .reel-paused-icon, .reel.is-paused .reel-paused-icon { opacity: 1; transform: scale(1); pointer-events: auto; }
.reel.ctl-on .reel-paused-sound { opacity: 1; transform: scale(1); pointer-events: auto; }
.reel.ctl-on .reel-pskip { opacity: 1; }
.reel.ctl-on .reel-pskip .vp-skip { pointer-events: auto; }
.reel.sheet-up .reel-paused-icon { display: none; }
.w-slide.ctl-on .w-pctl { opacity: 1; }
.w-slide.ctl-on .w-pctl button, .w-slide.paused .w-pctl button { pointer-events: auto; }
