/* =========================================================
   ECHO, by Negecace — design system
   Dark navy base with the logo's blue and sky-blue accents.
   ========================================================= */
:root {
  --bg: #070B14; --bg2: #0D1424; --card: #111A2E; --card2: #16223A; --line: #1F2D49;
  --text: #EAF1FB; --muted: #8C9AB3; --faint: #5D6B85;
  --primary: #2F7BD8; --secondary: #5BB4F2; --accent: var(--primary);
  --danger: #EF4B5F; --ok: #34C38F; --warn: #F2B544; --like: #FF3D6E;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  --side: 248px; --bottom: 64px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F3F6FB; --bg2: #FFFFFF; --card: #FFFFFF; --card2: #EEF3FA; --line: #DCE4F0;
  --text: #0E1626; --muted: #5A6880; --faint: #8D9AB0; --shadow: 0 8px 24px rgba(16,32,64,.08);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; margin: 0 0 .7em; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 1em 0 .5em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.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: -999px; top: 8px; z-index: 999; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); } .small, small { font-size: .85em; } .center { text-align: center; }
.hint { color: var(--muted); font-size: .85rem; margin: .35em 0 0; display: block; }
.ok { color: var(--ok); } .bad, .danger-text, .error-text { color: var(--danger); }
.link { color: var(--secondary); background: none; border: 0; padding: 0; font-weight: 600; }
.link:hover { text-decoration: underline; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline { display: inline; } .inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.inline-form input, .inline-form select { flex: 1 1 160px; }

/* ---------- Layout ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; z-index: 50; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(91,180,242,.15), 0 6px 20px rgba(47,123,216,.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .admin-nav a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; position: relative; }
.side-nav a i, .admin-nav a i { width: 22px; text-align: center; font-size: 1.05rem; }
.side-nav a:hover, .admin-nav a:hover { background: var(--card); color: var(--text); }
.side-nav a.active, .admin-nav a.active { background: linear-gradient(90deg, rgba(47,123,216,.22), rgba(47,123,216,.04)); color: var(--text); }
.side-nav a.active i, .admin-nav a.active i { color: var(--secondary); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--like); color: #fff; font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; margin-left: auto; }
.side-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.side-me-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; font-weight: 600; min-width: 0; }
.side-me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.side-me:hover { background: var(--card); }
.side-theme { display: flex; gap: 6px; }
.lang-btn { font-size: .75rem; font-weight: 800; }
.side-links { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .75rem; color: var(--faint); }
.side-links a:hover { color: var(--text); }
.copyright { font-size: .72rem; color: var(--faint); margin: 0; }
.main { margin-left: var(--side); min-height: 100vh; }
.page { max-width: 1100px; margin: 0 auto; padding: 28px 24px 60px; }
.page-narrow { max-width: 760px; }
.bottom-nav { display: none; }
section { margin-bottom: 28px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 12px; }
.section-title i { color: var(--secondary); }

@media (max-width: 899px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: calc(var(--bottom) + env(safe-area-inset-bottom)); }
  .page { padding: 18px 16px 40px; }
  .bottom-nav { display: flex; position: fixed; inset: auto 0 0 0; height: calc(var(--bottom) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(7,11,20,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 60; }
  [data-theme="light"] .bottom-nav { background: rgba(255,255,255,.94); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); position: relative; }
  .bottom-nav a i { font-size: 1.2rem; }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav .badge { position: absolute; top: 6px; left: 52%; margin: 0; }
  .bottom-nav .nav-create { flex: 0 0 62px; }
  .bottom-nav .nav-create i { width: 50px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 6px 18px rgba(47,123,216,.45); font-size: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.card-sub { background: var(--card2); border-radius: var(--radius-sm); padding: 14px; margin-top: 12px; }
.card-sub h3 { margin-top: 0; font-size: .95rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .92rem; transition: transform .1s, filter .15s, background .15s; white-space: nowrap; line-height: 1.2; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 6px 18px rgba(47,123,216,.3); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--card2); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--secondary); }
.btn-danger { background: rgba(239,75,95,.12); color: var(--danger); border-color: rgba(239,75,95,.35); }
.btn-danger:hover { background: rgba(239,75,95,.2); }
.btn-block { width: 100%; } .btn-lg { padding: 13px 22px; font-size: 1rem; } .btn-sm { padding: 7px 13px; font-size: .82rem; }
.btn.icon-only { width: 40px; height: 40px; padding: 0; }
.btn.is-following { background: var(--card2); color: var(--text); box-shadow: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: inline-grid; place-items: center; font-size: 1rem; }
.icon-btn:hover { background: var(--card2); }
.icon-btn.primary { background: var(--primary); color: #fff; }
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; border: 1px solid; font-size: .92rem; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: rgba(52,195,143,.1); border-color: rgba(52,195,143,.35); }
.alert-error { background: rgba(239,75,95,.1); border-color: rgba(239,75,95,.35); }
.alert-info { background: rgba(91,180,242,.1); border-color: rgba(91,180,242,.35); }
.main > .alert { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 90; max-width: 92vw; box-shadow: var(--shadow); background: var(--card); animation: drop 4.5s forwards; }
@keyframes drop { 0% { opacity: 0; transform: translate(-50%, -12px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -12px); visibility: hidden; } }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--card2); border: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.pill-ok, .status-published, .status-active, .status-approved { color: var(--ok); border-color: rgba(52,195,143,.35); background: rgba(52,195,143,.1); }
.pill-warn, .status-pending, .status-scheduled, .status-suspended, .status-deactivated { color: var(--warn); border-color: rgba(242,181,68,.35); background: rgba(242,181,68,.1); }
.status-removed, .status-rejected, .status-banned { color: var(--danger); border-color: rgba(239,75,95,.35); background: rgba(239,75,95,.1); }
.pill-pin { color: var(--secondary); } .pill-sponsor { background: rgba(255,255,255,.18); color: #fff; border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.chip small { color: var(--muted); }
.chip:hover, .chip.active { border-color: var(--secondary); background: rgba(47,123,216,.14); }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); font-weight: 600; font-size: .86rem; cursor: pointer; transition: all .15s; }
.chip-check input:checked + span { background: rgba(47,123,216,.2); border-color: var(--secondary); color: var(--text); }
.chip-check input:focus-visible + span { outline: 2px solid var(--secondary); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs a.active { color: var(--text); border-color: var(--secondary); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.pager a, .pager .cur { padding: 7px 13px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.pager .cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state > i { font-size: 2.6rem; color: var(--faint); margin-bottom: 14px; }
.empty-state.small { padding: 34px 16px; }
.empty-state.small > i { font-size: 1.8rem; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(91,180,242,.2); border-top-color: var(--secondary); animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: rgba(17,26,46,.96); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; box-shadow: var(--shadow); max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 700; font-size: .85rem; color: var(--muted); padding: 0; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(91,180,242,.15); }
textarea { resize: vertical; }
input[type=color] { width: 64px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 3px; }
input[type=file] { font-size: .85rem; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--secondary); }
.code-input { font-size: 1.4rem; letter-spacing: .3em; text-align: center; max-width: 220px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 3px; accent-color: var(--primary); width: 17px; height: 17px; flex: none; }
.radio-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.radio-row:hover { background: var(--card2); }
.radio-row input { accent-color: var(--primary); }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--secondary); }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span, .seg-links a { display: block; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer; }
.seg input:checked + span, .seg-links a.active { background: var(--card2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); width: 34px; height: 34px; }

/* Avatars & users */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card2); }
.avatar.sm { width: 32px; height: 32px; } .avatar.lg { width: 64px; height: 64px; } .avatar.xl { width: 104px; height: 104px; }
.avatar.sys { display: grid; place-items: center; } .avatar.sys img { width: 100%; height: 100%; border-radius: 50%; }
.verified { color: var(--secondary); font-size: .85em; }
.list { display: flex; flex-direction: column; }
.list.card { padding: 6px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 12px; }
.user-row:hover { background: var(--card2); }
.user-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.user-row-main > span { display: flex; flex-direction: column; min-width: 0; }
.user-row-main b, .user-row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row-main small { color: var(--muted); }
.sound-ico, .sg-ico { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: grid; place-items: center; flex: none; font-weight: 800; }
.big-ico { width: 84px; height: 84px; border-radius: 20px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; flex: none; }
.list-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.list-head h1 { margin: 0 0 4px; }
.list-head > div:nth-child(2) { flex: 1; }

