/* jam.geyser.at — the band's overview, in the mo-tion look of tabs, beats and time */
:root {
  --mint: #00ffce;
  --mint-rgb: 0, 255, 206;
  --orange: #ff6b00;
  --bg: #05080d;
  --panel: #0a1118;
  --panel-2: #0c141c;
  --cell: #0e1821;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --hover: rgba(255, 255, 255, 0.04);
  --text: #e8f1ef;
  --muted: #7f8d95;
  --faint: #4a5861;
  --on-accent: #03120e;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 85% -12%, rgba(var(--mint-rgb), 0.09), transparent 62%),
    radial-gradient(700px 480px at -10% 110%, rgba(var(--mint-rgb), 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.45 "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; text-transform: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
::selection { background: rgba(var(--mint-rgb), 0.3); }
[hidden] { display: none !important; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.spacer { flex: 1; }

.container { max-width: 1240px; margin: 0 auto; padding: 24px 24px 40px; display: flex; flex-direction: column; gap: 14px; }
.header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 4px 2px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.brand-by { color: var(--muted); font-size: 13px; padding-top: 4px; transition: color 120ms; }
.brand:hover .brand-by { color: var(--mint); }
.account { display: flex; align-items: center; gap: 8px; }

.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0;
}
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }
.hint { color: var(--faint); font-size: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 7px 13px; cursor: pointer; white-space: nowrap;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.btn:hover:not(:disabled) { border-color: rgba(var(--mint-rgb), 0.5); color: var(--mint); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn.primary { background: var(--mint); border-color: var(--mint); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover:not(:disabled) { color: var(--on-accent); background: #5cffe0; box-shadow: 0 6px 20px -6px rgba(var(--mint-rgb), 0.7); }
.btn.big { padding: 12px 20px; font-size: 15px; }
.btn.warn:hover:not(:disabled) { border-color: rgba(255, 107, 0, 0.6); color: var(--orange); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--muted); }
.chip b { color: var(--text); font-weight: 500; }
.chip.mint { border-color: rgba(var(--mint-rgb), 0.45); color: var(--mint); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; }
.dot.on { background: var(--mint); box-shadow: 0 0 10px rgba(var(--mint-rgb), 0.9); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px; }
.hero h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.hero p { margin: 0; max-width: 560px; }

.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-2));
  transition: border-color 120ms, transform 120ms;
}
.app:hover { border-color: rgba(var(--mint-rgb), 0.45); transform: translateY(-1px); }
.app b { display: block; font-size: 16px; font-weight: 600; }
.app small { color: var(--muted); font-size: 12px; }
.app-mark { width: 40px; height: 40px; border-radius: 11px; background: #0b141b; display: grid; place-items: center; flex: none; }

.grid {
  display: grid; gap: 14px;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  grid-template-areas: "live live" "side detail";
  align-items: start;
}
.live { grid-area: live; }
.side { grid-area: side; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.detail { grid-area: detail; min-height: 320px; }

/* live sessions */
.live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.room { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(0, 0, 0, 0.2); display: flex; flex-direction: column; gap: 8px; }
.room.is-live { border-color: rgba(var(--mint-rgb), 0.45); box-shadow: inset 3px 0 0 var(--mint); }
.room-top { display: flex; align-items: center; gap: 8px; }
.room-song { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-meta { color: var(--muted); font-size: 12px; }
.room-cue { color: var(--mint); font-size: 13px; }
.room-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { color: var(--faint); font-size: 13px; padding: 4px 2px; }

/* shows */
.show-list { display: flex; flex-direction: column; gap: 6px; }
.show-item {
  display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(0, 0, 0, 0.2); cursor: pointer;
}
.show-item:hover { border-color: var(--line-2); }
.show-item.active { border-color: rgba(var(--mint-rgb), 0.5); box-shadow: inset 3px 0 0 var(--mint); }
.show-name { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.show-meta { color: var(--muted); font-size: 12px; }

/* one show */
.detail-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.01em; color: var(--text); font-weight: 600; }
.detail-head p { margin: 2px 0 0; color: var(--muted); }
.detail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.col h3 { margin: 0 0 8px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; }
.row .when { font-size: 12px; color: var(--faint); }
.row .what { overflow: hidden; }
.row .what b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .what small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .state { font-size: 11px; color: var(--faint); }
.row.done { opacity: 0.45; }
.row.done .state { color: var(--muted); }
.row.now { border-color: rgba(var(--mint-rgb), 0.5); background: rgba(var(--mint-rgb), 0.06); }
.row.now .state, .row.now .when { color: var(--mint); }
.row.next { border-color: var(--line-2); }
.row.next .state { color: var(--text); }
.link-clock { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
/* the show's start: the whole run-of-show moves with it */
.start-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; padding: 9px 10px; border: 1px solid rgba(var(--mint-rgb), 0.35); border-radius: 12px; background: rgba(var(--mint-rgb), 0.04); }
.start-label { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin-right: 2px; }
.start-input { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); border-radius: 9px; padding: 4px 8px; color: var(--mint); font-size: 15px; color-scheme: dark; }
.start-bar .hint { flex-basis: 100%; }
.row .when .offset { display: block; font-size: 10px; color: var(--faint); text-transform: none; }
.row.now .when .offset { color: var(--mint); }
.select {
  appearance: none; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px 28px 5px 10px; font-size: 13px; min-width: 0; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.select option { background: var(--panel); }

/* grooves, history */
.mini-list { display: flex; flex-direction: column; gap: 4px; }
.mini { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.mini:hover { border-color: var(--line-2); }
.mini b { font-weight: 500; flex: 1 1 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini small { color: var(--muted); font-size: 12px; white-space: nowrap; }
button.mini { width: 100%; text-align: left; cursor: pointer; }
.timeline { list-style: none; margin: 6px 0 4px 6px; padding: 0 0 0 12px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.timeline li { color: var(--muted); }
.timeline li b { color: var(--text); font-weight: 500; }
.timeline .t { color: var(--faint); margin-right: 8px; font-size: 12px; }

.footer { text-align: center; color: var(--faint); font-size: 12px; margin-top: 8px; }
.footer a { color: var(--mint); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 9px 16px; border-radius: 999px; font-size: 13px;
  background: var(--mint); color: var(--on-accent); font-weight: 500; box-shadow: 0 10px 30px -8px rgba(var(--mint-rgb), 0.6);
  opacity: 0; pointer-events: none; transition: opacity 180ms, transform 180ms; z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--orange); color: #1a0a00; }

@media (max-width: 980px) {
  /* one column: the shows first, then the open show, then grooves and history */
  .grid { display: flex; flex-direction: column; }
  .side { display: contents; }
  .live { order: 0; } .shows { order: 1; } .detail { order: 2; } .grooves { order: 3; } .history { order: 4; }
  .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 16px 16px 32px; }
  .apps { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .dot.on { animation: none; } .app:hover { transform: none; } }
