* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  background: #0e1016;
  color: #e8edf5;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.brand h1 { margin: 0; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand p, #topStats { margin: 2px 0 0; color: #9aa6bb; font-size: 0.85rem; }
.views { display: flex; gap: 8px; margin-left: auto; }
.views button, .transport button, .row button {
  background: #1a2030;
  border: 1px solid #314056;
  border-radius: 8px;
  padding: 8px 12px;
}
.views button.on, .row button.play {
  background: #19c155;
  color: #06210f;
  border-color: #19c155;
  font-weight: 700;
}
.now {
  background: #151a24;
  border: 1px solid #2a3448;
  border-radius: 12px;
  padding: 12px;
}
#nowTitle { font-weight: 700; }
#nowProgram { color: #8fd9ff; font-size: 0.85rem; margin-top: 2px; }
#nowStars { margin-top: 6px; }
.progress-row, .transport {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.progress-row input { flex: 1; }
.play-btn { min-width: 72px; }
.volume {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #9aa6bb;
  font-size: 0.85rem;
}
.volume input { width: 120px; }
#volumeLabel { width: 2.2em; font-variant-numeric: tabular-nums; }
.view { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.hidden { display: none; }
.search { display: block; }
.row .name {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}
.search input {
  width: 100%;
  background: #121722;
  border: 1px solid #314056;
  border-radius: 8px;
  padding: 10px 12px;
}
.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(240px, 1.2fr);
  gap: 12px;
  min-height: 0;
}
.pane h2 { margin: 0 0 8px; font-size: 0.95rem; }
.list {
  background: #121722;
  border: 1px solid #2a3448;
  border-radius: 12px;
  max-height: calc(100vh - 280px);
  overflow: auto;
}
.row, .pick {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #243044;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.row:hover, .pick:hover, .row.on { background: #1c2636; }
.row .name, .pick span { flex: 1; min-width: 0; }
.top-show { color: #8fd9ff; }
.stars { display: inline-flex; gap: 1px; flex: 0 0 auto; }
.row .star, #nowStars .star {
  background: none;
  border: 0;
  border-radius: 0;
  color: #5c6b82;
  padding: 0 1px;
  font-size: 1rem;
  line-height: 1;
}
.star.on { color: #f5c451; }
.meta { color: #9aa6bb; font-size: 0.8rem; white-space: nowrap; }
.time { width: 52px; font-variant-numeric: tabular-nums; color: #8fd9ff; }
.empty { margin: 0; padding: 16px; color: #9aa6bb; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .list { max-height: 42vh; }
  .views { margin-left: 0; }
}
