/*!
 * Any Video Multi-Embedder — creator theme
 * (c) FreddyDeveloper. All rights reserved.
 */

:root {
    --bg: #f4f5f9;
    --paper: #ffffff;
    --ink: #0f1020;
    --ink-2: #4c5068;
    --ink-3: #8a8ea3;
    --line: #dfe2ec;
    --blue: #2541ff;
    --blue-deep: #1428c8;
    --yellow: #ffe100;
    --red: #e5243b;
    --green: #16a34a;
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 10px;
    --shadow: 0 1px 2px rgba(15,16,32,.06), 0 8px 24px rgba(15,16,32,.06);
    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --wrap: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
    margin: 0; min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    font-family: var(--font); font-size: 16px; line-height: 1.55; font-weight: 450;
    color: var(--ink); background: var(--bg);
    overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--blue); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: rgba(37,65,255,.08); color: var(--blue-deep); padding: 1px 6px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ===================== Type ===================== */
.display {
    font-family: var(--font);
    font-weight: 900;
    font-stretch: 125%;
    font-variation-settings: "wdth" 125;
    text-transform: uppercase;
    line-height: .92;
    letter-spacing: -.01em;
    margin: 0;
}
.h1 { font-size: clamp(34px, 4.6vw, 52px); }
.h2 { font-size: clamp(28px, 3.6vw, 44px); }
.lede { color: var(--ink-2); margin: 12px 0 24px; font-size: 17px; }
.hint { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 62ch; }

/* ===================== Buttons ===================== */
.btn {
    --b: var(--ink); --c: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 800 15px/1 var(--font); letter-spacing: .01em;
    color: var(--c); background: var(--b);
    border: 2px solid var(--b); border-radius: 999px;
    padding: 12px 20px; cursor: pointer; text-decoration: none !important;
    transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,16,32,.16); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-blue { --b: var(--blue); }
.btn-blue:hover { --b: var(--blue-deep); }
.btn-yellow { --b: var(--yellow); --c: var(--ink); }
.btn-red { --b: var(--red); }
.btn-quiet { --b: var(--paper); --c: var(--ink); border-color: var(--line); }
.btn-outline { --b: transparent; --c: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { --b: rgba(255,255,255,.12); }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-lg { font-size: 17px; padding: 15px 26px; }
.btn-block { width: 100%; }
.btn.is-current { box-shadow: 0 0 0 3px rgba(37,65,255,.25); }

.icon-btn {
    display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
    color: var(--ink-2); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn-red:hover { background: #fde8eb; color: var(--red); }
.inline-form { margin: 0; display: inline-flex; }

/* ===================== Top bar ===================== */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-word { font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: 19px; letter-spacing: -.01em; }
.topnav { display: flex; gap: 22px; }
.topnav a { color: var(--ink-2); font-weight: 700; font-size: 15px; }
.topnav a:hover { color: var(--ink); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.me { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; max-width: 180px; }
.me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
    --av: var(--blue);
    display: inline-grid; place-items: center; flex: none;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--av); color: #fff;
    font: 800 13px/1 var(--font); letter-spacing: .02em;
}

/* ===================== Hero ===================== */
.hero { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(255,255,255,.14), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(20,40,200,.7), transparent 70%);
}
.hero-in {
    position: relative; max-width: var(--wrap); margin: 0 auto;
    padding: clamp(40px, 6vw, 84px) var(--gutter) clamp(44px, 6vw, 80px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero-title { font-size: clamp(48px, 7.4vw, 104px); }
.hero-sub { font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.85); max-width: 46ch; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25); }
.hero-stats div { padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.25); }
.hero-stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats dt { font-size: 14px; color: rgba(255,255,255,.75); order: 2; }
.hero-stats dd { margin: 0; font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero-stats div { display: flex; flex-direction: column-reverse; }

.feature-card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 12px; box-shadow: 0 30px 60px -20px rgba(5,10,60,.55); transform: rotate(1.2deg); }
.feature-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; font-weight: 800; font-size: 15px; }
.feature-src { margin-left: auto; font-size: 13px; color: var(--ink-2); background: var(--bg); border-radius: 999px; padding: 4px 10px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(229,36,59,.18); }
.feature-foot { display: flex; align-items: center; gap: 10px; padding: 12px 6px 4px; color: var(--ink-2); font-size: 15px; }
.feature-foot b { color: var(--ink); }
.feature-empty { display: grid; place-items: center; aspect-ratio: 16/9; text-align: center; color: var(--ink-2); font-weight: 700; }

