/* EditVault stilleri. Üç tema var (sinema, aurora, siber); hepsi aynı sayfa yapısını kullanır,
   renk + yazı + köşe + yerleşim değişkenleriyle ayrışır. Tema <html data-theme> ile seçilir. */
:root {
  color-scheme: dark;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Code", Consolas, ui-monospace, monospace;
  --ok: #22c55e; --danger: #ef4444; --warn: #facc15;
  --side: 236px; --top: 62px;
  /* sinema (varsayılan) */
  --bg: #0b0b0d; --bg2: #0f0f12; --panel: #16161a; --panel2: #1f1f25; --line: #2b2b33;
  --text: #f4f4f6; --dim: #9b9ba8; --accent: #e50914; --accent2: #ff6a3d; --ink: #fff;
  --radius: 12px; --r-sm: 8px; --head: var(--font); --shadow: 0 18px 50px #000a; --blur: none;
}
html[data-theme=aurora] {
  --bg: #0a0820; --bg2: #ffffff0d; --panel: #ffffff12; --panel2: #ffffff1c; --line: #ffffff24;
  --text: #f5f3ff; --dim: #b3add6; --accent: #8f7bff; --accent2: #3fd9ff; --ink: #fff;
  --radius: 22px; --r-sm: 14px; --shadow: 0 20px 60px #0008; --blur: blur(18px) saturate(140%);
}
html[data-theme=siber] {
  --bg: #03070a; --bg2: #050c11; --panel: #07131a; --panel2: #0b1d27; --line: #12402f;
  --text: #d6ffec; --dim: #5fa58a; --accent: #00ff9c; --accent2: #ff2bd6; --ink: #00140c;
  --radius: 0px; --r-sm: 0px; --font: var(--mono); --head: var(--mono); --shadow: 0 0 0 1px var(--accent), 0 0 34px #00ff9c33;
  --side: 76px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); overflow-x: hidden; }
html[data-theme=aurora] body {
  background:
    radial-gradient(900px 600px at 12% -10%, #6d4bff66, transparent 60%),
    radial-gradient(800px 600px at 95% 10%, #00c2ff40, transparent 60%),
    radial-gradient(900px 700px at 60% 110%, #ff4fd83d, transparent 60%), var(--bg);
  background-attachment: fixed;
}
html[data-theme=siber] body {
  background: linear-gradient(#00ff9c0a 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, #00ff9c0a 1px, transparent 1px) 0 0 / 34px 100%, var(--bg);
  background-attachment: fixed;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.01em; }
html[data-theme=siber] :is(h1, h2, h3, .btn, .chip, #nav a, th, .stat small) { text-transform: uppercase; letter-spacing: .06em; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { flex: none; vertical-align: -3px; }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.center { text-align: center; }
.error { color: var(--danger); min-height: 1.4em; font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 14px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* ---------- form öğeleri ---------- */
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
select option { background: #16161a; color: #f4f4f6; }
textarea { resize: vertical; min-height: 84px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
label { display: grid; gap: 5px; color: var(--dim); font-size: 13px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap;
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 14px;
  color: var(--text); text-decoration: none; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel2); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.big { padding: 12px 18px; font-size: 16px; }
.btn.icon { padding: 8px; border-radius: 999px; }
.btn.on { color: var(--accent); border-color: var(--accent); }
html[data-theme=aurora] .btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; box-shadow: 0 8px 24px #7c6bff55; }
html[data-theme=siber] .btn { clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
html[data-theme=siber] .btn.icon { clip-path: none; border-radius: 0; }
html[data-theme=siber] .btn.primary:hover { box-shadow: 0 0 18px var(--accent); }

/* aç/kapa düğmesi */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text); font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 0; }
.switch i { width: 38px; height: 22px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); position: relative; flex: none; transition: .15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--dim); transition: .15s; }
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { left: 18px; background: var(--ink); }
.switch input:focus-visible + i { outline: 2px solid var(--accent2); outline-offset: 2px; }
.switch input:disabled + i { opacity: .45; }

/* kaydırıcılar (video çubuğu, ses, zoom) */
input[type=range] {
  -webkit-appearance: none; appearance: none; height: 6px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--panel2) var(--p, 0%));
}
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px #0005; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
html[data-theme=siber] input[type=range], html[data-theme=siber] input[type=range]::-webkit-slider-thumb { border-radius: 0; }

/* ---------- giriş ---------- */
#auth { min-height: 100%; display: grid; place-items: center; padding: 20px; }
html:not([data-theme=aurora], [data-theme=siber]) #auth { background: radial-gradient(760px 460px at 50% -6%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%); }
.auth-card {
  width: min(400px, 100%); display: grid; gap: 14px; padding: 32px; background: var(--panel); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); backdrop-filter: var(--blur);
}
.auth-card .logo { justify-content: center; font-size: 28px; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--panel2); padding: 4px; border-radius: var(--r-sm); }
.tabs button { border: 0; background: none; padding: 8px; border-radius: calc(var(--r-sm) - 2px); cursor: pointer; color: var(--dim); }
.tabs .active { background: var(--accent); color: var(--ink); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- iskelet ---------- */
.logo { display: flex; align-items: center; gap: 10px; font: 700 21px var(--head); color: var(--text); margin: 0; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--accent); }
.logo-mark {
  width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--accent);
  background-image: linear-gradient(135deg, var(--accent), var(--accent2)); position: relative;
}
.logo-mark::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 10px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; transform: translateX(2px); }
html[data-theme=siber] .logo-mark { border-radius: 0; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }

