/* 3.1.45 TV & Cinema */
.tv-hero { background: linear-gradient(135deg, color-mix(in oklab, var(--a) 40%, #120a1c), #08070f 70%); }
.tv-hero-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 10px, transparent 10px 22px) top/100% 12px no-repeat,
              repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 10px, transparent 10px 22px) bottom/100% 12px no-repeat,
              radial-gradient(70% 90% at 90% 0%, color-mix(in oklab, var(--a2) 40%, transparent), transparent 70%); }
.tv-hero h1, .tv-hero p { color: #fff; }
.tv-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.tv-chips::-webkit-scrollbar { display: none; }
.tv-chips .chip { flex: none; padding: 7px 14px; font-size: 13px; border: 1px solid var(--line-2); background: rgba(var(--tint), .04); }
.tv-chips .chip.on { border-color: var(--a); background: var(--a-12); box-shadow: 0 0 0 1px var(--a-45); }
.tv-chips.sm .chip { padding: 5px 11px; font-size: 12px; }
.tv-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: none; }
.tv-row::-webkit-scrollbar { display: none; }
.tv-row .tv-card { flex: 0 0 116px; scroll-snap-align: start; }
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; }
.tv-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; }
.tv-poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--r-md); overflow: hidden; background: rgba(var(--tint), .06);
  border: 1px solid var(--line); box-shadow: 0 10px 22px -12px rgba(0,0,0,.7); transition: transform .15s; }
.tv-card:active .tv-poster { transform: scale(.97); }
.tv-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: 30px; opacity: .6; }
.tv-rank { position: absolute; left: 6px; top: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center;
  font: 800 14px var(--display, inherit); color: #fff; background: var(--grad); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.tv-rate { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fde047; background: rgba(0,0,0,.65); }
.tv-ct { font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-cs { font-size: 11px; }
.tv-mini { flex: none; width: 38px; height: 56px; border-radius: 8px; overflow: hidden; background: rgba(var(--tint), .06); }
.tv-mini.lg { width: 48px; height: 72px; }
.tv-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .tv-duo { grid-template-columns: 1fr; } }
.tv-promo { display: flex; gap: 12px; align-items: center; color: inherit; }
.tv-pe { font-size: 30px; }
.tv-wrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: var(--r-lg); scroll-margin-top: 90px; }
.tv-wpic { flex: none; width: 56px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: rgba(var(--tint), .06); }
.tv-wpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-wbody { min-width: 0; display: grid; gap: 4px; }
.tv-note { margin: 0; font-size: 13px; color: var(--mfg); font-style: italic; }
.tv-thumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tv-thumb { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(var(--tint), .04);
  color: var(--fg); font: 600 13px var(--body); cursor: pointer; }