/* ===================== Player (thumbnail first) ===================== */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #0b0c18; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thumb { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.thumb:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.thumb:hover img { transform: scale(1.04); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); }
.thumb-ph {
    --ph: var(--blue);
    position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px 16px;
    background: linear-gradient(135deg, var(--ph), #0b0c18 130%);
}
.thumb-ph span { font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; color: rgba(255,255,255,.92); font-size: clamp(14px, 1.5vw, 19px); letter-spacing: -.01em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-btn {
    position: absolute; z-index: 1; left: 50%; top: 50%;
    width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(15,16,32,.72); color: #fff;
    transition: transform .15s ease, background-color .15s ease;
}
.play-btn .ico { width: 30px; height: 30px; margin-left: 4px; }
.thumb:hover .play-btn { background: var(--red); transform: scale(1.08); }
.player-big .play-btn { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--red); }
.player-big .play-btn .ico { width: 40px; height: 40px; }

/* ===================== Ticker ===================== */
.ticker { background: var(--yellow); color: var(--ink); overflow: hidden; border-bottom: 1px solid rgba(0,0,0,.08); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 14px 0; animation: ticker 38s linear infinite; }
.ticker span { font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: 20px; white-space: nowrap; }
.ticker i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===================== Content ===================== */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 64px; width: 100%; flex: 1; }

