:root {
  --bg: #0b0f17;
  --card: #121a2a;
  --muted: #90a4c3;
  --text: #e8eefc;
  --accent: #4f8cff;
  --accent2: #22c55e;
  --danger: #ef4444;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1000px 500px at 20% -10%, rgba(79, 140, 255, 0.35), transparent),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 197, 94, 0.25), transparent),
    var(--bg);
  color: var(--text);
}

.top {
  padding: 18px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.top h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.status {
  color: var(--muted);
  font-size: 13px;
}

.wrap {
  padding: 18px 12px 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 70%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.playSurface {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 14px;
  padding: 14px;
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.35);
}

.playSurface.isPlaying {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
}

.playIcon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.playLabel {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  word-break: break-word;
}

.progressWrap {
  margin-top: 10px;
}

.progressBar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.12s linear;
}

.timeLine {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

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

.actions {
  display: flex;
  gap: 10px;
  min-width: 120px;
}

button {
  width: 100%;
}

button {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.04s ease, border-color 0.12s ease, background 0.12s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button.primary {
  background: rgba(79, 140, 255, 0.12);
  border-color: rgba(79, 140, 255, 0.35);
}

button.primary:active {
  transform: translateY(1px);
}

.footer {
  padding: 12px 16px 18px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  background: rgba(18, 26, 42, 0.92);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.toast.show {
  opacity: 1;
}

