/* Evion panel - bingr look (2026-11-08). Loaded after each page's own <style>, so it only restyles:
   bingr colours (#07070b / #e9e9ee / #8f98a2, blue #1875e5), Inter + Bebas Neue, flat translucent
   surfaces, thin white/10 borders, pill controls. No glow, pulse, shimmer or gradient effects. */
:root {
  --bg: #07070b; --text: #e9e9ee; --muted: #8f98a2; --muted2: #5b6370;
  --accent: #ffffff; --accent-dim: rgba(255,255,255,0.06);
  --play: #1875e5; --green: #2fbf71; --yellow: #8f98a2; --red: #ff5c5c; --gray: #6b7280;
  --surface: rgba(255,255,255,0.04); --surface-2: rgba(255,255,255,0.07);
  --card: var(--surface); --card-hover: var(--surface-2);
  --border: rgba(255,255,255,0.08);
  --display: "Bebas Neue", "Anton", Impact, system-ui, sans-serif;
}
body { background: var(--bg); color: var(--text); font-family: "Inter", system-ui, "Segoe UI", Roboto, sans-serif; letter-spacing: -0.005em; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }

/* ---------- no effects ---------- */
.pulse-ring, .live-pill .blip, .dl-bar-fill::after { display: none !important; }
.stat-card:hover, .add-btn:hover, .top-add:hover, .modal .submit:hover, #login-box button:hover { transform: none !important; }
.stat-card, .storage-card, .current-job, .dl-live-card, .dl-summary-card, .table-wrap, #logs-box { box-shadow: none; }

/* ---------- brand / headings ---------- */
.brand-mark { border-radius: 10px; background: #fff; color: #07070b; font-family: var(--display); font-weight: 400; font-size: 22px; padding-top: 2px; }
.brand-text { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: 0.04em; line-height: 1; }
.brand-text small { font-family: "Inter"; letter-spacing: 0.08em; color: var(--muted2); margin-top: 4px; }
.topbar h1, .page-title { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: 0.03em; line-height: 1; }
.page-title { margin-bottom: 6px; }
.modal h3 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: 0.03em; }

/* ---------- login ---------- */
#login-screen { background: var(--bg); }
#login-box { width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px; }
#login-box input { background: rgba(255,255,255,0.06); border: 1px solid var(--border); }
#login-box input:focus { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); }
#login-box button { background: #fff; color: #07070b; }
#login-box button:hover { filter: none; background: #e9e9ee; }