.sponsor { max-width: 860px; margin: 0 auto 48px; }
.sponsor-label { display: block; font-size: 12px; color: var(--ink-3); margin: 0 0 6px 4px; }
.carousel { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.carousel-track { position: relative; aspect-ratio: 800 / 150; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.carousel-slide.is-active { opacity: 1; z-index: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-dots { position: absolute; z-index: 3; bottom: 6px; right: 8px; display: flex; }
.carousel-dots button { width: 22px; height: 22px; border: 0; background: transparent; padding: 7px; cursor: pointer; }
.carousel-dots button::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(15,16,32,.3); transition: width .2s ease; }
.carousel-dots button.is-active::before { background: var(--ink); }

/* ---------- Add ---------- */
.add { background: var(--paper); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); margin-bottom: 64px; }
.add-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.add-head p { margin: 0; color: var(--ink-2); }
.add-form textarea {
    display: block; width: 100%; min-height: 160px; resize: vertical;
    font: 15px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--ink);
    background: var(--bg); border: 2px solid transparent; border-radius: var(--r-md); padding: 16px 18px;
    transition: border-color .15s ease, background-color .15s ease;
}
.add-form textarea:focus { outline: 0; border-color: var(--blue); background: #fff; }
.add-form textarea::placeholder { color: var(--ink-3); }
.scan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; min-height: 30px; }
.scan-status { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.scan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.scan-list li { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 10px; background: #e3f7ea; color: #0f6b32; }
.scan-list li.is-bad { background: #fde8eb; color: #b0182b; }
.add-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; flex-wrap: wrap; }

.join-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.join-cta p { margin: 12px 0 0; color: var(--ink-2); max-width: 54ch; }
.join-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Wall ---------- */
.wall-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.wall-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; color: var(--ink-3); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,65,255,.15); }
.search .ico { width: 18px; height: 18px; }
.search input { background: transparent; border: 0; outline: 0; color: var(--ink); font: 600 15px var(--font); padding: 11px 0; width: 240px; }
.seg { display: inline-flex; background: #e7e9f1; border-radius: 999px; padding: 4px; }
.seg button { font: 700 14px var(--font); color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(15,16,32,.12); }

.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 24px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    font: 700 15px var(--font); color: var(--ink); background: #e7e9f1;
    border: 0; border-radius: 10px; padding: 9px 14px; cursor: pointer;
    transition: background-color .15s ease;
}
.tabs button:hover { background: #dcdfea; }
.tabs button span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tabs button[aria-pressed="true"] span { color: rgba(255,255,255,.7); }

.grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid[data-density="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid[data-density="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }

.card { min-width: 0; }
.card-media { position: relative; }
.card-media .player { box-shadow: 0 1px 2px rgba(15,16,32,.08); }
.card-tag { position: absolute; z-index: 2; left: 10px; top: 10px; pointer-events: none; font-size: 12px; font-weight: 800; color: #fff; background: rgba(15,16,32,.72); border-radius: 6px; padding: 3px 8px; }
.card-media .player.is-playing + .card-tag { display: none; }
.card-meta { display: flex; align-items: center; gap: 10px; padding: 12px 2px 0; }
.card-by { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.card-by b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-by span { color: var(--ink-3); font-size: 14px; }
.card-actions { margin-left: auto; display: flex; gap: 2px; }

.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); font-size: 17px; background: var(--paper); border-radius: var(--r-lg); }
.more-wrap { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Danger ---------- */
.danger {
    margin-top: 80px; padding: 24px clamp(20px, 3vw, 32px);
    border: 1px solid #f3c2c9; background: #fff7f8; border-radius: var(--r-lg);
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
}
.danger h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.danger p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.danger-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.danger-form .field input { min-width: 220px; }

/* ===================== Forms ===================== */
.form { display: grid; gap: 18px; }
.field { display: block; }
.field-label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 7px; }
.field input {
    width: 100%; font: 600 16px var(--font); color: var(--ink);
    background: var(--paper); border: 1px solid #cdd1de; border-radius: 12px; padding: 13px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,65,255,.15); }
.field-help { display: block; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 74px; }
.pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 700 13px var(--font); color: var(--blue); background: transparent; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.pass-toggle:hover { background: rgba(37,65,255,.08); }
.meter { display: block; height: 6px; margin-top: 10px; background: #e7e9f1; border-radius: 6px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s ease, background-color .25s ease; }
.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-weight: 700; background: #fde8eb; color: #9b1426; }
.alert div + div { margin-top: 4px; }

/* ===================== Auth ===================== */
.page-auth .footer-word { display: none; }
.auth { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 63px); }
.auth-side { position: relative; overflow: hidden; background: var(--blue); color: #fff; display: flex; align-items: flex-end; padding: clamp(28px, 4vw, 56px); }
.mosaic {
    position: absolute; inset: -10% -20% auto -10%;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    transform: rotate(-8deg); opacity: .55;
}
.mosaic img, .mosaic span { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; display: block; background: rgba(255,255,255,.14); }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,65,255,.2) 0%, rgba(37,65,255,.85) 55%, var(--blue) 80%); }
.auth-side-copy { position: relative; z-index: 1; max-width: 520px; }
.auth-headline { font-size: clamp(40px, 5vw, 72px); }
.auth-side-copy p:last-child { font-size: 18px; color: rgba(255,255,255,.85); margin: 18px 0 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 64px) var(--gutter); background: var(--paper); }
.auth-box { width: 100%; max-width: 420px; }
.switch { margin: 22px 0 0; text-align: center; color: var(--ink-2); }

