.jbx {
  --sp-panel: #121212;
  --sp-elev: #181818;
  --sp-elev2: #232323;
  --sp-hover: rgba(255, 255, 255, .07);
  --sp-acc: #1ed760;
  --sp-acc-h: #1fdf64;
  --sp-tx: #fff;
  --sp-tx2: #b3b3b3;
  --sp-tx3: #a7a7a7;
  --sp-line: rgba(255, 255, 255, .1);
  position: relative;
  background: var(--sp-panel);
  border-radius: 12px;
  padding: 20px 22px;
  color: var(--sp-tx);
  font-family: var(--font-sans, "Google Sans", "Open Sans", system-ui, sans-serif);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  min-height: 480px;
}
.jbx * { box-sizing: border-box; }

.jbx-hero { display: flex; gap: 16px 22px; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; }
.jbx-hero .jbx-cover { width: 148px; height: 148px; border-radius: 6px; font-size: 52px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.jbx-hero .jbx-cover img { padding: 22px; }
.jbx-herometa { flex: 1 1 auto; min-width: 0; padding-bottom: 6px; }
.jbx-herometa h1 { font-size: 46px; font-weight: 800; margin: 10px 0 14px; color: #fff; line-height: 1.05; letter-spacing: -.02em; }
.jbx-subm { font-size: 13px; color: var(--sp-tx2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jbx-subm b { color: #fff; font-weight: 600; }
.jbx-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sp-tx2); }

.jbx-ghost { background: none; border: none; color: var(--sp-tx2); cursor: pointer; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 6px; transition: color .1s ease; }
.jbx-ghost:hover { color: #fff; }
.jbx-ghost.is-on { color: var(--sp-acc); }

.jbx-controls { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-left: auto; }
.jbx-controls .qf-search { flex: none; min-width: 280px; }

.jbx-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.jbx-list::-webkit-scrollbar { width: 8px; }
.jbx-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 4px; }

.jbx-thead, .jbx-row { display: grid; grid-template-columns: 34px 1fr 170px 64px; gap: 14px; align-items: center; padding: 0 12px; }
.jbx-thead { height: 34px; border-bottom: 1px solid var(--sp-line); color: var(--sp-tx2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; padding-right: 20px; }
.jbx-thead .jbx-rt { text-align: center; }
.jbx-row { min-height: 54px; border-radius: 6px; cursor: pointer; }
.jbx-row:hover { background: var(--sp-hover); }
.jbx-idx { position: relative; color: var(--sp-tx2); font-size: 14px; height: 16px; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.jbx-row:hover .jbx-num { opacity: 0; }
.jbx-go { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: #fff; font-size: 13px; opacity: 0; }
.jbx-row:hover .jbx-go { opacity: 1; }
.jbx-row.is-cur .jbx-go { display: none; }
.jbx-tt { display: flex; align-items: center; gap: 13px; min-width: 0; }
.jbx-tc { position: relative; width: 40px; height: 40px; border-radius: 4px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--sp-elev2); color: rgba(255, 255, 255, .92); font-size: 15px; }
.jbx-tc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.jbx-tc i { display: none; }
.jbx-tc--note { background: #1d9e75; }
.jbx-tc--note img { display: none; }
.jbx-tc--note i { display: inline-flex; }
.jbx-tn { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jbx-tn b { font-weight: 500; font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbx-tn s { text-decoration: none; font-size: 12.5px; color: var(--sp-tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbx-setchip { font-size: 12.5px; color: var(--sp-tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbx-dur { text-align: center; color: var(--sp-tx2); font-size: 13px; font-variant-numeric: tabular-nums; }
.jbx-row.is-cur .jbx-num, .jbx-row.is-cur .jbx-tn b { color: var(--sp-acc); }

.jbx-eq { display: none; align-items: flex-end; gap: 2px; height: 15px; }
.jbx-row.is-cur .jbx-num { display: none; }
.jbx-row.is-cur .jbx-eq { display: flex; }
.jbx-eq i { width: 3px; height: 40%; background: var(--sp-acc); border-radius: 1px; }
.jbx.is-playing .jbx-row.is-cur .jbx-eq i { animation: jbxeq1 .9s ease-in-out infinite; }
.jbx.is-playing .jbx-row.is-cur .jbx-eq i:nth-child(2) { animation: jbxeq2 .68s ease-in-out infinite; animation-delay: -.3s; }
.jbx.is-playing .jbx-row.is-cur .jbx-eq i:nth-child(3) { animation: jbxeq3 1.13s ease-in-out infinite; animation-delay: -.6s; }
.jbx.is-playing .jbx-row.is-cur .jbx-eq i:nth-child(4) { animation: jbxeq4 .79s ease-in-out infinite; animation-delay: -.15s; }
@keyframes jbxeq1 { 0% { height: 30%; } 20% { height: 100%; } 40% { height: 45%; } 60% { height: 80%; } 80% { height: 35%; } 100% { height: 30%; } }
@keyframes jbxeq2 { 0% { height: 75%; } 25% { height: 35%; } 45% { height: 95%; } 65% { height: 50%; } 85% { height: 90%; } 100% { height: 75%; } }
@keyframes jbxeq3 { 0% { height: 50%; } 15% { height: 90%; } 35% { height: 28%; } 55% { height: 75%; } 75% { height: 40%; } 100% { height: 50%; } }
@keyframes jbxeq4 { 0% { height: 65%; } 30% { height: 100%; } 50% { height: 42%; } 70% { height: 85%; } 90% { height: 55%; } 100% { height: 65%; } }

.jbx-player { flex: none; margin-top: 16px; min-height: 72px; background: var(--sp-elev); border: 1px solid var(--sp-line); border-radius: 10px; display: grid; grid-template-columns: 1fr minmax(320px, 520px) 1fr; align-items: center; gap: 16px; padding: 10px 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.jbx-pnow { display: flex; align-items: center; gap: 13px; min-width: 0; }
.jbx-pnow .jbx-tc { width: 48px; height: 48px; }
.jbx-pnow .jbx-tn b { font-size: 14px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
.jbx-pcenter { display: flex; flex-direction: column; gap: 8px; }
.jbx-pctrls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.jbx-pctrls .jbx-ghost { font-size: 16px; }
.jbx-pp { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; font-size: 15px; transition: transform .1s ease; }
.jbx-pp:hover { transform: scale(1.06); }
.jbx-pp i { margin-left: 1px; }
.jbx-seek { display: flex; align-items: center; gap: 10px; }
.jbx-time { font-size: 11px; color: var(--sp-tx2); font-variant-numeric: tabular-nums; width: 36px; flex: none; text-align: right; }
.jbx-time--r { text-align: left; }
.jbx-bar { flex: 1; height: 4px; background: rgba(255, 255, 255, .25); border-radius: 999px; position: relative; cursor: pointer; touch-action: none; }
.jbx-bar:hover { height: 5px; }
.jbx-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; border-radius: 999px; }
.jbx-bar:hover .jbx-fill { background: var(--sp-acc); }
.jbx-knob { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); opacity: 0; }
.jbx-bar:hover .jbx-knob { opacity: 1; }
.jbx-pright { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--sp-tx2); font-size: 15px; }
.jbx-vol { width: 96px; }
.jbx-vol .jbx-fill { background: #fff; }
.jbx-vol .jbx-bar:hover .jbx-fill { background: var(--sp-acc); }
.jbx-mute { background: none; border: 0; padding: 0; margin: 0; color: inherit; cursor: pointer; font: inherit; line-height: 0; display: inline-flex; }
.jbx-mute:hover { color: #fff; }

.jbx-empty { text-align: center; padding: 56px 16px; color: var(--sp-tx2); }
.jbx-empty i { font-size: 28px; color: var(--sp-tx3); }
.jbx-empty p { margin: 12px 0 0; }

@media (max-width: 720px) {
  .jbx { padding: 16px; height: auto; min-height: 0; }
  .jbx-controls { flex: 1 1 100%; }
  .jbx-controls .qf-search { flex: 1 1 auto; min-width: 0; }
  .jbx-thead .jbx-al, .jbx-row .jbx-setchip { display: none; }
  .jbx-thead, .jbx-row { grid-template-columns: 30px 1fr 56px; }
  .jbx-player { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 14px; position: sticky; bottom: 8px; z-index: 5; }
  .jbx-pright { display: none; }
  .jbx-pcenter { grid-column: 1 / -1; }
  .jbx-herometa h1 { font-size: 32px; }
  .jbx-hero .jbx-cover { width: 112px; height: 112px; }
}

@media (min-width: 992px) {
  .jukebox-section > .container { max-width: 1440px; }
  .jukebox-section .lib-layout { margin-left: clamp(-160px, calc((1440px - 100vw) / 2 + 16px), 0px); }
}
