/* Listener skin — modelled on the BambiCloud layout: a pink top bar with pill
   nav, one centered column of rounded cards, collapsible panels, numbered
   track lists. Everything here is scoped under body.listener so the owner's
   sidebar UI is untouched. */

body.listener {
  --bc-bg: #f8a1b6;
  --bc-header: #f1607f;
  --bc-card: #f4718c;
  --bc-panel: #f9a8ba;
  --bc-panel-2: #fbbdcb;
  --bc-ink: #2c2729;
  --bc-ink-soft: #5d4b52;
  --bc-line: rgba(255, 255, 255, .45);
  --bc-radius: 16px;

  background: var(--bc-bg);
  color: var(--bc-ink);
  font-family: ui-rounded, "Nunito", "Varela Round", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

/* The moon toggle swaps to a dark pink night mode. */
body.listener.night {
  --bc-bg: #2a1020;
  --bc-header: #521a36;
  --bc-card: #46162f;
  --bc-panel: #5c2242;
  --bc-panel-2: #6d2c50;
  --bc-ink: #ffe6f0;
  --bc-ink-soft: #e3a8c2;
  --bc-line: rgba(255, 255, 255, .16);
}

body.listener #app { display: block; height: auto; }
body.listener aside,
body.listener #menu-btn { display: none !important; }
body.listener main {
  overflow: visible;
  max-width: 810px;
  margin: 0 auto;
  padding: 22px 16px 190px;
}

/* ------------------------------------------------------------------ header */

#topnav {
  background: var(--bc-header);
  padding: 12px 20px 14px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  border-bottom: 3px solid rgba(0, 0, 0, .09);
}
#topnav .bc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 33px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .07);
}
#theme-toggle {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
#theme-toggle:hover { transform: scale(1.12); }

#bc-nav { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 5px; }
#bc-nav a {
  background: rgba(255, 255, 255, .19);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 7px 17px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background .13s, transform .13s;
}
#bc-nav a:hover { background: rgba(255, 255, 255, .34); }
#bc-nav a.on { background: #fff; color: var(--bc-header); }

/* ------------------------------------------------------------------- cards */

.bc-card {
  background: var(--bc-card);
  border-radius: var(--bc-radius);
  padding: 20px;
  margin-bottom: 26px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .07);
}
.bc-card h1 {
  margin: 4px 0 2px;
  text-align: center;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.15;
}
.bc-card .by { text-align: center; color: #fff; font-size: 17px; margin-bottom: 14px; }
.bc-card .by b { text-decoration: underline; font-weight: 700; }

.pill-row { display: flex; justify-content: center; margin-bottom: 16px; }
.pill-group {
  background: var(--bc-panel);
  border-radius: 999px;
  padding: 8px 20px;
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--bc-ink);
}
.pill {
  background: var(--bc-panel);
  border-radius: 999px;
  padding: 5px 15px;
  font-weight: 700;
  font-size: 14px;
  color: var(--bc-ink);
  white-space: nowrap;
}

