/* Hikayeler */
html.st-lock, html.st-lock body { overscroll-behavior: none; }
.st-bar { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 10px 16px 6px; margin: 0; max-width: 100%; box-sizing: border-box; scroll-snap-type: x proximity; }
.st-bar::-webkit-scrollbar { display: none; }
.st-item { flex: 0 0 auto; scroll-snap-align: start; position: relative; }
.st-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 68px; min-height: 44px; position: relative; -webkit-tap-highlight-color: transparent; }
.st-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.st-btn:active .st-ring { transform: scale(.94); }
.st-ring { width: 64px; height: 64px; border-radius: 50%; padding: 3px; box-sizing: border-box; display: grid; place-items: center; transition: transform .15s var(--ease, ease); }
.st-ring.new { background: conic-gradient(from 200deg, var(--accent), #ff9500, #e0a800, var(--accent)); }
.st-ring.old, .st-ring.seen-own { background: var(--label3, rgba(120,120,128,.4)); }
.st-ring.none { background: transparent; padding: 0; }
.st-ring .st-av { border: 2.5px solid var(--bg, #fff); box-sizing: border-box; }
.st-ring.none .st-av { border: 0; }
.st-av { display: inline-grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--fill2, #ddd); color: var(--label, #000); overflow: hidden; flex: none; font: 600 20px/1 var(--font, system-ui); }
.st-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-av b { font-weight: 600; }
.st-plus { all: unset; cursor: pointer; z-index: 1; position: absolute; top: 40px; left: 44px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); border: 2.5px solid var(--bg, #fff); display: grid; place-items: center; box-sizing: content-box; }
.st-plus::before { content: ""; position: absolute; inset: -8px; } /* ~44px dokunma alanı */
.st-plus svg { width: 12px; height: 12px; }
.st-name { font: 500 12px/1.2 var(--font, system-ui); color: var(--label2); max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }

/* izleyici */
.st-viewer { position: fixed; inset: 0; z-index: 300; background: #000; overscroll-behavior: none; touch-action: none; display: flex; justify-content: center; color: #fff; font-family: var(--font, system-ui); }
.st-stagewrap { position: relative; width: 100%; max-width: 430px; height: 100%; perspective: 1100px; overflow: hidden; }
.st-page { position: absolute; inset: 0; background: #000; overflow: hidden; backface-visibility: hidden; will-change: transform; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; transform-origin: center; }
.st-media, .st-media > * { position: absolute; inset: 0; }
.st-img, .st-vid { width: 100%; height: 100%; object-fit: contain; background: #000; }
.st-text { display: grid; place-items: center; padding: 28px 28px calc(90px + env(safe-area-inset-bottom, 0px)); }
.st-text p { margin: 0; font: 700 clamp(26px, 8vw, 36px)/1.25 var(--font, system-ui); text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.st-media > .st-cap { position: absolute; inset: auto 20px calc(110px + env(safe-area-inset-bottom, 0px)); height: fit-content; text-align: center; font: 700 22px/1.25 var(--font, system-ui); background: rgba(0,0,0,.55); padding: 8px 14px; border-radius: 14px; width: fit-content; max-width: calc(100% - 40px); margin: 0 auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#0008, transparent 22%, transparent 72%, #0007); }
.st-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 0; }
.st-bars { display: flex; gap: 3px; }
.st-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.32); overflow: hidden; }
.st-bars b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; will-change: transform; }
.st-head { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 44px; }
.st-head .st-av { width: 34px; height: 34px; font-size: 15px; background: rgba(255,255,255,.25); color: #fff; }
.st-hn { font-weight: 600; font-size: 0.9375rem; text-shadow: 0 1px 3px #0006; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ht { font-size: 0.875rem; opacity: .75; white-space: nowrap; }
.st-x { all: unset; box-sizing: border-box; margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: inherit; }
.st-x svg { width: 22px; height: 22px; }
.st-x:focus-visible, .st-own:focus-visible, .st-chip:focus-visible, .st-share:focus-visible, .st-pbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.st-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; min-height: 44px; }
.st-fl { flex: 1; display: flex; }
.st-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px; background: rgba(255,255,255,.92); color: #111; font: 600 15px/1 var(--font, system-ui); }
.st-chip svg { width: 18px; height: 18px; }
.st-own { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; justify-content: center; border-radius: 22px; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 600 15px/1 var(--font, system-ui); }
.st-own svg { width: 20px; height: 20px; }
.st-page.paused .st-top, .st-page.paused .st-foot { opacity: 0; transition: opacity .15s; }
.st-top, .st-foot { transition: opacity .2s; }

/* sheet */
.st-sheetbg { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; }
.st-sheet { width: 100%; max-width: 430px; max-height: 70%; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; background: var(--card, #fff); color: var(--label, #000); border-radius: 20px 20px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; animation: st-up .25s var(--ease, ease); }
.st-sheet h3 { margin: 8px 0 10px; font: 700 18px/1.2 var(--font, system-ui); }
.st-grab { width: 36px; height: 5px; border-radius: 3px; background: var(--label3, #ccc); margin: 0 auto; }
.st-empty { color: var(--label2); font-size: 0.9375rem; margin: 6px 0 14px; }
.st-vrow { display: flex; align-items: center; gap: 12px; min-height: 52px; border-top: .5px solid var(--sep); }
.st-vrow:first-child { border-top: 0; }
.st-vrow .st-av { width: 40px; height: 40px; font-size: 17px; }
.st-vn { flex: 1; font-size: 1rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-vt { color: var(--label2); font-size: 0.875rem; }
.st-btnp { all: unset; box-sizing: border-box; display: flex; justify-content: center; align-items: center; width: 100%; height: 48px; margin-top: 8px; border-radius: 14px; background: var(--fill); color: var(--label); font: 600 17px/1 var(--font, system-ui); cursor: pointer; }
.st-btnp.danger { background: var(--danger, #ff3b30); color: #fff; }

/* oluşturucu */
.st-creator { position: fixed; inset: 0; z-index: 300; background: var(--bg, #f2f2f7); color: var(--label, #000); display: flex; flex-direction: column; align-items: center; overscroll-behavior: none; font-family: var(--font, system-ui); }
.st-cbar { width: 100%; max-width: 430px; display: flex; align-items: center; justify-content: space-between; padding: calc(6px + env(safe-area-inset-top, 0px)) 8px 6px; box-sizing: border-box; }
.st-cbar b { font-size: 1.0625rem; font-weight: 600; }
.st-cbar .st-x { margin: 0; }
.st-share { all: unset; box-sizing: border-box; height: 44px; min-width: 88px; padding: 0 16px; border-radius: 22px; background: var(--accent); color: var(--on-accent, #fff); font: 600 16px/44px var(--font, system-ui); text-align: center; cursor: pointer; }
.st-share:disabled { opacity: .4; cursor: default; }
.st-cbody { width: 100%; max-width: 430px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
.st-pick { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.st-pbtn { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; align-items: center; padding: 18px 16px; border-radius: 16px; background: var(--card, #fff); box-shadow: var(--shadow); min-height: 72px; }
.st-pbtn svg { grid-row: span 2; width: 28px; height: 28px; color: var(--accent-t, var(--accent)); }
.st-pbtn b { font-size: 1.0625rem; font-weight: 600; }
.st-pbtn span { font-size: 0.875rem; color: var(--label2); }
.st-prev { position: relative; container-type: inline-size; flex: 1 1 auto; min-height: 0; width: 100%; max-height: calc(100% - 140px); aspect-ratio: 9 / 16; margin: 0 auto; max-width: 100%; border-radius: 16px; overflow: hidden; background: #000; touch-action: none; }
.st-prev { height: min(62vh, 560px); width: auto; flex: 0 0 auto; align-self: center; }
.st-pi, .st-pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.st-tag { position: absolute; transform: translate(-50%, -50%); max-width: 86%; min-width: 3em; width: max-content; font: 700 calc(64 / 1080 * 100cqw)/1.2 var(--font, system-ui); color: #fff; background: rgba(0,0,0,.55); padding: .3em .6em; border-radius: .5em; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; touch-action: none; cursor: grab; -webkit-user-select: text; user-select: text; }
.st-tag:empty::before { content: attr(data-ph); opacity: .6; }
.st-tag:focus { box-shadow: 0 0 0 2px #fff; }
.st-prev.is-text .st-tag, .st-tag.center { left: 50%; top: 46%; background: none; font-size: 8cqw; padding: 0; cursor: text; max-width: 84%; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.st-tools { display: flex; flex-direction: column; gap: 10px; }
.st-colors { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.st-colors button { all: unset; box-sizing: border-box; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 3px solid var(--bg, #fff); box-shadow: 0 0 0 1px var(--sep); }
.st-colors button.on { box-shadow: 0 0 0 2.5px var(--label); }
.st-rrow { display: flex; align-items: center; gap: 10px; background: var(--card, #fff); border-radius: 14px; padding: 0 12px; min-height: 48px; box-shadow: var(--shadow); }
.st-rrow label { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.st-rrow svg { width: 20px; height: 20px; color: var(--accent-t, var(--accent)); }
.st-rrow select { flex: 1; min-width: 0; height: 44px; font: 16px var(--font, system-ui); color: var(--label); background: transparent; border: 0; text-align: right; text-align-last: right; }
.st-link { all: unset; cursor: pointer; text-align: center; min-height: 44px; display: grid; place-items: center; color: var(--accent-t, var(--accent)); font-size: 1rem; }
.st-prog { position: relative; height: 22px; }
.st-prog i { display: block; height: 4px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease, ease); }
.st-prog span { font-size: 0.8125rem; color: var(--label2); }

@keyframes st-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .st-sheet { animation: none; }
  .st-ring, .st-prog i, .st-top, .st-foot { transition: none; }
}

.st-plus::before { content: ""; position: absolute; inset: -11px; }
.st-plus:focus-visible { outline: 2px solid var(--accent-t, var(--accent)); outline-offset: 2px; }
.st-prog span { display: block; }
/* sütun: 430px ortalanmış, masaüstünde #app gibi yuvarlak */
.st-viewer, .st-creator { top: 0; bottom: 0; left: max(0px, calc(50% - 215px)); right: max(0px, calc(50% - 215px)); inset-inline: max(0px, calc(50% - 215px)); }
.st-cbar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.st-cbar .st-x { margin-left: -10px; }
@media (min-width: 520px) {
  .st-viewer, .st-creator { top: 20px; bottom: 20px; border-radius: 32px; overflow: hidden; }
}