/* ===================== Toasts ===================== */
.toast-stack { position: fixed; z-index: 60; top: 78px; right: 16px; display: flex; flex-direction: column; gap: 10px; width: min(400px, calc(100vw - 32px)); }
.toast {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 10px 14px 16px;
    box-shadow: 0 12px 30px rgba(15,16,32,.25);
    animation: toast-in .35s cubic-bezier(.2,1.2,.4,1);
}
.toast.is-leaving { animation: toast-out .25s ease forwards; }
.toast-dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--yellow); }
.toast-success .toast-dot { background: #4ade80; }
.toast-error .toast-dot { background: #ff5a6e; }
.toast-body { flex: 1; font-weight: 600; font-size: 15px; }
.toast-close { flex: none; background: none; border: 0; cursor: pointer; color: rgba(255,255,255,.6); padding: 2px; border-radius: 6px; }
.toast-close:hover { color: #fff; }
.toast-close .ico { width: 18px; height: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ===================== Modal ===================== */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(15,16,32,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card { width: min(420px, 100%); background: var(--paper); border-radius: var(--r-lg); padding: 28px 24px 22px; box-shadow: 0 30px 80px rgba(15,16,32,.35); animation: modal-in .25s ease; }
.modal h3 { font-size: 22px; font-weight: 900; margin: 0 0 8px; }
.modal p { margin: 0 0 24px; color: var(--ink-2); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ===================== Theater ===================== */
.theater { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(5,6,14,.92); }
.theater-frame { width: min(1200px, 100%); animation: modal-in .25s ease; }
.theater-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 0 10px; color: #fff; }
.theater-title { font-weight: 800; font-size: 17px; }
.theater-bar .icon-btn { color: #fff; background: rgba(255,255,255,.12); }
.theater-bar .icon-btn:hover { background: rgba(255,255,255,.22); }
.theater-screen { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 100px); margin: 0 auto; background: #000; border-radius: var(--r-md); overflow: hidden; }
.theater-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===================== Footer ===================== */
.footer { background: var(--ink); color: #fff; margin-top: auto; }
.footer-in { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 24px; }
.footer-word {
    margin: 0 0 40px; font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase;
    font-size: clamp(38px, 8.6vw, 124px); line-height: .9; letter-spacing: -.02em; color: var(--yellow);
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 10px; }
.footer-brand strong { display: block; font-weight: 800; }
.footer-brand span { color: rgba(255,255,255,.65); font-size: 14px; }
.footer-brand a, .copyright a { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.social a:hover { transform: translateY(-2px); }
.social img { width: 20px; height: 20px; }
.copyright { margin: 20px 0 0; color: rgba(255,255,255,.6); font-size: 14px; }

/* ===================== Admin ===================== */
.btn-ink { --b: var(--ink); }
.page-admin .footer-word { display: none; }
.admin { padding-top: clamp(28px, 4vw, 48px); }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-head .lede { margin-bottom: 0; }
.admin-stats { display: flex; gap: 12px; margin: 0; }
.admin-stats div { background: var(--paper); border-radius: var(--r-md); padding: 14px 20px; min-width: 130px; box-shadow: var(--shadow); display: flex; flex-direction: column-reverse; }
.admin-stats dt { font-size: 14px; color: var(--ink-2); }
.admin-stats dd { margin: 0; font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.panel-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.panel-card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.status-line { display: flex; align-items: center; gap: 10px; color: var(--ink-2); margin: 0 0 18px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status-dot.is-on { background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.status-dot.is-off { background: var(--ink-3); box-shadow: 0 0 0 4px rgba(138,142,163,.2); }
.form-tight { gap: 14px; }
.form-tight .btn { justify-self: start; }
.members-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.members-head h2 { margin: 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.member-cell { display: inline-flex; align-items: center; gap: 10px; }
.role { font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--bg); border-radius: 999px; padding: 3px 10px; }
.role-admin { background: var(--ink); color: #fff; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions-in { display: inline-flex; gap: 8px; align-items: center; }
.muted { color: var(--ink-3); font-size: 14px; }
.empty-row { text-align: center; color: var(--ink-2); padding: 20px 0 6px; margin: 0; }

/* ===================== Landing (organizer) ===================== */
.mock { padding: 16px; transform: rotate(1.2deg); }
.mock-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mock-tabs span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: #e7e9f1; border-radius: 8px; padding: 6px 10px; }
.mock-tabs span.is-on { background: var(--ink); color: #fff; }
.mock-tabs b { font-weight: 700; color: var(--ink-3); }
.mock-tabs .is-on b { color: rgba(255,255,255,.7); }
.mock-tabs i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mock-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.mock-thumb { flex: none; width: 112px; aspect-ratio: 16/9; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); }
.mock-thumb .ico { width: 22px; height: 22px; }
.mock-lines { flex: 1; display: grid; gap: 7px; }
.mock-lines i { display: block; height: 9px; border-radius: 5px; background: #e2e5ee; }
.mock-lines i:first-child { background: #c9cddb; width: 92%; }
.mock-lines i.short { width: 45%; }
.mock-check { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e3f7ea; color: var(--green); }
.mock-row:first-of-type .mock-check { background: var(--green); color: #fff; }

.steps { margin-bottom: 64px; }
.steps-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps-list li { background: var(--paper); border-radius: var(--r-lg); padding: 26px 24px 24px; box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 20px; margin-bottom: 16px; }
.steps-list h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.steps-list p { margin: 0; color: var(--ink-2); }

.features { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-bottom: 72px; }
.features-intro { position: sticky; top: 100px; }
.features-intro p { color: var(--ink-2); font-size: 17px; margin: 18px 0 26px; max-width: 46ch; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(37,65,255,.09); color: var(--blue); }
.feature-ico .ico { width: 21px; height: 21px; }
.feature-list li:nth-child(3) .feature-ico { background: #fff4cc; color: #c99400; }
.feature-list h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 800; }
.feature-list p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.featured { margin-bottom: 56px; }
.featured-onboard { margin-top: 48px; }
.section-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; }
.featured-grid { margin-top: 4px; }
.featured-grid .card-meta { padding-top: 10px; }
.featured-wrap.is-collapsed .card:nth-child(n+10) { display: none; }
.count-chip { display: inline-block; vertical-align: middle; font-size: 16px; font-stretch: 100%; font-variation-settings: "wdth" 100; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px; margin-left: 6px; letter-spacing: 0; }
.feature-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.feature-link h2 { margin-bottom: 6px !important; }

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 64px); align-items: start; margin-bottom: 64px; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 17px; font-weight: 800; }
.faq-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); transition: transform .2s ease, background-color .2s ease; }
.faq-icon .ico { width: 16px; height: 16px; }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--yellow); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); max-width: 68ch; }

.featured-meta { padding-top: 12px; }
.featured-meta .vtitle { margin-bottom: 6px; }
.untitled { color: var(--ink-3); font-weight: 600; font-style: italic; }

/* ===================== Inbox ===================== */
.inbox, .channels-page { padding-top: clamp(28px, 4vw, 44px); }
.inbox-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.inbox-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }
.inbox-sub b { color: var(--ink); }
.inbox-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inbox-actions .btn .ico { width: 17px; height: 17px; }
.inbox-actions [data-refresh].is-busy .ico { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.switch-btn { display: inline-flex; align-items: center; gap: 10px; font: 700 14px var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 8px; cursor: pointer; }
.switch-track { position: relative; width: 36px; height: 22px; border-radius: 999px; background: #cfd3df; transition: background-color .15s ease; }
.switch-track span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s ease; }
.switch-btn[aria-pressed="true"] .switch-track { background: var(--blue); }
.switch-btn[aria-pressed="true"] .switch-track span { transform: translateX(14px); }

.tabs .tab {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    font: 700 15px var(--font); color: var(--ink); background: #e7e9f1;
    border-radius: 10px; padding: 9px 14px; text-decoration: none; transition: background-color .15s ease;
}
.tabs .tab:hover { background: #dcdfea; text-decoration: none; }
.tabs .tab span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tabs .tab.is-on { background: var(--ink); color: #fff; }
.tabs .tab.is-on span { color: rgba(255,255,255,.7); }
.tabs .tab span:not(:empty) { min-width: 1ch; }
.tabs .tab-add { background: transparent; border: 1px dashed #c3c8d6; color: var(--ink-2); }
.tabs .tab-add .ico { width: 16px; height: 16px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--blue)); flex: none; }
.dot-lg { width: 14px; height: 14px; }

.bulk { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 18px; color: var(--ink-2); font-weight: 700; }
.bulk .btn .ico { width: 16px; height: 16px; }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 22px; }
.vcard { min-width: 0; transition: opacity .25s ease, transform .25s ease; }
.vcard.is-leaving { opacity: 0; transform: scale(.96); }
.vthumb { all: unset; position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #0b0c18; cursor: pointer; }
.vthumb:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.vthumb:hover img { transform: scale(1.04); }
.vthumb:hover .play-btn { background: var(--red); transform: scale(1.08); }
.vthumb .play-btn { width: 54px; height: 54px; margin: -27px 0 0 -27px; opacity: 0; transition: opacity .15s ease, transform .15s ease, background-color .15s ease; }
.vthumb:hover .play-btn, .vthumb:focus-visible .play-btn { opacity: 1; }
.vthumb .play-btn .ico { width: 26px; height: 26px; }
.vbadge { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 800; color: #fff; background: var(--red); border-radius: 6px; padding: 2px 7px; }
.vcard .player { border-radius: var(--r-md); }
.vbody { padding-top: 12px; }
.vtitle { margin: 0 0 10px; font-size: 16px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vtitle a { color: var(--ink); font-weight: 800; }
.vtitle a:hover { color: var(--blue); text-decoration: none; }
.vmeta { display: flex; align-items: center; gap: 10px; }
.vavatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.vby { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.vby b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vby > span { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vby .star { font-size: 13px; margin-left: 2px; }
.vby .dot { width: 7px; height: 7px; }
.star { color: #f5b301; }
.icon-btn-check { border: 1px solid var(--line); }
.icon-btn-check:hover { background: var(--green); border-color: var(--green); color: #fff; }

.caught-up { text-align: center; padding: 64px 16px; background: var(--paper); border-radius: var(--r-lg); }
.caught-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e3f7ea; color: var(--green); margin-bottom: 16px; }
.caught-icon .ico { width: 32px; height: 32px; }
.caught-up p { margin: 12px 0 0; color: var(--ink-2); }

.onboard { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); max-width: 860px; margin: 0 auto; }
.onboard-form textarea, .textarea {
    display: block; width: 100%; min-height: 130px; resize: vertical;
    font: 15px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--ink);
    background: var(--bg); border: 2px solid transparent; border-radius: var(--r-md); padding: 14px 16px;
}
.onboard-form textarea:focus, .textarea:focus { outline: 0; border-color: var(--blue); background: #fff; }
.onboard-form .add-foot { margin-top: 16px; }

.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }

/* ===================== Channels page ===================== */
.ch-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.channels-page .panel-card { margin-bottom: 20px; }
.form-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.form-row .field { flex: 1 1 180px; }
select, .field select {
    width: 100%; font: 600 15px var(--font); color: var(--ink);
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234c5068' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid #cdd1de; border-radius: 12px; padding: 12px 38px 12px 14px; appearance: none; cursor: pointer;
}
select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,65,255,.15); }
.select-sm { width: auto; max-width: 170px; font-size: 14px; padding: 7px 32px 7px 12px; border-radius: 999px; background-position: right 12px center; }

.cat-list { list-style: none; margin: 0 0 18px; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list summary { display: flex; align-items: center; gap: 10px; padding: 12px 2px; cursor: pointer; list-style: none; }
.cat-list summary::-webkit-details-marker { display: none; }
.cat-list summary b { font-weight: 800; }
.cat-edit { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--blue); }
details[open] > summary .cat-edit { color: var(--ink-3); }
.cat-form { padding: 4px 2px 12px; }
.cat-delete { padding: 0 2px 14px; }
.new-cat { padding-top: 4px; }
.new-cat .btn { justify-self: start; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches label { width: 28px; height: 28px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.0); transition: transform .1s ease; }
.swatches label:hover { transform: scale(1.1); }
.swatches input:checked + label { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--c); }
.swatches input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 4px; }

.import summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.import summary::-webkit-details-marker { display: none; }
.import summary h2 { margin: 0; }
.import-steps { margin: 18px 0 20px; padding-left: 22px; color: var(--ink-2); display: grid; gap: 6px; }
.import-steps b { color: var(--ink); }
.file-field input[type=file] { font: 600 14px var(--font); padding: 10px; background: var(--bg); border: 1px dashed #c3c8d6; }

.ch-list { list-style: none; margin: 0; padding: 0; }
.ch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ch-row:last-child { border-bottom: 0; }
.ch-id { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; color: var(--ink); text-decoration: none !important; }
.ch-id > span { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ch-id b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-id:hover b { color: var(--blue); }
.ch-id small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.ch-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.ch-actions { display: flex; align-items: center; gap: 6px; }
.pill { font-size: 12px; font-weight: 800; color: var(--blue-deep); background: rgba(37,65,255,.1); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.star-btn { color: #c3c8d6; }
.star-btn:hover { color: #f5b301; background: #fff6d6; }
.star-btn.is-on { color: #f5b301; }
.warn { color: var(--red); font-weight: 700; }

.icon-btn-check.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.toast-action { font: 800 14px var(--font); color: var(--yellow); background: none; border: 0; padding: 0 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ===================== Library ===================== */
.lib-add { margin-bottom: 24px; }
.lib-add summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.lib-add summary::-webkit-details-marker { display: none; }
.lib-add summary h2 { margin: 0; }
.lib-form { margin-top: 18px; }
.lib-form .form-row { margin-top: 14px; }
.lib-form .hint { margin-top: 14px; }

.tabs .tab .shared-mark { display: inline-grid; place-items: center; color: var(--blue); font-style: normal; }
.tabs .tab.is-on .shared-mark { color: var(--yellow); }
.tabs .tab .shared-mark .ico { width: 14px; height: 14px; }

.share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px 10px 16px; margin: -6px 0 22px; }
.share-bar.is-shared { border-color: rgba(37,65,255,.35); background: #f3f5ff; }
.share-state { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; margin-right: auto; }
.share-state .ico { width: 18px; height: 18px; color: var(--ink-3); }
.share-bar.is-shared .share-state .ico { color: var(--blue); }
.share-state b { color: var(--ink); }
.share-url { flex: 1 1 260px; min-width: 0; font: 600 14px ui-monospace, Menlo, Consolas, monospace; color: var(--ink); background: #fff; border: 1px solid #cdd1de; border-radius: 999px; padding: 8px 14px; }
.share-url:focus { outline: 0; border-color: var(--blue); }

.lib-tools { display: flex; justify-content: flex-end; margin: -8px 0 18px; }
.lib-tools .search input { width: 260px; }
.lib-card .vbody { padding-top: 12px; }
.lib-card .vtitle { margin-bottom: 8px; }
.lib-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lib-date { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-3); }
.lib-date .dot { width: 7px; height: 7px; }
.lib-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.lib-actions .select-sm { max-width: 140px; margin-right: 4px; }
.lib-edit { position: relative; }
.lib-edit summary { list-style: none; }
.lib-edit summary::-webkit-details-marker { display: none; }
.lib-edit[open] summary { background: var(--bg); color: var(--ink); }
.lib-edit-form { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; width: min(300px, 80vw); display: grid; gap: 10px; background: var(--paper); border-radius: var(--r-md); padding: 14px; box-shadow: 0 16px 40px rgba(15,16,32,.2); }
.lib-edit-form .btn { justify-self: start; }

.share-page { padding-top: clamp(28px, 4vw, 48px); }
.share-head { margin-bottom: 26px; }
.share-owner { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; margin-bottom: 14px; }
.share-owner b { color: var(--ink); }
.share-head h1 { display: flex; align-items: center; gap: 14px; }
.dot-xl { width: 22px; height: 22px; }
.share-cta { margin-top: 56px; }

/* Admin API key */
.api-title { margin-top: 28px !important; padding-top: 24px; border-top: 1px solid var(--line); }
.api-remove { margin-top: 10px; }
.key-status { display: flex; align-items: center; gap: 10px; color: var(--ink-2); margin: 0 0 16px; }
.key-mask { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg); padding: 2px 8px; border-radius: 6px; color: var(--ink); }

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
    .grid[data-density="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .topnav { display: none; }
    .topnav-app { display: flex; gap: 14px; }
    .topnav-app a { font-size: 14px; }
    .hero-in { grid-template-columns: 1fr; }
    .feature-card { transform: none; }
    .grid, .grid[data-density="3"], .grid[data-density="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .danger { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .ch-grid { grid-template-columns: 1fr; }
    .steps-list { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .faq { grid-template-columns: 1fr; }
    .features-intro { position: static; }
    .mock { transform: none; }
    .auth { grid-template-columns: 1fr; min-height: 0; }
    .auth-side { min-height: 260px; }
    .auth-headline { font-size: clamp(34px, 8vw, 52px); }
}
@media (max-width: 640px) {
    .brand-word { display: none; }
    .me-name { display: none; }
    .me { display: none; }
    .topbar-in { gap: 12px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-stats div { padding-right: 16px; margin-right: 16px; }
    .grid, .grid[data-density] { grid-template-columns: 1fr; }
    .seg { display: none; }
    .wall-tools, .search { width: 100%; }
    .search input { width: 100%; }
    .add-foot .btn, .join-actions, .join-actions .btn { width: 100%; }
    .danger-form, .danger-form .field, .danger-form .btn { width: 100%; }
    .danger-form .field input { min-width: 0; }
    .toast-stack { top: auto; bottom: 16px; }
    .ticker span { font-size: 16px; }
    .vgrid { grid-template-columns: 1fr; }
    .lib-tools .search, .lib-tools .search input { width: 100%; }
    .share-state { width: 100%; }
    .feature-list { grid-template-columns: 1fr; gap: 22px; }
    .inbox-actions { width: 100%; }
    .ch-actions { width: 100%; justify-content: flex-end; }
    .vthumb .play-btn { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
