/* ==========================================================================
   抖音网页版 · 基础层
   tiktok.ai4everyone.top / tiktok-dev.ai4everyone.top
   非官方演示；视觉按抖音 2026 桌面端布局复刻。
   ========================================================================== */
:root {
  color-scheme: dark;
  --brand: #fe2c55;
  --brand-hi: #ff4d6d;
  --brand-soft: rgba(254, 44, 85, .14);
  --cyan: #25f4ee;
  --cyan-soft: rgba(37, 244, 238, .14);
  --bg: #0b0b10;
  --bg-body: #101017;
  --bg-elev: #161823;
  --bg-card: #1b1c26;
  --bg-soft: #22232f;
  --bg-hover: #2a2b38;
  --bg-input: #20212c;
  --text: #f2f2f5;
  --text-2: #a8a9b8;
  --text-3: #707181;
  --text-4: #4b4c5a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --white: #fff;
  --green: #2bd67b;
  --gold: #ffb020;
  --blue: #4b9bff;
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, .38);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .25);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --topbar-h: 64px;
  --sidebar-w: 240px;
  --sidebar-mini: 78px;
  --mobile-nav-h: 58px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-num: "SF Pro Display", "DIN Alternate", "Helvetica Neue", var(--font);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f7;
  --bg-body: #f7f7fa;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f0f0f4;
  --bg-hover: #e9e9ef;
  --bg-input: #ececf1;
  --text: #161823;
  --text-2: #5c5d6b;
  --text-3: #8b8c99;
  --text-4: #b4b5c0;
  --line: rgba(22, 24, 35, .08);
  --line-strong: rgba(22, 24, 35, .16);
  --shadow-lg: 0 24px 70px rgba(22, 24, 35, .18);
  --shadow-md: 0 12px 36px rgba(22, 24, 35, .12);
  --shadow-sm: 0 4px 16px rgba(22, 24, 35, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: var(--bg-body);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
img, video, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .24); }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(22, 24, 35, .16); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon.fill { fill: currentColor; stroke: none; }
.svg-sprite symbol { stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ shell */
.app-shell { min-height: 100vh; }
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 60;
  display: flex; align-items: center; gap: 18px; padding: 0 22px;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.sidebar-toggle { color: var(--text-2); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, #ff5c86 55%, #ff8e6e 100%);
  box-shadow: 0 6px 18px rgba(254, 44, 85, .34); color: #fff;
}
.brand-mark .icon { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.brand-name { font-size: 23px; font-weight: 800; letter-spacing: .5px; }
.brand-pill {
  font-size: 11px; color: var(--cyan); border: 1px solid rgba(37, 244, 238, .32);
  background: var(--cyan-soft); padding: 1px 8px; border-radius: 999px; line-height: 18px;
  font-weight: 600; letter-spacing: .5px;
}
.searchbox {
  position: relative; flex: 0 1 500px; height: 42px; display: flex; align-items: center;
  background: var(--bg-input); border: 1px solid transparent; border-radius: 12px;
  padding: 0 4px 0 14px; transition: border-color .2s var(--ease), background .2s var(--ease);
  margin: 0 auto;
}
.searchbox:focus-within { border-color: var(--line-strong); background: var(--bg-soft); }
.search-icon { width: 19px; height: 19px; color: var(--text-3); }
.searchbox input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 0 10px; font-size: 13.5px;
}
.searchbox input::placeholder { color: var(--text-3); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 26px; height: 26px; display: grid; place-items: center; color: var(--text-3); border-radius: 50%; }
.search-clear:hover { background: var(--bg-hover); color: var(--text); }
.search-btn {
  height: 34px; padding: 0 18px; border-radius: 9px; background: var(--brand); color: #fff;
  font-weight: 600; font-size: 13px; transition: filter .2s var(--ease), transform .1s var(--ease);
}
.search-btn:hover { filter: brightness(1.08); }
.search-btn:active { transform: scale(.97); }
.search-suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 80;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; max-height: 380px; overflow: auto;
}
.suggest-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.suggest-row:hover, .suggest-row.active { background: var(--bg-soft); }
.suggest-row .icon { width: 17px; height: 17px; color: var(--text-3); }
.suggest-row b { font-weight: 600; }
.suggest-row span { color: var(--text-3); font-size: 12px; margin-left: auto; }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-link {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px;
  border-radius: 10px; color: var(--text-2); font-size: 13px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.top-link:hover { background: var(--bg-soft); color: var(--text); }
.top-link .icon { width: 18px; height: 18px; }
.top-icon { position: relative; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center;
  color: var(--text-2); transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.badge {
  position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; line-height: 16px;
  text-align: center; font-weight: 700; box-shadow: 0 0 0 2px var(--bg-elev);
}
.badge.soft { background: var(--cyan); color: #062a2a; }
.account { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 8px; padding: 3px; border-radius: 999px; }
.avatar-btn:hover { background: var(--bg-soft); }
.avatar-btn .chev { width: 16px; height: 16px; color: var(--text-3); }
.login-btn {
  height: 38px; padding: 0 18px; border-radius: 10px; background: var(--brand); color: #fff;
  font-weight: 600; font-size: 13px; box-shadow: 0 6px 16px rgba(254, 44, 85, .26);
}
.login-btn:hover { filter: brightness(1.07); }

/* ------------------------------------------------------------------ sidebar */
.sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: var(--sidebar-w);
  z-index: 50; display: flex; flex-direction: column; gap: 10px; padding: 18px 12px 16px;
  background: var(--bg-body); border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden;
  transition: width .24s var(--ease);
}
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-item {
  position: relative; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px;
  border-radius: 11px; color: var(--text-2); font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), transform .1s var(--ease);
}
.side-item .icon { width: 22px; height: 22px; }
.side-item:hover { background: var(--bg-soft); color: var(--text); }
.side-item:active { transform: scale(.985); }
.side-item.active { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.side-item.active::before {
  content: ""; position: absolute; left: -12px; top: 13px; bottom: 13px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brand);
}
.side-sep { height: 1px; background: var(--line); margin: 8px 12px; }
.side-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: auto; box-shadow: 0 0 0 4px var(--brand-soft); }
.side-badge { position: static; margin-left: auto; box-shadow: none; }
.side-following { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-following h4 { font-size: 12px; color: var(--text-3); font-weight: 600; padding: 0 14px 8px; letter-spacing: .4px; }
.side-following .follow-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.side-following .follow-row:hover { background: var(--bg-soft); }
.side-following .follow-row span { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-following .follow-row .avatar { width: 30px; height: 30px; }
.side-footer { margin-top: auto; padding: 14px 6px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.side-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); padding: 4px 6px; border-radius: 6px; }
.side-mini:hover { color: var(--text); background: var(--bg-soft); }
.side-mini .icon { width: 15px; height: 15px; }
.side-copy { flex: 0 0 100%; font-size: 10.5px; color: var(--text-4); padding: 4px 6px 0; line-height: 1.5; }
body.sidebar-collapsed .sidebar { width: var(--sidebar-mini); }
body.sidebar-collapsed .side-item span, body.sidebar-collapsed .side-item .side-badge,
body.sidebar-collapsed .side-following, body.sidebar-collapsed .side-footer,
body.sidebar-collapsed .side-sep { display: none; }
body.sidebar-collapsed .side-item { justify-content: center; padding: 0; }
body.sidebar-collapsed .side-item.active::before { left: -12px; }
body.sidebar-collapsed .view { margin-left: var(--sidebar-mini); }

/* ------------------------------------------------------------------ view */
.view {
  margin-left: var(--sidebar-w); padding-top: var(--topbar-h); min-height: 100vh;
  transition: margin-left .24s var(--ease); outline: none;
}
.page { max-width: 1240px; margin: 0 auto; padding: 26px 34px 72px; }
.page.wide { max-width: 1440px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; }
.page-sub { color: var(--text-3); font-size: 13px; margin-top: 3px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title .icon { width: 18px; height: 18px; color: var(--brand); }

/* ------------------------------------------------------------------ atoms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 17px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: var(--bg-soft); color: var(--text); border: 1px solid transparent;
  transition: background .18s var(--ease), filter .18s var(--ease), transform .1s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: scale(.975); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(254, 44, 85, .24); }
.btn-primary:hover { background: var(--brand-hi); }
.btn-cyan { background: var(--cyan); color: #062a2a; }
.btn-cyan:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: rgba(254, 44, 85, .12); color: var(--brand); border-color: rgba(254, 44, 85, .24); }
.btn-danger:hover { background: rgba(254, 44, 85, .2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-icon { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--text-2); }
.btn-icon:hover { background: var(--bg-soft); color: var(--text); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border-radius: 999px; background: var(--bg-soft); color: var(--text-2); font-size: 12.5px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: all .18s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { color: var(--brand); background: var(--brand-soft); border-color: rgba(254, 44, 85, .3); }
.chip .icon { width: 15px; height: 15px; }
.tag { color: var(--cyan); cursor: pointer; }
.tag:hover { text-decoration: underline; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 700; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-soft);
  flex: 0 0 auto; border: 1px solid var(--line); display: block;
}
.avatar.xs { width: 26px; height: 26px; }
.avatar.sm { width: 32px; height: 32px; }
.avatar.md { width: 48px; height: 48px; }
.avatar.lg { width: 76px; height: 76px; }
.avatar.xl { width: 112px; height: 112px; }
.avatar-ring { padding: 3px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--cyan)); }
.avatar-ring .avatar { border: 2px solid var(--bg-body); }
.verified { width: 15px; height: 15px; color: var(--cyan); flex: 0 0 auto; }
.verified.gold { color: var(--gold); }
.pill-live { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 5px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; }
.pill-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.count { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.count.light { color: rgba(255, 255, 255, .82); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-4); display: inline-block; vertical-align: middle; }

/* ------------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.input, .textarea, .select {
  width: 100%; background: var(--bg-input); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 13px; color: var(--text); outline: 0; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); background: var(--bg-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.counter { font-size: 11px; color: var(--text-3); text-align: right; }
.counter.warn { color: var(--brand); }
.switch { position: relative; width: 44px; height: 25px; border-radius: 999px; background: var(--bg-hover); cursor: pointer; transition: background .2s var(--ease); flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(19px); }
.checkbox { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: inline-grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.checkbox.on { background: var(--brand); border-color: var(--brand); }
.checkbox.on::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

/* ------------------------------------------------------------------ modal / toast / menu */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(4, 5, 10, .68);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px; animation: fade-in .18s var(--ease);
}
.modal {
  width: min(520px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); animation: modal-in .22s var(--ease);
}
.modal.wide { width: min(760px, 100%); }
.modal.slim { width: min(420px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-title { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.modal-close { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); }
.modal-close:hover { background: var(--bg-soft); color: var(--text); }
.modal-body { padding: 18px 22px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }
.modal-note { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.sheet-mask { position: fixed; inset: 0; z-index: 190; background: rgba(4, 5, 10, .55); animation: fade-in .18s var(--ease); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 191; max-height: 78vh; display: flex; flex-direction: column;
  background: var(--bg-elev); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line-strong);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); animation: sheet-up .24s var(--ease);
}
.sheet-grab { width: 40px; height: 4px; border-radius: 99px; background: var(--line-strong); margin: 9px auto 4px; }
.toast-root { position: fixed; top: 82px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; max-width: min(520px, 90vw); padding: 10px 16px;
  border-radius: 11px; background: var(--bg-elev); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md); font-size: 13px; animation: toast-in .24s var(--ease);
}
.toast .icon { width: 17px; height: 17px; color: var(--green); }
.toast.error .icon { color: var(--brand); }
.toast.out { animation: toast-out .2s var(--ease) forwards; }
.menu {
  position: fixed; z-index: 250; min-width: 180px; padding: 6px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  animation: menu-in .14s var(--ease);
}
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 8px; color: var(--text-2); font-size: 13px; text-align: left; }
.menu-item:hover { background: var(--bg-soft); color: var(--text); }
.menu-item.danger { color: var(--brand); }
.menu-item .icon { width: 17px; height: 17px; }
.menu-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ------------------------------------------------------------------ states */
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.skeleton { position: relative; overflow: hidden; background: var(--bg-soft); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); transform: translateX(-100%); animation: shimmer 1.3s infinite; }
html[data-theme="light"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 64px 20px; text-align: center; color: var(--text-3); }
.empty .empty-icon { width: 76px; height: 76px; border-radius: 24px; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 8px; }
.empty .empty-icon .icon { width: 34px; height: 34px; color: var(--text-4); }
.empty h3 { color: var(--text); font-size: 16px; font-weight: 700; }
.empty p { font-size: 13px; max-width: 360px; }
.empty .btn { margin-top: 8px; }
.error-state { padding: 48px; text-align: center; color: var(--text-2); }
.error-state .icon { width: 40px; height: 40px; color: var(--text-3); margin: 0 auto 10px; }
.load-more { display: flex; justify-content: center; padding: 22px; color: var(--text-3); font-size: 12.5px; }

/* ------------------------------------------------------------------ boot */
.boot {
  position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; background: var(--bg); transition: opacity .35s var(--ease), visibility .35s;
}
.boot.hide { opacity: 0; visibility: hidden; }
.boot-logo { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #ff7a5c); color: #fff; box-shadow: 0 14px 44px rgba(254, 44, 85, .36); animation: boot-pop .7s var(--ease); }
.boot-logo .icon { width: 40px; height: 40px; fill: currentColor; stroke: none; }
.boot p { color: var(--text-2); font-size: 14px; letter-spacing: 2px; }
.boot-bar { width: 96px; height: 3px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.boot-bar::after { content: ""; display: block; width: 40%; height: 100%; border-radius: 99px; background: var(--brand); animation: boot-slide 1s var(--ease) infinite; }
.noscript { padding: 40px; text-align: center; color: var(--text-2); }

/* ------------------------------------------------------------------ animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes boot-pop { from { opacity: 0; transform: scale(.8); } }
@keyframes boot-slide { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
