/* ═══════════════════════════════════════════════════════════════════════════
   Viewix v2
   Farben aus dem Logo (#38b6ff) · Space Grotesk für Titel · DM Sans für Text
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --bg: #0e1014;
    --bg2: #15181d;
    --bg3: #1e2229;
    --bg4: #282d36;
    --glass: rgba(14, 16, 20, .82);
    --line: rgba(255, 255, 255, .08);
    --line2: rgba(255, 255, 255, .15);
    --tx: #eef1f5;
    --tx2: #a3abb8;
    --tx3: #6f7785;
    --ac: #38b6ff;
    --ac2: #74cbff;
    --ac-ink: #03192a;
    --ac-soft: rgba(56, 182, 255, .14);
    --red: #ff5c5c;
    --red-soft: rgba(255, 92, 92, .13);
    --ok: #3ddc97;
    --ok-soft: rgba(61, 220, 151, .12);
    --warn: #ffc857;
    --warn-soft: rgba(255, 200, 87, .12);

    --top: 56px;
    --guide: 240px;
    --mini: 72px;
    --side: 0px;
    --bnav: 0px;
    --pad: 24px;

    --r-xs: 6px;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --shadow: 0 14px 44px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --f-head: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
    --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, monospace;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--bg4) transparent; }
body {
    background: var(--bg); color: var(--tx); font: 400 14px/1.45 var(--f-body);
    min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--ac); color: var(--ac-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
.muted { color: var(--tx2); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }

/* Seitenübergänge (Chrome/Edge) – kurz und ruhig */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
::view-transition-group(vx-hero) { animation-duration: .26s; animation-timing-function: var(--ease); }
.top { view-transition-name: vx-top; }
.guide { view-transition-name: vx-guide; }

/* ── Grundbausteine ─────────────────────────────────────────────────────── */
.ib {
    width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
    color: var(--tx); font-size: 20px; position: relative; flex-shrink: 0; transition: background .15s;
}
.ib:hover { background: var(--bg3); }
.ib:active { background: var(--bg4); }
.ib.sm { width: 32px; height: 32px; font-size: 16px; }
.ib.lg { width: 48px; height: 48px; font-size: 22px; background: var(--bg3); }
.ib.lg:hover { background: var(--bg4); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
    white-space: nowrap; transition: background .15s, color .15s, opacity .15s; user-select: none;
}
.btn i { font-size: 16px; }
.btn-soft { background: var(--bg3); }
.btn-soft:hover { background: var(--bg4); }
.btn-primary { background: var(--ac); color: var(--ac-ink); }
.btn-primary:hover { background: var(--ac2); }
.btn-ghost { color: var(--tx2); }
.btn-ghost:hover { background: var(--bg3); color: var(--tx); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; padding: 0; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.busy { pointer-events: none; opacity: .7; }

.av {
    --c: #445; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--c); color: #fff; font: 600 15px var(--f-head); flex-shrink: 0; user-select: none;
}
.av-btn { width: 32px; height: 32px; font-size: 14px; margin-left: 4px; }
.av-btn:hover { box-shadow: 0 0 0 3px var(--bg3); }
.av-md { width: 40px; height: 40px; font-size: 17px; }
.av-xl { width: 80px; height: 80px; font-size: 34px; }

.spin {
    width: 22px; height: 22px; border-radius: 50%; display: inline-block;
    border: 2.5px solid rgba(255, 255, 255, .15); border-top-color: var(--ac); animation: spin .8s linear infinite;
}
.spin-lg { width: 46px; height: 46px; border-width: 3.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

.dot { --c: var(--ac); width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; flex-shrink: 0; }
.dot-lg { width: 14px; height: 14px; }

.tag {
    display: inline-flex; align-items: center; gap: 4px; font: 700 11px/1 var(--f-head);
    padding: 4px 6px; border-radius: var(--r-xs); letter-spacing: .02em;
}
.tag-nsfw { background: var(--red); color: #fff; }
.tag-hidden { background: rgba(0, 0, 0, .7); color: #fff; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 14px; margin-bottom: 16px; }
.alert i { font-size: 17px; margin-top: 1px; }
.alert-err { background: var(--red-soft); color: #ffb3b3; }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }

.card { background: var(--bg2); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 0 0 1px var(--line); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 13px; color: var(--tx2); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.field input:not([type=checkbox]):not([type=color]):not([type=radio]), .field select, .field textarea, .input {
    width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r-sm);
    padding: 10px 12px; font-size: 14px; color: var(--tx); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.field select, select.input {
    appearance: none; padding-right: 34px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a3abb8' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 4.6a.75.75 0 0 1 1.06 0L8 9.94l5.34-5.34a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 5.66a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
select option { background: var(--bg2); }
.field-inline { flex-direction: row; align-items: center; gap: 10px; margin: 0; }
.field-inline > span { white-space: nowrap; }
.field-inline select { width: auto; min-width: 160px; padding-top: 7px; padding-bottom: 7px; }
.hint { font-size: 13px; margin: -8px 0 14px; display: flex; gap: 6px; align-items: center; }
.hint-ok { color: var(--ok); }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; color: var(--tx2); }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle i { width: 36px; height: 20px; border-radius: 20px; background: var(--bg4); position: relative; flex-shrink: 0; transition: background .2s; }
.toggle i::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--tx2); transition: transform .2s var(--ease), background .2s;
}
.toggle input:checked + i { background: var(--ac); }
.toggle input:checked + i::after { transform: translateX(16px); background: var(--ac-ink); }
.toggle input:focus-visible + i { outline: 2px solid var(--ac); outline-offset: 2px; }
.toggle:hover { color: var(--tx); }

/* ── Menüs / Dropdowns ──────────────────────────────────────────────────── */
.dd { position: relative; }
.menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 400; min-width: 220px; padding: 8px 0;
    background: var(--bg2); border-radius: var(--r); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top;
    transition: opacity .14s, transform .14s var(--ease), visibility 0s .14s;
}
.menu-r { left: auto; right: 0; transform-origin: top right; }
.dd.open > .menu, .menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .14s, transform .14s var(--ease); }
.mi {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 16px; font-size: 14px;
    text-align: left; white-space: nowrap; color: var(--tx); transition: background .1s;
}
.mi i { font-size: 18px; color: var(--tx2); width: 20px; text-align: center; }
.mi:hover, .mi.kb { background: var(--bg3); }
.mi.on { color: var(--ac); }
.mi .mi-r { margin-left: auto; color: var(--ac); }
.mi.danger, .mi.danger i { color: var(--red); }
.menu-sep { height: 1px; background: var(--line); margin: 8px 0; }
.menu-h { padding: 6px 16px 10px; font: 600 15px var(--f-head); }
.menu-user { display: flex; gap: 12px; align-items: center; padding: 8px 16px 6px; }
.menu-user b { display: block; font-size: 15px; }
.menu-user small { color: var(--tx2); font-size: 13px; }
.mi-foot { justify-content: space-between; color: var(--ac); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px; }
.mi-foot i { color: var(--ac); font-size: 14px; width: auto; }
.empty-s { padding: 18px 16px; color: var(--tx3); font-size: 13px; text-align: center; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.top {
    position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 300; display: flex; align-items: center;
    justify-content: space-between; gap: 16px; padding: 0 16px 0 12px;
    background: var(--glass); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.top-l, .top-r { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.top-r { gap: 8px; }
.logo { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: var(--r-sm); }
.logo img { width: 26px; height: 26px; }
.logo span { font: 700 19px/1 var(--f-head); letter-spacing: -.03em; }

.search { flex: 0 1 640px; display: flex; align-items: center; position: relative; min-width: 0; }
.search-box {
    flex: 1; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 4px 0 16px; min-width: 0;
    background: var(--bg); border: 1px solid var(--line2); border-right: 0; border-radius: 999px 0 0 999px;
}
.search-box i { color: var(--tx3); font-size: 15px; display: none; }
.search-box:focus-within { border-color: var(--ac); box-shadow: inset 0 0 0 1px var(--ac); padding-left: 14px; }
.search-box:focus-within i { display: block; }
.search-box input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; font-size: 15px; }
.search-box input::placeholder { color: var(--tx3); }
.search-box input::-webkit-search-cancel-button { filter: invert(.7); cursor: pointer; }
.search-btn {
    width: 64px; height: 40px; display: grid; place-items: center; font-size: 17px; flex-shrink: 0;
    background: var(--bg3); border: 1px solid var(--line2); border-radius: 0 999px 999px 0; transition: background .15s;
}
.search-btn:hover { background: var(--bg4); }
.search-back, .search-open { display: none; }
.suggest { top: 46px; left: 0; right: 64px; padding: 8px 0; opacity: 1; visibility: visible; transform: none; }
.sg-item { display: flex; gap: 12px; align-items: center; padding: 6px 16px; cursor: pointer; }
.sg-item:hover, .sg-item.kb { background: var(--bg3); }
.sg-item img, .sg-item .sg-ph { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-xs); background: var(--bg3); flex-shrink: 0; }
.sg-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.sg-item b { color: var(--ac); font-weight: 600; }

.create-btn { height: 36px; padding: 0 14px 0 10px; }
.create-btn i { font-size: 20px; }
.badge {
    position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px;
    background: var(--ac); color: var(--ac-ink); font: 700 11px/18px var(--f-head); text-align: center;
    box-shadow: 0 0 0 2px var(--bg);
}
.jobs-menu { width: 360px; }
.jobs-mini { max-height: 360px; overflow-y: auto; }
.jm { display: flex; gap: 12px; align-items: center; padding: 8px 16px; }
.jm:hover { background: var(--bg3); }
.jm-ic { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--bg3); display: grid; place-items: center; color: var(--tx2); flex-shrink: 0; overflow: hidden; }
.jm-ic img { width: 100%; height: 100%; object-fit: cover; }
.jm-b { flex: 1; min-width: 0; }
.jm-t { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-s { font-size: 12px; color: var(--tx2); display: flex; gap: 6px; }
.jm .bar { margin-top: 5px; }

/* Fortschrittsbalken (Jobs) */
.bar { height: 4px; background: var(--bg4); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ac); border-radius: 4px; transition: width .4s var(--ease); }
.bar.ok i { background: var(--ok); }
.bar.err i { background: var(--red); }
.bar.indet i { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

/* ── Guide (Seitenleiste) ───────────────────────────────────────────────── */
.guide {
    position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--guide); z-index: 250;
    overflow-y: auto; overflow-x: hidden; padding: 4px 12px 16px; background: var(--bg);
    scrollbar-width: thin; scrollbar-color: transparent transparent; transition: transform .22s var(--ease);
}
.guide:hover { scrollbar-color: var(--bg4) transparent; }
.g-sec { padding: 8px 0; border-bottom: 1px solid var(--line); }
.g-sec:last-of-type { border-bottom: 0; }
.g-h { padding: 6px 12px 4px; font: 600 15px var(--f-head); }
.g-item {
    display: flex; align-items: center; gap: 20px; height: 40px; padding: 0 12px; border-radius: var(--r-sm);
    font-size: 14px; white-space: nowrap; transition: background .12s;
}
.g-item i { font-size: 20px; width: 24px; text-align: center; flex-shrink: 0; }
.g-item span { overflow: hidden; text-overflow: ellipsis; }
.g-item small { margin-left: auto; color: var(--tx3); font-size: 12px; }
.g-item:hover { background: var(--bg3); }
.g-item.on { background: var(--bg3); font-weight: 600; }
.g-item.on i { color: var(--ac); }
.g-dot { --c: var(--ac); width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin: 0 7px; flex-shrink: 0; }
.g-foot { padding: 16px 12px 0; color: var(--tx3); font-size: 12px; }
.guide-scrim { position: fixed; inset: 0; z-index: 240; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }

.main { padding: calc(var(--top) + 0px) var(--pad) calc(var(--bnav) + 48px) calc(var(--side) + var(--pad)); min-height: 100vh; }

/* Breit: volle Leiste, optional Mini */
@media (min-width: 1312px) {
    :root { --side: var(--guide); }
    html.guide-mini { --side: var(--mini); }
    html.guide-mini .guide { width: var(--mini); padding: 4px 4px; }
    html.guide-mini .guide .g-sec:not(.g-main), html.guide-mini .g-foot { display: none; }
    html.guide-mini .g-main { border: 0; }
    html.guide-mini .g-item { flex-direction: column; justify-content: center; height: 74px; gap: 6px; padding: 0; font-size: 10px; }
    html.guide-mini .g-item.on { background: none; }
    html.guide-mini .g-item:hover { background: var(--bg3); }
}
/* Mittel: Mini-Leiste, Menü als Overlay */
@media (min-width: 792px) and (max-width: 1311.98px) {
    :root { --side: var(--mini); }
    .guide { width: var(--mini); padding: 4px; }
    .guide .g-sec:not(.g-main), .g-foot { display: none; }
    .g-main { border: 0; }
    .g-item { flex-direction: column; justify-content: center; height: 74px; gap: 6px; padding: 0; font-size: 10px; }
    .g-item.on { background: none; }
    html.guide-open .guide { width: var(--guide); padding: 4px 12px 16px; box-shadow: var(--shadow); }
    html.guide-open .guide .g-sec, html.guide-open .g-foot { display: block; }
    html.guide-open .g-main { border-bottom: 1px solid var(--line); }
    html.guide-open .g-item { flex-direction: row; justify-content: flex-start; height: 40px; gap: 20px; padding: 0 12px; font-size: 14px; }
    html.guide-open .g-item.on { background: var(--bg3); }
}
/* Watch-Seite: Leiste nur als Overlay (wie YouTube) */
html[data-page=watch] { --side: 0px; }
html[data-page=watch] .guide { width: var(--guide); padding: 4px 12px 16px; transform: translateX(-100%); }
html[data-page=watch] .guide .g-sec, html[data-page=watch] .g-foot { display: block; }
html[data-page=watch] .g-item { flex-direction: row; justify-content: flex-start; height: 40px; gap: 20px; padding: 0 12px; font-size: 14px; }
html[data-page=watch] .g-item.on { background: var(--bg3); }
html[data-page=watch].guide-open .guide { transform: none; box-shadow: var(--shadow); }
html.guide-open .guide-scrim { opacity: 1; visibility: visible; transition: opacity .2s; }
@media (min-width: 1312px) { html:not([data-page=watch]).guide-open .guide-scrim { opacity: 0; visibility: hidden; } }

/* Mobil */
.bnav { display: none; }
@media (max-width: 791.98px) {
    :root { --side: 0px; --pad: 16px; --bnav: 52px; }
    .guide { width: var(--guide); transform: translateX(-100%); }
    html.guide-open .guide { transform: none; box-shadow: var(--shadow); }
    .create-btn span { display: none; }
    .create-btn { width: 40px; padding: 0; border-radius: 50%; background: none; }
    .create-btn:hover { background: var(--bg3); }
    .bnav {
        position: fixed; inset: auto 0 0 0; z-index: 290; height: calc(var(--bnav) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom); display: flex; align-items: stretch;
        background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line);
    }
    .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--tx2); }
    .bnav a i { font-size: 20px; }
    .bnav a.on { color: var(--tx); }
    .bnav a.on i { color: var(--ac); }
    .bnav .bnav-plus i { width: 40px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--bg3); color: var(--tx); }
}
@media (max-width: 656px) {
    .search { display: none; position: absolute; inset: 0; z-index: 2; padding: 0 12px 0 4px; background: var(--bg); flex: 1; }
    .top.searching .search { display: flex; }
    .search-back, .search-open { display: inline-grid; }
    .search-btn { width: 52px; }
    .suggest { right: 52px; left: 44px; }
    .jobs-menu { width: min(360px, calc(100vw - 24px)); }
}