/* Video grid */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.video-card { position: relative; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: var(--card2); display: block; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-card:hover img { transform: scale(1.04); }
.video-card::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.vc-views { position: absolute; left: 8px; bottom: 8px; z-index: 1; color: #fff; font-weight: 700; font-size: .8rem; display: flex; gap: 5px; align-items: center; }
.vc-user { position: absolute; left: 8px; top: 8px; z-index: 1; color: #fff; font-size: .72rem; font-weight: 700; display: flex; gap: 5px; align-items: center; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.vc-user img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.vc-badge { position: absolute; right: 8px; top: 8px; z-index: 1; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.video-card-wrap { display: flex; flex-direction: column; gap: 6px; }
.move-form select { padding: 6px 10px; font-size: .78rem; }
@media (max-width: 599px) { .video-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; } .video-card { border-radius: 4px; } .vc-user { display: none; } }

/* Search */
.search-bar { position: relative; display: flex; align-items: center; margin-bottom: 20px; }
.search-bar > i { position: absolute; left: 16px; color: var(--muted); }
.search-bar input[type=search] { padding: 14px 16px 14px 44px; border-radius: 999px; font-size: 1rem; }
.suggest-box { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 40; padding: 6px; max-height: 60vh; overflow-y: auto; }
.suggest-box a { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.suggest-box a:hover { background: var(--card2); }
.suggest-box a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.suggest-box small { color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: all .15s; }
.cat-card i { font-size: 1.3rem; color: var(--secondary); margin-bottom: 4px; }
.cat-card span { font-weight: 700; } .cat-card small { color: var(--muted); }
.cat-card:hover { border-color: var(--secondary); transform: translateY(-2px); }

/* Profile */
.profile-page { padding-top: 0; }
.profile-cover { height: 190px; margin: 0 -24px; background: linear-gradient(135deg, #0F2246, var(--accent) 120%); background-size: cover; background-position: center; border-radius: 0 0 24px 24px; }
.profile-head { display: flex; gap: 22px; align-items: flex-start; margin-top: -48px; padding: 0 8px; }
.profile-head .avatar.xl { border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.profile-id { padding-top: 54px; flex: 1; min-width: 0; }
.profile-id h1 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-id > p { margin: 2px 0 10px; }
.stats { list-style: none; display: flex; gap: 20px; padding: 0; margin: 10px 0 14px; flex-wrap: wrap; }
.stats b { font-size: 1.1rem; margin-right: 3px; }
.stats a:hover { text-decoration: underline; }
.bio { white-space: pre-line; margin: 14px 0 6px; }
.tag, .mention { color: var(--secondary); font-weight: 600; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 190px; z-index: 30; box-shadow: var(--shadow); }
.dropdown-menu button { display: flex; gap: 10px; align-items: center; width: 100%; background: none; border: 0; padding: 10px 12px; border-radius: 8px; text-align: left; font-weight: 600; }
.dropdown-menu button:hover { background: var(--card2); }
@media (max-width: 899px) {
  .profile-cover { margin: 0 -16px; height: 140px; }
  .profile-head { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .profile-id { padding-top: 0; }
  .profile-id h1, .stats, .profile-id .btn-row { justify-content: center; }
}

/* Notifications */
.notif { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; position: relative; }
.notif:hover { background: var(--card2); }
.notif.unread { background: rgba(47,123,216,.08); }
.notif.unread::before { content: ''; position: absolute; left: 3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); transform: translateY(-50%); }
.notif-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .92rem; }
.notif-text small { color: var(--muted); }
.notif-thumb { width: 42px; height: 56px; border-radius: 6px; object-fit: cover; }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.settings-nav a, .settings-logout { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); background: none; border: 0; width: 100%; text-align: left; }
.settings-nav a i, .settings-logout i { width: 18px; text-align: center; }
.settings-nav a:hover, .settings-nav a.active, .settings-logout:hover { background: var(--card); color: var(--text); }
.settings-logout { color: var(--danger) !important; margin-top: 10px; }
.avatar-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-edit img { border-radius: 50%; }
.twofa-setup { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
#qrcode { background: #fff; padding: 10px; border-radius: 12px; }
.steps { padding-left: 20px; } .steps li { margin: 6px 0; }
@media (max-width: 899px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; overflow-x: auto; position: static; scrollbar-width: none; }
  .settings-nav a, .settings-logout { white-space: nowrap; width: auto; }
  .settings-nav form { flex: none; } .settings-logout { margin: 0; }
}

/* Tables */
.table-wrap { overflow-x: auto; }
.table-wrap.card { padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.vt { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.vt img:not(.avatar) { width: 40px; height: 56px; border-radius: 6px; object-fit: cover; }
.vt span { display: flex; flex-direction: column; }
.vt small { color: var(--muted); }
.thumb-sm { width: 34px; height: 46px; border-radius: 6px; object-fit: cover; }

/* Studio & admin stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; }
.stat i { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(47,123,216,.15); color: var(--secondary); }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.stat b { font-size: 1.3rem; }
.stat small { grid-column: 2; font-weight: 700; } .stat .up { color: var(--ok); } .stat .down { color: var(--danger); }
.stat.warn { border-color: rgba(242,181,68,.5); } .stat.warn i { background: rgba(242,181,68,.15); color: var(--warn); }
a.stat:hover { border-color: var(--secondary); }
.charts .card { margin-bottom: 0; }
.calendar-list { list-style: none; padding: 0; margin: 0; } .calendar-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.calendar-list time { color: var(--muted); min-width: 170px; }
.meter { height: 8px; background: var(--card2); border-radius: 4px; overflow: hidden; margin: -6px 0 18px; }
.meter div { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

/* Legal / prose */
.prose h2 { margin-top: 1.6em; } .prose p, .prose li { color: var(--text); opacity: .92; } .prose ul { padding-left: 20px; }
.prose a { color: var(--secondary); }
.legal-nav { justify-content: center; }

/* ---------- Auth ---------- */
.auth-page .main { margin: 0; padding: 0; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 30% 30%, #12305A, #070B14 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.auth-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.auth-rings span { position: absolute; border: 2px solid rgba(91,180,242,.18); border-radius: 50%; animation: ring 6s ease-out infinite; }
.auth-rings span:nth-child(1) { width: 260px; height: 260px; } .auth-rings span:nth-child(2) { width: 420px; height: 420px; animation-delay: 2s; } .auth-rings span:nth-child(3) { width: 600px; height: 600px; animation-delay: 4s; }
@keyframes ring { 0% { transform: scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
.auth-hero-logo { width: 150px; height: 150px; border-radius: 50%; position: relative; box-shadow: 0 20px 60px rgba(47,123,216,.45); }
.auth-hero-name { font-size: 3.6rem; font-weight: 800; letter-spacing: .16em; margin: 22px 0 0; position: relative; color: #EAF1FB; }
.auth-hero-by { letter-spacing: .32em; text-transform: uppercase; color: #8FB6E3; margin: 0; position: relative; font-weight: 600; }
.auth-hero-slogan { color: #C7D6EA; font-size: 1.15rem; margin-top: 18px; position: relative; font-weight: 500; }
.auth-card { padding: 40px; display: flex; flex-direction: column; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; }
.auth-brand { display: none; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth-brand img { border-radius: 50%; }
.auth-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.auth-brand strong { font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase; }
.auth-brand small { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }
.auth-card h1 { margin-bottom: 4px; }
.auth-card > .muted { margin-top: 0; }
.auth-foot { margin-top: 30px; text-align: center; font-size: .8rem; color: var(--faint); }
.auth-foot a { color: var(--muted); }
@media (max-width: 899px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-card { padding: 28px 20px; }
  .auth-brand { display: flex; }
}

/* ---------- Upload ---------- */
.upload-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 18px; align-items: start; }
.upload-page.page-narrow { max-width: 1050px; }
.dropzone { border: 2px dashed var(--line); border-radius: 16px; padding: 46px 20px; text-align: center; transition: all .2s; }
.dropzone > i { font-size: 2.6rem; color: var(--secondary); margin-bottom: 10px; }
.dropzone.over { border-color: var(--secondary); background: rgba(47,123,216,.08); }
.dropzone .btn-row { justify-content: center; margin: 16px 0 6px; }
.preview-frame { aspect-ratio: 9/16; max-height: 62vh; background: #000; border-radius: 14px; overflow: hidden; margin: 0 auto; }
.preview-frame video { width: 100%; height: 100%; object-fit: contain; }
.trim-row { display: flex; align-items: center; gap: 10px; }
.trim-row label { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); font-weight: 700; }
.trim-row output { font-variant-numeric: tabular-nums; font-size: .85rem; min-width: 52px; text-align: right; }
.cover-row { display: flex; gap: 14px; align-items: center; }
.cover-row canvas { width: 90px; height: 160px; border-radius: 10px; background: #000; flex: none; }
.cover-row > div { flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.toggles { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.sound-pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(47,123,216,.15); color: var(--secondary); font-weight: 700; align-self: flex-start; }
.progress { position: relative; height: 34px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.progress-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .3s; }
.progress-text { position: relative; display: grid; place-items: center; height: 100%; font-weight: 700; font-size: .85rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.recorder { position: relative; aspect-ratio: 9/16; max-height: 70vh; margin: 0 auto; background: #000; border-radius: 14px; overflow: hidden; }
.rec-preview { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.rec-bar { position: absolute; inset: auto 0 0 0; padding: 16px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
.rec-bar .icon-btn { color: #fff; background: rgba(255,255,255,.15); }
.rec-btn { width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; background: var(--like); transition: all .2s; }
.rec-btn.on { border-radius: 16px; transform: scale(.8); }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 50px; }
@media (max-width: 899px) { .upload-grid { grid-template-columns: 1fr; } }

/* ---------- Feed ---------- */
.feed-page .main { height: 100vh; height: 100dvh; overflow: hidden; padding-bottom: 0; }
.feed { height: 100vh; height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: none; }
.feed::-webkit-scrollbar { display: none; }
.feed-top { position: fixed; top: 0; left: var(--side); right: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 12px 16px; pointer-events: none; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.feed-top > * { pointer-events: auto; }
.feed-top .icon-btn { color: #fff; position: absolute; }
.feed-top .icon-btn:first-child:not(.feed-search) { left: 12px; }
.feed-top .feed-search { right: 12px; }
.feed-top .pill { position: absolute; left: 60px; }
.feed-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 60px); }
.feed-tabs a { color: rgba(255,255,255,.7); font-weight: 700; padding: 6px 12px; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,.5); position: relative; font-size: .95rem; }
.feed-tabs a.active { color: #fff; }
.feed-tabs a.active::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; border-radius: 2px; background: #fff; }
.announcement { position: fixed; top: 56px; left: calc(var(--side) + 16px); right: 16px; z-index: 21; background: rgba(17,26,46,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; padding: 10px 44px 10px 14px; font-size: .88rem; color: #fff; max-width: 560px; margin: 0 auto; }
.announcement .icon-btn { position: absolute; right: 4px; top: 4px; color: #fff; }
.slide { height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: flex; justify-content: center; align-items: center; background: #000; overflow: hidden; }
.player { position: relative; height: 100%; aspect-ratio: 9/16; max-width: 100%; background: #000; }
.vid { width: 100%; height: 100%; object-fit: cover; background: #000; }
.tap-zone { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.play-indicator { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s; }
.play-indicator i { font-size: 3.4rem; color: rgba(255,255,255,.85); filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
.slide.paused .play-indicator { opacity: 1; }
.slide.buffering .play-indicator { opacity: 1; } .slide.buffering .play-indicator i { display: none; }
.slide.buffering .play-indicator::after { content: ''; width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .8s linear infinite; }
.slide.errored .play-indicator { opacity: 1; } .slide.errored .play-indicator i::before { content: '\f071'; }
.heart-burst { position: absolute; z-index: 4; pointer-events: none; width: 0; height: 0; }
.heart-burst.go::before { content: '\f004'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; font-size: 90px; color: var(--like); transform: translate(-50%, -50%) scale(0); animation: burst .8s ease-out forwards; filter: drop-shadow(0 4px 16px rgba(255,61,110,.6)); }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(0) rotate(-15deg); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.2) rotate(5deg); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; } 100% { transform: translate(-50%, -140%) scale(.8); opacity: 0; } }
.mute-btn { position: absolute; top: 64px; right: 12px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; backdrop-filter: blur(6px); }
.progress-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); z-index: 6; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.rail { position: absolute; right: 10px; bottom: 90px; z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rail-avatar { position: relative; margin-bottom: 8px; }
.rail-avatar img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.follow-plus { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--like); color: #fff; font-size: .65rem; display: grid; place-items: center; transition: all .3s; }
.follow-plus.done { background: #fff; color: var(--like); transform: translateX(-50%) scale(1.1); }
.rail-btn { background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .75rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.rail-btn i { font-size: 1.75rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); transition: transform .15s, color .15s; }
.rail-btn:active i { transform: scale(.85); }
.rail-btn.js-like.on i { color: var(--like); animation: pop .35s; }
.rail-btn.js-save.on i { color: var(--warn); }
.rail-btn[data-off] i { opacity: .5; }
@keyframes pop { 50% { transform: scale(1.3); } }
.rail-disc { width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(#222, #444, #222, #444, #222); display: grid; place-items: center; animation: spin 5s linear infinite; }
.rail-disc img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.slide.paused .rail-disc { animation-play-state: paused; }
.info { position: absolute; left: 0; right: 80px; bottom: 0; z-index: 5; padding: 80px 14px 22px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); pointer-events: none; }
.info a, .info button { pointer-events: auto; }
.info-user { font-weight: 800; font-size: 1.05rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.info-meta { display: block; font-size: .78rem; opacity: .8; margin: 2px 0 6px; }
.info-title { font-size: .98rem; margin: 4px 0; }
.info-desc { font-size: .9rem; line-height: 1.4; max-height: 4.2em; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.info-desc .tag, .info-desc .mention { color: #fff; font-weight: 800; }
.info-sound { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: .85rem; font-weight: 600; max-width: 260px; }
.marquee { overflow: hidden; white-space: nowrap; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 9s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.more-menu { position: absolute; right: 70px; bottom: 120px; z-index: 9; background: rgba(17,26,46,.97); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 210px; box-shadow: var(--shadow); color: #fff; }
.more-menu button, .more-menu a { display: flex; gap: 10px; align-items: center; width: 100%; background: none; border: 0; color: #fff; padding: 11px 12px; border-radius: 9px; font-weight: 600; text-align: left; }
.more-menu button:hover, .more-menu a:hover { background: rgba(255,255,255,.08); }
.feed-loading { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.feed-empty, .feed-end { height: 100vh; height: 100dvh; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px; }
.feed-empty img { border-radius: 50%; margin-bottom: 8px; }
.feed-empty p, .feed-end p { color: var(--muted); max-width: 360px; }
.feed-end { height: 40vh; } .feed-end > i { font-size: 2rem; color: var(--ok); }
@media (min-width: 900px) {
  .player { border-radius: 16px; overflow: hidden; height: calc(100% - 40px); }
  .slide { background: radial-gradient(circle at 50% 40%, #0F1B33, #05080F 70%); }
  .slide { --pw: min(calc((100dvh - 40px) * 9 / 16), calc(100% - 120px)); }
  .player { width: var(--pw); aspect-ratio: auto; }
  .rail { left: calc(50% + var(--pw) / 2 + 16px); right: auto; bottom: 40px; }
  .rail-btn i { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 1.3rem; }
  .rail-btn { color: var(--text); text-shadow: none; }
  [data-theme="light"] .rail-btn i { background: var(--card2); }
  .info { right: 0; border-radius: 0 0 16px 16px; }
  .more-menu { right: auto; left: calc(50% + var(--pw) / 2 - 220px); }
  .slide > .info { position: absolute; left: 50%; transform: translateX(-50%); width: var(--pw); bottom: 20px; }
}
@media (max-width: 899px) {
  .feed-top { left: 0; }
  .announcement { left: 16px; }
  .feed, .slide, .feed-empty { height: calc(100dvh - var(--bottom) - env(safe-area-inset-bottom)); }
  .feed-page .main { height: calc(100dvh - var(--bottom) - env(safe-area-inset-bottom)); }
  .player { width: 100%; aspect-ratio: auto; }
}

/* ---------- Sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; height: 78vh; background: var(--card); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.sheet-small { height: auto; max-height: 85vh; }
.sheet.open .sheet-panel { transform: translateY(0); }
@media (min-width: 900px) {
  .sheet-panel { left: auto; top: 0; bottom: 0; width: 420px; height: 100%; max-height: none; border-radius: 0; transform: translateX(100%); }
  .sheet.open .sheet-panel { transform: translateX(0); }
  .sheet-small { top: 50%; left: 50%; right: auto; bottom: auto; height: auto; border-radius: 18px; transform: translate(-50%, -45%) !important; opacity: 0; transition: all .2s; width: 440px; }
  .sheet.open .sheet-small { transform: translate(-50%, -50%) !important; opacity: 1; }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 1.05rem; }
.sheet-body { flex: 1; overflow-y: auto; padding: 10px 18px; display: flex; flex-direction: column; gap: 4px; }
.sheet-body textarea { margin: 10px 0; }
.comment-form { border-top: 1px solid var(--line); padding: 10px 14px; }
.comment-input { display: flex; gap: 8px; align-items: center; }
.comment-input input { border-radius: 999px; }
.replying { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); padding: 0 6px 8px; }
.comment { display: flex; gap: 10px; padding: 10px 0; align-items: flex-start; }
.comment.reply { padding: 8px 0 0; }
.comment.reply .avatar.sm { width: 26px; height: 26px; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.uname { font-weight: 700; font-size: .85rem; color: var(--muted); }
.comment-body { font-size: .93rem; word-wrap: break-word; margin: 2px 0; }
.comment-meta { display: flex; gap: 14px; font-size: .78rem; color: var(--faint); }
.comment-meta .link { color: var(--muted); font-weight: 700; font-size: .78rem; }
.replies { margin-top: 2px; }
.c-like { background: none; border: 0; color: var(--faint); display: flex; flex-direction: column; align-items: center; font-size: .72rem; gap: 2px; padding: 4px; }
.c-like.on { color: var(--like); }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; }
.share-opt { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--text); padding: 8px 4px; border-radius: 12px; }
.share-opt i { width: 50px; height: 50px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; font-size: 1.3rem; }
.share-opt:hover i { background: var(--primary); color: #fff; }
.share-opt .fa-whatsapp { color: #25D366; } .share-opt .fa-facebook { color: #1877F2; } .share-opt .fa-telegram { color: #2AABEE; }
.share-opt[hidden] { display: none; }

/* ---------- Admin ---------- */
.admin-body { display: flex; }
.admin-side { position: fixed; inset: 0 auto 0 0; width: 236px; background: var(--bg2); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; overflow-y: auto; z-index: 50; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { padding: 9px 12px; font-size: .9rem; }
.admin-menu-btn { display: none; }
.admin-me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px 8px 0; font-weight: 600; font-size: .85rem; }
.admin-me span { display: flex; flex-direction: column; } .admin-me small { color: var(--muted); }
.admin-main { margin-left: 236px; padding: 26px 28px 60px; width: 100%; max-width: 1280px; min-width: 0; }
.admin-main > .alert { position: static; transform: none; animation: none; box-shadow: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { flex: 1 1 180px; max-width: 320px; padding: 9px 12px; }
.admin-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.admin-video { padding: 0; overflow: hidden; display: flex; margin: 0; }
.admin-video video { width: 130px; aspect-ratio: 9/16; object-fit: cover; background: #000; flex: none; }
.av-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; font-size: .88rem; }
.av-body small { color: var(--muted); }
.av-actions { gap: 8px; margin-top: auto; }
.av-actions input { padding: 7px 10px; font-size: .82rem; }
.report-card.urgent { border-color: rgba(239,75,95,.55); }
.report-target { margin: 12px 0; }
.report-target blockquote { margin: 0 0 6px; padding: 10px 14px; border-left: 3px solid var(--secondary); background: var(--card2); border-radius: 0 8px 8px 0; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; } .timeline small { color: var(--muted); }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; margin: 14px 0; font-size: .9rem; } .dl dt { color: var(--muted); font-weight: 700; } .dl dd { margin: 0; }
.code { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: .82rem; white-space: pre-wrap; word-break: break-all; }
.code.log { max-height: 360px; overflow-y: auto; }
.ann-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.req-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.req-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--card2); }
.req-list li > i { margin-top: 3px; } .req-list li span { display: flex; flex-direction: column; } .req-list small { color: var(--muted); }
.req-list .ok > i { color: var(--ok); } .req-list .bad > i { color: var(--danger); } .req-list .warn > i { color: var(--warn); }
@media (max-width: 899px) {
  .admin-side { position: sticky; top: 0; inset: auto; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 10px 14px; }
  .admin-body { flex-direction: column; }
  .admin-menu-btn { display: inline-grid; }
  .admin-nav, .admin-me { display: none; width: 100%; }
  .admin-nav-open .admin-nav { display: flex; }
  .admin-main { margin-left: 0; padding: 18px 14px 50px; }
  .admin-video video { width: 100px; }
  .dl { grid-template-columns: 1fr; }
}

/* ---------- Installer ---------- */
.install-page { min-height: 100vh; background: radial-gradient(circle at 20% 0%, #12305A, var(--bg) 55%); }
.install { max-width: 720px; margin: 0 auto; padding: 36px 18px; }
.install-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.install-head img { border-radius: 50%; box-shadow: 0 10px 30px rgba(47,123,216,.4); }
.install-head h1 { margin: 0; letter-spacing: .08em; text-transform: uppercase; } .install-head h1 small { font-size: .5em; color: var(--muted); letter-spacing: .2em; }
.install-head p { margin: 0; }
.install-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.install-steps li { display: flex; gap: 8px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .82rem; color: var(--muted); }
.install-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); font-size: .75rem; }
.install-steps li.cur { color: var(--text); border-color: var(--secondary); } .install-steps li.cur span { background: var(--primary); color: #fff; }
.install-steps li.done span { background: var(--ok); color: #fff; }
.install-card { padding: 26px; }
.install-done { text-align: center; } .install-done > i { font-size: 3.4rem; color: var(--ok); }

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