@font-face { font-family: "Figtree"; src: url(../fonts/fig-ext.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; src: url(../fonts/fig.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Fraunces; src: url(../fonts/fraunces-it-ext.woff2) format('woff2'); font-weight: 300 600; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Fraunces; src: url(../fonts/fraunces-it.woff2) format('woff2'); font-weight: 300 600; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #eef4ff; --soft: #a9bbdb; --line: rgb(190 214 255 / .16); --glass: rgb(14 24 46 / .58); --pink: #ff6c98; --acc: #8fd0ff;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --serif: Fraunces, Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; background: #070d1b; color: var(--ink); font: 400 14px/1.45 Figtree, system-ui, sans-serif; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

#glass, #ink { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#glass { z-index: 1; }
#ink { z-index: 2; touch-action: none; cursor: crosshair; }
body.nogl #glass { display: none; }
body.nogl { --cover: none; }
body.nogl::before { content: ""; position: fixed; inset: -40px; background: var(--cover) center / cover, radial-gradient(120% 90% at 30% 20%, #223a66, #070d1b); filter: blur(26px) brightness(.5); z-index: 1; }

/* video: privzeto za steklom (predvaja, a ne moti); »okence« ali v ospredju */
#ytwrap { position: fixed; left: 8px; top: 40%; width: 220px; height: 200px; z-index: 0; overflow: hidden; background: #000; pointer-events: none; }
#ytwrap iframe, #yt { width: 100%; height: 100%; border: 0; display: block; }
body.video #ytwrap { z-index: 3; pointer-events: auto; left: auto; top: auto; right: 12px; bottom: calc(132px + var(--sab)); width: min(46vw, 320px); height: min(25.9vw, 180px); min-width: 200px; min-height: 112px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 18px 50px rgb(0 0 0 / .6); }
body.ytfront #ytwrap { z-index: 45; pointer-events: auto; left: 50%; right: auto; bottom: auto; top: 42%; width: min(94vw, 720px); height: min(52.9vw, 405px); min-height: 200px; transform: translate(-50%, -50%); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 30px 100px #000; }
#ytclose { display: none; position: fixed; z-index: 46; left: 50%; top: calc(42% + min(26.5vw, 203px) + 16px); transform: translateX(-50%); padding: 9px 18px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); }
body.ytfront #ytclose { display: block; }

#top { position: fixed; z-index: 10; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; padding: calc(10px + var(--sat)) 12px 4px; pointer-events: none; }
#top > * { pointer-events: auto; }
#modes { justify-self: start; display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#modes button { padding: 7px 13px; border-radius: 99px; font-weight: 600; color: var(--soft); transition: background .25s, color .25s; }
#modes button.on { background: rgb(215 232 255 / .92); color: #0b1530; }
.tr { display: flex; gap: 7px; }
.rnd { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#chip { grid-column: 1 / -1; justify-self: start; display: none; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px 5px 13px; border-radius: 99px; background: rgb(215 232 255 / .14); border: 1px solid var(--line); font-weight: 600; }
#chip.on { display: flex; }
#chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#chip .ic { width: 16px; height: 16px; }
@media (max-width: 380px) { #modes button { padding: 7px 9px; } .rnd { width: 36px; height: 36px; } .tr { gap: 5px; } }

/* okenska polica */
#sill { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; padding: 0 12px calc(8px + var(--sab)); display: grid; justify-items: center; gap: 4px;
  background: linear-gradient(180deg, rgb(26 38 64 / .72), rgb(8 13 27 / .94)); border-top: 1px solid rgb(205 226 255 / .3); box-shadow: 0 -1px 0 rgb(0 0 0 / .5), 0 -14px 40px rgb(0 0 0 / .35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
#bar { justify-self: stretch; margin: 0 -12px; height: 2px; }
#bar i { display: block; height: 100%; background: linear-gradient(90deg, rgb(143 208 255 / .2), var(--acc)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s linear; }
#now { max-width: min(560px, 100%); display: grid; text-align: center; padding: 4px 6px 0; min-width: 0; }
#now b, #now span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
#now b { font: italic 500 19px/1.25 var(--serif); }
#now span { color: var(--soft); font-size: 12.5px; }
.ctl { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: min(420px, 100%); }
.cb { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: transform .15s, color .2s, background .2s; }
.cb:active { transform: scale(.9); }
.cb.big { width: 58px; height: 58px; background: radial-gradient(circle at 34% 28%, rgb(255 255 255 / .55), rgb(143 190 255 / .2) 40%, rgb(60 100 180 / .28)); border: 1px solid rgb(210 232 255 / .35); border-radius: 50% 50% 50% 50% / 56% 56% 44% 44%; box-shadow: inset 0 -6px 12px rgb(170 215 255 / .25), 0 6px 18px rgb(0 0 0 / .4); }
.cb.big .ic { width: 26px; height: 26px; }
#like.on { color: var(--pink); }
#like.on .ic { fill: currentColor; }
#like.pop { animation: pop .45s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
#bFilm.on { color: var(--acc); }
.pud { position: relative; }
.pud em { position: absolute; right: -1px; top: 1px; min-width: 18px; padding: 0 5px; border-radius: 99px; font: 700 10px/16px Figtree, system-ui, sans-serif; background: rgb(215 232 255 / .18); }
.pud.q em { background: var(--acc); color: #06132a; }
@media (max-height: 520px) and (min-width: 640px) {
  #sill { grid-template-columns: 1fr auto; align-items: center; column-gap: 14px; }
  #bar { grid-column: 1 / -1; }
  #now { justify-self: start; text-align: left; }
  body.video #ytwrap { bottom: calc(76px + var(--sab)); }
}

#scrim { position: fixed; inset: 0; z-index: 30; background: rgb(3 7 18 / .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
body.sheet-on #scrim { opacity: 1; pointer-events: auto; }
#sheet { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-height: min(84%, 760px); overflow-y: auto; overscroll-behavior: contain; border-radius: 26px 26px 0 0; background: rgb(13 22 43 / .84); border: 1px solid var(--line); border-bottom: 0; backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3); transform: translateY(105%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s; padding-bottom: var(--sab); }
#sheet.on { transform: none; visibility: visible; }
#sheet.k-search { height: min(84%, 760px); }
@media (min-width: 760px) {
  #sheet { left: auto; right: 14px; top: 14px; bottom: 14px; width: 430px; max-height: none; height: auto !important; border-radius: 24px; border-bottom: 1px solid var(--line); transform: translateX(110%); }
}
.sh { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; background: rgb(14 23 45 / .96); }
.sh h2 { font: italic 500 22px/1.2 var(--serif); }
.sh p { color: var(--soft); font-size: 12.5px; }
.sh div { min-width: 0; }
.body { padding: 2px 16px 22px; }
h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 18px 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.link { color: var(--acc); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 12.5px; text-decoration: underline; }
.muted { color: var(--soft); font-size: 13px; margin: 8px 0; }
input[type=search], input[type=password], input[type=text] { width: 100%; padding: 11px 15px; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / .06); -webkit-user-select: text; user-select: text; font-size: 16px; }
input[type=range] { width: 100%; accent-color: var(--acc); }
.list { list-style: none; }
.row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgb(190 214 255 / .08); content-visibility: auto; contain-intrinsic-size: auto 52px; }
.rm { flex: 1; min-width: 0; text-align: left; padding: 8px 0; display: grid; }
.rm b, .rm span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rm b { font-weight: 600; }
.rm span { color: var(--soft); font-size: 12px; }
.row.on .rm b { color: var(--acc); }
.dot { display: inline-block; flex: none; width: 11px; height: 13px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 35% 40%, #fff, var(--c) 45%, rgb(0 0 0 / .35)); }
dd .dot { margin-right: 6px; }
.mini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--soft); flex: none; }
.mini .ic { width: 18px; height: 18px; }
.mini.fav { color: var(--pink); }
.mini.fav .ic { fill: currentColor; }
.mini.in { color: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 8px 13px; border-radius: 16px; background: rgb(255 255 255 / .07); border: 1px solid var(--line); text-align: left; }
.chip .ic { width: 14px; height: 14px; }
.chip small { color: var(--soft); }
.dcard { display: flex; gap: 14px; align-items: center; }
.dcard img { width: 112px; height: 112px; object-fit: cover; border-radius: 50% 50% 50% 50% / 56% 56% 44% 44%; box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px rgb(0 0 0 / .45); flex: none; }
.dcard dl { min-width: 0; }
dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
dd { margin-bottom: 6px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 99px; background: rgb(255 255 255 / .08); border: 1px solid var(--line); font-weight: 600; }
.btn .ic { width: 17px; height: 17px; }
.btn.pri { background: rgb(215 232 255 / .93); color: #0b1530; }
.btn.fav { color: var(--pink); }
.code { display: flex; gap: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--soft); font-weight: 600; }
.seg button.on { background: rgb(215 232 255 / .93); color: #0b1530; }
.sw { display: flex; align-items: center; gap: 12px; padding: 9px 0; cursor: pointer; }
.sw span { flex: 1; display: grid; }
.sw small { color: var(--soft); }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { width: 42px; height: 24px; border-radius: 99px; background: rgb(255 255 255 / .14); position: relative; transition: background .2s; flex: none; }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked + i { background: #3f8fe0; }
.sw input:checked + i::after { transform: translateX(18px); }
.sw input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
ul.guide { list-style: none; display: grid; gap: 9px; font-size: 13.5px; color: var(--soft); }
ul.guide b { color: var(--ink); }

#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(138px + var(--sab)); transform: translate(-50%, 8px); width: max-content; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 12px; padding: 10px 17px; border-radius: 22px; background: rgb(18 30 58 / .9); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { color: var(--acc); font-weight: 700; flex: none; }

#guide { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 18px; background: rgb(4 9 22 / .55); }
.g-in { width: min(440px, 100%); max-height: 100%; overflow-y: auto; padding: 22px; border-radius: 26px; background: rgb(15 25 50 / .92); border: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); display: grid; gap: 14px; }
.g-in h2 { font: italic 500 24px/1.2 var(--serif); }

#boot { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: radial-gradient(70% 55% at 50% 48%, rgb(6 12 28 / .66), rgb(6 12 28 / .12)); transition: opacity .8s, transform .8s; }
#boot.out { opacity: 0; transform: scale(1.05); pointer-events: none; }
#boot h1 { font: italic 300 clamp(44px, 12vw, 92px)/1 var(--serif); text-shadow: 0 6px 40px rgb(90 160 255 / .45), 0 2px 4px rgb(0 0 0 / .5); }
.b-a { color: #d4e2fb; font-size: 16px; text-shadow: 0 1px 8px #000; }
#bootGo { display: grid; justify-items: center; gap: 10px; margin-top: 18px; }
#go { padding: 16px 34px; border-radius: 99px; font-weight: 700; font-size: 16px; background: linear-gradient(180deg, rgb(255 255 255 / .96), rgb(190 218 255 / .9)); color: #0a1634; box-shadow: 0 0 0 7px rgb(190 220 255 / .12), 0 14px 44px rgb(60 130 255 / .4); }
#goSong { font: italic 400 15px var(--serif); color: #cbdcfa; max-width: 30ch; text-shadow: 0 1px 8px #000; }
#bootMsg { color: var(--soft); font-size: 12.5px; min-height: 1.5em; text-shadow: 0 1px 8px #000; }

@media (prefers-reduced-motion: reduce) { #sheet, #boot, #toast { transition-duration: .01s; } }
