/* ---- p177: Stories phase 2 ---- */

/* interactive stickers (sized with cqw so they scale with the story) */
.zk-iv { width: 68cqw; border-radius: 4cqw; padding: 3.4cqw; box-shadow: 0 10px 30px rgba(0,0,0,.28); color: #18181b; background: #fff; text-align: center; }
.zk-iv-q { font-weight: 800; font-size: 4.4cqw; line-height: 1.25; margin-bottom: 2.6cqw; overflow-wrap: break-word; }
.zk-iv-opts { display: flex; flex-direction: column; gap: 1.8cqw; }
.zk-iv-opt { position: relative; display: flex; align-items: center; gap: 2cqw; width: 100%; overflow: hidden; border-radius: 2.6cqw; background: #f1f2f6; padding: 2cqw 2.6cqw; font-size: 3.8cqw; font-weight: 700; text-align: left; color: #18181b; transition: background .2s; }
.zk-iv-opt .zk-iv-l { position: relative; flex: none; width: 5.6cqw; height: 5.6cqw; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; background: #fff; font-size: 3cqw; font-weight: 800; color: #6d28d9; box-shadow: 0 0 0 .3cqw #e4e4e7; }
.zk-iv-opt .zk-iv-t { position: relative; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zk-iv-opt .zk-iv-p { position: relative; flex: none; font-variant-numeric: tabular-nums; }
.zk-iv-opt .zk-iv-bar { position: absolute; inset: 0 auto 0 0; background: rgba(0,0,0,.07); transition: width .7s ease; }
.zk-iv-opt.is-right { background: #dcfce7; }
.zk-iv-opt.is-right .zk-iv-l { background: #22c55e; color: #fff; box-shadow: none; }
.zk-iv-opt.is-right .zk-iv-bar { background: rgba(34,197,94,.25); }
.zk-iv-opt.is-wrong { background: #fee2e2; }
.zk-iv-opt.is-wrong .zk-iv-l { background: #ef4444; color: #fff; box-shadow: none; }
.zk-iv-opt.is-dim { opacity: .8; }
.zk-iv-opt:disabled { cursor: default; }

.zk-iv-ask { padding: 0; overflow: hidden; }
.zk-iv-head { padding: 3.2cqw 3.4cqw 2.4cqw; font-weight: 800; font-size: 4.3cqw; line-height: 1.25; color: #fff; overflow-wrap: break-word; }
.zk-ivc-violet .zk-iv-head { background: linear-gradient(135deg, #7c3aed, #c026d3); }
.zk-ivc-pink .zk-iv-head { background: linear-gradient(135deg, #db2777, #f97316); }
.zk-ivc-orange .zk-iv-head { background: linear-gradient(135deg, #ea580c, #facc15); }
.zk-ivc-cyan .zk-iv-head { background: linear-gradient(135deg, #0891b2, #6366f1); }
.zk-ivc-green .zk-iv-head { background: linear-gradient(135deg, #059669, #84cc16); }
.zk-iv-ans { display: flex; align-items: center; margin: 2.6cqw; min-height: 9cqw; border-radius: 2.6cqw; background: #f1f2f6; padding: 0 2.6cqw; font-size: 3.6cqw; color: #18181b; }
.zk-iv-ans input { flex: 1; min-width: 0; border: 0; background: transparent !important; color: #18181b !important; font-size: 3.6cqw; padding: 2cqw 0; outline: none; box-shadow: none; }
.zk-iv-ans input::placeholder { color: #71717a !important; }
.zk-iv-ans button { flex: none; font-weight: 800; color: #7c3aed; font-size: 3.6cqw; }
.zk-iv-ph { color: #71717a; }
.zk-iv-sent { width: 100%; text-align: center; font-weight: 700; color: #16a34a; }
button.zk-iv-ans { width: calc(100% - 5.2cqw); color: #7c3aed; }

.zk-iv-slider { padding-bottom: 4cqw; }
.zk-iv-track { position: relative; height: 3.2cqw; margin: 4cqw 3cqw 1cqw; border-radius: 99px; background: #e4e4e7; }
.zk-iv-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6); }
.zk-iv-track input[type=range] { position: absolute; inset: -4cqw -2cqw; width: calc(100% + 4cqw); height: 11cqw; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.zk-iv-track input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 11cqw; }
.zk-iv-track input[type=range]::-moz-range-track { background: transparent; }
.zk-iv-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 11cqw; height: 11cqw; border: 0; background: transparent; }
.zk-iv-track input[type=range]::-moz-range-thumb { width: 11cqw; height: 11cqw; border: 0; background: transparent; }
.zk-iv-track::after { content: var(--zk-emo); position: absolute; top: 50%; left: var(--zk-v, 50%); transform: translate(-50%, -50%); font-size: 8.5cqw; line-height: 1; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.zk-iv-track:has(.zk-iv-thumb)::after { content: none; }
.zk-iv-thumb { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 8.5cqw; line-height: 1; }
.zk-iv-avg { position: absolute; top: 100%; transform: translate(-50%, 1cqw); font-size: 4.5cqw; opacity: .85; pointer-events: none; }
.zk-iv-meta { margin-top: 7cqw; font-size: 3cqw; color: #71717a; }

.zk-iv-count { background: linear-gradient(135deg, #4f46e5, #c026d3 60%, #f97316); color: #fff; }
.zk-iv-ct { font-weight: 800; font-size: 4.4cqw; text-transform: uppercase; letter-spacing: .02em; overflow-wrap: break-word; }
.zk-iv-digits { display: flex; justify-content: center; gap: 2cqw; margin-top: 2.4cqw; }
.zk-iv-digits span { display: flex; flex-direction: column; align-items: center; min-width: 12cqw; border-radius: 2.4cqw; background: rgba(255,255,255,.18); padding: 1.6cqw 1cqw; }
.zk-iv-digits b { font-size: 7cqw; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.zk-iv-digits i { font-style: normal; font-size: 2.6cqw; opacity: .85; margin-top: .8cqw; text-transform: uppercase; }
.zk-iv-ended { margin-top: 2.4cqw; font-size: 5cqw; font-weight: 800; }
.zk-iv-remind { display: inline-flex; align-items: center; gap: 1.4cqw; margin-top: 2.8cqw; border-radius: 99px; background: #fff; color: #6d28d9; font-weight: 800; font-size: 3.4cqw; padding: 1.8cqw 3.6cqw; }
.zk-iv-remind svg { width: 4cqw; height: 4cqw; }
.zk-iv-remind.is-on { background: rgba(255,255,255,.25); color: #fff; }

.zk-iv-chain .zk-iv-tag { display: inline-flex; align-items: center; gap: 1.2cqw; font-size: 3.2cqw; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #7c3aed; margin-bottom: 1.6cqw; }
.zk-iv-chain .zk-iv-tag svg { width: 3.6cqw; height: 3.6cqw; }
.zk-iv-go { display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; background: linear-gradient(90deg, #7c3aed, #db2777); color: #fff; font-weight: 800; font-size: 3.6cqw; padding: 2cqw 5cqw; }
.zk-iv-people { display: inline-flex; align-items: center; gap: 1cqw; border-radius: 99px; background: #f1f2f6; color: #18181b; font-weight: 700; font-size: 3.4cqw; padding: 2cqw 3cqw; }
.zk-iv-people svg { width: 4cqw; height: 4cqw; }

/* animations for stickers and text (on an inner box, so moving/rotating still works) */
@keyframes zk-a-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes zk-a-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9%); } 60% { transform: translateY(2%); } }
@keyframes zk-a-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes zk-a-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes zk-a-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
.zk-anim-pulse { animation: zk-a-pulse 1.4s ease-in-out infinite; }
.zk-anim-bounce { animation: zk-a-bounce 1.2s ease-in-out infinite; }
.zk-anim-wiggle { animation: zk-a-wiggle 1s ease-in-out infinite; }
.zk-anim-float { animation: zk-a-float 2.4s ease-in-out infinite; }
.zk-anim-pop { animation: zk-a-pop .6s cubic-bezier(.2,.8,.3,1.3) both; }
@media (prefers-reduced-motion: reduce) { .zk-anim-pulse, .zk-anim-bounce, .zk-anim-wiggle, .zk-anim-float, .zk-anim-pop { animation: none; } }

/* viewer: subtitles */
.zk-subs { position: absolute; left: 6%; right: 6%; bottom: 13%; z-index: 22; display: flex; justify-content: center; pointer-events: none; }
.zk-subs span { max-width: 100%; border-radius: 1.6cqw; background: rgba(0,0,0,.62); color: #fff; font-weight: 700; font-size: 4cqw; line-height: 1.35; padding: 1cqw 2.4cqw; text-align: center; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* viewer: bottom sheets (answers, chain, subtitles) */
.zk-p7-sheet { position: absolute; inset: auto 0 0 0; z-index: 55; display: flex; flex-direction: column; max-height: 75%; border-radius: 1.5rem 1.5rem 0 0; background: #18181b; padding: 1rem; box-shadow: 0 -10px 40px rgba(0,0,0,.4); }
.zk-p7-row { display: flex; align-items: flex-start; gap: .65rem; padding: .55rem .25rem; border-top: 1px solid rgba(255,255,255,.07); }
.zk-p7-row:first-child { border-top: 0; }
.zk-p7-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.zk-p7-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #a78bfa, #f472b6); }
.zk-p7-bar.is-right > i { background: #22c55e; }
.zk-p7-follow { border-radius: 999px; background: #fff; color: #18181b !important; font-size: 12px; font-weight: 700; padding: .3rem .8rem; }

/* studio: interactive tiles, video tools */
.zk-iv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.zk-iv-tile { display: flex; flex-direction: column; align-items: center; gap: .4rem; border-radius: 1rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); padding: .8rem .4rem; font-size: 12.5px; font-weight: 600; color: #fff; text-align: center; transition: background .15s; }
.zk-iv-tile:hover { background: rgba(255,255,255,.1); }
.zk-iv-tile span.ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.zk-iv-tile span.ic svg { width: 21px; height: 21px; }
.zk-iv-tile.is-used { border-color: #22c55e; }
.zk-vt-trim { position: relative; height: 40px; }
.zk-vt-trim .zk-vt-rail { position: absolute; left: 0; right: 0; top: 16px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); }
.zk-vt-trim .zk-vt-sel { position: absolute; top: 16px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #a78bfa); }
.zk-vt-trim input[type=range] { position: absolute; inset: 0; width: 100%; height: 40px; margin: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.zk-vt-trim input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 40px; }
.zk-vt-trim input[type=range]::-moz-range-track { background: transparent; }
.zk-vt-trim input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 30px; border-radius: 7px; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.4); cursor: ew-resize; margin-top: 5px; }
.zk-vt-trim input[type=range]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 30px; border-radius: 7px; background: #fff; border: 0; cursor: ew-resize; }
.zk-vt-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: 12px; color: rgba(255,255,255,.65); }
.zk-vt-range { width: 100%; accent-color: #22d3ee; }

/* insights page */
.zk-si-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .zk-si-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zk-si-card { border-radius: 1rem; border: 1px solid var(--zk-border, rgba(255,255,255,.08)); padding: .9rem 1rem; }
.zk-si-card b { display: block; font-size: 1.5rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.zk-si-card span { font-size: 12px; opacity: .7; }
.zk-si-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.zk-si-table th { text-align: right; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; opacity: .6; padding: .5rem .5rem; white-space: nowrap; }
.zk-si-table th:first-child, .zk-si-table td:first-child { text-align: left; }
.zk-si-table td { text-align: right; padding: .55rem .5rem; border-top: 1px solid rgba(127,127,127,.18); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zk-si-thumb { width: 36px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; background: #27272a; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; padding: 2px; text-align: center; }
.zk-si-tip { display: flex; gap: .6rem; align-items: flex-start; border-radius: 1rem; padding: .8rem 1rem; background: rgba(124,92,255,.1); border: 1px solid rgba(124,92,255,.25); font-size: 13.5px; }
.zk-si-tip svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #a78bfa; }
.zk-ss-size button.is-on { background: #fff; color: #18181b; }
.zk-ss-size button svg { width: 18px; height: 18px; }
@media (max-width: 639px) { .zk-p7-follow { font-size: 11px; padding: .22rem .6rem; } }

/* ===== p186: subtitles sheet, subtitle styles, AI label ===== */
.zk-sb6 { max-height: 85%; }
.zk-sb6-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.zk-sb6-cc { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.zk-sb6-i { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; flex-shrink: 0; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45); color: rgba(255,255,255,.8); font: italic 700 12px/1 Georgia, serif; }
.zk-sb6-i:hover, .zk-sb6-i.is-on { border-color: #a78bfa; color: #fff; background: rgba(139,92,246,.35); }
.zk-sb6-row { display: flex; align-items: center; gap: .75rem; padding: .8rem .1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.zk-sb6-row.block { display: block; }
.zk-sb6-t { color: #fff; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.zk-sb6-h { color: rgba(255,255,255,.55); font-size: .75rem; line-height: 1.35; margin-top: .15rem; }
.zk-sb6-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 36px; padding: 0 .9rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: .75rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.zk-sb6-btn:hover { background: rgba(255,255,255,.2); }
.zk-sb6-btn svg { width: 15px; height: 15px; }
.zk-sb6-sw { position: relative; flex-shrink: 0; width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.22); transition: background .2s; }
.zk-sb6-sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s; }
.zk-sb6-sw.is-on { background: #8b5cf6; }
.zk-sb6-sw.is-on i { transform: translateX(18px); }
.zk-sb6-sw:disabled { opacity: .45; cursor: not-allowed; }
.zk-sb6-ai { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0; border-radius: .7rem; background: linear-gradient(135deg,#6366f1,#ec4899); color: #fff; font-size: 12px; font-weight: 800; }
.zk-sb6-tip { margin-top: .5rem; border-radius: .9rem; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.35); color: rgba(255,255,255,.88); font-size: .75rem; line-height: 1.45; padding: .6rem .75rem; }
.zk-sb6-seg { display: inline-flex; border-radius: 999px; background: rgba(255,255,255,.08); padding: 3px; }
.zk-sb6-seg button { min-height: 32px; min-width: 36px; padding: 0 .7rem; border-radius: 999px; color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 600; }
.zk-sb6-seg button.is-on { background: #fff; color: #18181b; }
.zk-sb6-prev { position: relative; margin-top: .5rem; height: 92px; border-radius: .9rem; overflow: hidden; container-type: inline-size; background: linear-gradient(160deg,#3b0764,#0f766e); display: flex; justify-content: center; padding: 0 8%; align-items: flex-end; padding-bottom: 10px; }
.zk-sb6-prev.pos-top { align-items: flex-start; padding-top: 10px; padding-bottom: 0; }
.zk-sb6-prev .zk-subtxt { font-size: 13px; padding: 3px 9px; border-radius: 6px; }
.zk-sb6-prev .zk-subtxt.size-s { font-size: 11px; } .zk-sb6-prev .zk-subtxt.size-l { font-size: 16px; }

/* subtitle looks, used in the viewer and in the preview */
.zk-subs.pos-top { bottom: auto; top: 15%; }
.zk-subs .zk-subtxt.size-s { font-size: 3.3cqw; }
.zk-subs .zk-subtxt.size-l { font-size: 5.2cqw; }
.zk-subtxt { color: #fff; font-weight: 700; line-height: 1.35; text-align: center; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.zk-subtxt.look-box { background: rgba(0,0,0,.62); }
.zk-subs .zk-subtxt.look-outline, .zk-subtxt.look-outline { background: transparent; text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000, 0 2px 4px rgba(0,0,0,.6); }
.zk-subs .zk-subtxt.look-plain, .zk-subtxt.look-plain { background: transparent; text-shadow: 0 1px 6px rgba(0,0,0,.85); }

.zk-ai-badge { display: inline-flex; align-items: center; border-radius: 999px; background: linear-gradient(135deg,#6366f1,#ec4899); color: #fff; font-size: 10.5px; font-weight: 700; padding: .1rem .45rem; line-height: 1.4; }