/* Collapsible panel — the Description / Triggers / More Info blocks. */
.bc-panel {
  background: var(--bc-panel);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.bc-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 17px;
  font-size: 20px;
  font-weight: 800;
  color: var(--bc-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bc-panel > summary::-webkit-details-marker { display: none; }
.bc-panel > summary::after {
  content: "⌄";
  font-size: 21px;
  line-height: 1;
  transform: translateY(-3px);
  transition: transform .18s;
}
.bc-panel[open] > summary::after { transform: rotate(180deg) translateY(2px); }
.bc-panel .body { padding: 0 17px 15px; color: var(--bc-ink); font-size: 15.5px; }
.bc-panel .body p { margin: 0 0 12px; }

.bc-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.bc-btn {
  border: none;
  border-radius: 10px;
  width: 46px; height: 40px;
  font-size: 17px;
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
}
.bc-btn.blue { background: #3d6ff0; }
.bc-btn.red { background: #e13c3c; }
.bc-btn:hover { filter: brightness(1.08); }

/* --------------------------------------------------- playlist / file block */

.bc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.bc-head h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.4px;
  flex: 1;
  min-width: 0;
}
.round-play {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--bc-card);
  font-size: 15px;
  cursor: pointer;
  display: grid; place-items: center;
  flex: 0 0 auto;
  padding: 0;
}
.round-play:hover { transform: scale(1.08); }

.bc-track {
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  align-items: center;
  gap: 12px;
  background: var(--bc-panel);
  border-radius: 12px;
  padding: 11px 15px;
  margin-bottom: 9px;
  cursor: pointer;
}
.bc-track:hover { background: var(--bc-panel-2); }
.bc-track.playing { background: var(--bc-panel-2); box-shadow: inset 0 0 0 2px #fff; }
.bc-track .idx { font-size: 21px; font-weight: 900; color: var(--bc-ink); opacity: .55; }
.bc-track .t { font-size: 17px; font-weight: 700; color: var(--bc-ink); }
.bc-track .m { font-size: 12.5px; color: var(--bc-ink-soft); font-weight: 600; margin-top: 1px; }
.bc-track .d { font-size: 14px; font-weight: 700; color: var(--bc-ink); font-variant-numeric: tabular-nums; }

.bc-tag {
  display: inline-block;
  background: rgba(255, 255, 255, .5);
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 5px;
}
body.listener.night .bc-tag { background: rgba(255, 255, 255, .16); }

/* ------------------------------------------------------------ level bar */

.bc-prog-title {
  margin: 2px 0 15px;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.bc-bar {
  height: 44px;
  border-radius: 999px;
  background: #b8536e;
  overflow: hidden;
}
body.listener.night .bc-bar { background: rgba(0, 0, 0, .35); }
.bc-bar > i {
  display: block;
  height: 100%;
  min-width: 44px;
  border-radius: 999px;
  background: #f9bfcd;
  transition: width .5s ease;
}
body.listener.night .bc-bar > i { background: var(--bc-panel-2); }
.bc-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}
.bc-bar-note {
  margin-top: 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 13.5px;
  font-weight: 600;
}

.bc-search { margin-bottom: 18px; }
.bc-search input {
  background: var(--bc-panel);
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bc-ink);
}
.bc-search input::placeholder { color: var(--bc-ink-soft); }
.bc-search input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }

.bc-empty {
  text-align: center;
  color: #fff;
  font-weight: 700;
  padding: 34px 0;
}

.bc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bc-stat {
  background: var(--bc-panel);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.bc-stat .v { font-size: 30px; font-weight: 900; color: var(--bc-ink); }
.bc-stat .k { font-size: 12px; font-weight: 700; color: var(--bc-ink-soft); text-transform: uppercase; letter-spacing: .8px; }

/* ------------------------------------------------------- player, restyled */

body.listener #player {
  left: 0;
  background: var(--bc-header);
  border-top: 3px solid rgba(0, 0, 0, .09);
  box-shadow: none;
  color: #fff;
  padding: 10px 18px 12px;
}
body.listener #now-art { border: none; border-radius: 10px; }
body.listener #player .now .s { color: rgba(255, 255, 255, .82); }
body.listener #player .time { color: rgba(255, 255, 255, .85); }
body.listener #player button.ghost { color: #fff; }
body.listener #player button.ghost:hover { background: rgba(255, 255, 255, .2); }
body.listener #player button.primary {
  background: #fff;
  color: var(--bc-header);
  box-shadow: none;
}
body.listener #seek, body.listener #vol { background: rgba(255, 255, 255, .35); }
body.listener #seek::-webkit-slider-thumb { background: #fff; box-shadow: none; }
body.listener #vol::-webkit-slider-thumb { background: #fff; }

/* Login card picks up the same palette for members and owner alike. */
body.listener #login .card { background: var(--bc-card); }

@media (max-width: 700px) {
  #topnav { gap: 12px; padding: 10px 14px 12px; }
  #topnav .bc-brand { font-size: 26px; }
  #bc-nav a { font-size: 14px; padding: 6px 13px; }
  .bc-card h1 { font-size: 26px; }
  .bc-head h2 { font-size: 21px; }
}