/* ── Chips ──────────────────────────────────────────────────────────────── */
.chips {
    position: sticky; top: var(--top); z-index: 200; display: flex; align-items: center; gap: 8px;
    margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad); background: var(--glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.chips-scroll { flex: 1; min-width: 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-sm);
    background: var(--bg3); font-size: 14px; font-weight: 500; white-space: nowrap; flex-shrink: 0; transition: background .15s, color .15s;
}
.chip:hover { background: var(--bg4); }
.chip.on { background: var(--tx); color: var(--bg); }
.chip.on .dot { box-shadow: 0 0 0 2px var(--tx); }
.chip-sep { width: 1px; height: 24px; background: var(--line2); margin: 0 2px; align-self: center; flex-shrink: 0; }
.chips-sort .chip { background: none; color: var(--tx2); }
.chips-sort .chip:hover { background: var(--bg3); color: var(--tx); }

/* ── Feed / Grid ────────────────────────────────────────────────────────── */
.feed-wrap { padding-top: 12px; }
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 20px; }
.page-h h1 { font-size: 28px; display: flex; align-items: center; gap: 12px; }
.h-search { font-size: 20px !important; color: var(--tx2); font-weight: 500 !important; }
.channel-h { display: flex; align-items: center; gap: 20px; margin: 16px 0 28px; }
.channel-h h1 { font-size: 30px; }
.channel-h p { color: var(--tx2); margin-top: 2px; }

.grid { --cols: 1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 40px 16px; }
@media (min-width: 560px)  { .grid { --cols: 2; } }
@media (min-width: 1000px) { .grid { --cols: 3; } }
@media (min-width: 1400px) { .grid { --cols: 4; } }
@media (min-width: 2200px) { .grid { --cols: 6; } }
.grid > .vc { content-visibility: auto; contain-intrinsic-size: auto 320px; }
.feed-more { display: grid; place-items: center; padding: 40px 0 8px; }

