/* ============================================================
   SIDEBAR BATTLE FILTER TABS
   ============================================================ */
.co-sidebar-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.co-sf-tab {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 5px 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--co-text-muted);
  background: var(--co-bg-elevated);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius-sm);
  cursor: pointer;
  transition: all var(--co-dur) var(--co-ease);
  user-select: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.co-sf-tab:hover { color: var(--co-gold); border-color: var(--co-gold-border); }
.co-sf-tab.is-active {
  background: var(--co-gold);
  border-color: var(--co-gold);
  color: #000;
}

/* Hide filtered items */
.co-battle-mini-card { transition: opacity 0.2s, transform 0.2s; }
.co-battle-mini-card.co-hidden { display: none; }

/* ============================================================
   PLAY BUTTONS on sidebar fighter cards
   ============================================================ */
.co-bmc-tracks {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--co-border);
}

.co-bmc-play-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  background: rgba(255,215,0,0.08);
  border: 1px solid var(--co-gold-border);
  border-radius: var(--co-radius-sm);
  color: var(--co-gold);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--co-dur) var(--co-ease);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.co-bmc-play-btn:hover {
  background: var(--co-gold);
  color: #000;
  border-color: var(--co-gold);
}
.co-bmc-play-btn svg { flex-shrink: 0; }
.co-bmc-play-btn.is-playing {
  background: var(--co-gold);
  color: #000;
}
.co-bmc-play-btn.no-track {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ============================================================
   STICKY AUDIO PLAYER BAR
   ============================================================ */
#co-player-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: calc(var(--co-z-nav) - 1);
  background: rgba(15,15,15,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--co-gold-border);
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  /* Sits just above mobile bottom nav */
  bottom: var(--co-bottom-nav-h);
  /* Start hidden - slides up when active */
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* On desktop - sits at very bottom (no bottom nav) */
@media (min-width: 768px) {
  #co-player-bar { bottom: 0; }
}

#co-player-bar.co-player-active {
  transform: translateY(0);
}

/* Account for player bar height when active */
body.co-player-open {
  padding-bottom: calc(var(--co-bottom-nav-h) + 64px) !important;
}
@media (min-width: 768px) {
  body.co-player-open { padding-bottom: 64px !important; }
}

/* Seek bar at very top of player */
.co-player-seekbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--co-surface);
  cursor: pointer;
}
.co-player-seekbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--co-gold), #FFA500);
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}
.co-player-seekbar:hover .co-player-seekbar-fill { background: var(--co-gold); }

/* Avatar */
.co-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--co-radius-sm);
  object-fit: cover;
  background: var(--co-surface);
  border: 1px solid var(--co-gold-border);
  flex-shrink: 0;
}

/* Track info */
.co-player-info {
  flex: 1;
  min-width: 0;
}
.co-player-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--co-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-player-artist {
  font-size: 0.75rem;
  color: var(--co-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls */
.co-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.co-player-btn {
  background: transparent;
  color: var(--co-text-secondary);
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--co-dur) var(--co-ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-player-btn:hover { color: var(--co-gold); background: var(--co-gold-glow); }

.co-player-btn--play {
  width: 40px;
  height: 40px;
  background: var(--co-gold) !important;
  color: #000 !important;
  border-radius: 50% !important;
}
.co-player-btn--play:hover {
  background: var(--co-gold-dim) !important;
  transform: scale(1.05);
}

.co-player-time {
  font-size: 0.72rem;
  color: var(--co-text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 70px;
  text-align: center;
}

.co-player-btn--close {
  color: var(--co-text-muted);
  margin-left: 4px;
}

/* Volume on desktop only */
.co-player-volume {
  display: none;
  align-items: center;
  gap: 6px;
}
@media (min-width: 768px) {
  .co-player-volume { display: flex; }
}
.co-player-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: var(--co-surface);
  outline: none;
  cursor: pointer;
}
.co-player-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--co-gold);
  cursor: pointer;
}
/* ============================================================
   PLAY BUTTON - icon only, centered under fighter name
   ============================================================ */
.co-bmc-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

/* Override: play btn inside fighter - icon only, small */
.co-bmc-fighter .co-bmc-play-btn {
  flex: none !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}

.co-bmc-fighter .co-bmc-play-btn.no-track {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  padding: 0 !important;
}

/* Remove the old co-bmc-tracks row styles (no longer used) */
.co-bmc-tracks { display: none !important; }
