.player2 {
  display: flex;
  justify-content: center;
  position: fixed;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 99999;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.player2.is-hidden { transform: translateY(100%); }
.player2-down-up {
  position: fixed;
  color: #fff;
  background: rgba(0,0,0,0.35);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1.5rem 0.15rem;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  z-index: 999999;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 0;
  pointer-events: auto;
}

.player2-down-up:hover { background: rgba(0,0,0,0.5); }
.player2-down-up span {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.2s;
  position: relative;
  top: -2px;
}
.player2.is-hidden ~ .player2-down-up span {
  transform: rotate(-136deg);
  top: 3px;
}
.player2 * {
  pointer-events: auto;
}
.player2-outer {
  background: #111;
  border-radius: 6px 28px 6px 28px;
  position: relative;
  width: 100%;
  transition: box-shadow 0.6s;
  box-shadow: 0 2px 14px rgba(0,0,0,0.6), inset 0 0 60px rgba(0,0,0,0.3);
  clip-path: inset(0 round 6px 28px 6px 28px);
} 
.player2-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 120%, var(--accent, transparent) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.6s;
}
.player2-topbar {
  height: 3px;
  background: var(--accent, #e8453c);
  border-radius: 6px 28px 0 0;
  transition: background 0.6s;
  position: relative;
  z-index: 1;
}
.player2-inner {
  background: #1e1e1e;
  border-radius: 4px 22px 4px 22px;
  margin: 5px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: background 0.6s;
}
.player2-viz {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

.player2-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  height: 50px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.player2-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.player2-btn {
  background: none;
  border: none;
  color: var(--icon-color, #999);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, transform 0.1s;
  line-height: 1;
  position: relative;
}
.player2-btn:hover { color: #fff; }
.player2-btn:active { transform: scale(0.92); }
.player2-btn.is-active { color: var(--accent, #e8453c); }
.player2-play {
  background: none;
  border: none;
  color: var(--icon-color, #fff);
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, background-color 0.15s;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.player2-play:hover { transform: scale(1.15); }
.player2-play:active { transform: scale(0.95); }
.player2-play.is-active { --pulse-state: block; }
.player2-play.is-active svg { filter: drop-shadow(0 0 4px var(--icon-color, #fff)); }
.player2-play::after,
.player2-play::before {
  pointer-events: none;
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  background: #ff2020;
  border-radius: 50%;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  animation: 2s ease-out infinite pulsePlay;
  display: var(--pulse-state, none);
}
.player2-play::after { animation-delay: 1s; }
@keyframes pulsePlay {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.2); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

#player2Expand.is-open svg { transform: rotate(180deg); transition: transform 0.2s; }
.player2-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #333;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player2-art img { width: 100%; height: 100%; object-fit: cover; }
.player2-info {
  flex: 1;
  min-width: 0;
}
.player2-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.player2-sub {
  font-size: 11px;
  font-weight: 600;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.player2-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.player2-volwrap { position: relative; }
.player2-voldrop {
  display: none;
  position: fixed;
  z-index: 999999;
}
.player2-voldrop.open { display: block; }
.player2-voldrop input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 4px;
  height: 80px;
  background: #555;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 0;
}
.player2-voldrop input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #e8453c);
  cursor: pointer;
  border: none;
}
.player2-voldrop input[type=range]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #e8453c);
  cursor: pointer;
  border: none;
}
.player2-stationsdrop,
.player2-historydrop,
.player2-sharedrop {
  display: none;
  position: fixed;
  z-index: 999999;
  padding: 6px 0;
  max-height: 200px;
  overflow-y: auto;
}
.player2-stationsdrop.open,
.player2-historydrop.open,
.player2-sharedrop.open { display: block; }
.player2-stationsdrop-item,
.player2-historydrop-item,
.player2-sharedrop-item {
  padding: 6px 14px;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 4px;
}
.player2-stationsdrop-item:hover,
.player2-historydrop-item:hover,
.player2-sharedrop-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.player2-stationsdrop-item.is-current { color: #fff; font-weight: 600; }
.player2-stationsdrop-item.is-current::before { content: "▶ "; font-size: 10px; }
.player2-historydrop-item { display: flex; flex-direction: column; gap: 1px; pointer-events: none; }
.player2-historydrop-item .h-title { color: #fff; font-size: 13px; }
.player2-historydrop-item .h-sub { color: #888; font-size: 11px; }
.player2-historydrop-item + .player2-historydrop-item { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 7px; margin-top: 2px; }
.player2-voldrop input[type=range]::-moz-range-track {
  background: #555;
  border-radius: 2px;
  height: 80px;
}
.none { display: none !important; }
.dark-mode .player2-outer { background: #0a0a0a; }
.dark-mode .player2-inner { background: #1a1a1a; }