/* Videokarte */
.vc { position: relative; min-width: 0; }
.vc-thumb {
    position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden;
    background: var(--bg3); transition: border-radius .2s;
}
.vc-thumb .ph, .sc-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tx3); font-size: 28px; }
.vc-thumb img, .sc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.vc-thumb img.ok, .sc-thumb img.ok { opacity: 1; }
.vc-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; background: #000; }
.vc-thumb.playing video { opacity: 1; }
.vc-thumb.playing .dur, .vc-thumb.playing .wprog { opacity: 0; }
.vc-thumb .pv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); z-index: 3; opacity: 0; }
.vc-thumb .pv-bar i { display: block; height: 100%; width: 100%; background: var(--ac); transform-origin: left; transform: scaleX(0); }
.vc-thumb.playing .pv-bar { opacity: 1; }
.vc-thumb .pv-mute { position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .6); display: grid; place-items: center; font-size: 14px; opacity: 0; }
.vc-thumb.playing .pv-mute { opacity: 1; }
.dur {
    position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 2px 5px; border-radius: 5px;
    background: rgba(0, 0, 0, .8); color: #fff; font: 600 12px/1.35 var(--f-head); transition: opacity .2s;
}
.wprog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .3); z-index: 2; }
.wprog i { display: block; height: 100%; background: var(--ac); }
.wprog ~ .dur, .wprog ~ .tags { bottom: 12px; }

.vc-body { display: flex; gap: 12px; padding-top: 12px; position: relative; }
.vc-body .av { margin-top: 2px; }
.vc-info { flex: 1; min-width: 0; padding-right: 24px; }
.vc-title { font: 600 16px/1.375 var(--f-body); letter-spacing: 0; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.vc-meta { color: var(--tx2); font-size: 14px; line-height: 1.45; display: flex; align-items: center; flex-wrap: wrap; min-width: 0; }
.vc-meta a:hover { color: var(--tx); }
.vc-meta .sep { margin: 0 5px; }
.cat { --c: var(--ac); color: var(--c); font-weight: 500; }
.cat:hover { filter: brightness(1.2); }
.vc-more { position: absolute; top: 8px; right: -8px; opacity: 0; transition: opacity .15s; }
.vc:hover .vc-more, .vc-more:focus-visible, .vc-more.open { opacity: 1; }
@media (hover: none) { .vc-more { opacity: 1; } }

/* Zeilenkarte (Als Nächstes) */
.vc-row { display: flex; gap: 8px; }
.vc-row .vc-thumb { width: 168px; flex-shrink: 0; border-radius: var(--r-sm); }
.vc-row .vc-body { padding-top: 0; flex: 1; min-width: 0; }
.vc-row .vc-title { font-size: 14px; line-height: 1.4; }
.vc-row .vc-meta { font-size: 12px; }
.vc-row .vc-more { top: -4px; }
.vc-row .dur { font-size: 11px; right: 4px; bottom: 4px; }

/* Regale */
.shelf { margin: 8px 0 40px; }
.shelf-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.shelf-h h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.shelf-h h2 i { color: var(--ac); }
.link { color: var(--ac); font-weight: 500; font-size: 14px; padding: 6px 10px; border-radius: 999px; }
.link:hover { background: var(--ac-soft); }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 4px; }
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row > * { scroll-snap-align: start; }
.shorts-row { grid-auto-columns: minmax(160px, calc((100% - 80px) / 6)); }
.shelf-shorts { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.grid + .shelf-shorts { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }

/* Shorty-Karte */
.sc { min-width: 0; }
.sc-thumb { position: relative; display: block; aspect-ratio: 9/16; border-radius: var(--r); overflow: hidden; background: var(--bg3); }
.sc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 15px; line-height: 1.35; margin-top: 10px; }
.sc-meta { color: var(--tx2); font-size: 13px; margin-top: 2px; }

.empty { text-align: center; padding: 96px 16px; color: var(--tx2); }
.empty > i { font-size: 56px; color: var(--tx3); display: block; margin-bottom: 16px; }
.empty h3 { color: var(--tx); font-size: 20px; margin-bottom: 6px; }
.empty p { margin-bottom: 20px; }

/* ── Watch ──────────────────────────────────────────────────────────────── */
.main-watch { padding-left: var(--pad); padding-right: var(--pad); }
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 402px; gap: 24px; max-width: 1754px; margin: 0 auto; padding-top: 24px; }
.w-primary { min-width: 0; }
.w-side { min-width: 0; }
@media (max-width: 1015.98px) {
    .watch { grid-template-columns: minmax(0, 1fr); }
    .main-watch { padding-left: 0; padding-right: 0; }
    .watch { padding-top: 0; gap: 0; }
    .w-info, .w-side { padding: 0 var(--pad); }
    .player-wrap { border-radius: 0; }
    .player { border-radius: 0 !important; }
    .amb { display: none; }
}
html.theater .watch { grid-template-columns: minmax(0, 1fr) 402px; padding-top: 0; max-width: none; }
html.theater .player-wrap { grid-column: 1 / -1; }
@media (min-width: 1016px) {
    html.theater .watch { grid-template-areas: "player player" "info side"; }
    html.theater .w-primary { display: contents; }
    html.theater .player-wrap { grid-area: player; margin: 0 calc(-1 * var(--pad)); }
    html.theater .player { border-radius: 0; max-height: calc(100vh - var(--top) - 120px); height: 56.25vw; aspect-ratio: auto; }
    html.theater .w-info { grid-area: info; }
    html.theater .w-side { grid-area: side; }
    html.theater .amb { display: none; }
}

.player-wrap { position: relative; }
.amb {
    position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
    filter: blur(70px) saturate(1.5); transform: scale(1.08); opacity: 0; transition: opacity 1.2s;
}
.player-wrap.amb-on .amb.on { opacity: .55; }