#sysbar {
  display: flex; gap: 18px; align-items: center; padding: 5px 16px; font: 12px/1.4 var(--mono); color: #9b9ba8; height: 28px;
  background: #000; border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; position: sticky; top: 0; z-index: 30;
}
#sysbar .m { display: inline-flex; align-items: center; gap: 6px; }
#sysbar b { color: #fff; font-weight: 600; }
#sysbar .bar { width: 54px; height: 5px; background: #ffffff1f; border-radius: 3px; overflow: hidden; }
#sysbar .bar i { display: block; height: 100%; background: var(--ok); }
#sysbar .bar.warn i { background: var(--warn); }
#sysbar .bar.bad i { background: var(--danger); }

#app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100% - var(--sys, 0px)); }
#side {
  position: sticky; top: var(--sys, 0px); align-self: start; height: calc(100vh - var(--sys, 0px)); padding: 16px 12px;
  display: flex; flex-direction: column; gap: 18px; background: var(--bg2); border-right: 1px solid var(--line); z-index: 10;
}
#side .logo { padding: 2px 8px; }
#nav { display: grid; gap: 4px; }
#nav a {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--dim);
  font-weight: 500; position: relative;
}
#nav a:hover { background: var(--panel2); color: var(--text); text-decoration: none; }
#nav a.active { background: var(--panel2); color: var(--text); }
#nav a.active .ic { color: var(--accent); }
#nav .count { margin-left: auto; background: var(--accent); color: var(--ink); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
#top {
  position: sticky; top: var(--sys, 0px); z-index: 9; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 22px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.search { flex: 1; max-width: 560px; margin: 0 auto; display: block; position: relative; }
.search input { border-radius: 999px; padding-left: 40px; background: var(--panel); }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
html[data-theme=siber] .search input { border-radius: 0; }
#actions { display: flex; align-items: center; gap: 10px; }
#view { padding: 22px; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 24px; }
.empty { text-align: center; color: var(--dim); padding: 70px 20px; display: grid; gap: 12px; justify-items: center; }
.empty .ic { opacity: .5; }

/* aurora: yan menü yüzen cam panel */
html[data-theme=aurora] #side { margin: 14px 0 14px 14px; height: calc(100vh - 28px - var(--sys, 0px)); top: calc(14px + var(--sys, 0px)); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: var(--blur); }
html[data-theme=aurora] #top { background: transparent; border: 0; backdrop-filter: none; }
html[data-theme=aurora] #nav a.active { background: linear-gradient(135deg, #8f7bff40, #3fd9ff26); }
/* siber: yan menü dar ikon rayı */
html[data-theme=siber] #side { padding: 14px 8px; align-items: center; }
html[data-theme=siber] #side .logo-text, html[data-theme=siber] #nav a span:not(.count) { display: none; }
html[data-theme=siber] #nav a { justify-content: center; padding: 14px; border: 1px solid transparent; }
html[data-theme=siber] #nav a.active { border-color: var(--accent); background: #00ff9c12; box-shadow: inset 0 0 14px #00ff9c2e; }
html[data-theme=siber] #nav .count { position: absolute; top: 4px; right: 4px; margin: 0; }
html[data-theme=siber] #top { border-bottom-color: var(--accent); box-shadow: 0 1px 18px #00ff9c2b; }