.tv-thumb.up.on { border-color: #22c55e; background: rgba(34,197,94,.16); }
.tv-thumb.down.on { border-color: #ef4444; background: rgba(239,68,68,.16); }
.tv-thumb.pop { animation: tvpop .3s ease-out; }
@keyframes tvpop { 50% { transform: scale(1.18); } }
.tv-score { font-weight: 800; font-size: 13px; color: #4ade80; margin-left: 2px; }
.tv-score.neg { color: #f87171; }
.tv-wacts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.tv-add .tv-results { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.tv-res { display: flex; gap: 10px; align-items: center; text-align: left; padding: 6px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--tint), .03); color: var(--fg); font: inherit; cursor: pointer; }
.tv-res img, .tv-res .tv-noimg { width: 34px; height: 51px; object-fit: cover; border-radius: 6px; flex: none; font-size: 18px; }
.tv-picked { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--a-45); background: var(--a-6); }
.tv-picked img { width: 40px; height: 60px; object-fit: cover; border-radius: 6px; }
.tv-picked b { flex: 1; }
.tv-date { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-lg); color: inherit; }
.tv-date.mine { border-color: var(--a-45); }
.tv-date .grow { display: grid; gap: 3px; min-width: 0; }
.tv-dlabel { font-size: 12.5px; font-weight: 600; }
.tv-dlabel.cinema { color: #fbbf24; } .tv-dlabel.digital { color: #60a5fa; } .tv-dlabel.premiere { color: #f472b6; } .tv-dlabel.episode { color: #a78bfa; }
.tv-flags { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--mfg); }
.tv-quiz .tv-q { display: grid; gap: 10px; border: 1px solid var(--line-2); }
.tv-q legend { padding: 0 4px; }
.tv-clue { margin: 0; font-size: 13.5px; color: var(--mfg); font-style: italic; }
.tv-qimg { width: 90px; border-radius: 10px; }
.tv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .tv-opts { grid-template-columns: 1fr; } }
.tv-opt { position: relative; }
.tv-opt input { position: absolute; opacity: 0; }
.tv-opt span { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(var(--tint), .03); cursor: pointer; font-size: 13.5px; }
.tv-opt input:checked + span { border-color: var(--a); background: var(--a-12); box-shadow: 0 0 0 1px var(--a-45); }
.tv-opt input:focus-visible + span { outline: 2px solid var(--a); }
.tv-qres { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.tv-qres li span { display: block; font-size: 13px; }
.tv-qres li.ok span { color: #4ade80; } .tv-qres li.bad span { color: #f87171; }
.tv-pos { width: 28px; text-align: center; font-weight: 800; }
.tv-credit { text-align: center; font-size: 11px; margin-top: 10px; }
/* a title's page */
.tv-thero { position: relative; overflow: hidden; border-radius: var(--r-2xl); min-height: 230px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--a) 30%, #0b0912), #06050a); border: 1px solid var(--line-2); }
.tv-tbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.tv-tshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,4,10,.25), rgba(5,4,10,.92) 75%); }
.tv-ttop, .tv-tmain { position: relative; }
.tv-ttop .back { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); }
.tv-tmain { display: flex; gap: 14px; align-items: flex-end; color: #fff; }
.tv-tposter { flex: none; width: 104px; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -10px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.tv-tposter img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-tinfo { display: grid; gap: 6px; min-width: 0; }
.tv-tinfo h1 { margin: 0; font-size: 24px; line-height: 1.15; color: #fff; }
.tv-tmeta { font-size: 13px; color: rgba(255,255,255,.8); }
.tv-genres { display: flex; flex-wrap: wrap; gap: 5px; }
.tv-genres span { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; }
.tv-tacts { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-trailer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.tv-trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-tstats { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tv-over { margin: 8px 0 0; line-height: 1.6; }
.tv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tv-col { display: grid; gap: 6px; align-content: start; padding: 10px; border-radius: var(--r-md); background: rgba(var(--tint), .04); border: 1px solid var(--line); min-width: 0; }
.tv-dl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 8px; font-size: 12.5px; }
.tv-dl span { color: var(--mfg); white-space: nowrap; }
.tv-dl b { white-space: nowrap; margin-left: auto; }
.tv-wlab { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mfg); }
.tv-provs { display: flex; flex-wrap: wrap; gap: 6px; }
.tv-prov { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 3px; border-radius: 99px; background: rgba(var(--tint), .06); font-size: 12px; font-weight: 600; }
.tv-prov img { width: 22px; height: 22px; border-radius: 6px; }
.tv-cform textarea { width: 100%; }
.tv-comments { display: grid; gap: 10px; }
.tv-cmt { padding: 10px 12px; border-radius: var(--r-md); background: rgba(var(--tint), .04); border: 1px solid var(--line); display: grid; gap: 4px; }
.tv-ctext { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tv-spoiler { position: relative; text-align: left; border: 1px dashed rgba(250,204,21,.5); background: rgba(250,204,21,.06); border-radius: 10px; padding: 8px 10px; color: var(--fg); font: inherit; cursor: pointer; }
.tv-spoiler .tv-sptext { display: block; filter: blur(7px); user-select: none; white-space: pre-wrap; overflow-wrap: anywhere; transition: filter .2s; }
.tv-spoiler .tv-sptag { display: block; font-size: 12px; font-weight: 700; color: #fbbf24; margin-bottom: 4px; }
.tv-spoiler.open .tv-sptext { filter: none; user-select: auto; }
.tv-spoiler.open .tv-sptag { display: none; }
@media (max-width: 380px) { .tv-cols { grid-template-columns: 1fr; } }
.tv-me { gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--a-6); border: 1px solid var(--a-20); font-size: 13.5px; }
.tv-who { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.tv-clink { display: flex; flex-direction: column; gap: 4px; color: inherit; min-width: 0; }
.tv-thumbs.sm { gap: 4px; flex-wrap: nowrap; }
.tv-thumbs.sm .tv-thumb { padding: 3px 7px; font-size: 11.5px; gap: 3px; flex: 1; justify-content: center; }
.tv-grid .tv-clink, .tv-row .tv-clink { flex: 1; }
.tv-dsearch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.tv-dsearch .row { grid-column: 1 / -1; gap: 8px; }
.tv-dsearch input { width: 100%; }
@media (max-width: 420px) { .tv-dsearch { grid-template-columns: 1fr; } }
.tv-dfound { margin: 0; font-size: 13.5px; }

/* ================================================================ 4.2.52 Watch Party */
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.wp-wrap { display: flex; flex-direction: column; gap: 4px; }
.wp-acts { justify-content: flex-end; }
.wp-card { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--r-lg); color: inherit; text-decoration: none; }
.wp-thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.wp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.wp-card:hover .wp-thumb img { transform: scale(1.04); }
.wp-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); }
.wp-play .i { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 6px 22px -6px var(--a); }
.wp-live, .wp-soon { position: absolute; top: 8px; left: 8px; font: 700 11px/1 var(--body); letter-spacing: .06em; color: #fff; padding: 5px 8px; border-radius: 999px; background: #e11d48; display: inline-flex; gap: 6px; align-items: center; }
.wp-soon { background: rgba(0,0,0,.65); letter-spacing: 0; }
.wp-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: wpBlink 1.2s infinite; }
@keyframes wpBlink { 50% { opacity: .25; } }
.wp-ct { display: flex; flex-direction: column; gap: 2px; padding: 0 2px 2px; min-width: 0; }
.wp-intro { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.wp-ie, .wp-glyph { font-size: 30px; line-height: 1; }
.wp-glyph { font-size: 20px; display: grid; place-items: center; }
.wp-promo { margin-bottom: 14px; }
.wp-stage { display: flex; flex-direction: column; gap: 6px; }
.wp-player { position: relative; }
.wp-shield { position: absolute; inset: 0; z-index: 2; }
.wp-shield[hidden] { display: none; }
.wp-join { position: absolute; inset: 0; z-index: 3; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; cursor: pointer;
  background: radial-gradient(circle at 50% 45%, rgba(0,0,0,.35), rgba(0,0,0,.78)); font: inherit; }
.wp-join[hidden] { display: none; }
.wp-join span .i { width: 58px; height: 58px; padding: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 8px var(--a-20), 0 10px 40px -8px var(--a); animation: wpPulse 1.8s ease-in-out infinite; }
.wp-join b { font: 700 17px/1.2 var(--display); }
.wp-join small { opacity: .8; }
@keyframes wpPulse { 50% { box-shadow: 0 0 0 16px var(--a-12), 0 10px 40px -8px var(--a); } }
.wp-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; background: rgba(0,0,0,.75); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; pointer-events: none; }
.wp-float { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.wp-fl { position: absolute; bottom: -10px; font-size: 30px; animation: wpUp 3s ease-out forwards; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
@keyframes wpUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-30px) scale(1.15); }
  100% { transform: translateY(-260px) translateX(18px) scale(1); opacity: 0; } }
.wp-bar { gap: 8px; align-items: center; }
.wp-reacts { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.wp-reacts button { border: 0; background: var(--surface-2); border-radius: 999px; font-size: 20px; width: 40px; height: 40px; flex: none; cursor: pointer; transition: transform .15s; }
.wp-reacts button:active, .wp-reacts button.pop { transform: scale(1.25); }
.wp-change summary { cursor: pointer; padding: 2px 0; }

/* ================================================================ 4.2.52 Stories */
.st-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; margin: 2px 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.st-row::-webkit-scrollbar { display: none; }
.st-c { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; position: relative; text-decoration: none; font: inherit; }
.st-ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--a), var(--a2), #ffc15e, var(--a)); display: grid; place-items: center; transition: transform .2s; }
.st-c:active .st-ring { transform: scale(.94); }
.st-ring.seen { background: var(--line-2); }
.st-ring.mine { background: conic-gradient(from 210deg, var(--a2), var(--a), var(--a2)); }
.st-add .st-ring:not(.mine) { background: var(--line-2); }
.st-av { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--solid); border: 3px solid var(--bg); font: 700 22px/1 var(--display); color: var(--fg); }
.st-av img { width: 100%; height: 100%; object-fit: cover; }
.st-av.sm { width: 32px; height: 32px; border-width: 0; font-size: 14px; flex: none; }
.st-plus { position: absolute; top: 46px; left: 46px; width: 22px; height: 22px; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; border: 2px solid var(--bg); }
.st-plus .i { width: 12px; height: 12px; }
.st-n { font-size: 12px; max-width: 70px; color: var(--mfg); }
.st-manage .st-av { color: var(--mfg); }
body.st-open { overflow: hidden; }
.st-view { position: fixed; inset: 0; z-index: 9000; background: #000; color: #fff; display: flex; flex-direction: column; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.st-view[hidden] { display: none; }
@media (min-width: 640px) { .st-view { inset: 0; padding: 20px calc(50vw - 230px); background: rgba(0,0,0,.92); } }
.st-bars { display: flex; gap: 4px; padding: max(10px, env(safe-area-inset-top)) 10px 0; position: relative; z-index: 3; }
.st-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 0; background: #fff; }
.st-bar.done i { width: 100% !important; transition: none !important; }
.st-top { display: flex; gap: 10px; align-items: center; padding: 10px 12px; position: relative; z-index: 3; }
.st-top .hint { color: rgba(255,255,255,.7); }
.st-x { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.st-x[hidden] { display: none; }
.st-body { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: 0; }
@media (min-width: 640px) { .st-body { position: absolute; inset: 20px calc(50vw - 230px); border-radius: 18px; } }
.st-body img, .st-body video { width: 100%; height: 100%; object-fit: contain; }
.st-text { padding: 30px; font: 700 clamp(22px, 6vw, 34px)/1.3 var(--display); text-align: center; text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.st-cap { position: absolute; left: 16px; right: 16px; bottom: 90px; text-align: center; background: rgba(0,0,0,.55); padding: 10px 14px; border-radius: 14px; font-size: 16px; }
.st-tap { position: absolute; top: 70px; bottom: 80px; width: 35%; background: none; border: 0; z-index: 2; cursor: pointer; }
.st-tap.l { left: 0; } .st-tap.r { right: 0; width: 65%; }
.st-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 12px max(14px, env(safe-area-inset-bottom)); display: flex; gap: 8px; justify-content: center; z-index: 3; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.st-r { background: rgba(255,255,255,.14); border: 0; border-radius: 999px; width: 46px; height: 46px; font-size: 24px; cursor: pointer; transition: transform .15s; }
.st-r.pop { transform: scale(1.2); }
.st-views { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: 600 14px var(--body); cursor: pointer; }
.st-burst { position: absolute; bottom: 70px; font-size: 34px; z-index: 5; animation: wpUp 1.5s ease-out forwards; pointer-events: none; }
.st-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 60%; overflow: auto; z-index: 6; background: var(--solid); color: var(--fg); border-radius: 20px 20px 0 0; padding: 16px; }
.st-sheet[hidden] { display: none; }
.st-vrow { gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.st-prev { position: relative; aspect-ratio: 9/12; max-height: 260px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; color: #fff; font: 700 20px/1.3 var(--display); text-align: center; padding: 16px; }
.st-prev img, .st-prev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-prev span { position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.st-bgs { display: flex; gap: 8px; flex-wrap: wrap; }
.st-bg { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.st-bg.on { border-color: #fff; box-shadow: 0 0 0 2px var(--a); }

/* ================================================================ 4.2.52 repeating scheduled posts */
.schedrow select { flex: none; }
.sched-row.paused, .sched-item.paused { opacity: .6; }
.sched-all { display: inline-flex; gap: 4px; align-items: center; margin-top: 6px; }
.sched-link { display: flex; gap: 12px; align-items: center; color: inherit; margin-bottom: 12px; }
.sched-tags { gap: 4px; margin: 3px 0; }
.sched-when { font-size: 13px; font-weight: 600; }
.sched-item form { flex: none; }
.wp-for { border: 0; padding: 0; margin: 0; } .wp-for legend { padding: 0; margin-bottom: 6px; }
.st-prev { flex-shrink: 0; aspect-ratio: auto; height: 200px; max-height: none; }
.keysaved { display: inline-flex; gap: 4px; align-items: center; color: var(--ok); font-size: 13px; font-weight: 600; }

/* ================================================================ 4.2.54 Stories: the 9:16 canvas, the editor */
.st-view { padding: 0 !important; background: #000 !important; }
.st-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.st-canvas { position: relative; container-type: inline-size; aspect-ratio: 9 / 16; height: min(100%, calc(100vw * 16 / 9)); max-width: 100%; overflow: hidden; background: #111; touch-action: none; }
@media (min-width: 640px) { .st-canvas { height: calc(100% - 24px); border-radius: 18px; } }
.st-bgfill, .st-media, .st-layers { position: absolute; inset: 0; }
.st-bgfill img, .st-bgfill video { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.6); transform: scale(1.15); }
.st-media { display: grid; place-items: center; }
.st-media img, .st-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.st-canvas.fill .st-media img, .st-canvas.fill .st-media video { object-fit: cover; }
.st-layers { z-index: 2; pointer-events: none; }
.st-l { position: absolute; pointer-events: auto; white-space: pre-wrap; max-width: 92cqw; line-height: 1.2; user-select: none; -webkit-user-select: none; }
.st-l img { display: block; width: calc(30cqw * var(--s, 1)); height: auto; pointer-events: none; }
.st-l-aemoji img { width: calc(22cqw * var(--s, 1)); }
.st-l-emoji .st-em { display: block; font-size: calc(16cqw * var(--s, 1)); line-height: 1; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.st-l-text { font-size: calc(6.4cqw * var(--s, 1)); color: var(--tc, #fff); text-align: center; overflow-wrap: anywhere; }
.st-l-text .st-tx, .st-tprev textarea { display: inline; padding: .12em .35em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.st-a-l { text-align: left; } .st-a-r { text-align: right; } .st-a-c { text-align: center; }
.st-b-none .st-tx { text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.st-b-solid .st-tx { background: var(--tb); }
.st-b-soft .st-tx { background: rgba(0,0,0,.5); }
.st-f-classic { font-family: var(--body); font-weight: 700; }
.st-f-bold { font-family: "Bebas Neue", Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; font-size: calc(8.4cqw * var(--s, 1)); }
.st-f-neon { font-family: var(--display); font-weight: 800; }
.st-f-neon .st-tx, .st-tprev.st-f-neon textarea { text-shadow: 0 0 .15em #fff, 0 0 .4em var(--tc), 0 0 .9em var(--tc); color: #fff; }
.st-f-type { font-family: "Space Mono", ui-monospace, monospace; font-weight: 700; font-size: calc(5.6cqw * var(--s, 1)); }
.st-f-script { font-family: "Pacifico", cursive; }
.st-f-marker { font-family: "Permanent Marker", cursive; }
.st-f-serif { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 700; }
.st-l .mention { background: rgba(255,255,255,.22); color: inherit; padding: 0 .25em; border-radius: .3em; font-weight: 700; text-decoration: none; }
.st-l a.mention { pointer-events: auto; }
.st-l .aemoji, .st-l .cemoji { width: 1.1em; height: 1.1em; vertical-align: -.2em; }
.st-view .st-bars, .st-view .st-top { position: absolute; left: 0; right: 0; z-index: 4; }
.st-view .st-bars { top: 0; }
.st-view .st-top { top: 14px; }
@media (min-width: 640px) { .st-view .st-bars, .st-view .st-top, .st-view .st-foot { left: calc(50% - min(28vh, 280px)); right: calc(50% - min(28vh, 280px)); } }
.st-tap { z-index: 3; }
.st-view .st-foot { z-index: 4; }
.st-view:not(.st-edit) .st-layers .st-l:not(:has(a)) { pointer-events: none; }
/* the editor */
.st-edit .st-l { cursor: grab; touch-action: none; }
.st-edit .st-l.sel { outline: 2px dashed rgba(255,255,255,.75); outline-offset: 6px; border-radius: 6px; }
.st-edit .st-l.bin { opacity: .4; }
.st-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: rgba(255,255,255,.8); font: 600 16px/1.4 var(--body); pointer-events: none; z-index: 1; }
.st-empty[hidden] { display: none; }
.st-etop { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; z-index: 5; }
.st-tool { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: inline-grid; place-items: center; cursor: pointer; font: 800 17px var(--display); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.st-tool[hidden] { display: none; }
.st-tool.sm { width: 34px; height: 34px; }
.st-tool.st-fit { width: auto; padding: 0 12px; border-radius: 999px; display: inline-flex; gap: 6px; font: 600 13px var(--body); }
.st-pop { position: absolute; top: 66px; right: 10px; z-index: 6; background: rgba(15,12,28,.92); border-radius: 18px; padding: 10px; display: flex; gap: 8px; flex-wrap: wrap; max-width: 320px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.st-pop[hidden] { display: none; }
.st-stickmenu button { border: 0; background: rgba(255,255,255,.08); color: #fff; border-radius: 14px; width: 68px; height: 68px; display: grid; place-items: center; font-size: 26px; cursor: pointer; padding: 6px 0; }
.st-stickmenu button span { font-size: 11px; font-weight: 600; }
.st-stickmenu button b { font: 800 16px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-bgrow button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); cursor: pointer; }
.st-trash { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%) scale(.8); width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; opacity: 0; transition: .15s; z-index: 6; pointer-events: none; }
.st-edit.dragging .st-trash { opacity: 1; }
.st-trash.hot { background: #e11d48; transform: translateX(-50%) scale(1.1); }
.st-ebottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; z-index: 5; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.st-sizerow { display: flex; gap: 10px; align-items: center; color: #fff; }
.st-sizerow[hidden] { display: none; }
.st-sizerow label { flex: 1; display: flex; gap: 6px; align-items: center; }
.st-sizerow input { flex: 1; accent-color: var(--a); }
.st-share-row { gap: 10px; align-items: flex-end; }
.st-sharebtn { border-radius: 999px; padding: 12px 22px; }
.st-aud { color: #fff; max-width: 70%; }
.st-aud summary { display: inline-flex; gap: 6px; align-items: center; background: rgba(0,0,0,.5); padding: 9px 14px; border-radius: 999px; cursor: pointer; font: 600 13px var(--body); list-style: none; }
.st-aud summary::-webkit-details-marker { display: none; }
.st-audbox { margin-top: 8px; background: rgba(15,12,28,.95); border-radius: 16px; padding: 12px; }
.st-audhint { color: rgba(255,255,255,.75); }
.st-textedit { position: absolute; inset: 0; z-index: 8; background: rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.st-textedit[hidden] { display: none; }
.st-tetop { gap: 8px; align-items: center; }
.st-tbgbtn[data-mode="solid"] { background: #fff; color: #111; }
.st-tbgbtn[data-mode="soft"] { background: rgba(255,255,255,.3); }
.st-tbox { flex: 1; display: grid; place-items: center; container-type: inline-size; }
.st-tprev { width: 100%; font-size: 7cqw; color: var(--tc, #fff); }
.st-tprev textarea { display: block; width: 100%; min-height: 3.6em; background: transparent; border: 0; outline: 0; resize: none; font: inherit; color: inherit; text-align: inherit; caret-color: #fff; padding: .2em .35em; }
.st-tprev.st-b-solid textarea { background: var(--tb); }
.st-tprev.st-b-soft textarea { background: rgba(0,0,0,.5); }
.st-tprev textarea::placeholder { color: rgba(255,255,255,.5); font-size: .55em; }
.st-fonts, .st-cols { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.st-fchip { flex: none; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 16px; cursor: pointer; --s: .45; }
.st-fchip.on { background: #fff; color: #111; }
.st-cchip { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); cursor: pointer; }
.st-cchip.on { border-color: #fff; box-shadow: 0 0 0 3px var(--a); }
body.st-editing .sheet-bg { z-index: 9500; }
body.st-editing .refpop { z-index: 9600; }
.st-view .st-layers { z-index: 5; } .st-view .st-tap { z-index: 3; }
.st-textedit .st-tprev textarea { border: 0 !important; box-shadow: none !important; background: transparent !important; outline: 0 !important; min-height: 3.6em; }
.st-textedit .st-tprev.st-b-solid textarea { background: var(--tb) !important; }
.st-textedit .st-tprev.st-b-soft textarea { background: rgba(0,0,0,.5) !important; }
.st-h { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--a); box-shadow: 0 2px 8px rgba(0,0,0,.4); touch-action: none; z-index: 2; cursor: nwse-resize; }
.st-h::after { content: ""; position: absolute; inset: -12px; }  /* a bigger area for fingers */
.st-h-tl { left: -17px; top: -17px; } .st-h-tr { right: -17px; top: -17px; cursor: nesw-resize; }
.st-h-bl { left: -17px; bottom: -17px; cursor: nesw-resize; } .st-h-br { right: -17px; bottom: -17px; }
.st-h-l { left: -17px; top: calc(50% - 11px); cursor: ew-resize; } .st-h-r { right: -17px; top: calc(50% - 11px); cursor: ew-resize; }
.st-edit .st-l.sel { outline-offset: 6px; }
.st-justshared { animation: stShared 1.2s ease-out 2; }
@keyframes stShared { 0% { box-shadow: 0 0 0 0 var(--a); } 100% { box-shadow: 0 0 0 14px transparent; } }
.st-view:not(.st-edit) .st-stage { touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.st-view:not(.st-edit) .st-canvas img, .st-view:not(.st-edit) .st-canvas video { pointer-events: none; -webkit-touch-callout: none; }
.st-view .st-bars, .st-view .st-top, .st-view .st-foot { transition: opacity .2s; }
.st-view.st-held .st-bars, .st-view.st-held .st-top, .st-view.st-held .st-foot { opacity: 0; }
/* 4.2.55: a story you've watched loses its ring, so the ones with a ring are the new ones */
.st-ring.seen, .st-add .st-ring:not(.mine) { background: transparent; }
.st-ring.seen .st-av { border-color: transparent; box-shadow: 0 0 0 1px var(--line-2); }
.st-l-text { width: max-content; max-width: 90cqw; }
/* 4.2.57: the "Your story" add button always has its ring */
.st-row .st-c.st-add .st-ring { background: conic-gradient(from 210deg, var(--a), var(--a2), #ffc15e, var(--a)); }
.st-row .st-c.st-add .st-ring .st-av { border-color: var(--bg); box-shadow: none; }