/* Player */
.player {
    position: relative; z-index: 1; aspect-ratio: 16/9; max-height: calc(100vh - var(--top) - 160px); width: 100%;
    background: #000; border-radius: var(--r); overflow: hidden; user-select: none; -webkit-user-select: none;
    view-transition-name: vx-hero; color: #fff;
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player:fullscreen { max-height: none; border-radius: 0; aspect-ratio: auto; }
.player:-webkit-full-screen { max-height: none; border-radius: 0; }
.player.idle { cursor: none; }
html.p-cinema .player { position: fixed; inset: 0; z-index: 800; max-height: none; height: 100%; aspect-ratio: auto; border-radius: 0; }
html.p-cinema .tv-badge { z-index: 810; }
.p-ui {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 60%, transparent);
    transition: opacity .25s;
}
.player.idle .p-ui, .player.idle .p-chip.p-skip { opacity: 0; pointer-events: none; }
.p-bar { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.p-track { position: relative; width: 100%; height: 3px; background: rgba(255, 255, 255, .22); transition: height .12s; border-radius: 2px; }
.p-bar:hover .p-track, .player.scrub .p-track { height: 5px; }
.p-buf, .p-hov, .p-played { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; transform: scaleX(0); border-radius: 2px; }
.p-buf { background: rgba(255, 255, 255, .35); }
.p-hov { background: rgba(255, 255, 255, .45); opacity: 0; }
.p-bar:hover .p-hov { opacity: 1; }
.p-played { background: var(--ac); }
.p-knob {
    position: absolute; top: 50%; left: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
    background: var(--ac); transform: scale(0); transition: transform .12s;
}
.p-bar:hover .p-knob, .player.scrub .p-knob { transform: scale(1); }
.p-tip {
    position: absolute; bottom: 24px; left: 0; padding: 3px 8px; border-radius: var(--r-xs); background: rgba(20, 22, 26, .92);
    font: 600 13px var(--f-head); transform: translateX(-50%); opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .1s;
}
.p-bar:hover .p-tip, .player.scrub .p-tip { opacity: 1; }
.p-row { display: flex; align-items: center; height: 48px; gap: 2px; }
.p-btn { width: 44px; height: 40px; display: grid; place-items: center; font-size: 24px; color: #fff; border-radius: var(--r-sm); opacity: .92; flex-shrink: 0; }
.p-btn:hover { opacity: 1; }
.p-btn[data-a=play] { font-size: 30px; }
.p-btn[data-a=settings] i, .p-btn[data-a=pip] i, .p-btn[data-a=theater] i, .p-btn[data-a=fs] i { font-size: 20px; }
.p-btn[data-a=settings].open i { transform: rotate(45deg); }
.p-btn[data-a=settings] i { transition: transform .2s; }
.p-vol { display: flex; align-items: center; }
.p-vol-r {
    width: 0; opacity: 0; transition: width .2s var(--ease), opacity .2s; accent-color: #fff; height: 4px; cursor: pointer;
    -webkit-appearance: none; appearance: none; background: transparent;
}
.p-vol:hover .p-vol-r, .p-vol:focus-within .p-vol-r { width: 64px; opacity: 1; margin-right: 8px; }
.p-vol-r::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #fff var(--v, 100%), rgba(255, 255, 255, .3) var(--v, 100%)); }
.p-vol-r::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: #fff; }
.p-vol-r::-moz-range-track { height: 3px; background: rgba(255, 255, 255, .3); border-radius: 2px; }
.p-vol-r::-moz-range-progress { height: 3px; background: #fff; border-radius: 2px; }
.p-vol-r::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.p-time { font: 500 13px var(--f-head); padding: 0 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-sep { margin: 0 4px; opacity: .7; }
.p-dur { opacity: .85; }
.p-grow { flex: 1; }
.p-switch { width: 34px; height: 14px; border-radius: 14px; background: rgba(255, 255, 255, .35); position: relative; display: block; }
.p-switch i { position: absolute; top: -3px; left: -2px; width: 20px; height: 20px; border-radius: 50%; background: #ddd; display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; }
.p-auto.on .p-switch i { transform: translateX(18px); background: #fff; }
.p-auto.on .p-switch { background: var(--ac); }
.p-set { position: relative; }
.p-menu {
    position: absolute; right: 0; bottom: 52px; width: 230px; max-height: 340px; overflow-y: auto; padding: 8px 0;
    background: rgba(20, 22, 26, .94); border-radius: var(--r); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.p-menu-h { padding: 6px 16px 8px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.p-mi { display: block; width: 100%; text-align: left; padding: 8px 16px 8px 40px; font-size: 14px; position: relative; }
.p-mi:hover { background: rgba(255, 255, 255, .1); }
.p-mi.on::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 14px; top: 8px; }
.p-spin { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s .25s; }
.player.waiting .p-spin { opacity: 1; }
.p-flash {
    position: absolute; left: 50%; top: 50%; z-index: 4; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
    background: rgba(0, 0, 0, .55); display: grid; place-items: center; font-size: 34px; opacity: 0; pointer-events: none;
}
.p-flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .95; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }
.p-seek-hint {
    position: absolute; top: 0; bottom: 0; width: 34%; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; font: 600 13px var(--f-head); opacity: 0; pointer-events: none; background: rgba(255, 255, 255, .06);
}
.p-seek-hint i { font-size: 28px; }
.p-seek-hint.l { left: 0; border-radius: 0 50% 50% 0 / 0 100% 100% 0; }
.p-seek-hint.r { right: 0; border-radius: 50% 0 0 50% / 100% 0 0 100%; }
.p-seek-hint.go { animation: hint .6s ease-out; }
@keyframes hint { 0%, 40% { opacity: 1; } 100% { opacity: 0; } }
.p-chip {
    position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
    border-radius: var(--r-sm); background: rgba(0, 0, 0, .72); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 600;
    transition: background .15s, opacity .25s;
}
.p-chip:hover { background: rgba(0, 0, 0, .9); }
.p-unmute { top: 14px; left: 14px; }
.p-skip { right: 14px; bottom: 76px; }
.p-next { position: absolute; inset: 0; z-index: 7; background: rgba(0, 0, 0, .78); display: grid; place-items: center; padding: 16px; }
.p-next-in { width: min(420px, 100%); }
.p-next-in small { color: rgba(255, 255, 255, .75); font-size: 14px; }
.p-next-card { display: flex; gap: 12px; margin: 10px 0 18px; }
.p-next-card img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.p-next-card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; }
.p-next-card span { color: rgba(255, 255, 255, .7); font-size: 13px; display: block; margin-top: 4px; }
.p-next-btns { display: flex; gap: 10px; justify-content: flex-end; }
.p-next-bar { height: 3px; background: rgba(255, 255, 255, .2); border-radius: 2px; margin-top: 16px; overflow: hidden; }
.p-next-bar i { display: block; height: 100%; background: var(--ac); width: 100%; transform-origin: left; }
.p-next.run .p-next-bar i { animation: countdown 5s linear forwards; }
@keyframes countdown { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 560px) {
    .p-btn { width: 38px; }
    .p-btn[data-a=pip], .p-vol-r, .p-btn[data-a=theater] { display: none; }
    .p-next-card img { width: 110px; }
}

/* Info unter dem Player */
.w-info { padding-top: 14px; }
.w-title { font-size: 20px; line-height: 1.4; font-weight: 600; word-break: break-word; }
.w-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 12px; }
.w-channel { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 8px; }
.w-channel b { display: block; font-size: 16px; }
.w-channel small { color: var(--tx2); font-size: 12px; }
.w-channel:hover b { color: var(--ac); }
.w-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .w-actions .btn span { display: none; } .w-actions .btn { width: 36px; padding: 0; } }
.w-desc { margin-top: 14px; background: var(--bg3); border-radius: var(--r); padding: 12px 14px; font-size: 14px; position: relative; }
.w-desc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 600; margin-bottom: 6px; }
.w-plat { color: var(--ac); font-weight: 500; }
.w-desc-text { white-space: normal; word-break: break-word; line-height: 1.55; max-height: 4.65em; overflow: hidden; }
.w-desc-text a { color: var(--ac); }
.w-desc-text a:hover { text-decoration: underline; }
.w-desc-more { display: none; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.w-desc-more dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.w-desc-more dt { color: var(--tx2); font-size: 12px; }
.w-desc-more dd { font-weight: 500; }
.w-desc-toggle { margin-top: 6px; font-weight: 600; color: var(--tx); }
.w-desc-toggle span + span, .w-desc.open .w-desc-toggle span:first-child { display: none; }
.w-desc.open .w-desc-toggle span + span { display: inline; }
.w-desc.open .w-desc-text { max-height: none; }
.w-desc.open .w-desc-more { display: block; }
.w-desc:not(.open) { cursor: pointer; }
.w-desc:not(.open):hover { background: var(--bg4); }

.w-side-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.w-side-h h2 { font-size: 16px; }
.w-side-h .toggle { font-size: 13px; }
@media (max-width: 1015.98px) { .w-side { margin-top: 24px; } }
.w-rel { display: flex; flex-direction: column; gap: 10px; }

/* ── Shorties ───────────────────────────────────────────────────────────── */
.page-shorts { overflow: hidden; }
.main-shorts { padding: var(--top) 0 0 var(--side); height: 100vh; height: 100dvh; }
.shorts { position: relative; height: calc(100vh - var(--top) - var(--bnav)); height: calc(100dvh - var(--top) - var(--bnav)); }
.shorts-feed { position: relative; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.shorts-feed::-webkit-scrollbar { display: none; }
.shorts-feed:focus { outline: none; }
.short { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 0; position: relative; }
.short-stage {
    position: relative; height: 100%; aspect-ratio: 9/16; max-width: 100%; border-radius: var(--r-lg); overflow: hidden;
    background: #000; box-shadow: 0 0 0 1px var(--line);
}
.short-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.55) saturate(1.3); transform: scale(1.1); }
.short-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.short-tap { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.short-flash { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; font-size: 36px; z-index: 3; opacity: 0; pointer-events: none; }
.short-flash.go { animation: flash .5s ease-out; }
.short.paused .short-flash { opacity: .9; animation: none; }
.short-spin { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s .3s; }
.short.waiting .short-spin { opacity: 1; }
.short-info {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 60px 16px 18px; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
}
.short-info a, .short-info button { pointer-events: auto; }
.short-user { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; }
.short-user .av { width: 32px; height: 32px; font-size: 14px; }
.short-user .vbadge { margin-left: -6px; color: #fff; }
.short-title { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short-sub { font-size: 13px; color: rgba(255, 255, 255, .75); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.short-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 5; background: rgba(255, 255, 255, .2); cursor: pointer; }
.short-prog i { display: block; height: 100%; width: 100%; background: var(--ac); transform-origin: left; transform: scaleX(0); }
.short-actions { display: flex; flex-direction: column; gap: 16px; align-self: flex-end; padding-bottom: 8px; z-index: 5; }
.sa { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.sa .ib { width: 48px; height: 48px; background: var(--bg3); font-size: 20px; }
.sa .ib:hover { background: var(--bg4); }
.sa.danger .ib { color: var(--red); }
.short-top-mute { position: absolute; top: 12px; left: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: grid; place-items: center; font-size: 18px; color: #fff; }
.shorts-nav { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 16px; z-index: 6; }
.shorts-top { position: absolute; top: 16px; right: 24px; z-index: 6; }
.shorts-empty { height: 100%; display: grid; place-items: center; }
@media (max-width: 791.98px) {
    .main-shorts { padding-left: 0; }
    .short { padding: 0; gap: 0; }
    .short-stage { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
    .short-actions { position: absolute; right: 8px; bottom: 90px; }
    .sa .ib { background: rgba(0, 0, 0, .35); }
    .sa { text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
    .short-info { padding-right: 76px; }
    .shorts-nav { display: none; }
    .shorts-top { top: 12px; right: 12px; }
}

/* ── Studio (Download / Upload) ─────────────────────────────────────────── */
.studio { max-width: 1240px; margin: 0 auto; padding-top: 12px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1080px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 999px; margin-bottom: 20px; width: max-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 600; color: var(--tx2); transition: background .15s, color .15s; }
.tab i { font-size: 17px; }
.tab:hover { color: var(--tx); }
.tab.on { background: var(--bg3); color: var(--tx); }
.opt-row { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin: 4px 0 20px; }
.plats { margin-top: 18px; color: var(--tx2); font-size: 13px; }
.plats summary { cursor: pointer; width: max-content; padding: 4px 0; }
.plats summary:hover { color: var(--tx); }
.plat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ptag { padding: 4px 10px; border-radius: 999px; background: var(--bg3); color: var(--tx2); font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.ptag.ck { color: var(--ok); }
.drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
    min-height: 220px; padding: 24px; border: 2px dashed var(--line2); border-radius: var(--r-lg); cursor: pointer;
    transition: border-color .15s, background .15s;
}
.drop i { font-size: 44px; color: var(--ac); margin-bottom: 8px; }
.drop b { font-size: 16px; }
.drop span { color: var(--tx2); }
.drop small { color: var(--tx3); margin-top: 10px; font-size: 12px; }
.drop:hover, .drop.over { border-color: var(--ac); background: var(--ac-soft); }
.up-form { margin-top: 20px; }
.up-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.uf { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--bg); border-radius: var(--r); }
.uf-th { width: 96px; aspect-ratio: 16/9; border-radius: var(--r-sm); background: var(--bg3); flex-shrink: 0; overflow: hidden; display: grid; place-items: center; color: var(--tx3); }
.uf-th video { width: 100%; height: 100%; object-fit: cover; }
.uf-b { flex: 1; min-width: 0; }
.uf-b input { width: 100%; background: none; border: 0; border-bottom: 1px solid transparent; padding: 2px 0; font-weight: 600; font-size: 14px; }
.uf-b input:focus { border-bottom-color: var(--ac); }
.uf-b small { color: var(--tx2); font-size: 12px; }

/* Warteschlange */
.queue-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.queue-h h2 { font-size: 18px; }
.q-list { display: flex; flex-direction: column; gap: 4px; }
.qi { display: flex; gap: 12px; padding: 10px; border-radius: var(--r); transition: background .15s; }
.qi:hover { background: var(--bg3); }
.qi-th { width: 96px; aspect-ratio: 16/9; border-radius: var(--r-sm); background: var(--bg3); display: grid; place-items: center; color: var(--tx2); font-size: 20px; flex-shrink: 0; overflow: hidden; position: relative; }
.qi-th img { width: 100%; height: 100%; object-fit: cover; }
.qi-b { flex: 1; min-width: 0; }
.qi-t { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
a.qi-t:hover { color: var(--ac); }
.qi-u { color: var(--tx3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qi-s { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--tx2); margin: 4px 0 6px; flex-wrap: wrap; }
.qi-s .st { font-weight: 600; }
.qi-s .st.ok { color: var(--ok); }
.qi-s .st.err { color: var(--red); }
.qi-s .st.run { color: var(--ac); }
.qi-msg { font-size: 12px; color: #ffb3b3; word-break: break-word; margin-top: 4px; }
.qi-a { display: flex; gap: 2px; align-self: center; }
.qi-log { margin-top: 8px; max-height: 260px; overflow: auto; padding: 10px; background: var(--bg); border-radius: var(--r-sm); font: 12px/1.6 var(--f-mono); color: var(--tx2); white-space: pre-wrap; word-break: break-all; }

/* ── Modal / Toast ──────────────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg2); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; animation: pop .18s var(--ease); }
.modal h2 { font-size: 20px; margin-bottom: 8px; }
.modal p { color: var(--tx2); margin-bottom: 18px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toasts { position: fixed; left: 24px; bottom: calc(24px + var(--bnav)); z-index: 950; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: min(460px, calc(100vw - 48px));
    padding: 12px 16px; border-radius: var(--r-sm); background: #f1f3f6; color: #0e1014; font-size: 14px; font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .45); animation: toast-in .2s var(--ease);
}
.toast a, .toast button { color: #0477c2; font-weight: 700; white-space: nowrap; margin-left: auto; }
.toast.err { background: #ffd9d9; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Login ──────────────────────────────────────────────────────────────── */
.page-login .main { padding: 0; display: grid; place-items: center; min-height: 100vh; background: radial-gradient(900px 500px at 50% -10%, rgba(56, 182, 255, .14), transparent 70%); }
.login { width: min(820px, 100%); padding: 40px 20px; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.login-brand span { font: 700 30px var(--f-head); letter-spacing: -.03em; }
.login-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
@media (max-width: 700px) { .login-grid { grid-template-columns: minmax(0, 1fr); } }
.login-card { padding: 28px; }
.login-card h1 { font-size: 24px; }
.login-card .muted { margin: 4px 0 22px; }
.login-card .field .muted { margin: 0; }
.tv-card { text-align: center; }
.tv-h { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; font-size: 15px; }
.tv-h i { color: var(--ac); font-size: 18px; }
.qr { width: 196px; height: 196px; margin: 0 auto; background: #fff; border-radius: var(--r); padding: 14px; display: grid; place-items: center; color: #555; font-size: 13px; }
.qr img, .qr canvas { width: 168px !important; height: 168px !important; }
.qr .spin { border-color: rgba(0, 0, 0, .1); border-top-color: var(--ac); }
.qr-exp { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 12px 0 16px; font: 500 12px var(--f-head); color: var(--tx2); }
.qr-exp-bar { width: 90px; height: 3px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.qr-exp-bar i { display: block; height: 100%; width: 100%; background: var(--ac); transform-origin: left; transition: transform 1s linear; }
.tv-steps { text-align: left; color: var(--tx2); font-size: 13px; line-height: 1.5; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.tv-ok { position: fixed; inset: 0; z-index: 999; background: rgba(14, 16, 20, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }

/* ── Admin ──────────────────────────────────────────────────────────────── */
.admin { max-width: 1400px; margin: 0 auto; padding-top: 12px; }
.admin .tabs { margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--bg2); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: 0 0 0 1px var(--line); }
.stat b { display: block; font: 600 26px var(--f-head); letter-spacing: -.02em; }
.stat span { color: var(--tx2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.adm-grid h2, .card > h2 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.checks { display: flex; flex-direction: column; gap: 2px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.check:last-child { border-bottom: 0; }
.check i { font-size: 16px; }
.check .ok { color: var(--ok); }
.check .bad { color: var(--red); }
.check .wa { color: var(--warn); }
.check small { margin-left: auto; color: var(--tx3); font: 12px var(--f-mono); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; background: var(--bg2); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--tx2); font-size: 13px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.tbl .th-img { width: 80px; aspect-ratio: 16/9; border-radius: var(--r-xs); object-fit: cover; background: var(--bg3); display: block; }
.tbl .t-title { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; font-weight: 500; }
.tbl .t-title:hover { color: var(--ac); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl select.input { padding: 5px 30px 5px 10px; font-size: 13px; width: auto; min-width: 130px; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg3); color: var(--tx2); }
.pill.on { background: var(--ac-soft); color: var(--ac); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.inline-form { display: inline; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input { max-width: 320px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 10px; border-radius: 999px; background: var(--bg3); font-weight: 600; }
.pager a:hover { background: var(--bg4); }
.pager .on { background: var(--tx); color: var(--bg); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.cat-swatch { width: 16px; height: 16px; border-radius: 50%; display: inline-block; vertical-align: middle; }
.field input[type=color] { width: 100%; height: 42px; padding: 4px; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r-sm); cursor: pointer; }
.migrate { display: flex; flex-direction: column; gap: 12px; }
.migrate .bar { height: 6px; }
.mono { font-family: var(--f-mono); font-size: 12px; }

/* ── Handy-Fernbedienung ────────────────────────────────────────────────── */
.page-remote .main { padding: 0; min-height: 100vh; min-height: 100dvh; }
.page-remote { overscroll-behavior: none; }
.remote { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.r-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 20px; gap: 8px; }
.r-center h1 { font-size: 22px; margin-top: 8px; }
.r-form { width: 100%; max-width: 360px; text-align: left; margin-top: 16px; }
.r-app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.r-app[hidden] { display: none !important; }
.r-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.r-top b { font-family: var(--f-head); font-size: 16px; }
.r-user { margin-left: auto; color: var(--tx2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.r-user::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.r-pane { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.r-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--bg2); border-radius: 999px; box-shadow: 0 0 0 1px var(--line); flex-shrink: 0; }
.r-search i { color: var(--tx3); }
.r-search input { flex: 1; background: none; border: 0; font-size: 16px; min-width: 0; }
.r-list { display: flex; flex-direction: column; gap: 4px; margin: -4px -8px 0; }
.r-vid { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r); text-align: left; width: 100%; }
.r-vid:active { background: var(--bg3); }
.r-vid-th { position: relative; width: 112px; aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; background: var(--bg3); flex-shrink: 0; display: grid; place-items: center; color: var(--tx3); }
.r-vid-th img { width: 100%; height: 100%; object-fit: cover; }
.r-vid-th .dur { right: 4px; bottom: 4px; font-size: 11px; }
.r-short { position: absolute; left: 4px; top: 4px; color: var(--ac); font-size: 14px; text-shadow: 0 1px 4px #000; }
.r-vid-b { flex: 1; min-width: 0; }
.r-vid-b b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14px; line-height: 1.35; }
.r-vid-b small { color: var(--tx2); font-size: 12px; }
.r-play { font-size: 28px; color: var(--ac); flex-shrink: 0; }
.r-now { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--bg2); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); }
.r-now-th { width: 96px; aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; background: var(--bg3); display: grid; place-items: center; color: var(--tx3); flex-shrink: 0; }
.r-now-th img { width: 100%; height: 100%; object-fit: cover; }
.r-now small { color: var(--tx2); font-size: 12px; }
.r-now b { display: block; font-size: 15px; line-height: 1.35; }
.r-ctl { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 12px 0; }
.r-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.r-btn {
    width: 68px; height: 68px; border-radius: 50%; background: var(--bg3); display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 24px; touch-action: manipulation; transition: transform .08s, background .12s; user-select: none; -webkit-user-select: none;
}
.r-btn small { font-size: 10px; color: var(--tx2); }
.r-btn.down, .dp.down { transform: scale(.93); background: var(--bg4); }
.r-big { width: 96px; height: 96px; background: var(--ac); color: var(--ac-ink); flex-direction: row; font-size: 26px; gap: 0; }
.r-big.down { background: var(--ac2); }
.dpad { position: relative; width: 264px; height: 264px; margin: 12px auto; border-radius: 50%; background: var(--bg2); box-shadow: 0 0 0 1px var(--line); }
.dp { position: absolute; display: grid; place-items: center; font-size: 30px; color: var(--tx); touch-action: manipulation; user-select: none; -webkit-user-select: none; border-radius: 50%; transition: transform .08s, background .12s; }
.dp.up, .dp.down { left: 88px; width: 88px; height: 88px; }
.dp.left, .dp.right { top: 88px; width: 88px; height: 88px; }
.dp.up { top: 0; } .dp.down { bottom: 0; } .dp.left { left: 0; } .dp.right { right: 0; }
.dp.ok { left: 82px; top: 82px; width: 100px; height: 100px; background: var(--bg4); font: 700 20px var(--f-head); }
.r-tabs { display: flex; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); background: var(--bg2); }
.r-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 12px; font-size: 11px; color: var(--tx2); }
.r-tabs button i { font-size: 21px; }
.r-tabs button.on { color: var(--tx); }
.r-tabs button.on i { color: var(--ac); }

/* ── TV-Modus ───────────────────────────────────────────────────────────── */
body.tv-mode, body.tv-mode * { cursor: none !important; }
body.tv-mode :focus { outline: 3px solid var(--ac) !important; outline-offset: 3px; }
body.tv-mode .vc:focus-within .vc-thumb, body.tv-mode .sc:focus-within .sc-thumb { box-shadow: 0 0 0 3px var(--ac); }
body.tv-mode .vc-thumb:focus { outline: none !important; box-shadow: 0 0 0 4px var(--ac), 0 12px 40px rgba(0, 0, 0, .6); }
body.tv-mode .vc-more { display: none; }
.tv-badge {
    position: fixed; left: 14px; bottom: 14px; z-index: 990; display: flex; align-items: center; gap: 6px; pointer-events: none;
    padding: 5px 11px; border-radius: 999px; background: var(--ac-soft); color: var(--ac); font: 700 12px var(--f-head);
    box-shadow: 0 0 0 1px rgba(56, 182, 255, .35); transition: background .2s;
}
.tv-badge.hit { background: rgba(61, 220, 151, .25); color: var(--ok); }

/* ── Profilbild ────────────────────────────────────────────────────────────── */
.av.has-img { background: var(--bg3); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.av-sm { width: 30px; height: 30px; font-size: 13px; }
.av-edit { position: relative; border-radius: 50%; padding: 0; background: none; border: 0; cursor: pointer; flex-shrink: 0; color: inherit; }
.av-edit-ic {
    position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bg3);
    box-shadow: 0 0 0 3px var(--bg); display: grid; place-items: center; font-size: 13px; color: var(--tx); transition: background .15s, color .15s;
}
.av-edit:hover .av-edit-ic { background: var(--ac); color: var(--ac-ink); }
.channel-info { flex: 1; min-width: 0; }
.channel-h > .btn { flex-shrink: 0; }
@media (max-width: 600px) {
    .channel-h { flex-wrap: wrap; gap: 16px; }
    .channel-h > .btn { width: 100%; }
    .channel-h h1 { font-size: 24px; }
}

.pf { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 6px 0 4px; }
.pf [hidden] { display: none !important; }
.pf-stage { width: min(280px, 70vw); aspect-ratio: 1; }
.pf-cur, .pf-canvas { width: 100%; height: 100%; border-radius: 50%; }
.pf-cur { --c: var(--bg4); background: var(--c); display: grid; place-items: center; font: 600 96px var(--f-head); color: #fff; overflow: hidden; }
.pf-cur img { width: 100%; height: 100%; object-fit: cover; }
.pf-canvas { display: block; cursor: grab; touch-action: none; box-shadow: 0 0 0 1px var(--line2); }
.pf-canvas:active { cursor: grabbing; }
.pf-zoom { width: min(280px, 70vw); accent-color: var(--ac); }
.pf-hint { font-size: 12px; }
.pf-f { align-items: center; }

/* ── Sichtbarkeit ──────────────────────────────────────────────────────────── */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line2); border-radius: 999px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg span {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px;
    font-size: 13px; font-weight: 500; color: var(--tx2); transition: background .15s, color .15s;
}
.seg label:hover span { color: var(--tx); }
.seg input:checked + span { background: var(--bg3); color: var(--tx); box-shadow: 0 0 0 1px var(--line2); }
.seg input[value=private]:checked + span { background: var(--ac-soft); color: var(--ac); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--ac); outline-offset: 1px; }
.opt-l { font-size: 14px; color: var(--tx2); }

.vis-list { display: flex; flex-direction: column; gap: 6px; }
.vis-opt {
    display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r); background: var(--bg);
    box-shadow: 0 0 0 1px var(--line); cursor: pointer; position: relative; transition: box-shadow .15s, background .15s;
}
.vis-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.vis-opt > i { font-size: 18px; color: var(--tx2); width: 22px; text-align: center; }
.vis-opt b { display: block; font-size: 14px; }
.vis-opt small { color: var(--tx2); font-size: 12px; }
.vis-opt:hover { background: var(--bg3); }
.vis-opt:has(input:checked) { box-shadow: 0 0 0 2px var(--ac); background: var(--ac-soft); }
.vis-opt:has(input:checked) > i { color: var(--ac); }
.vis-opt:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }

.tag-vis-l { background: var(--bg3); color: var(--tx2); font: 600 12px/1 var(--f-body); padding: 5px 8px; }
.tbl span.th-img { display: grid; place-items: center; color: var(--tx3); }

/* ── Meine Videos: eigener Upload ──────────────────────────────────────────── */
.mine-up { padding: 0; margin-bottom: 28px; overflow: hidden; }
.mine-up > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; user-select: none; transition: background .15s; }
.mine-up > summary::-webkit-details-marker { display: none; }
.mine-up > summary:hover { background: var(--bg3); }
.mine-up-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--ac-soft); color: var(--ac); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.mine-up summary > span:nth-child(2) { flex: 1; min-width: 0; }
.mine-up summary b { display: block; font-size: 15px; }
.mine-up summary small { color: var(--tx2); font-size: 13px; }
.mine-up-chev { color: var(--tx2); transition: transform .2s var(--ease); }
.mine-up[open] .mine-up-chev { transform: rotate(180deg); }
.mine-up-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; padding: 4px 20px 20px; align-items: start; }
.mine-up-body:has(.q-list:empty) { grid-template-columns: minmax(0, 1fr); }
.mine-up-body .q-list:empty { display: none; }
@media (max-width: 1000px) { .mine-up-body { grid-template-columns: minmax(0, 1fr); } }
.empty-sm { padding: 48px 16px; }

/* ── Herkunft: eigenes Video / aus dem Netz ─────────────────────────────── */
.tags { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 72px); pointer-events: none; transition: opacity .2s; }
.tags:empty { display: none; }
.sc-thumb .tags { top: 8px; bottom: auto; max-width: calc(100% - 16px); }
.vc-thumb.playing .tags { opacity: 0; }
.tag-own { background: var(--ac); color: var(--ac-ink); }
.vc-meta-2 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src { display: inline-flex; align-items: center; gap: 4px; }
.src i { font-size: 12px; opacity: .75; }
.chip-own i { color: var(--ac); }
.chip-own.on { background: var(--ac); color: var(--ac-ink); }
.chip-own.on i { color: inherit; }
.chip i { font-size: 14px; }
.h-ic-own { color: var(--ac); }
.h-ic { color: var(--tx2); }
.page-h > p { flex-basis: 100%; margin-top: -14px; font-size: 14px; }
.shelf-own { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.shelf-own + .shelf-shorts { border-top: 0; padding-top: 0; margin-top: 0; }
.pill-own { background: var(--ac-soft); color: var(--ac); }

.own-opt { display: block; position: relative; margin-bottom: 14px; cursor: pointer; }
.own-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.own-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--bg); box-shadow: 0 0 0 1px var(--line2); transition: box-shadow .15s, background .15s; }
.own-box > i:first-child { font-size: 20px; color: var(--tx2); transition: color .15s; }
.own-box > span { flex: 1; min-width: 0; }
.own-box b { display: block; font-size: 14px; }
.own-box small { color: var(--tx2); font-size: 12px; }
.own-check { font-size: 18px; color: var(--line2); transition: color .15s; }
.own-opt input:checked + .own-box { box-shadow: 0 0 0 2px var(--ac); background: var(--ac-soft); }
.own-opt input:checked + .own-box > i:first-child, .own-opt input:checked + .own-box .own-check { color: var(--ac); }
.own-opt input:focus-visible + .own-box { outline: 2px solid var(--ac); outline-offset: 2px; }

.w-origin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; margin: 0 0 8px; }
.w-origin .tag-own { padding: 5px 8px; }
.w-src { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bg3); color: var(--tx2); font-weight: 600; font-size: 12px; transition: background .15s, color .15s; }
.w-src:hover { background: var(--bg4); color: var(--tx); }
.w-ch { display: flex; align-items: center; gap: 16px; min-width: 0; }
@media (max-width: 600px) { .w-ch .btn { display: none; } }

/* ── Avatare ───────────────────────────────────────────────────────────── */
.av-xs { width: 24px; height: 24px; font-size: 11px; }
.av-lg { width: 64px; height: 64px; font-size: 26px; }
.av-ch { width: 128px; height: 128px; font-size: 52px; }
.g-ch .av { flex-shrink: 0; }

/* ── Kanal ─────────────────────────────────────────────────────────────── */
.ch-banner, .chc-banner, .ce-banner {
    --c: var(--bg4); position: relative; overflow: hidden; background-color: var(--bg3);
    background-image: radial-gradient(120% 160% at 12% 0%, color-mix(in srgb, var(--c) 70%, transparent), transparent 62%),
                      linear-gradient(120deg, color-mix(in srgb, var(--c) 40%, var(--bg2)), var(--bg2));
}
.ch-banner img, .chc-banner img, .ce-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch { max-width: 1284px; margin: 0 auto; padding-top: 16px; }
.ch-banner { aspect-ratio: 6.2 / 1; min-height: 110px; border-radius: 16px; }
.ch-head { display: flex; gap: 24px; align-items: center; padding: 24px 0 12px; }
.ch-info { flex: 1; min-width: 0; }
.ch-info h1 { font-size: 36px; line-height: 1.15; word-break: break-word; }
.ch-meta { display: flex; flex-wrap: wrap; gap: 0 6px; color: var(--tx2); font-size: 14px; margin-top: 6px; }
.ch-meta span + span::before { content: '·'; margin-right: 6px; }
.ch-bio { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-top: 8px; color: var(--tx2); font: inherit; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.ch-bio span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-bio:hover { color: var(--tx); }
.ch-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ch-tabs {
    display: flex; gap: 4px; margin: 4px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); border-bottom: 1px solid var(--line);
    overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--top); z-index: 150;
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.ch-tabs::-webkit-scrollbar { display: none; }
.ch-tab { display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 14px; color: var(--tx2); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; }
.ch-tab:hover { color: var(--tx); border-bottom-color: var(--line2); }
.ch-tab.on { color: var(--tx); border-bottom-color: var(--tx); }
.ch-tab small { color: var(--tx3); font-size: 12px; font-weight: 500; }
.ch-tab-own i { color: var(--ac); }
.ch-tab-own.on { border-bottom-color: var(--ac); }
.ch-body { padding-top: 24px; }
.chips-inline { position: static; margin: 0 0 20px; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.grid-shorts { --cols: 2; }
@media (min-width: 560px)  { .grid-shorts { --cols: 3; } }
@media (min-width: 1000px) { .grid-shorts { --cols: 5; } }
@media (min-width: 1400px) { .grid-shorts { --cols: 6; } }
.ch-about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ch-about h2 { font-size: 17px; margin-bottom: 12px; }
.ch-about-text { color: var(--tx2); line-height: 1.6; margin-bottom: 14px; word-break: break-word; }
.ch-about-text a { color: var(--ac); }
.ch-stats div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ch-stats div:last-child { border-bottom: 0; }
.ch-stats dt { color: var(--tx2); display: flex; align-items: center; gap: 8px; }
.ch-stats dd { font-weight: 600; }
.ch-hint { margin-top: 28px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.ch-hint a { color: var(--ac); }
@media (max-width: 720px) {
    .ch-banner { aspect-ratio: 3.2 / 1; border-radius: 12px; }
    .ch-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .av-ch { width: 88px; height: 88px; font-size: 36px; }
    .ch-info h1 { font-size: 26px; }
    .ch-about { grid-template-columns: minmax(0, 1fr); }
}

.ch-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line2); width: min(320px, 100%); transition: border-color .15s; }
.ch-search i { color: var(--tx3); }
.ch-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--tx); font: inherit; }
.ch-search:focus-within { border-color: var(--ac); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.chc { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 18px; border-radius: 16px; overflow: hidden; background: var(--bg2); box-shadow: 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s; }
.chc:hover { background: var(--bg3); box-shadow: 0 0 0 1px var(--line2); }
.chc-banner { width: 100%; aspect-ratio: 4 / 1; }
.chc .av-lg { position: relative; z-index: 1; margin-top: -32px; box-shadow: 0 0 0 4px var(--bg2); transition: box-shadow .15s; }
.chc:hover .av-lg { box-shadow: 0 0 0 4px var(--bg3); }
.chc-name { margin-top: 10px; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.chc-me { font: 700 10px/1 var(--f-head); padding: 3px 6px; border-radius: 999px; background: var(--ac-soft); color: var(--ac); }
.chc-handle { color: var(--tx3); font-size: 13px; }
.chc-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: var(--tx2); }
.chc-stats b { color: var(--tx); font-weight: 600; }
.chc-own, .chc-own b { color: var(--ac); }
.chc-own i { margin-right: 3px; }
.chc-bio { margin-top: 10px; padding: 0 18px; font-size: 13px; color: var(--tx2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sg-ch .av { width: 36px; height: 36px; margin: 0 14px; }
.sg-ch > span:last-child { display: flex; flex-direction: column; }
.sg-item small { color: var(--tx3); font-size: 12px; }

.ce-banner { aspect-ratio: 3.55 / 1; border-radius: var(--r); }
.ce-banner-acts { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.ce-banner-acts .btn { background: rgba(0, 0, 0, .6); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ce-banner-acts .btn:hover { background: rgba(0, 0, 0, .8); }
.ce-banner-acts [hidden] { display: none; }
.ce-av { display: flex; align-items: center; gap: 14px; }
.ce-count { text-align: right; font-size: 12px; }
.ce .field > small { margin-top: 2px; font-size: 12px; }

/* ── Verifizierung ─────────────────────────────────────────────────────── */
.vbadge { color: var(--tx2); font-size: .82em; margin-left: 4px; vertical-align: -1px; flex-shrink: 0; }
.vc-ch { display: inline-flex; align-items: center; min-width: 0; }
.vc-ch .vbadge { font-size: 12px; }
.w-channel .vbadge, .menu-user .vbadge, .chc-name .vbadge { color: var(--ac); }
.vbadge-lg { font-size: .6em; color: var(--ac); margin-left: 8px; vertical-align: 4px; }
.vb-yes { color: var(--ac); }
.g-ch .vbadge { font-size: 11px; }
.mi .mi-ok { color: var(--ac); }
.mi-badge, .g-badge, .tab-badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
    background: var(--red); color: #fff; font: 700 11px/1 var(--f-head);
}
.tab-badge { margin-left: 2px; }
.g-item .g-badge { color: #fff; font-size: 11px; }

.verify-cta, .own-lock {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 28px; transition: background .15s, box-shadow .15s;
}
.verify-cta:hover, .own-lock:hover { background: var(--bg3); }
.verify-cta > span:nth-child(2), .own-lock > span { flex: 1; min-width: 0; }
.verify-cta b, .own-lock b { display: block; font-size: 15px; }
.verify-cta small, .own-lock small { color: var(--tx2); font-size: 13px; }
.verify-cta > i:last-child, .own-lock > i:last-child { color: var(--tx3); }
.verify-cta-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; background: var(--ac-soft); color: var(--ac); }
.verify-pending .verify-cta-ic { background: var(--warn-soft); color: var(--warn); }
.verify-rejected .verify-cta-ic { background: var(--red-soft); color: var(--red); }
.own-lock { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--bg); box-shadow: 0 0 0 1px var(--line2); }
.own-lock > i:first-child { font-size: 20px; color: var(--ac); }
.own-lock b { font-size: 14px; }
.own-lock small { font-size: 12px; }

.verify { max-width: 760px; margin: 0 auto; padding-top: 20px; }
.verify-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.verify-hero h1 { font-size: 28px; }
.verify-hero p { margin-top: 4px; }
.verify-hero .vbadge { color: var(--ac); }
.verify-hero-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; flex-shrink: 0; background: var(--ac-soft); color: var(--ac); }
.verify-status { display: flex; gap: 16px; align-items: flex-start; }
.verify-status > i { font-size: 28px; color: var(--tx2); }
.verify-status b { font-size: 17px; }
.verify-status p { margin: 6px 0 0; }
.verify-ok > i { color: var(--ac); }
.verify-wait > i { color: var(--warn); }
.verify-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.verify-form { display: flex; flex-direction: column; gap: 16px; }
.vf-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.vf-h > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--ac); color: var(--ac-ink); font: 700 14px var(--f-head); }
.vf-h h2 { font-size: 18px; }
.vf-h p { margin-top: 2px; font-size: 13px; }
.vf-shots { display: grid; gap: 12px; }
.shot { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--bg); box-shadow: 0 0 0 1px var(--line2); transition: box-shadow .15s; }
.shot.done { box-shadow: 0 0 0 2px var(--ok); }
.shot-prev { width: 150px; aspect-ratio: 1.586; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: var(--bg3); color: var(--tx3); font-size: 34px; position: relative; }
.shot-face { width: 110px; aspect-ratio: 3 / 4; }
.shot-prev img { width: 100%; height: 100%; object-fit: cover; }
.shot.done .shot-prev::after { content: '\F26E'; font-family: bootstrap-icons; position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--ok); color: #04160d; }
.shot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.shot-info b { font-size: 15px; }
.shot-info small { font-size: 12px; line-height: 1.45; }
.shot-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.shot-acts label { cursor: pointer; }
@media (max-width: 560px) { .shot { flex-direction: column; align-items: stretch; } .shot-prev, .shot-face { width: 100%; max-width: 280px; margin: 0 auto; } }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 14px; color: var(--tx2); cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ac); flex-shrink: 0; }
.check-row:last-of-type { margin-bottom: 14px; }

/* Kamera */
.cam-bg { position: fixed; inset: 0; z-index: 950; background: #000; display: flex; flex-direction: column; animation: fade .15s; }
.cam-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.cam-stage video, .cam-stage canvas { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.cam-stage video.mirror { transform: scaleX(-1); }
.cam-guide { position: absolute; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .9); }
.cam-guide-id { width: min(86vw, 640px); aspect-ratio: 1.586; border-radius: 14px; }
.cam-guide-face { width: min(62vw, 320px); aspect-ratio: 3 / 4; border-radius: 50%; }
.cam-tip { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; white-space: nowrap; }
.cam-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); background: #000; }
.cam-bar .btn { min-width: 110px; }
.cam-shoot { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: rgba(255, 255, 255, .15); cursor: pointer; transition: transform .1s, background .15s; }
.cam-shoot:active { transform: scale(.94); background: rgba(255, 255, 255, .4); }
.cam-err { color: #fff; text-align: center; padding: 24px; max-width: 420px; }
.cam-err i { font-size: 40px; display: block; margin-bottom: 12px; color: var(--warn); }

/* Login / Registrierung */
.login-single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.tabs-login { width: 100%; margin-bottom: 22px; }
.tabs-login .tab { flex: 1; justify-content: center; }
.step-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; background: var(--ac-soft); color: var(--ac); }
.step-ic-wait { background: var(--warn-soft); color: var(--warn); }
.code-form { margin-bottom: 8px; }
.code-in {
    width: 100%; height: 64px; margin-bottom: 14px; text-align: center; font: 700 30px var(--f-mono); letter-spacing: .45em; text-indent: .45em;
    background: var(--bg); color: var(--tx); border: 1px solid var(--line2); border-radius: var(--r); outline: 0; transition: border-color .15s, box-shadow .15s;
}
.code-in:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.code-in::placeholder { color: var(--bg4); }
.login-links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 6px -10px 0; }
button.link { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: 14px; }
.link-muted { color: var(--tx2); }
.link-muted:hover { background: var(--bg3); }
.reg-steps { display: flex; gap: 6px; list-style: none; margin: 22px 0 0; padding: 0; counter-reset: rs; }
.reg-steps li { flex: 1; counter-increment: rs; font-size: 12px; color: var(--tx3); padding-top: 10px; border-top: 3px solid var(--bg4); }
.reg-steps li::before { content: counter(rs) '. '; }
.reg-steps li.done { color: var(--tx2); border-top-color: var(--ok); }
.reg-steps li.on { color: var(--tx); border-top-color: var(--ac); font-weight: 600; }
.login-card form + .reg-steps { margin-top: 18px; }
.wait-form { margin-top: 18px; }
.pw-meter { display: block; height: 4px; border-radius: 4px; background: var(--bg4); overflow: hidden; margin-top: 2px; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }
.pw-match { font-size: 12px; }
.pw-match.ok { color: var(--ok); }
.pw-match.bad { color: var(--red); }
.field > span small { font-weight: 400; }

