/* ./css/bar-blackbox.css */
/* BLACKBOX LOGS — Terminal Edition (no boxes, no pills, no cards) */

.bbPanel{
  position: relative;
  overflow: hidden;
  padding: 14px 14px 12px;

  /* terminal vibe base */
  color: rgba(255,255,255,0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.02em;
}

/* background: subtle CRT + TSUUNAMI glow (no “dashboard”) */
.bbPanel::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(700px 320px at 18% 0%, rgba(134,251,255,0.10), transparent 55%),
    radial-gradient(900px 420px at 100% 20%, rgba(198,83,255,0.07), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.00), rgba(0,0,0,0.18));
  pointer-events:none;
  z-index:0;
}
.bbPanel::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.030) 0px,
      rgba(255,255,255,0.030) 1px,
      rgba(0,0,0,0.00) 2px,
      rgba(0,0,0,0.00) 4px
    );
  opacity: 0.10;
  mix-blend-mode: overlay;
  pointer-events:none;
  z-index:0;
}
.bbPanel > *{ position: relative; z-index:1; }

/* kill “buttony” globally */
.bbPanel button{
  all: unset;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

/* dividers only */
.bbDivider{
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 10px 0;
}
.bbDivider.soft{
  background: rgba(255,255,255,0.07);
  margin: 10px 0 8px;
}

/* title row */
.bbTitleRow{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 6px;
}
.bbTitle{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
}
.bbX{
  opacity: 0.55;
  font-size: 16px;
  line-height: 1;
}
.bbX:hover{ color: var(--accent, #86fbff); opacity: 1; }

/* TOTAL STANDING: one thin line */
.bbTopLine{
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.10em;
  margin: 4px 0 6px;
}

/* tabs (text only) */
.bbTabsText{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}
.bbTabLink{ opacity: 0.45; }
.bbTabLink.on{
  opacity: 1;
  color: var(--accent, #86fbff);
  text-shadow: 0 0 12px rgba(134,251,255,0.18);
}
.bbPipe{
  opacity: 0.25;
}
.bbPipe.tiny{ opacity: 0.20; }

/* player area */
.bbPlayerArea{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.bbNowKey{
  font-size: 10px;
  opacity: 0.55;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.bbNowLine{
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.92;
  padding: 2px 0;
}

/* marquee when overflow */
.bbNowLine.bbMarquee span{
  display:inline-block;
  padding-left: 100%;
  will-change: transform;
  animation: bb-marq 12s linear infinite;
}
@keyframes bb-marq{
  from{ transform: translateX(0); }
  to{ transform: translateX(-100%); }
}
/* edge fade */
.bbNowLine::before,
.bbNowLine::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 18px;
  pointer-events:none;
  z-index:2;
}
.bbNowLine::before{
  left:0;
  background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0));
}
.bbNowLine::after{
  right:0;
  background: linear-gradient(to left, rgba(0,0,0,0.65), rgba(0,0,0,0));
}

/* controls: text toggles */
.bbControls{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.80;
}
.bbCtl{
  opacity: 0.60;
}
.bbCtl:hover{
  opacity: 1;
  color: var(--accent, #86fbff);
}

/* meters: ASCII bar lines */
.bbMeters{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.bbMRow{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 11px;
  opacity: 0.88;
}
.bbMName{
  width: 92px;
  opacity: 0.70;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bbMeter{
  flex: 1;
  opacity: 0.75;
  letter-spacing: 0.05em;
}
.bbMNum{
  width: 34px;
  text-align:right;
  opacity: 0.85;
}

/* picker label + line */
.bbPickerFlat{
  margin-top: 10px;
}
.bbPickerLabel{
  font-size: 10px;
  opacity: 0.55;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.bbPickLine{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.bbPickLink{
  opacity: 0.45;
  text-transform: uppercase;
}
.bbPickLink.on{
  opacity: 1;
  color: var(--accent, #86fbff);
  text-shadow: 0 0 12px rgba(134,251,255,0.18);
}

/* list: terminal rows, divider feel */
.bbList{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
}
.bbRow{
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bbRowMain{
  display:grid;
  grid-template-columns: 18px 1fr 44px;
  gap: 10px;
  align-items:center;
}
.bbRowL{
  opacity: 0.55;
}
.bbRowT{
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bbRowR{
  text-align:right;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.bbRow.locked{
  opacity: 0.35;
}
.bbRow.locked .bbRowL{ opacity: 0.30; }
.bbRow.locked .bbRowR{ opacity: 0.55; }

.bbRow.unlocked:hover .bbRowT{
  color: var(--accent, #86fbff);
  opacity: 1;
}

.bbRow.playing .bbRowT{
  color: var(--accent, #86fbff);
  opacity: 1;
}
.bbRow.playing .bbRowL,
.bbRow.playing .bbRowR{
  opacity: 0.85;
}

.bbRowSub{
  margin-left: 28px;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.45;
  text-transform: uppercase;
}

/* empty */
.bbEmpty{
  padding: 8px 0;
  opacity: 0.65;
  letter-spacing: 0.12em;
}

/* footer */
.bbFoot{
  margin-top: 12px;
}
.bbBack{
  display:block;
  padding: 10px 0;
  opacity: 0.60;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bbBack:hover{
  opacity: 1;
  color: var(--accent, #86fbff);
}

/* ---------------- micro “terminal glitch” (tasteful) ---------------- */
.bbGlitch{
  position: relative;
}
.bbGlitch::before,
.bbGlitch::after{
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events:none;
}
.bbGlitch::before{
  color: rgba(134,251,255,0.65);
  transform: translate(1px, 0);
}
.bbGlitch::after{
  color: rgba(198,83,255,0.55);
  transform: translate(-1px, 0);
}

.bbGlitchSoft:hover{
  color: var(--accent, #86fbff);
  text-shadow: 0 0 12px rgba(134,251,255,0.20);
}

/* occasional flicker */
.bbPanel .bbGlitch{
  animation: bb-flick 7.5s infinite steps(1, end);
}
@keyframes bb-flick{
  0%, 92% { }
  93% { opacity: 0.98; }
  94% { opacity: 0.78; }
  95% { opacity: 0.98; }
  96% { opacity: 0.90; }
  97% { opacity: 1; }
  98% { }
  99% { }
  100% { }
}

/* glitch blips */
.bbPanel .bbGlitch::before{
  animation: bb-g1 9s infinite steps(1, end);
}
.bbPanel .bbGlitch::after{
  animation: bb-g2 11s infinite steps(1, end);
}
@keyframes bb-g1{
  0%, 94% { opacity:0; }
  95% { opacity:0.35; clip-path: inset(0 0 60% 0); }
  96% { opacity:0; }
  100%{ opacity:0; }
}
@keyframes bb-g2{
  0%, 96% { opacity:0; }
  97% { opacity:0.28; clip-path: inset(55% 0 0 0); }
  98% { opacity:0; }
  100%{ opacity:0; }
}
/* --- NOW PLAYING: subtle scan shimmer on active row --- */
.bbRow.playing{
  position: relative;
}
.bbRow.playing::after{
  content:"";
  position:absolute;
  left:0; right:0;
  top:0; height:100%;
  background: linear-gradient(
    to bottom,
    rgba(134,251,255,0.00),
    rgba(134,251,255,0.06),
    rgba(134,251,255,0.00)
  );
  transform: translateY(-120%);
  animation: bbScan 2.8s linear infinite;
  pointer-events:none;
  opacity: 0.9;
}
@keyframes bbScan{
  from{ transform: translateY(-120%); }
  to{ transform: translateY(120%); }
}

.bbControls{
  opacity: 0.75;
}
.bbControls::before{
  content: ">";
  margin-right: 8px;
  opacity: 0.35;
}
.bbCtl{
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.bbPickLink.on{
  position: relative;
}
.bbPickLink.on::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-4px;
  height:1px;
  background: rgba(134,251,255,0.45);
  box-shadow: 0 0 10px rgba(134,251,255,0.18);
}