/* Traders Bunker — monochrome; yellow for actions, green for live/ok */
:root {
  --bg: #0a0a0a;
  --panel: #121212;
  --panel-2: #181818;
  --line: #262626;
  --line-2: #363636;
  --text: #f2f2f2;
  --muted: #8f8f8f;
  --gold: #f5c518;      /* action yellow */
  --gold-2: #ffd84a;
  --gold-dim: rgba(245,197,24,.14);
  --ok: #22c55e;
  --warn: #f5c518;
  --danger: #e5484d;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Inter, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; }
button, input, select { font: inherit; }
a { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- shared ---- */
.btn { padding: 10px 16px; border-radius: 6px; border: 1px solid var(--gold); background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #120f08; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); font-weight: 500; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line-2); background: #0d0d0d; color: var(--text); outline: none; }
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; }
.error { display: none; color: var(--danger); font-size: 13px; margin: 0 0 14px; }
.error.show { display: block; }
.notice { display: none; color: var(--ok); font-size: 13px; margin: 0 0 14px; }
.notice.show { display: block; }
.brand { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---- top bar ---- */
.bar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.bar .title { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.bar .status { color: var(--muted); white-space: nowrap; }
.bar .status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 7px; vertical-align: 1px; }
.bar .status.live::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.bar .status.err::before { background: var(--danger); }
.bar .spacer { flex: 1; }
.bar .user { color: var(--muted); }
.bar .navlink { color: var(--muted); text-decoration: none; }
.bar .navlink:hover { color: var(--gold-2); }
.bar .profile { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; border: 1px solid transparent; }
.bar .profile:hover { color: var(--text); border-color: var(--line-2); }
.bar .profile .ico { flex: none; }
.bar .profile.current { cursor: default; }
.bar .logout { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.bar .logout:hover { border-color: var(--gold); color: var(--gold-2); }
@media (max-width: 560px) { .bar { gap: 10px; } .bar .profile .user { display: none; } }

/* ---- update banner ---- */
.banner { display: none; align-items: center; gap: 14px; padding: 9px 16px; background: #0f2a1a; border-bottom: 1px solid #1f5a37; color: var(--ok); font-size: 13px; }
.banner.show { display: flex; }
.banner b { font-variant-numeric: tabular-nums; }
.banner .x { margin-left: auto; background: none; border: 0; color: var(--ok); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; }
.banner .x:hover { color: #fff; }

/* ---- login ---- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 50% -10%, #1c1c1c 0%, var(--bg) 60%); }
.login-card { width: 100%; max-width: 860px; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.login-art { position: relative; min-height: 420px; background: #000; overflow: hidden; }
.login-art img, .login-art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: grayscale(1) contrast(1.05); }
.login-art [hidden] { display: none !important; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.75)); }
.login-art .cap { position: absolute; left: 24px; bottom: 22px; z-index: 1; }
.login-art .cap .brand { display: block; margin-bottom: 6px; color: var(--text); }
.login-art .cap .sub { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.login-form { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.login-form h1 { font-size: 20px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin: 6px 0 24px; }
.login-form .btn { width: 100%; margin-top: 4px; }
@media (max-width: 720px) { .login { padding: 0; align-items: stretch; } .login-card { grid-template-columns: 1fr; border-radius: 0; border: 0; min-height: 100%; } .login-art { min-height: 220px; } }

/* ---- home ---- */
.home { height: 100%; display: flex; flex-direction: column; }
.stage { flex: 1; user-select: none; -webkit-user-select: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; padding: 24px; min-height: 0; overflow-y: auto; }
.audio { width: 100%; max-width: 1280px; display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px; }
.audio .label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.audio .label b { color: var(--text); font-weight: 600; }
.audio #astatus { font-size: 12px; color: var(--muted); white-space: nowrap; }
.audio #astatus.live { color: var(--ok); }
#aplayer { flex: 1; min-width: 0; height: 40px; background: #000; border-radius: 6px; overflow: hidden; }
#aplayer .op-ratio { padding-top: 0 !important; }
#aplayer .op-wrapper, #aplayer .op-media-element-container { height: 40px !important; }
#aplayer video { display: none; }
#aplayer .op-controls-container, #aplayer .op-controls-main { opacity: 1 !important; visibility: visible !important; }
#aplayer .op-bigbutton-container, #aplayer .op-loading-container, #aplayer .op-spinner-container, #aplayer .op-message-container { display: none !important; }
#player .op-message-container, #player .op-message-box { display: none !important; }
@media (max-width: 720px) { .audio { border-radius: 0; border-left: 0; border-right: 0; } }
#player { width: 1280px; max-width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
@media (max-width: 720px) { .stage { padding: 0; } #player { border-radius: 0; border: 0; } }
.overlay { position: fixed; inset: 0; display: none; place-items: center; background: rgba(5,5,5,.94); text-align: center; padding: 24px; }
.overlay.show { display: grid; }
.overlay h2 { font-size: 18px; margin: 0 0 8px; color: var(--text); }
.overlay p { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

/* ---- account ---- */
.page { min-height: 100%; display: flex; flex-direction: column; }
.narrow { width: 100%; max-width: 420px; margin: 40px auto; padding: 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 28px; }
.card h2 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin: 0 0 20px; }

#aplayer .op-fullscreen-button, #aplayer .op-setting-button, #aplayer .op-setting-container { display: none !important; }
.audio #aplayer[hidden] { display: none; }

/* never show the player's own right-click menu */
.op-context-panel { display: none !important; }
