/* Station Player in the car: big targets, readable at a glance, dark. */
:root {
  --bg: #0e1013;
  --panel: #1c2026;
  --panel-2: #262b33;
  --text: #eef0f3;
  --muted: #9aa1ad;
  --accent: #f5a524;
  --accent-text: #1b1204;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.now { text-align: center; padding: 8px 0 4px; }
.now h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
#now-status { margin: 6px 0 0; min-height: 1.4em; color: var(--muted); }

.transport { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 16px 0 20px; }
.transport button {
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  background: var(--panel-2);
}
.transport svg { fill: currentColor; }
.transport .side { width: 76px; height: 76px; }
.transport .side svg { width: 34px; height: 34px; }
.transport .main { width: 112px; height: 112px; background: var(--accent); color: var(--accent-text); }
.transport .main svg { width: 52px; height: 52px; }
.transport button:disabled { opacity: .4; cursor: default; }
.transport button:active:not(:disabled) { transform: scale(.96); }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

#tags { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
#tags::-webkit-scrollbar { display: none; }
.tag {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--panel);
}
.tag[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }

#stations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.station {
  width: 100%;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.station[aria-current="true"] { border-color: var(--accent); background: var(--panel-2); }
.station:active { background: var(--panel-2); }
.badge {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: hsl(var(--hue, 30) 45% 32%);
}
.label { overflow-wrap: anywhere; }

#empty { text-align: center; color: var(--muted); padding: 24px 8px; }
#empty h2 { color: var(--text); margin: 0 0 8px; }
footer { margin-top: 28px; color: var(--muted); font-size: 15px; text-align: center; }
footer p { margin: 6px 0; }
#tip-install:empty { display: none; }

/* A phone on its side in a dashboard holder: the buttons on the left,
   the stations beside them. */
@media (orientation: landscape) and (max-height: 540px) {
  main {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(260px, 38%) 1fr;
    column-gap: 20px;
    align-items: start;
  }
  .controls { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 0; }
  main > :not(.controls) { grid-column: 2; }
  .now h1 { font-size: 26px; }
  .transport { margin: 12px 0; }
  .transport .main { width: 96px; height: 96px; }
}