/* Admin: Freischaltungen & Anträge */
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 20px; }
.todo-i { display: flex; align-items: center; gap: 12px; padding: 14px 18px; transition: background .15s; }
.todo-i:hover { background: var(--bg3); }
.todo-i > i:first-child { font-size: 20px; color: var(--warn); }
.todo-i span { flex: 1; }
.todo-i > i:last-child { color: var(--tx3); }
.pend { margin-bottom: 20px; box-shadow: 0 0 0 1px var(--warn-soft), 0 0 0 1px var(--line); }
.pend h2, .admin .card h2 { display: flex; align-items: center; gap: 8px; }
.pend > p { margin: 4px 0 14px; font-size: 13px; }
.pend-list { display: flex; flex-direction: column; gap: 8px; }
.pend-i { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r); background: var(--bg); }
.pend-link:hover { background: var(--bg3); }
.pend-info { flex: 1; min-width: 180px; }
.pend-info b { display: block; }
.pend-info small { color: var(--tx2); font-size: 12px; }
.pend-rej { display: inline-flex; gap: 6px; align-items: center; }
.input-sm { height: 30px; padding: 0 10px; font-size: 13px; width: 180px; }
.vd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .vd { grid-template-columns: minmax(0, 1fr); } }
.vd-user { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.vd-user b { font-size: 17px; }
.vd-user small { display: block; font-size: 12px; }
.vd-dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.vd-dl dt { font-size: 12px; color: var(--tx3); margin-bottom: 3px; }
.vd-dl dd { font-size: 14px; word-break: break-word; }
.vd-dl a { color: var(--ac); }
.vd-check { margin: 16px 0; padding: 12px 14px; border-radius: var(--r); background: var(--bg); font-size: 13px; }
.vd-check ul { margin: 6px 0 0 18px; color: var(--tx2); }
.vd-acts { display: flex; flex-direction: column; gap: 10px; }
.vd-rej { display: flex; gap: 8px; }
.vd-rej .input { flex: 1; }
.vd-photos { display: grid; gap: 16px; }
.vd-photos figure { margin: 0; padding: 12px; }
.vd-photos figcaption { font-size: 13px; color: var(--tx2); font-weight: 600; margin-bottom: 8px; }
.vd-photos img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 10px; background: #000; display: block; }

/* ── Sprache ──────────────────────────────────────────────────────────── */
.lang-btn {
    width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer; flex-shrink: 0;
    background: var(--bg3); box-shadow: 0 0 0 2px var(--line2); transition: box-shadow .15s, transform .15s; display: grid; place-items: center;
}
.lang-btn:hover { box-shadow: 0 0 0 2px var(--ac); }
.lang-btn:active { transform: scale(.94); }
.lang-btn .flag { width: 100%; height: 100%; display: block; }
.lang-menu { min-width: 170px; }
.lang-flag { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: inline-grid; box-shadow: 0 0 0 1px var(--line2); }
.lang-flag .flag { width: 100%; height: 100%; }
.lang-menu .mi.on { color: var(--tx); font-weight: 600; }
.lang-float { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 300; }
.lang-float .lang-btn { width: 36px; height: 36px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    @view-transition { navigation: none; }
}
