/* Break Boss page. Uses the site's cells, grid lines and colours; only the app and charts are new. */
.bb-lede { max-width: 74ch; margin: 0 auto; }
.bb-lede p { text-align: justify; hyphens: auto; }
.bb-h { font-size: 18px; font-weight: 500; color: var(--white); text-transform: uppercase; margin-bottom: 18px; letter-spacing: -0.02em; }
.bb-col { padding: clamp(26px, 3.6vw, 52px); font-size: 16px; }
.bb-col p { text-align: justify; hyphens: auto; }
.bb-col ol, .bb-col ul { margin: 14px 0 0; padding-left: 1.15em; }
.bb-col li + li { margin-top: .55em; }
.bb-year { display: block; font-size: clamp(44px, 6vw, 86px); line-height: .95; margin-bottom: 14px; }
.bb-year.old { color: var(--peri); }
.bb-year.new { color: var(--orange); }

/* ---------- app ---------- */
#bb-app { padding: clamp(18px, 3vw, 44px); }
.bb-drop { border: 1px dashed var(--line); padding: clamp(22px, 4vw, 54px) 18px; text-align: center; transition: background .25s ease, border-color .25s ease; }
.bb-drop.over { background: rgba(201, 64, 1, .22); border-color: var(--orange); border-style: solid; }
.bb-drop .h-lg { display: block; }
.bb-drop p { margin-top: 14px; font-size: 16px; }
.bb-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.bb-actions .btn { cursor: pointer; font: inherit; font-size: 16px; }
.bb-actions label.btn { display: inline-block; }
#bb-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bb-private { margin-top: 18px; font-size: 13px; color: var(--peri); }
.bb-stage { margin-top: 26px; }
.bb-head { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; align-items: baseline; font-size: 15px; }
.bb-name { font-weight: 500; color: var(--white); overflow-wrap: anywhere; }
.bb-status { color: var(--peri); }
.bb-bar { height: 3px; background: rgba(236, 236, 236, .2); margin-top: 10px; }
.bb-bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s linear; }
.bb-summary { margin-top: 12px; font-size: 14px; color: var(--ink); }
.bb-list { margin-top: 14px; border-top: 1px solid rgba(236, 236, 236, .35); }
.bb-row { display: grid; grid-template-columns: 34px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(236, 236, 236, .35); font-size: 15px; }
.bb-row.on { background: rgba(201, 64, 1, .16); }
.bb-n { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.bb-t { color: var(--white); font-weight: 500; }
.bb-d, .bb-s { color: var(--ink); }
.bb-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bb-btns button { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; transition: background .2s ease; }
.bb-btns button:hover, .bb-btns button.on { background: var(--blue-hot); }

/* ---------- results ---------- */
.bb-chart { margin-top: 8px; }
.bb-chart .r { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 64px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(236, 236, 236, .25); font-size: 15px; }
.bb-chart .r .k small { display: block; font-size: 12px; color: var(--peri); margin-top: 2px; }
.bb-chart .track { height: 14px; background: rgba(236, 236, 236, .12); }
.bb-chart .fill { display: block; height: 100%; }
.bb-chart .fill.old { background: var(--peri); }
.bb-chart .fill.new { background: var(--orange); }
.bb-chart .fill.ref { background: repeating-linear-gradient(135deg, var(--peri) 0 4px, transparent 4px 8px); }
.bb-chart .v { text-align: right; color: var(--white); font-weight: 500; }
.bb-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 13px; color: var(--ink); }
.bb-key i { display: inline-block; width: 22px; height: 10px; margin-right: 7px; vertical-align: baseline; }
.bb-note { margin-top: 18px; font-size: 14px; color: var(--ink); }

@media (max-width: 900px) {
  .bb-row { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); }
  .bb-s { display: none; }
  .bb-btns { grid-column: 1 / -1; justify-content: flex-start; }
  .bb-chart .r { grid-template-columns: minmax(0, 1fr) 54px; }
  .bb-chart .track { grid-column: 1 / -1; order: 3; }
}
.bb-col ul.facts { padding-left: 0; margin-top: 24px; }
.bb-col ul.facts li + li { margin-top: 0; }

