/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0f1115;
  color: #eee;
}

.app {
  padding: 16px;
}

/* =========================
   HEADER
========================= */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.title-wrap h1 {
  margin: 0;
  font-size: 20px;
}

.subtle {
  font-size: 13px;
  color: #aaa;
}

/* =========================
   BADGES
========================= */

.badges {
  display: flex;
  gap: 8px;
}

.badge {
  padding: 6px 10px;
  border-radius: 8px;
  background: #1a1d24;
  border: 1px solid #2a2f3a;
  font-size: 13px;
}

/* =========================
   TABS
========================= */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #2a2f3a;
  background: #1a1d24;
  color: #eee;
  cursor: pointer;
}

.tab.active {
  background: #2a2f3a;
}

/* =========================
   PANELS
========================= */

.panel {
  background: #1a1d24;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #2a2f3a;
}

.panel h2 {
  margin-top: 0;
}

/* =========================
   GRID
========================= */

.grid {
  display: grid;
  gap: 10px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

/* =========================
   BUTTONS
========================= */

button {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #2a2f3a;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

button:active {
  transform: scale(0.97);
}

/* =========================
   NOW PLAYING
========================= */

.now-playing-panel {
  margin-top: 8px;
}

.now-playing-card {
  display: flex;
  gap: 12px;
}

.now-playing-info {
  flex: 1;
}

.now-playing-title {
  font-weight: bold;
  margin-bottom: 6px;
}

/* =========================
   TIME + PROGRESS
========================= */

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin: 6px 0;
}

.progress-wrap {
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #2a2f3a;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #3fb950;
  transition: width 0.3s ease;
}

/* =========================
   STATUS LINE
========================= */

.status-line {
  margin-top: 10px;
  font-size: 13px;
  color: #aaa;
}

/* =========================
   ACTIONS
========================= */

.actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

/* =========================
   VIEW SYSTEM
========================= */

.view {
  display: none;
}

.view.active {
  display: block;
}