/* ---------- avatar / rozet / menü ---------- */
.av { border-radius: 50%; object-fit: cover; flex: none; background: var(--panel2); display: inline-grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; user-select: none; }
html[data-theme=siber] .av { border-radius: 0; clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%); }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 800 11px var(--font); letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; vertical-align: 2px; white-space: nowrap; }
.badge.admin { background: var(--warn); color: #201a00; box-shadow: 0 0 14px #facc1555; }
.badge.soft { background: var(--panel2); color: var(--dim); font-weight: 600; letter-spacing: 0; }
.badge.ok { background: #22c55e22; color: var(--ok); }
.badge.bad { background: #ef444422; color: var(--danger); }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > .pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; padding: 6px; display: grid; gap: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow);
}
html[data-theme=aurora] details.menu > .pop { background: #1a1638; }
.pop .btn { justify-content: flex-start; border: 0; background: none; width: 100%; clip-path: none !important; }
.pop .btn:hover { background: var(--panel2); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }

/* ---------- gruplar / kartlar ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 15px; cursor: pointer; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.chip.add { border-style: dashed; color: var(--dim); }
html[data-theme=aurora] .chip.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent; }
html[data-theme=siber] .chip { border-radius: 0; }
html[data-theme=siber] .chip.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar select { width: auto; }
.grid { display: grid; gap: 26px 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.vcard { display: grid; gap: 10px; cursor: pointer; min-width: 0; align-content: start; }
.vcard .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.vcard:hover .thumb, .vcard:focus-visible .thumb { box-shadow: 0 0 0 2px var(--accent); }
.vcard .thumb :is(img, video, .nothumb) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.vcard .thumb video { z-index: 1; }
.vcard .thumb :is(.dur, .conv) { z-index: 2; }
.nothumb { display: grid !important; place-items: center; color: var(--dim); background: var(--panel2); }
.vcard .dur { position: absolute; right: 8px; bottom: 8px; background: #000c; color: #fff; font: 600 12px var(--font); padding: 1px 6px; border-radius: 5px; }
.vcard .meta { display: flex; gap: 12px; min-width: 0; }
.vcard h3 { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; }
.vcard .sub { font-size: 13px; color: var(--dim); }
.vcard .sub a { color: var(--dim); }
.vcard .sub a:hover { color: var(--text); }
html[data-theme=sinema] .vcard:hover .thumb { transform: scale(1.02); }
html[data-theme=aurora] .vcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 14px; backdrop-filter: var(--blur); }
html[data-theme=aurora] .vcard .thumb { border-radius: var(--r-sm); }
html[data-theme=siber] .vcard { border: 1px solid var(--line); padding: 8px 8px 12px; background: var(--panel); }
html[data-theme=siber] .vcard:hover { border-color: var(--accent); box-shadow: 0 0 22px #00ff9c2e; }
html[data-theme=siber] .vcard:hover .thumb { box-shadow: none; }

/* ---------- pencereler ---------- */
dialog {
  padding: 0; border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); background: var(--panel); color: var(--text);
  width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: var(--shadow);
}
html[data-theme=aurora] dialog { background: #171333; }
dialog.narrow { width: min(540px, calc(100vw - 24px)); }
dialog#ask { width: min(430px, calc(100vw - 24px)); }
dialog::backdrop { background: #000c; backdrop-filter: blur(3px); }
.box { display: grid; gap: 16px; padding: 24px; position: relative; }
.box > .close { position: absolute; top: 14px; right: 14px; z-index: 2; background: color-mix(in srgb, var(--panel) 80%, transparent); }
.box h2 { padding-right: 46px; overflow-wrap: anywhere; font-size: 21px; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; pointer-events: none; width: max-content; max-width: calc(100vw - 30px); }
.toast { background: color-mix(in srgb, var(--bg) 80%, var(--text)); color: var(--text); padding: 10px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); font-weight: 600; box-shadow: var(--shadow); animation: pop .2s; }
.toast.bad { background: var(--danger); border-color: var(--danger); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
progress { width: 100%; height: 6px; accent-color: var(--accent); }

/* ---------- oynatıcı (kontroller videonun ALTINDA, her zaman görünür) ---------- */
.player { display: grid; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); outline: none; }
.player .stage { position: relative; background: #000; display: grid; place-items: center; cursor: pointer; }
.player video { width: 100%; max-height: 60vh; display: block; background: #000; }
.player audio { display: none; }
.player .stage.audio { height: 120px; color: var(--dim); }
.player .bigplay { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: #000a; display: grid; place-items: center; color: #fff; pointer-events: none; opacity: 0; transition: opacity .15s; }
.player.paused .bigplay { opacity: 1; }
.player.pending { position: relative; aspect-ratio: 16 / 9; }
.player.pending :is(img, .nothumb) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.5); }
.player .fail { position: absolute; inset: 0; background: #000d; color: #fff; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; font-size: 14px; }
.vcard .conv { position: absolute; left: 8px; top: 8px; background: #000c; color: var(--warn); font: 600 12px var(--font); padding: 2px 8px; border-radius: 5px; }
.vcard .conv.bad { color: var(--danger); }
.controls { background: var(--panel); padding: 12px 14px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.controls .seek { width: 100%; }
.controls .bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.controls .time { font: 13px var(--mono); color: var(--dim); margin: 0 8px; white-space: nowrap; }
.controls .vol { width: 96px; }
.controls select { width: auto; padding: 5px 8px; background: var(--panel2); }
.player:fullscreen { grid-template-rows: minmax(0, 1fr) auto; border: 0; border-radius: 0; }
.player:fullscreen .stage { height: 100%; min-height: 0; }
.player:fullscreen video { max-height: 100%; height: 100%; }
.vinfo { display: grid; gap: 12px; }
.chan { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chan .name { font-weight: 600; color: var(--text); }

/* ---------- izleme sayfası ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; max-width: 1700px; margin: 0 auto; }
.watch-main { display: grid; gap: 16px; min-width: 0; }
.watch-main h1 { font-size: 21px; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; }
.watch .player video { max-height: 72vh; }
.watch-main .chan { min-width: 260px; }
.watch-side { display: grid; gap: 10px; min-width: 0; }
.side-card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px; color: var(--text); border-radius: var(--r-sm); padding: 4px; }
.side-card:hover { background: var(--panel); text-decoration: none; }
.side-card .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-sm); overflow: hidden; }
.side-card .thumb :is(img, .nothumb) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-card .dur { position: absolute; right: 5px; bottom: 5px; background: #000c; color: #fff; font: 600 11px var(--font); padding: 0 5px; border-radius: 4px; }
.side-card b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin-bottom: 3px; }
.comments { display: grid; gap: 18px; }
.comment { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.comment .bio { margin-top: 2px; max-width: none; }
.comment.new textarea { min-height: 58px; }
@media (max-width: 1100px) { .watch { grid-template-columns: minmax(0, 1fr); } }

/* profil resmi / banner üstüne gelince "değiştir" */
.av-edit { position: relative; border-radius: 50%; flex: none; line-height: 0; }
.banner.editable { position: relative; }
.pick { position: absolute; border: 0; cursor: pointer; color: #fff; background: #000a; opacity: 0; transition: opacity .15s; display: grid; place-items: center; font: 600 13px var(--font); }
.av-edit .pick { inset: 5px; border-radius: 50%; }
.banner .pick { right: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px; grid-auto-flow: column; gap: 8px; }
.av-edit:hover .pick, .banner.editable:hover .pick, .pick:focus-visible { opacity: 1; }
@media (hover: none) { .pick { opacity: .85; } }

/* ---------- beğeni / favori / bildirimler ---------- */
.btn.liked { color: #ff3b5c; border-color: #ff3b5c80; }
.btn.liked .ic, .heart-burst .ic { fill: currentColor; }
.btn.faved { color: var(--warn); border-color: #facc1580; }
.btn.faved .ic { fill: currentColor; }
.reel .side .btn.liked { color: #ff3b5c; }
.heart-burst { position: absolute; inset: 0; margin: auto; width: 120px; height: 120px; color: #ff3b5c; pointer-events: none; display: grid; place-items: center; animation: burst .75s ease-out forwards; filter: drop-shadow(0 4px 14px #0008); }
@keyframes burst { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.2); opacity: 1; } 60% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.05); opacity: 0; } }
.bell { position: relative; }
.bell .count { position: absolute; top: -5px; right: -5px; background: var(--accent); color: var(--ink); border-radius: 999px; font: 700 10px var(--font); padding: 2px 5px; min-width: 17px; text-align: center; }
details.menu.wide > .pop { width: min(370px, calc(100vw - 24px)); }
.notes { display: grid; max-height: 62vh; overflow-y: auto; }
.note { display: flex; gap: 10px; align-items: center; text-align: left; padding: 9px 10px; border: 0; background: none; color: var(--text); cursor: pointer; border-radius: var(--r-sm); font-size: 14px; overflow-wrap: anywhere; }
.note:hover { background: var(--panel2); }
.note.new { box-shadow: inset 3px 0 var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.note .ic { color: var(--dim); }
.toast.clickable { pointer-events: auto; cursor: pointer; }
.notify-ask { position: fixed; right: 18px; top: 76px; z-index: 60; width: min(390px, calc(100vw - 36px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; animation: pop .25s; }
html[data-theme=aurora] .notify-ask { background: #171333; }
.bellbig { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ---------- yükleme ---------- */
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; display: grid; gap: 8px; justify-items: center; cursor: pointer; transition: .15s; color: var(--dim); font-size: 14px; }
.drop:hover, .drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--text); }
.drop input { display: none; }
.up-preview .player video { max-height: 300px; }
.uplist { display: grid; gap: 10px; }
.uprow { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel2); }
.uprow.sel { border-color: var(--accent); }
.uprow video { width: 132px; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border-radius: 6px; display: block; cursor: pointer; }
.uprow .state { font-size: 13px; }
.uprow .state.ok { color: var(--ok); }
.uprow .state.bad { color: var(--danger); }

.uprow.link { grid-template-columns: 64px minmax(0, 1fr) auto; }
.linkthumb { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent2); }
.chip.static { cursor: default; }
.chip.static:hover { border-color: var(--line); }
.tool { max-width: 760px; margin: 5vh auto 0; display: grid; gap: 22px; }
.tool h1 { font-size: 30px; }
.msg.has-video { padding: 6px; }
.msg-video { display: grid; gap: 6px; cursor: pointer; width: min(260px, 60vw); }
.msg-video :is(img, .nothumb) { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #000; display: block; pointer-events: none; }
.msg-video b { padding: 0 6px; overflow-wrap: anywhere; font-size: 14px; }

/* ---------- reels ---------- */
.reels { height: calc(100vh - var(--top) - var(--sys, 0px)); margin: -22px; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; background: #000; }
.reels::-webkit-scrollbar { display: none; }
.reel { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: grid; place-items: center; overflow: hidden; }
.reel .frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; background: #000; display: grid; place-items: center; overflow: hidden; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.reel .shade { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, #0009); pointer-events: none; }
.reel .info { position: absolute; left: 16px; right: 76px; bottom: 26px; display: grid; gap: 8px; color: #fff; text-shadow: 0 1px 6px #000; }
.reel .info h3 { font-size: 16px; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; }
.reel .info a { color: #fff; font-weight: 700; }
.reel .side { position: absolute; right: 10px; bottom: 26px; display: grid; gap: 14px; justify-items: center; color: #fff; font-size: 12px; text-shadow: 0 1px 4px #000; }
.reel .side .btn { background: #0008; border-color: #fff3; color: #fff; width: 46px; height: 46px; backdrop-filter: blur(6px); }
.reel .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #fff3; }
.reel .prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.reel .paused { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: #0009; display: grid; place-items: center; color: #fff; pointer-events: none; opacity: 0; transition: opacity .15s; }
.reel.is-paused .paused { opacity: 1; }
.reel-nav { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 5; }

/* ---------- depo ---------- */
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 18px; font-weight: 600; }
.crumbs button { background: none; border: 0; padding: 4px 8px; border-radius: var(--r-sm); cursor: pointer; color: var(--dim); font-weight: inherit; display: inline-flex; align-items: center; gap: 8px; }
.crumbs button:hover { background: var(--panel2); color: var(--text); }
.crumbs button:last-of-type { color: var(--text); }
.quota { display: grid; gap: 6px; min-width: 230px; font-size: 13px; color: var(--dim); }
.meter { height: 8px; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: inherit; }
.meter.warn i { background: var(--warn); }
.meter.bad i { background: var(--danger); }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; display: grid; align-content: start; transition: border-color .15s, transform .15s; }
.tile:hover, .tile:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.tile .pre { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--panel2); color: var(--dim); overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.tile .pre img { width: 100%; height: 100%; object-fit: cover; }
.tile.dir { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 14px 40px 14px 14px; gap: 12px; }
.tile.dir .ic { color: var(--accent2); }
.tile .cap { padding: 10px 12px 12px; display: grid; gap: 2px; min-width: 0; }
.tile.dir .cap { padding: 0; }
.tile .cap b { font-weight: 600; font-size: 14px; }
.tile details.menu { position: absolute; top: 6px; right: 6px; }
/* Menü kutunun içinde kalsın: eskiden 200px genişlikle sola taşıp yan menünün üstüne biniyordu */
.tile details.menu > .pop { min-width: 0; width: 164px; }
/* Klasör kutuları daha geniş: adlar gereksiz yere kısalmasın */
.tiles.dirs { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tile.dir details.menu { top: 50%; transform: translateY(-50%); }
.tile details.menu > summary { background: #0009; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; }
.tile.dir details.menu > summary { background: none; color: var(--dim); }
/* Açık menü, sonra gelen kutuların altında kalmasın (kutudaki transform kendi katmanını açıyor) */
.tile:has(details[open]) { z-index: 21; }
.section-title { font-size: 13px; color: var(--dim); font-weight: 600; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .06em; }
#view.dragging { outline: 3px dashed var(--accent); outline-offset: -10px; }
.queue { position: fixed; right: 18px; bottom: 18px; width: min(360px, calc(100vw - 36px)); max-height: 46vh; overflow: auto; z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; }
html[data-theme=aurora] .queue { background: #171333; }
.preview-text { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; max-height: 60vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 var(--mono); margin: 0; }
.preview-img { max-width: 100%; max-height: 68vh; display: block; margin: 0 auto; border-radius: var(--r-sm); }

/* ---------- kanal / profil ---------- */
.banner { height: clamp(120px, 22vw, 240px); border-radius: var(--radius); overflow: hidden; background: linear-gradient(120deg, var(--accent), var(--accent2)); }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chan-head { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; margin: -46px 0 26px; padding: 0 22px; position: relative; }
.chan-head .av { border: 5px solid var(--bg); box-shadow: var(--shadow); }
.chan-head h1 { font-size: 30px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; text-transform: none; letter-spacing: 0; }
.chan-head .info { display: grid; gap: 6px; padding-bottom: 6px; min-width: 0; flex: 1; margin-top: 58px; }
.chan-head > .row { margin-top: 58px; padding-bottom: 10px; }
.bio { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 760px; }
.cropper { position: relative; margin: 0 auto; overflow: hidden; background: #000; touch-action: none; cursor: grab; border-radius: var(--r-sm); user-select: none; }
.cropper:active { cursor: grabbing; }
.cropper img { position: absolute; top: 0; left: 0; transform-origin: 0 0; max-width: none; pointer-events: none; }
.cropper.round::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px #000a; pointer-events: none; }

/* ---------- mesajlar ---------- */
.dm { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - var(--top) - var(--sys, 0px) - 44px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.dm-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.dm-list .head { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.dm-peer { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; border: 0; background: none; text-align: left; width: 100%; color: var(--text); }
.dm-peer:hover { background: var(--panel2); }
.dm-peer.active { background: var(--panel2); box-shadow: inset 3px 0 var(--accent); }
.dm-peer .unread { margin-left: auto; background: var(--accent); color: var(--ink); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.dm-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
.dm-chat .head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.dm-chat .head > .back { display: none; }
.dm-msgs { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
/* Instagram düzeni: saat mesajın altında değil ortadaki ayraçta; art arda gelen mesajlar tek öbek gibi durur. */
.msg-row { display: flex; align-items: center; gap: 4px; }
.msg-row.me { flex-direction: row-reverse; }
.msg-row.cont { margin-top: -7px; }
.msg { max-width: min(72%, 560px); min-width: 0; padding: 8px 14px; border-radius: 20px; background: var(--panel2); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { background: var(--accent); color: var(--ink); }
.msg-row.cont:not(.me) .msg { border-top-left-radius: 6px; }
.msg-row.cont.me .msg { border-top-right-radius: 6px; }
.msg-row:not(.me):has(+ .msg-row.cont:not(.me)) .msg { border-bottom-left-radius: 6px; }
.msg-row.me:has(+ .msg-row.cont.me) .msg { border-bottom-right-radius: 6px; }
.msg.bad { background: none; border: 1px dashed var(--line); color: var(--dim); font-style: italic; }
.msg.flash { animation: msgflash 1.3s; }
@keyframes msgflash { 25%, 60% { box-shadow: 0 0 0 3px var(--accent2); } }
html[data-theme=siber] :is(.msg, .msg-img, .msg-quote, .msg-text, .dm-send textarea) { border-radius: 0 !important; }
html[data-theme=siber] .msg:has(> .msg-img) { border: 0; }
html[data-theme=siber] .msg { border: 1px solid var(--line); }
.msg-acts { display: flex; flex: none; opacity: 0; transition: opacity .12s; }
.msg-row:hover .msg-acts, .msg-row.show .msg-acts, .msg-acts:focus-within { opacity: 1; }
.msg-acts .btn { width: 30px; height: 30px; padding: 0; border-radius: 50%; color: var(--dim); }
.msg-acts .btn:hover { color: var(--text); }
.msg-quote { display: grid; gap: 1px; width: 100%; min-width: 0; text-align: left; border: 0; border-left: 3px solid currentColor; border-radius: 8px; background: #0000002e; color: inherit; padding: 5px 10px; margin-bottom: 6px; font: inherit; font-size: 13px; cursor: pointer; }
.msg-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.msg.has-file { padding: 5px; }
.msg.has-file > .msg-text { display: block; padding: 5px 9px 3px; }
.msg:has(> .msg-img) { background: none; padding: 0; display: grid; gap: 4px; justify-items: start; }
.msg.me:has(> .msg-img) { justify-items: end; }
.msg:has(> .msg-img) > .msg-text { padding: 8px 14px; border-radius: 20px; background: var(--panel2); }
.msg.me:has(> .msg-img) > .msg-text { background: var(--accent); }
.msg:has(> .msg-img) > .msg-quote { background: var(--panel2); width: auto; max-width: 100%; margin: 0; }
.msg-img { display: grid; place-items: center; gap: 6px; border: 0; padding: 0; background: #0000003d; color: inherit; border-radius: 16px; overflow: hidden; cursor: zoom-in; max-width: 100%; min-width: 120px; min-height: 90px; }
.msg-img img { display: block; width: 100%; height: 100%; max-width: 320px; max-height: 360px; object-fit: cover; }
.msg-file { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 6px; min-width: min(250px, 56vw); white-space: normal; }
.msg-file b, .dm-attach b, .dm-reply b { display: block; }
.msg-file .small { opacity: .8; }
.msg-file .btn { color: inherit; border-radius: 50%; }
.fic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #0000002e; }
img.full-img { display: block; max-width: 100%; max-height: 76vh; margin: 0 auto 14px; border-radius: var(--r-sm); }
.dm-day { align-self: center; font-size: 12px; color: var(--dim); margin: 10px 0 2px; }
.dm-seen { align-self: flex-end; font-size: 12px; color: var(--dim); margin-top: -6px; padding-right: 4px; }
.dm-compose { border-top: 1px solid var(--line); display: grid; min-width: 0; }
.dm-reply, .dm-attach { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--bg2); min-width: 0; }
.dm-reply > .ic { color: var(--accent2); }
.dm-attach img { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 10px; }
.dm-send { display: flex; gap: 8px; padding: 10px 12px; align-items: flex-end; }
.dm-send textarea { min-height: 42px; max-height: 140px; resize: none; border-radius: 21px; padding: 9px 16px; }
.dm-chat.drag { outline: 2px dashed var(--accent2); outline-offset: -8px; }
/* tepkiler */
.msg-row, .msg { position: relative; }
.msg-row.reacted { margin-bottom: 14px; }
.msg-reacts { position: absolute; bottom: -16px; right: 10px; z-index: 1; border: 2px solid var(--bg); background: var(--panel2); color: var(--text); border-radius: 999px; padding: 0 7px; font: 13px/20px var(--font); cursor: pointer; white-space: nowrap; }
.msg.me .msg-reacts { right: auto; left: 10px; }
.msg-pick { position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 3; display: flex; gap: 2px; padding: 4px 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px #0007; }
.msg-row.me .msg-pick { left: auto; right: 0; }
.msg-pick button { border: 0; background: none; font-size: 22px; line-height: 1; padding: 5px; cursor: pointer; border-radius: 50%; transition: transform .1s; }
.msg-pick button:hover { transform: scale(1.25); background: var(--panel2); }
/* sesli mesaj */
.msg-voice { display: flex; align-items: center; gap: 8px; min-width: min(220px, 56vw); padding-right: 8px; }
.msg-voice .btn { color: inherit; border-radius: 50%; }
.msg-voice .track { flex: 1; height: 4px; border-radius: 2px; background: color-mix(in srgb, currentColor 28%, transparent); overflow: hidden; }
.msg-voice .track i { display: block; height: 100%; width: 0; background: currentColor; }
.dm-rec { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.rec-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #e5484d; animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: .25; } }
/* yazıyor... */
.dm-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 15px; border-radius: 20px; background: var(--panel2); }
.dm-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: dmtype 1.2s infinite; }
.dm-typing i:nth-child(2) { animation-delay: .15s; }
.dm-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dmtype { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.lockbox { margin: auto; max-width: 440px; display: grid; gap: 14px; padding: 30px; text-align: center; justify-items: center; }

/* ---------- yönetim ---------- */
.admin-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-tabs { display: grid; gap: 4px; position: sticky; top: calc(var(--top) + var(--sys, 0px) + 18px); }
.admin-tabs a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: var(--r-sm); color: var(--dim); }
.admin-tabs a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.admin-tabs a.active { background: var(--panel2); color: var(--text); box-shadow: inset 3px 0 var(--accent); }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; }
.stat small { color: var(--dim); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.stat b { font-size: 26px; font-family: var(--head); line-height: 1.2; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.panel h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; min-width: 0; }
.chart .col i { width: 100%; min-height: 2px; background: linear-gradient(var(--accent), var(--accent2)); border-radius: 3px 3px 0 0; opacity: .85; }
.chart .col:hover i { opacity: 1; }
.chart .col small { font-size: 10px; color: var(--dim); white-space: nowrap; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--dim); font-weight: 600; font-size: 12px; white-space: nowrap; }
tbody tr:hover { background: color-mix(in srgb, var(--panel2) 60%, transparent); }
tr.click { cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; user-select: all; font-family: var(--mono); font-size: 13px; }
.perm-group { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.perm-group > header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--panel2); font-weight: 600; }
.perm { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 11px 14px; border-top: 1px solid var(--line); }
.perm b { font-weight: 600; font-size: 14px; display: block; }
.perm .dim { font-size: 13px; }
.themes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.theme-card { border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--panel); display: grid; text-align: left; padding: 0; color: var(--text); }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.theme-card .demo { height: 130px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.theme-card .demo i { display: block; height: 10px; border-radius: 5px; }
.theme-card .cap { padding: 12px 14px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---------- küçük ekran: yan menü alt çubuğa iner ---------- */
@media (max-width: 860px) {
  #app { grid-template-columns: minmax(0, 1fr); }
  #side { position: fixed; inset: auto 0 0 0; top: auto !important; height: auto !important; margin: 0 !important; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important; border: 0; border-top: 1px solid var(--line); border-radius: 0 !important; background: var(--bg); z-index: 25; }
  #side .logo { display: none; }
  #nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  #nav a { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 2px !important; justify-content: center; }
  html[data-theme=siber] #nav a span:not(.count) { display: inline; }
  #nav .count { position: absolute; top: 2px; right: 22%; margin: 0; }
  #view { padding: 16px 14px 90px; }
  #top { padding: 0 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .reels { margin: -16px -14px -90px; height: calc(100vh - var(--top) - var(--sys, 0px) - 58px); }
  .reel-nav { display: none; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-tabs { position: static; grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  .dm { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--top) - var(--sys, 0px) - 120px); }
  .dm.open .dm-list, .dm:not(.open) .dm-chat { display: none; }
  .dm-chat .head > .back { display: inline-flex; }
  .uprow { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .uprow video { width: 96px; }
  .controls .vol { width: 64px; }
  .controls .time { margin: 0 4px; font-size: 12px; }
  .controls { padding: 10px; }
  .page-head .quota { flex: 1 1 100%; order: 9; min-width: 0; }
  .page-head .crumbs { flex: 1 1 100%; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .tiles.dirs { grid-template-columns: minmax(0, 1fr); }
  .chan-head { padding: 0 8px; }
  .queue { bottom: 76px; }
  .notify-ask { top: 66px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
