:root {
  /* Matched to ThreeCountiesRP's own palette in css/style.css */
  --fp-accent: #2fe9df;       /* --teal-bright */
  --fp-accent-dim: #13a3a1;   /* --teal */
  --fp-accent-ink: #041413;   /* dark ink used on teal buttons (.btn-discord) */
  --fp-text: #ffffff;         /* --white */
  --fp-text-muted: #9db3b2;   /* --grey */
  --fp-surface: #0c1114;      /* --panel */
  --fp-swatch-bg: rgba(19, 163, 161, 0.14);
  --fp-border: rgba(19, 163, 161, 0.4);
  --fp-dock-icon: #9db3b2;
  --fp-font: 'Rajdhani', Arial, Helvetica, sans-serif;
}

.fp-card {
  position: fixed;
  box-sizing: border-box;
  width: 224px;
  height: 108px;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(47, 233, 223, 0.18);
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 1000;
  overflow: hidden;
}
.fp-card.dragging { cursor: grabbing; }
.fp-card[hidden] { display: none; }

/* Slim, single-line scrolling banner - avoids the message wrapping and
   crowding the player row at this card's width. */
.fp-banner {
  flex-shrink: 0;
  height: 22px;
  overflow: hidden;
  background: var(--fp-accent);
}

.fp-banner-track {
  display: flex;
  width: max-content;
  animation: fp-marquee 9s linear infinite;
}

.fp-card:hover .fp-banner-track,
.fp-card.dragging .fp-banner-track {
  animation-play-state: paused;
}

.fp-banner-track span {
  flex-shrink: 0;
  display: block;
  padding: 0 20px;
  color: var(--fp-accent-ink);
  font-family: var(--fp-font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 22px;
  white-space: nowrap;
}

@keyframes fp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.fp-row {
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fp-art {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--fp-swatch-bg);
}

.fp-info { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fp-title {
  font-family: var(--fp-font);
  font-size: 13px; font-weight: 700; color: var(--fp-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-artist {
  font-family: var(--fp-font);
  font-size: 12px; font-weight: 600; color: var(--fp-text-muted);
  text-transform: uppercase; letter-spacing: 0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.fp-btn {
  border: none; background: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.fp-play {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--fp-accent); color: var(--fp-accent-ink);
  box-shadow: 0 0 10px rgba(47, 233, 223, 0.5);
}

.fp-dock { width: 18px; height: 18px; color: var(--fp-dock-icon); }

/* Volume slider row, pinned along the bottom of the card. */
.fp-volume-row {
  flex-shrink: 0;
  height: 26px;
  box-sizing: border-box;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--fp-border);
}

.fp-volume-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--fp-text-muted);
}

.fp-volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--fp-swatch-bg);
  outline: none;
  cursor: pointer;
  margin: 0;
}
.fp-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fp-accent);
  cursor: pointer;
}
.fp-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fp-accent);
  border: none;
  cursor: pointer;
}
.fp-volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--fp-swatch-bg);
}

.fp-tab {
  position: fixed;
  box-sizing: border-box;
  width: 30px;
  height: 64px;
  border: 1px solid var(--fp-border);
  background: var(--fp-surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(47, 233, 223, 0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--fp-accent);
  z-index: 1000;
}
.fp-tab[hidden] { display: none; }
.fp-tab.dock-left  { border-radius: 0 12px 12px 0; }
.fp-tab.dock-right { border-radius: 12px 0 0 12px; }