/* ---------- shell ---------- */
.sidebar { background: #0b0b10; }
.sidebar::after { background: var(--border); }
.nav-item { border-radius: 12px; font-weight: 600; }
.nav-item.active { background: rgba(255,255,255,0.08); }
.nav-item.active svg { transform: none; color: #fff; }
.sidebar-footer button { border-radius: 12px; }
.topbar { background: rgba(7,7,11,0.88); border-bottom: 1px solid var(--border); padding-top: 18px; padding-bottom: 14px; }
.content { padding-top: 22px; }
.updated { color: var(--muted2); }

/* live status: plain pill, white while downloading */
.live-pill { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 7px 14px; font-weight: 600; }
.live-pill:not(.idle) { background: #fff; border-color: #fff; color: #07070b; }

/* TV / Movies switch */
.mode-switch { background: var(--surface); border: 1px solid var(--border); }
.mode-switch a { font-weight: 700; }
.mode-switch a.active { background: #fff; color: #07070b; }

.top-add, .add-btn { background: #fff; color: #07070b; font-weight: 700; }
.top-add:hover, .add-btn:hover { filter: none; background: #e9e9ee; }

/* ---------- cards ---------- */
.stat-card, .storage-card, .dl-summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: background 0.15s, border-color 0.15s; }
.stat-card:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.14); }
.stat-card .n { font-family: var(--display); font-weight: 400; font-size: 46px; letter-spacing: 0.02em; line-height: 0.9; }
.stat-card .l { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; margin-top: 10px; }
.stat-PENDING .n { color: var(--text); } .stat-DOWNLOADING .n { color: #fff; }
.storage-label { color: var(--muted); }
.storage-nums span, .storage-bottom span { color: #fff; }
.storage-bar, .job-bar, .dl-bar-track, .ep-progress { background: rgba(255,255,255,0.07); }
.storage-bar-fill { background: #e9e9ee; }
#ov-series-fill, .job-bar > div, .dl-bar-fill, .ep-progress > div { background: var(--play); }
.ep-progress.done > div { background: var(--green); }

/* now downloading */
.current-job { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.current-job .title { font-size: 16px; font-weight: 700; }
.current-job .meta { color: var(--muted); }
.job-live-top b { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: 0.02em; }

/* downloads page */
.dl-live-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.dl-idle-icon { background: var(--surface-2); }
.dl-poster { border-radius: 8px; box-shadow: none; }
.dl-title { font-size: 18px; font-weight: 700; }
.dl-pct-num { font-family: var(--display); font-weight: 400; font-size: 34px; color: #fff; letter-spacing: 0.02em; }
.dl-track-seg { background: rgba(255,255,255,0.07); }
.dl-track-seg.done { background: var(--play); }
.dl-track-seg.active { background: rgba(24,117,229,0.45); }

/* ---------- tables / lists ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
th { color: var(--muted2); font-weight: 600; letter-spacing: 0.08em; }
tbody tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: rgba(255,255,255,0.03); }
.row-title { font-weight: 600; }
.row-rank { color: var(--muted2); font-weight: 700; }
.row-sub { color: var(--muted); }
.row-actions button { background: rgba(255,255,255,0.06); color: var(--text); font-weight: 600; border: 1px solid transparent; }
.row-actions button:hover { background: rgba(255,255,255,0.12); }
.row-actions button.del { color: var(--muted); }
.row-actions button.del:hover { background: rgba(255,92,92,0.12); color: var(--red); }

.badge { font-weight: 700; letter-spacing: 0.05em; background: rgba(255,255,255,0.07); color: var(--muted); }
.badge-PENDING { background: rgba(255,255,255,0.07); color: var(--muted); }
.badge-DOWNLOADING { background: #fff; color: #07070b; }
.badge-COMPLETED { background: rgba(47,191,113,0.14); color: var(--green); }
.badge-FAILED { background: rgba(255,92,92,0.14); color: var(--red); }
.badge-NO_MATCH, .badge-PAUSED { background: rgba(255,255,255,0.05); color: var(--gray); }

.ep-chip { background: rgba(255,255,255,0.05); color: var(--muted2); }
.ep-chip.COMPLETED { background: rgba(47,191,113,0.14); color: var(--green); }
.ep-chip.DOWNLOADING { background: #fff; color: #07070b; }
.ep-chip.FAILED { background: rgba(255,92,92,0.14); color: var(--red); }

/* toolbar */
.tabs { background: var(--surface); border: 1px solid var(--border); }
.tab { font-weight: 600; }
.tab.active { background: #fff; color: #07070b; }
.toolbar input[type=text] { background: var(--surface); border: 1px solid var(--border); }
.toolbar input[type=text]:focus { background: var(--surface-2); border-color: rgba(255,255,255,0.2); }

/* logs */
#logs-box { background: #0b0b10; border: 1px solid var(--border); border-radius: 16px; color: var(--muted); font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace; font-size: 12px; }
.log-job { color: #fff; font-weight: 600; }
.log-ok { color: var(--green); }
.log-err { color: var(--red); }
.log-dim { color: var(--muted2); }
.logs-copy { background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; }

/* modal + toast */
.modal-backdrop { background: rgba(0,0,0,0.72); backdrop-filter: none; }
.modal { background: #0f1014; border: 1px solid var(--border); border-radius: 24px; box-shadow: none; }
.modal input { background: rgba(255,255,255,0.06); border: 1px solid var(--border); }
.modal input:focus { border-color: rgba(255,255,255,0.2); }
.modal .submit { background: #fff; color: #07070b; }
.modal .submit:hover { filter: none; background: #e9e9ee; }
.toast { background: #1a1a1a; border: 1px solid var(--border); box-shadow: none; font-weight: 600; }

/* mobile bottom nav */
#bottom-nav { background: rgba(15,16,20,0.92); border: 1px solid var(--border); box-shadow: none; backdrop-filter: blur(14px); }
.bn-item.active { background: #fff; color: #07070b; }

@media (max-width: 860px) {
  .topbar h1 { font-size: 28px; }
  .stat-card .n { font-size: 38px; }
  #page-queue tbody tr { background: var(--surface); border: 1px solid var(--border) !important; }
  #login-box { width: calc(100vw - 32px); max-width: 360px; padding: 24px; }
}

/* Evion logo D3 (2026-11-08): split-V icon + EVION wordmark images */
.brand-mark { background: none !important; width: 38px; height: 38px; padding: 0; border-radius: 10px; display: block; }
.brand-text { display: flex; flex-direction: column; justify-content: center; }
.brand-text .wordmark { height: 22px; width: auto; display: block; }
.brand-text small { margin-top: 5px; }
#login-box .brand { gap: 14px; }
#login-box .brand-mark { width: 44px; height: 44px; }
#login-box .brand-text .wordmark { height: 26px; }
