/* Sticky bottom player — adapted from style-base audio-player */
.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 200;
  display: none;
  flex-direction: column;
  user-select: none;
}

.player.visible { display: flex; }

/* Progress bar — thin line at top */
.player-progress {
  width: 100%;
  height: 3px;
  position: relative;
  cursor: pointer;
}

.player-progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.2s linear;
}

/* Main row */
.player-main {
  display: flex;
  align-items: center;
  padding: 0.4rem var(--s2);
  gap: 0.6rem;
}

/* Track info */
.player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.player-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Time */
.player-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.player-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.player-btn:hover { color: var(--text); }
.player-btn svg { width: 18px; height: 18px; }

.player-btn-play {
  color: var(--text);
}
.player-btn-play svg { width: 22px; height: 22px; }

/* Generating state in player */
.player-generating {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .player-main { padding: 0.3rem var(--s2); gap: 0.4rem; }
  .player-title { font-size: 0.7rem; }
}
