/* ===========================================================================
   station.css — the owner's console for a listener-run station.
   Loaded after account.css, whose tokens and card/form styles it builds on.
   =========================================================================== */

.station-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* The colour the owner picked, echoing the stripe on the tuner card. */
.station-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  background: var(--bronze);
}

.station-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(22px, 4.5vw, 30px);
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0;
  overflow-wrap: anywhere;
}

.station-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--ink-dim);
}

.station-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.station-actions .btn-secondary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ---------- On air ---------- */
.onair-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--edge-soft);
}

.onair-strip img {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}

.onair-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}

.onair-title {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.onair-artist {
  font-size: 13px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Running order ---------- */
.running-order {
  list-style: none;
  margin: 0;
  padding: 0;
}

.running-order li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--edge-soft);
}

.running-order li:first-child { border-top: none; }

/* The track currently airing, so the owner can see where the loop is. */
.running-order li.live {
  background: var(--bronze-wash);
  border-radius: var(--r);
  padding-left: 10px;
  padding-right: 10px;
  margin: 2px -10px;
}

.running-order .idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-dim);
  width: 22px;
  flex: none;
  text-align: right;
}

.running-order img {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}

.running-order .meta { flex: 1; min-width: 0; }

.running-order .meta b {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.running-order .meta span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.on-air-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bronze);
  border: 1px solid var(--bronze-line);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: 1px;
}

.row-actions {
  display: flex;
  gap: 5px;
  flex: none;
}

.mini {
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  color: var(--ink-mid);
  font-size: 13px;
  line-height: 1;
  padding: 7px 9px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.mini:hover:not(:disabled) { color: var(--ink); border-color: var(--bronze-line); }
.mini:disabled { opacity: .35; cursor: default; }
.mini.danger:hover { color: var(--red); border-color: var(--red); }

/* ---------- Colour picker ---------- */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .12s ease;
}

.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: var(--ink); }

@media (max-width: 560px) {
  .station-actions { width: 100%; }
  .station-actions .btn-secondary { flex: 1; justify-content: center; }
  .running-order .idx { display: none; }
}
