/* Радио HP — тёмная тема в регистре Пульса: почти чёрный холст,
   пастельный градиент как единственный цвет, пилюли, крупные скругления. */
:root {
  color-scheme: dark;
  --bg: #0B0B0E;
  --card: #15151B;
  --card2: #1D1D25;
  --text: #FFFFFF;
  --muted: #8A8A9C;
  --line: #26262F;
  --coral: #FF8A5B;
  --lav: #B9C2FF;
  --down: #FF7A6B;
  --grad: linear-gradient(96deg, #B9C2FF 0%, #FFB0D3 46%, #FF8A5B 100%);
  --stack: 20px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* hidden сильнее любого display: иначе заставка плеера не уходила с экрана. */
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 400 16px/1.45 'Onest', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--lav); text-decoration: none; }
.wrap { max-width: 520px; margin: 0 auto; padding: 16px 16px 48px; }
.wrap > * + * { margin-top: var(--stack); }

header.top { display: flex; align-items: center; gap: 10px; }
header.top img { width: 28px; height: 28px; }
header.top .brand { font-weight: 600; letter-spacing: -0.01em; }
header.top .who { margin-left: auto; color: var(--muted); font-size: 14px; }

h1 {
  font-weight: 600; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; margin: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card { background: var(--card); border-radius: 20px; padding: 16px; }
.card > * + * { margin-top: 12px; }

/* — сейчас играет — */
.now { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.cover {
  width: 96px; height: 96px; border-radius: 16px; background: var(--card2) center/cover no-repeat;
}
.track-title { font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.track-artist { color: var(--muted); margin-top: 4px; }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--grad); }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

/* — большие кнопки эфира — */
.controls { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.big {
  border: 0; border-radius: 999px; background: var(--card2); padding: 16px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
  font-size: 14px;
}
.big svg { width: 26px; height: 26px; }
.big:active { transform: scale(.97); }
.big.on-like { background: var(--text); color: var(--bg); }
.big.danger svg { color: var(--down); }
.big[disabled] { opacity: .4; }

.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  border: 0; border-radius: 999px; background: var(--card2); padding: 10px 16px;
  white-space: nowrap; cursor: pointer; font-size: 15px;
}
.pill.on { background: var(--text); color: var(--bg); font-weight: 500; }

.row { display: flex; align-items: center; gap: 12px; }
.row > .grow { flex: 1; min-width: 0; }

input[type=range] { width: 100%; accent-color: var(--coral); }

.btn {
  display: inline-block; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  background: var(--text); color: var(--bg); font-weight: 500;
}
.btn.ghost { background: var(--card2); color: var(--text); }

.field { display: block; }
.field > span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: var(--card2); border: 0; border-radius: 12px; padding: 12px 14px;
}

/* — журнал — */
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.hist li + li { border-top: 1px solid var(--line); }
.hist .c { width: 40px; height: 40px; border-radius: 10px; background: var(--card2) center/cover; }
.hist .t { font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist .a { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist .r { font-size: 13px; color: var(--muted); text-align: right; }
.hist .r b { font-weight: 500; color: var(--text); }
.hist .r b.dis { color: var(--down); }
.linkish { background: none; border: 0; padding: 0; color: var(--lav); cursor: pointer; font-size: 13px; }

.status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--lav); box-shadow: 0 0 0 4px rgba(185,194,255,.15); }
.dot.bad { background: var(--down); }
.alert { background: rgba(255,122,107,.12); color: #FFC2BA; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.code { font: 600 32px/1 'JetBrains Mono', monospace; letter-spacing: .12em; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 13px; word-break: break-all; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
