/* web/v2in.css: both pages, in VÄIN's colours (black, white and greys, the logo's green). */
:root {
  /* VÄIN's look: white and greys on black, the logo's green (#42b649, also the app's Material accent) as the one colour */
  color-scheme: dark;
  --bg: #000000;
  --fg: #ffffff;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
  --line: #2a2a2a;
  --card: #0e0e0e;
  --accent: #42b649;
  --on-accent: #000000;
  --alert: #ffffff;        /* a raid is shown in white on black, the strongest thing the page has, never in green */
  --alert-bg: #1c1c1c;
  --live: #42b649;
  --live-bg: #0f2a12;
  --wave: #42b649;
  --gap: 16px;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); }
main { max-width: 760px; margin: 0 auto; padding: 32px var(--gap) 64px; }
header.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
header.brand img { width: 56px; height: 56px; border-radius: 12px; flex: none; }
header.brand h1 { margin: 0; }
h1 { font-size: 28px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 40px 0 12px; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); margin-bottom: 24px; }
.muted { color: var(--muted); }
small, .small { font-size: 14px; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

button, input, select {
  font: inherit; color: inherit; border-radius: 6px;
}
button {
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); font-weight: 600;
  padding: 6px 14px; cursor: pointer; min-height: 36px;
}
button.quiet { background: transparent; color: var(--fg); border-color: var(--line); }
button.danger { background: transparent; color: var(--fg); border-color: var(--fg); }
button:disabled { opacity: 0.4; cursor: default; }
input, select {
  background: var(--card); accent-color: var(--accent); border: 1px solid var(--line); padding: 6px 10px; min-height: 36px; width: 100%;
}
label { display: block; font-size: 14px; color: var(--muted); }
label > input, label > select { margin-top: 4px; color: var(--fg); }

.banner {
  background: var(--alert-bg); color: var(--alert); border-radius: 8px; padding: 12px 16px; margin-bottom: 24px;
  font-weight: 600; border-left: 4px solid var(--fg);
}
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px; vertical-align: 2px;
}
.tag.live { background: var(--live-bg); color: var(--live); }
.tag.silent { background: var(--alert-bg); color: var(--alert); }
.tag.plain { background: var(--line); color: var(--muted); }

/* the player */
.channels { display: grid; gap: var(--gap); }
.ch {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: var(--gap);
  display: grid; grid-template-columns: auto 1fr; gap: 4px var(--gap); align-items: center;
}
.ch .play {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
}
.ch .play svg { width: 20px; height: 20px; fill: currentColor; }
.ch .name { font-weight: 700; font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ch .now { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.ch canvas { grid-column: 1 / -1; width: 100%; height: 56px; display: block; margin-top: 8px; }

/* the admin page */
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.list { display: grid; gap: 8px; }
.item {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px;
  display: grid; gap: 6px;
}
.item .head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.item .head b { font-size: 17px; }
.item .meta { font-size: 14px; color: var(--muted); }
.item .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.secret {
  background: var(--live-bg); border-radius: 8px; padding: 16px; display: grid; gap: 8px;
}
code, pre, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
.secret > * { min-width: 0; }
/* the OBS and BUTT settings wrap on a phone rather than scroll sideways */
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.log { width: 100%; border-collapse: collapse; font-size: 14px; }
.log td, .log th { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.log th { color: var(--muted); font-weight: 600; }
.log .no { color: var(--alert); }
.scroll { overflow-x: auto; }
.err { color: var(--alert); }
.switch { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