/* ---------- board: songs in, breaks out ---------- */
.bb-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; margin-top: 26px; border: 1px solid rgba(236, 236, 236, .45); }
.bb-pane { min-width: 0; }
.bb-pane + .bb-pane { border-left: 1px solid rgba(236, 236, 236, .45); }
.bb-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--white); border-bottom: 1px solid rgba(236, 236, 236, .45); }
.bb-ph b { font-weight: 300; font-size: 12px; color: var(--peri); text-transform: none; text-align: right; }
.bb-songs, .bb-breaks { max-height: 372px; overflow-y: auto; }
.bb-song, .bb-break { display: grid; align-items: center; gap: 10px; width: 100%; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid rgba(236, 236, 236, .2); padding: 9px 14px; font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background .2s ease; }
.bb-song { grid-template-columns: 22px minmax(0, 1fr) 40px 92px; }
.bb-break { grid-template-columns: 22px 96px minmax(0, 1fr) 36px 46px; }
.bb-song:hover, .bb-break:hover { background: rgba(26, 106, 255, .3); }
.bb-song.on, .bb-break.on { background: rgba(201, 64, 1, .22); color: var(--white); }
.bb-song .n, .bb-break .n { color: var(--peri); font-size: 12px; font-variant-numeric: tabular-nums; }
.bb-song .tn, .bb-break .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-song .tt, .bb-break .tt { text-align: right; font-variant-numeric: tabular-nums; }
.bb-song .ts { text-align: right; font-size: 12px; color: var(--peri); white-space: nowrap; }
.bb-song.done .ts { color: var(--white); }
.bb-song.error .ts { text-decoration: underline; }
.bb-song.queued .tn { opacity: .7; }
.bb-break .th { width: 96px; height: 32px; display: block; border: 1px solid rgba(236, 236, 236, .4); }
.bb-break .tx { min-width: 0; display: grid; }
.bb-break .tn { color: var(--white); font-weight: 500; }
.bb-break .td { font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-break .pl { border: 1px solid var(--line); padding: 3px 0; font-size: 12px; text-align: center; }
.bb-break.playing .pl { background: var(--blue-hot); }
.bb-empty { padding: 18px 14px; font-size: 14px; color: var(--peri); }

/* ---------- the open song ---------- */
.bb-transport { display: flex; align-items: center; gap: 14px; margin-top: 14px; min-height: 36px; }
.bb-play { background: var(--blue); color: #fff; border: 1px solid var(--line); padding: 7px 20px; font: inherit; font-size: 15px; cursor: pointer; min-width: 112px; transition: background .2s ease; }
.bb-play:hover, .bb-play.on { background: var(--blue-hot); }
.bb-play:disabled { background: transparent; color: rgba(236, 236, 236, .45); border-color: rgba(236, 236, 236, .3); cursor: default; }
.bb-time { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bb-spec { display: block; width: 100%; height: clamp(220px, 30vw, 340px); margin-top: 10px; border: 1px solid rgba(236, 236, 236, .35); cursor: pointer; background: #000; }
.bb-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.bb-fig { margin: 0; min-width: 0; }
.bb-fig figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.bb-fig figcaption b { color: var(--white); font-weight: 500; text-transform: uppercase; }
.bb-fig figcaption button { margin-left: auto; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 3px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.bb-fig figcaption button:hover { background: var(--blue-hot); }
.bb-fig canvas { display: block; width: 100%; height: clamp(90px, 13vw, 150px); border: 1px solid rgba(236, 236, 236, .35); cursor: pointer; image-rendering: auto; }
.bb-row { cursor: pointer; }
@media (max-width: 900px) {
  .bb-board { grid-template-columns: minmax(0, 1fr); }
  .bb-pane + .bb-pane { border-left: 0; border-top: 1px solid rgba(236, 236, 236, .45); }
  .bb-songs, .bb-breaks { max-height: 300px; }
  .bb-break { grid-template-columns: 18px 64px minmax(0, 1fr) 34px 42px; gap: 8px; padding: 9px 10px; }
  .bb-break .th { width: 64px; }
  .bb-song { grid-template-columns: 18px minmax(0, 1fr) 36px 84px; padding: 9px 10px; }
  .bb-compare { grid-template-columns: minmax(0, 1fr); }
}
