/* WEES OnAir — now-playing & schedule widgets + admin. Light/dark; neutral with
   a teal accent to sit with the WEES/Koast family. Widgets use a transparent
   background so they drop onto any page. */
:root {
  color-scheme: light dark;
  --teal: #2f7f96; --lime: #82c341; --coral: #fe6459; --navy: #001d39;
  --page: #f6f8f9; --surface: #fff; --surface-2: #eef3f5;
  --ink: #0a1620; --muted: #637280; --line: #dde6ea;
  --radius: 12px; --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --page: #061018; --surface: #0e1c27; --surface-2: #13242f; --ink: #eaf2f5; --muted: #8397a3; --line: #22333f; }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--page); line-height: 1.5; }
body.embed { background: transparent; }
a { color: var(--teal); }
.muted { color: var(--muted); }
.wrap { max-width: 860px; margin: 0 auto; padding: 20px 18px 40px; }

/* Now-playing widget */
.np-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; max-width: 420px; }
body.np { padding: 2px; }
.np-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); flex: none; box-shadow: 0 0 0 0 rgba(254,100,89,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(254,100,89,.6)} 70%{box-shadow:0 0 0 9px rgba(254,100,89,0)} 100%{box-shadow:0 0 0 0 rgba(254,100,89,0)} }
.np-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.np-show { font-weight: 800; font-size: 1.05rem; }
.np-track { color: var(--muted); font-size: .9rem; }

/* Schedule widget */
.sched-wrap { display: grid; gap: 14px; }
.sd h3 { margin: 0 0 6px; color: var(--teal); font-size: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.sd ul { list-style: none; margin: 0; padding: 0; }
.sd li { display: flex; gap: 12px; padding: 4px 0; }
.sd .t { font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; width: 48px; flex: none; }
.sd .p { color: var(--muted); }

/* Admin */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .bar { display: flex; justify-content: space-between; align-items: center; max-width: 860px; margin: 0 auto; padding: 12px 18px; }
.who { color: var(--muted); font-size: .9rem; }
.tag { background: var(--teal); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: .72rem; font-weight: 700; }
.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 640px) { .status { grid-template-columns: 1fr; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.box .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.box .val { font-weight: 700; margin-top: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.login-card { max-width: 420px; margin: 40px auto; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
.sub { color: var(--muted); }
.err { color: var(--coral); font-weight: 600; }
input { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--ink); }
.form label, .add label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.form input { width: 100%; margin-top: 4px; }
.btn { background: var(--lime); color: #06240a; border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 800; cursor: pointer; }
table.shows { width: 100%; border-collapse: collapse; }
table.shows th { text-align: left; font-size: .78rem; color: var(--muted); padding: 6px; }
table.shows td { padding: 5px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
table.shows input { width: 100%; }
table.shows td.days, table.shows td.row-actions { white-space: nowrap; width: 1%; }
.days label { display: inline-flex; align-items: center; gap: 2px; font-size: .78rem; margin-right: 6px; }
.days input { width: auto; }
.mini { border: 1px solid var(--line); background: var(--page); color: var(--ink); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.mini.del:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.row-actions form { display: inline; }
.add { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; max-width: 560px; }
.add .g { display: flex; gap: 12px; flex-wrap: wrap; }
.add .g label { flex: 1; min-width: 120px; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: .88em; }
