/*
 * hyMusic V16 — page-owned Blackhole Chroma contract.
 * Consolidated from the exact hymusic.html baseline. Component IDs and
 * feature structure remain stable; media rules form one responsive system.
 * Chroma stays on bounded edges. The audio/visualizer stage remains dark
 * in either shell theme so artwork, meters, and MilkDrop remain readable.
 */

/* Theme, shell, components, and feature controls */

@property --hm-edge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --cm-cyan: #35eaff;
  --cm-mag: #ff3fc8;
  --cm-violet: #a657ff;
  --cm-pink: #ff3fc8;
  --accent: var(--cm-cyan);
  --accent-dim: rgba(53,234,255,.10);
  --accent-glow: rgba(166,87,255,.08);
  --bg-deep: #000204;
  --text: #f6f9ff;
  --muted: #91a1bd;
  --cm-gold: #ffd45f;
  --cm-red: #ff6688;
  --cm-bg: #010205;
  --hm-surface-soft: rgba(91,132,190,.065);
  --hm-edge: rgba(91,132,190,.24);
  --cm-blur: saturate(140%) blur(24px);
  --cm-radius: 20px;
  --cm-radius-sm: 12px;
  --hm-edge-strong: rgba(53,234,255,.48);
  --hm-surface-raised: #080e1c;
  --hm-tab-h: 70px;
  --hm-mini-h: 72px;
  --hm-nav-h: var(--hm-header-h);
  --font-mono: ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  --bg: #000204;
  --hm-muted: #91a1bd;
  --hm-secondary: #b8c6db;
  --hm-surface: #010205;
  --hm-glass: rgba(3,7,15,.94);
  --hm-input: #080e18;
  --hm-shadow: 0 16px 44px rgba(0,0,0,.32);
  --hm-chroma: conic-gradient(from var(--hm-edge-angle),#35eaff,#438fff,#a657ff,#ff3fc8,#a657ff,#35eaff);
  --hm-font: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --hm-header-h: calc(64px + env(safe-area-inset-top,0px));
  --hm-player-space: 0px;
  --hm-sidebar-w: 0px;
  color-scheme: dark;
}

#hm-theme-toggle {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top,0px));
  right: 18px;
  z-index: 5300;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--hm-surface-raised);
  border: 1px solid var(--hm-edge);
  backdrop-filter: var(--cm-blur);
  font-size: 0;
  box-shadow: 0 0 20px rgba(53,234,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  color: var(--text);
}

body:not(.hm-home-active) #hm-theme-toggle {
  display: none;
}

#hm-theme-toggle:focus-visible {
  outline: 2px solid var(--cm-cyan);
  outline-offset: 2px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--hm-font);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

body {
  padding-top: 0;
  padding: 0;
  isolation: isolate;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(91,132,190,.36);
  border-radius: 99px;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  touch-action: manipulation;
}

input,
select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.hm-surface {
  background: var(--hm-glass);
  backdrop-filter: var(--cm-blur);
  -webkit-backdrop-filter: var(--cm-blur);
  border: 1px solid var(--hm-edge);
}

#hm-main {
  position: fixed;
  top: var(--hm-header-h);
  bottom: calc(var(--hm-tab-h) + var(--hm-player-space) + env(safe-area-inset-bottom,0px));
  overflow: hidden;
  right: 0;
  left: var(--hm-sidebar-w);
  background: radial-gradient(640px 360px at 8% 0%,rgba(53,234,255,.035),transparent 70%),var(--bg);
}

.hm-section {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  touch-action: pan-y;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease,visibility .18s ease;
  padding: 24px 20px 32px;
  -webkit-transform: none;
  transform: none;
  will-change: auto;
  min-width: 0;
  visibility: hidden;
}

.hm-section.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

#hm-mini-player {
  position: fixed;
  bottom: calc(var(--hm-tab-h) + env(safe-area-inset-bottom,0px));
  left: var(--hm-sidebar-w);
  right: 0;
  height: var(--hm-mini-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  z-index: 5000;
  cursor: pointer;
  transform: translateY(110%);
  transition: transform .25s ease,opacity .2s ease,visibility .2s ease;
  background: var(--hm-glass);
  backdrop-filter: var(--cm-blur);
  -webkit-backdrop-filter: var(--cm-blur);
  border-top: 1px solid var(--hm-edge);
  border: 0;
  border-bottom: 1px solid var(--hm-edge);
  box-shadow: 0 -8px 30px rgba(0,0,0,.15);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#hm-mini-player.visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

#hm-mp-art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--hm-surface-raised);
  object-fit: cover;
  border: 1px solid var(--hm-edge);
}

#hm-mp-info {
  flex: 1;
  min-width: 0;
}

#hm-mp-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text,#e8fff6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}

#hm-mp-artist {
  font-size: 11px;
  color: var(--hm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

#hm-mp-bpm {
  display: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(250,208,21,.12);
  border: 1px solid rgba(250,208,21,.3);
  color: var(--cm-gold);
  margin-left: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  border-color: rgba(255,212,95,.24);
}

#hm-mp-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  margin: 0 2px;
  flex-shrink: 0;
}

#hm-mp-eq-bars span {
  display: block;
  width: 3px;
  border-radius: 1.5px;
  background: var(--cm-cyan);
  box-shadow: 0 0 4px var(--cm-cyan);
  height: 4px;
}

#hm-mp-eq-bars.playing span:nth-child(1) {
  animation: hm-eq1 .7s ease-in-out infinite;
}

#hm-mp-eq-bars.playing span:nth-child(2) {
  animation: hm-eq2 .9s ease-in-out infinite;
}

#hm-mp-eq-bars.playing span:nth-child(3) {
  animation: hm-eq3 .6s ease-in-out infinite;
}

#hm-mp-eq-bars.playing span:nth-child(4) {
  animation: hm-eq4 .8s ease-in-out infinite;
}

#hm-mp-play,
#hm-mp-next {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--hm-surface-soft);
  border: 1px solid var(--hm-edge);
  transition: .15s;
  color: var(--text);
}

#hm-mp-play:hover,
#hm-mp-next:hover {
  background: rgba(53,234,255,0.18);
}

#hm-mp-next {
  font-size: 15px;
}

#hm-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--hm-tab-h) + env(safe-area-inset-bottom,0px));
  padding-bottom: env(safe-area-inset-bottom,0px);
  display: flex;
  align-items: stretch;
  z-index: 5100;
  background: var(--hm-glass);
  backdrop-filter: var(--cm-blur);
  -webkit-backdrop-filter: var(--cm-blur);
  border-top: 1px solid var(--hm-edge);
  overflow-x: auto;
  scrollbar-width: none;
  gap: 3px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom,0px));
  overflow: hidden;
}

.hm-tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 2px;
  cursor: pointer;
  transition: background .18s ease,color .18s ease,border-color .18s ease;
  position: relative;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--hm-muted);
}

.hm-tab:hover {
  opacity: 1;
  color: var(--text);
  background: var(--hm-surface-soft);
}

.hm-tab-icon {
  font-size: 21px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-tab-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
  color: inherit;
  text-transform: none;
  white-space: nowrap;
}

.hm-tab::after {
  content: none;
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--cm-cyan);
  box-shadow: 0 0 8px var(--cm-cyan);
  opacity: 0;
  transition: opacity .2s;
  border-radius: 1px;
}

.hm-tab.active .hm-tab-label {
  color: inherit;
}

.hm-tab.active::after {
  opacity: 1;
}

.hm-tab.active .hm-tab-icon {
  color: inherit;
  filter: drop-shadow(0 0 6px rgba(53,234,255,.25));
}

#hm-fullplayer {
  position: fixed;
  inset: 0;
  z-index: 8000;
  width: 100%;
  max-width: none;
  transform: translateY(102%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1),visibility .32s;
  background: #000204;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 calc(16px + env(safe-area-inset-bottom,0px));
  color: #f6f9ff;
  visibility: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  --text: #f6f9ff;
  --hm-muted: #91a1bd;
  --hm-secondary: #b8c6db;
  --cm-cyan: #35eaff;
  --cm-violet: #a657ff;
  --cm-mag: #ff3fc8;
  --cm-pink: #ff3fc8;
  --cm-gold: #ffd45f;
  --hm-input: #080e18;
  --hm-surface: #010205;
  --hm-surface-raised: #080e1c;
  --hm-edge: rgba(91,132,190,.28);
  --hm-surface-soft: rgba(91,132,190,.065);
  --hm-edge-strong: rgba(53,234,255,.48);
  --accent-dim: rgba(53,234,255,.10);
  color-scheme: dark;
}

#hm-fullplayer.open {
  transform: translateY(0);
  visibility: visible;
}

#hm-fullplayer.controls-hidden #hm-fp-disc-wrap,
#hm-fullplayer.controls-hidden #hm-fp-info,
#hm-fullplayer.controls-hidden #hm-fp-wave-wrap,
#hm-fullplayer.controls-hidden #hm-fp-controls,
#hm-fullplayer.controls-hidden #hm-fp-commentary {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

#hm-fp-disc-wrap,
#hm-fp-info,
#hm-fp-wave-wrap,
#hm-fp-controls,
#hm-fp-commentary {
  transition: opacity .35s ease,transform .35s ease;
}

#hm-fullplayer.controls-hidden #hm-fp-dismiss {
  opacity: .18;
}

#hm-fullplayer.controls-hidden #hm-fp-handle {
  opacity: 0;
}

#hm-fullplayer.controls-hidden #hm-fp-art-bg,
#hm-fullplayer.controls-hidden #hm-fp-bg,
#hm-fullplayer.controls-hidden #hm-fp-bg-overlay {
  opacity: 0;
}

#hm-fullplayer.controls-hidden #hm-milkdrop-wrap {
  opacity: 1;
}

#hm-fp-art-bg,
#hm-fp-bg,
#hm-fp-bg-overlay,
#hm-fp-handle,
#hm-fp-dismiss,
#hm-milkdrop-wrap {
  transition: opacity .7s ease,filter .7s ease;
}

#hm-fp-art-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(1.25) brightness(.22);
  transition: background-image .6s ease;
  pointer-events: none;
  opacity: .8;
}

#hm-fp-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: .25;
}

#hm-fp-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,rgba(0,2,4,.50),rgba(0,2,4,.12) 38%,rgba(0,2,4,.74));
  pointer-events: none;
}

#hm-fp-handle {
  position: relative;
  z-index: 10;
  width: 80px;
  height: 32px;
  background: transparent;
  border-radius: 12px;
  margin-top: calc(2px + env(safe-area-inset-top,0px));
  flex-shrink: 0;
  margin-bottom: 0;
  cursor: grab;
  touch-action: none;
}

#hm-fp-handle::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 4px;
  top: 14px;
  left: 20px;
  border-radius: 3px;
  background: rgba(255,255,255,.28);
  pointer-events: none;
}

#hm-fp-dismiss {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top,0px));
  right: 20px;
  z-index: 20;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #d7e3f6;
  background: rgba(3,7,15,.72);
  border-radius: 13px;
  border: 1px solid var(--hm-edge);
  cursor: pointer;
  transition: .15s;
  padding: 0;
  min-height: 44px;
  border-color: rgba(91,132,190,.32);
}

#hm-fp-dismiss:hover {
  background: rgba(255,255,255,.16);
}

#hm-fp-radio-badge {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top,0px));
  left: 22px;
  z-index: 20;
  display: none;
  background: var(--cm-red);
  color: var(--text);
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  animation: hm-live-pulse 1s ease-in-out infinite;
  font: 700 10px var(--font-mono);
}

#hm-fp-radio-badge.visible {
  display: block;
}

#hm-fp-disc-wrap {
  position: relative;
  z-index: 10;
  margin-top: 18px;
  flex-shrink: 0;
  min-width: var(--hm-art-size);
  min-height: var(--hm-art-size);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s cubic-bezier(.2,.9,.3,1);
  --hm-art-size: clamp(150px,26dvh,256px);
  width: var(--hm-art-size);
  height: var(--hm-art-size);
  margin: 30px 0 0;
}

#hm-fp-disc-wrap.playing {
  animation: none;
}

#hm-fp-disc {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(138,172,216,.35);
  box-shadow: 0 22px 70px rgba(0,0,0,.5),0 0 30px rgba(53,234,255,.08);
  animation: none;
  background: #080e18;
  transition: box-shadow .4s ease;
  min-width: 0;
  min-height: 0;
}

#hm-fp-disc.spinning {
  box-shadow: 0 22px 70px rgba(0,0,0,.5),0 0 34px rgba(53,234,255,.13),0 0 60px rgba(166,87,255,.09);
}

#hm-fp-disc-hole {
  display: none;
}

#hm-fp-disc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: radial-gradient(circle at 25% 20%,rgba(53,234,255,.13),transparent 65%),linear-gradient(135deg,#0a1220,#010205);
  border: 1px solid rgba(91,132,190,.36);
  box-shadow: 0 22px 70px rgba(0,0,0,.4);
  color: #7f9bbb;
}

#hm-fp-info {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 18px 24px 0;
  width: 100%;
  max-width: 720px;
  flex-shrink: 0;
}

#hm-fp-title {
  font-size: clamp(21px,3vw,28px);
  font-weight: 750;
  color: #f6f9ff;
  letter-spacing: -.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none;
  line-height: 1.25;
}

#hm-fp-artist {
  font-size: 14px;
  color: #b8c6db;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

#hm-fp-album {
  font-size: 11px;
  color: #91a1bd;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .06em;
  text-transform: uppercase;
  font: 10px/1.5 var(--font-mono);
}

#hm-fp-bpm {
  display: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(250,208,21,.14);
  border: 1px solid rgba(250,208,21,.35);
  color: var(--cm-gold);
  margin-top: 8px;
  font: 700 10px var(--font-mono);
}

#hm-fp-wave-wrap {
  position: relative;
  z-index: 10;
  width: calc(100% - 40px);
  margin: 22px 20px 0;
  flex-shrink: 0;
  background: rgba(1,2,5,.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(53,234,255,0.12);
  padding: 12px 12px 8px;
  min-height: 100px;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-width: 800px;
  border-color: rgba(91,132,190,.28);
}

#hm-fp-wave {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  cursor: ew-resize;
  border-radius: 8px;
  display: block;
  overflow: hidden;
  opacity: 0;
  background: transparent;
  filter: none;
}

#hm-fp-wave::part(wrapper) {
  overflow: hidden;
  border-radius: 8px;
}

#hm-fp-wave::part(cursor) {
  box-shadow: 0 0 13px rgba(255,255,255,.92),0 0 24px rgba(53,234,255,.75);
}

#hm-fp-wave-reactive {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  top: 12px;
  width: calc(100% - 24px);
  height: 60px;
  pointer-events: none;
  border-radius: 8px;
  mix-blend-mode: screen;
  opacity: .78;
}

#hm-fp-wave-status {
  position: absolute;
  z-index: 4;
  inset: 12px 12px auto;
  top: 32px;
  text-align: center;
  font: 10px var(--font-mono);
  color: #91a1bd;
  pointer-events: none;
  letter-spacing: .04em;
}

#hm-fp-wave-wrap[data-wave-ready="1"] #hm-fp-wave-status {
  display: none;
}

#hm-fp-wave-wrap[data-seeking="1"] {
  border-color: rgba(53,234,255,.48);
  box-shadow: 0 0 34px rgba(53,234,255,.17),inset 0 1px 0 rgba(255,255,255,.08);
}

#hm-fp-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #91a1bd;
  margin-top: 6px;
  padding: 0;
  letter-spacing: .04em;
  font: 10px/1.5 var(--font-mono);
}

#hm-fp-controls {
  position: relative;
  z-index: 10;
  width: calc(100% - 40px);
  padding: 12px 14px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  background: linear-gradient(rgba(3,7,15,.94),rgba(3,7,15,.94)) padding-box,conic-gradient(from var(--hm-edge-angle),#35eaff,#438fff,#a657ff,#ff3fc8,#a657ff,#35eaff) border-box;
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  margin: 12px 20px 0;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0,0,0,.22),0 0 18px rgba(53,234,255,.06);
  max-width: 800px;
  border: 1px solid transparent;
}

.hm-fp-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  overflow-x: auto;
  padding: 3px 1px 6px;
  scrollbar-width: thin;
  min-width: 0;
  width: 100%;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.hm-fp-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #b8c6db;
  cursor: pointer;
  transition: .15s;
  border-radius: 12px;
  position: relative;
  min-width: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(91,132,190,.23);
  background: rgba(91,132,190,.06);
  scroll-snap-align: start;
}

.hm-fp-icon:hover {
  color: #f6f9ff;
  background: rgba(53,234,255,.08);
  border-color: rgba(53,234,255,.45);
}

.hm-fp-icon.active {
  color: var(--cm-cyan);
  text-shadow: none;
  border-color: rgba(53,234,255,.44);
  background: rgba(53,234,255,.09);
}

.hm-fp-main-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

#hm-fp-prev,
#hm-fp-next-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #dce7f7;
  cursor: pointer;
  border-radius: 14px;
  transition: .15s;
}

#hm-fp-prev:hover,
#hm-fp-next-btn:hover {
  background: var(--hm-surface-soft);
}

#hm-fp-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #35eaff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  color: #000204;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(53,234,255,.22),0 5px 18px rgba(0,0,0,.3);
  transition: transform .15s,box-shadow .15s;
  flex-shrink: 0;
  border: 1px solid rgba(53,234,255,.72);
}

#hm-fp-play-btn:hover {
  transform: scale(1.035);
  box-shadow: 0 0 32px rgba(53,234,255,.32);
}

#hm-fp-play-btn:active {
  transform: scale(.95);
}

#hm-fp-commentary {
  position: relative;
  z-index: 10;
  min-height: 0;
  padding: 12px 24px 0;
  font-size: 12px;
  color: #b8c6db;
  text-align: center;
  line-height: 1.5;
  font-style: normal;
  flex-shrink: 0;
  width: 100%;
  max-width: 780px;
}

#hm-fp-eq-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: min(780px,100%);
  max-width: 780px;
  margin: 0 auto;
  box-sizing: border-box;
  transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease,visibility 0s linear .22s;
  background: rgba(3,7,15,.98);
  backdrop-filter: var(--cm-blur);
  -webkit-backdrop-filter: var(--cm-blur);
  border-top: 1px solid rgba(53,234,255,.2);
  border-radius: 24px 24px 0 0;
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom,0px));
  max-height: 84dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border: 1px solid rgba(91,132,190,.36);
  border-bottom: 0;
  box-shadow: 0 -18px 70px rgba(0,0,0,.45);
}

#hm-fp-eq-sheet.open {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.hm-eq-sheet-handle {
  position: relative;
  width: 72px;
  height: 28px;
  background: transparent;
  border-radius: 10px;
  margin: -8px auto 4px;
  cursor: grab;
  touch-action: none;
}

.hm-eq-sheet-handle::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 18px;
  width: 36px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,.25);
  pointer-events: none;
}

.hm-eq-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: sticky;
  top: -16px;
  z-index: 2;
  background: rgba(3,7,15,.98);
  padding: 4px 0 10px;
}

.hm-eq-sheet-header .hm-eq-sheet-title {
  margin-bottom: 0;
}

.hm-eq-sheet-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--cm-cyan);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 13px;
  font: 700 11px/1.5 var(--font-mono);
}

.hm-eq-sheet-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--hm-edge);
  border-radius: 12px;
  background: var(--hm-surface-soft);
  color: #dce7f7;
  font-size: 18px;
  cursor: pointer;
  min-width: 40px;
}

.hm-eq-sheet-close:hover,
.hm-eq-sheet-close:focus-visible {
  border-color: var(--cm-cyan);
  color: var(--cm-cyan);
  outline: none;
}

.hm-eq-presets {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hm-eq-gain-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(91,132,190,.065);
  border: 1px solid var(--hm-edge);
  margin-bottom: 10px;
  border-color: rgba(91,132,190,.22);
  min-width: 0;
}

.hm-eq-gain-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cm-cyan);
  white-space: nowrap;
  min-width: 43px;
  font: 700 10px var(--font-mono);
}

.hm-eq-gain-row input[type=range] {
  flex: 1 1 0;
  accent-color: var(--cm-cyan);
  min-width: 0;
  height: 24px;
}

.hm-eq-gain-val {
  font-size: 11px;
  font-weight: 800;
  color: #dce7f7;
  min-width: 54px;
  text-align: right;
  font: 600 11px var(--font-mono);
}

.hm-eq-preset {
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid rgba(53,234,255,.2);
  background: rgba(53,234,255,.05);
  color: #b8c6db;
  cursor: pointer;
  transition: .15s;
  min-height: 34px;
  white-space: nowrap;
}

.hm-eq-preset:hover {
  border-color: var(--cm-cyan);
  color: var(--cm-cyan);
}

.hm-eq-preset.active {
  background: rgba(53,234,255,.15);
  border-color: var(--cm-cyan);
  color: var(--cm-cyan);
}

.hm-eq-bands {
  display: grid;
  gap: 6px;
  justify-content: space-between;
  padding: 12px 0 16px;
  grid-template-columns: repeat(10,minmax(0,1fr));
}

.hm-eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
}

.hm-eq-band input[type=range] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 28px;
  min-width: 0;
  height: 120px;
  cursor: pointer;
  accent-color: var(--cm-cyan);
  max-width: 100%;
}

.hm-eq-band-label {
  font-size: 10px;
  color: #91a1bd;
  letter-spacing: 0;
  font: 10px var(--font-mono);
}

.hm-eq-band-val {
  font-size: 10px;
  color: var(--cm-cyan);
  font-weight: 700;
  font: 10px var(--font-mono);
}

#hm-sec-home {
  padding: 16px 14px 20px;
  background: none;
  animation: none;
}

.hm-greeting {
  font-size: clamp(25px,3vw,36px);
  font-weight: 780;
  color: var(--text);
  margin-bottom: 4px;
  text-shadow: none;
  line-height: 1.2;
  letter-spacing: -.045em;
  margin: 1px 0 8px;
}

.hm-greeting-sub {
  font-size: 14px;
  color: var(--hm-muted);
  margin-bottom: 26px;
  letter-spacing: 0;
  line-height: 1.5;
}

.hm-quick-row {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.hm-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 10px;
  border-radius: 16px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  cursor: pointer;
  transition: background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
  min-height: 90px;
  position: relative;
  isolation: isolate;
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.hm-quick-btn:hover {
  background: var(--hm-surface-raised);
  border-color: var(--hm-edge-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.16),0 0 20px rgba(53,234,255,.08);
}

.hm-quick-btn:active {
  transform: scale(.96);
}

.hm-quick-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-quick-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  text-align: center;
}

.hm-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  gap: 12px;
}

.hm-rail-title {
  font-size: 17px;
  font-weight: 750;
  color: var(--text);
  letter-spacing: -.02em;
}

.hm-rail-more {
  font-size: 11px;
  color: var(--cm-cyan);
  font-weight: 650;
  letter-spacing: 0;
  cursor: pointer;
  text-transform: none;
  background: none;
  border: none;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 9px;
}

.hm-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  scrollbar-width: none;
  padding: 1px 1px 10px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1px;
}

.hm-rail::-webkit-scrollbar {
  display: none;
}

.hm-rail-card {
  flex-shrink: 0;
  width: 168px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  border-radius: 17px;
  overflow: hidden;
  cursor: pointer;
  transition: background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  padding: 0;
  flex: 0 0 168px;
  scroll-snap-align: start;
}

.hm-rail-card:hover {
  background: var(--hm-surface-raised);
  border-color: var(--hm-edge-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(0,0,0,.18);
}

.hm-rail-art {
  width: 100%;
  height: 166px;
  object-fit: cover;
  flex-shrink: 0;
  background: radial-gradient(circle at 28% 20%,rgba(53,234,255,.11),transparent 65%),linear-gradient(145deg,#0b1021,#03060d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #a6c3e4;
}

.hm-rail-card-info {
  padding: 12px 12px 11px;
  background: none;
  border: 0;
  box-shadow: none;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hm-rail-card-title {
  font-size: 13px;
  font-weight: 700;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.4;
  min-height: 1.35em;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--text);
}

.hm-rail-card-sub {
  font-size: 11px;
  color: var(--hm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
  padding: 0;
  background: none;
  box-shadow: none;
}

.hm-rail-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  background: none;
  box-shadow: none;
  padding: 8px 0 0;
  align-items: center;
}

.hm-rc-btn {
  flex: 1;
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
  border: 1px solid var(--hm-edge);
  background: var(--accent-dim);
  color: var(--cm-cyan);
  cursor: pointer;
  transition: .15s;
  min-width: 0;
  min-height: 36px;
  border-color: rgba(53,234,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-rc-btn:hover {
  background: rgba(53,234,255,.1);
  border-color: rgba(53,234,255,.3);
  color: var(--cm-cyan);
}

.hm-radio-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.hm-radio-card {
  padding: 18px 10px;
  border-radius: 15px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  cursor: pointer;
  transition: .2s;
  text-align: center;
  min-width: 0;
  min-height: 100px;
}

.hm-radio-card:hover {
  border-color: rgba(166,87,255,.45);
  background: var(--hm-surface-raised);
  box-shadow: 0 0 20px rgba(166,87,255,.07);
}

.hm-radio-card:active {
  transform: scale(.97);
}

.hm-radio-icon {
  font-size: 25px;
  margin-bottom: 9px;
}

.hm-radio-name {
  font-size: 12px;
  font-weight: 650;
  color: var(--hm-secondary);
  letter-spacing: 0;
}

.hm-connected-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hm-device-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  cursor: default;
  transition: .2s;
  font-size: 12px;
  min-height: 40px;
  border-color: var(--hm-edge);
  color: var(--hm-secondary);
}

.hm-device-pill:hover {
  border-color: var(--cm-cyan);
}

.hm-device-dots {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.hm-device-dot {
  width: 4px;
  border-radius: 2px;
  background: var(--cm-violet);
}

#hm-sec-library {
  padding: 0 0 20px;
}

.hm-lib-topbar {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 0 18px;
}

.hm-lib-search {
  flex: 1;
  height: 46px;
  border-radius: 13px;
  background: var(--hm-input);
  border: 1px solid var(--hm-edge);
  color: var(--text);
  padding: 0 15px;
  font-size: 14px;
  outline: none;
  transition: .2s;
  min-width: 0;
  border-color: var(--hm-edge);
}

.hm-lib-search:focus {
  border-color: var(--cm-cyan);
  box-shadow: 0 0 0 2px rgba(53,234,255,.1);
}

.hm-lib-search::placeholder {
  color: var(--hm-muted);
}

.hm-lib-filter-btn,
.hm-lib-add-btn {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hm-surface-soft);
  border: 1px solid var(--hm-edge);
  cursor: pointer;
  transition: .15s;
  min-width: 46px;
}

.hm-lib-filter-btn {
  font-size: 16px;
  color: var(--hm-secondary);
}

.hm-lib-filter-btn:hover,
.hm-lib-filter-btn.active {
  background: rgba(53,234,255,.12);
  border-color: rgba(53,234,255,.3);
  color: var(--cm-cyan);
}

.hm-lib-add-btn {
  background: rgba(53,234,255,.1);
  border-color: rgba(53,234,255,.3);
  color: var(--cm-cyan);
  font-size: 20px;
  font-weight: 300;
}

.hm-lib-filter-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
  padding: 0;
}

.hm-lib-filter-panel.open {
  max-height: 1000px;
  padding-bottom: 18px;
}

.hm-src-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.hm-src-chips::-webkit-scrollbar {
  display: none;
}

.hm-src-chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--hm-edge);
  background: var(--hm-surface-soft);
  color: var(--hm-secondary);
  transition: .15s;
}

.hm-src-chip.active {
  background: rgba(53,234,255,.12);
  border-color: var(--cm-cyan);
  color: var(--cm-cyan);
}

.hm-lib-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 0 2px;
}

.hm-lib-sec-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  min-height: 52px;
}

.hm-lib-sec-hdr.collapsible {
  cursor: pointer;
}

.hm-lib-sec-hdr.collapsible:active {
  background: var(--hm-surface-soft);
}

.hm-lib-sec-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--hm-secondary);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.hm-lib-sec-count {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(53,234,255,.1);
  border: 1px solid rgba(53,234,255,.2);
  color: var(--cm-cyan);
  min-width: 24px;
  text-align: center;
  font: 600 10px var(--font-mono);
}

.hm-lib-collapse-icon {
  margin-left: auto;
  font-size: 12px;
  color: var(--hm-muted);
  transition: transform .25s;
  line-height: 1;
  flex-shrink: 0;
}

.hm-lib-collapse-icon.up {
  transform: rotate(-90deg);
}

.hm-lib-import-btn {
  margin-left: auto;
  height: auto;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(53,234,255,.25);
  background: rgba(53,234,255,.05);
  color: var(--cm-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
  min-height: 36px;
}

.hm-lib-import-btn:hover {
  background: rgba(53,234,255,.12);
}

.hm-lib-import-btn.needs-reconnect {
  border-color: rgba(250,208,21,.55);
  background: rgba(250,208,21,.10);
  color: var(--cm-gold);
  box-shadow: 0 0 14px rgba(250,208,21,.12);
}

.hm-lib-collapsible {
  overflow: hidden;
  max-height: 9999px;
  transition: max-height .35s ease;
}

.hm-lib-collapsible.hidden {
  max-height: 0;
}

.hm-playlist-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  padding: 0 0 18px;
}

.hm-pl-card {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: .2s;
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  position: relative;
}

.hm-pl-card:hover {
  border-color: rgba(53,234,255,.25);
}

.hm-pl-art {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg,rgba(53,234,255,.15),rgba(255,63,200,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  object-fit: cover;
}

.hm-pl-info {
  padding: 12px;
}

.hm-pl-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text,#e8fff6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-pl-count {
  font-size: 11px;
  color: var(--hm-muted);
  margin-top: 2px;
}

.hm-pl-play {
  position: absolute;
  bottom: 62px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cm-cyan);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(53,234,255,.4);
  opacity: 1;
  transform: none;
  transition: .2s;
}

.hm-pl-card:hover .hm-pl-play {
  opacity: 1;
  transform: scale(1);
}

.hm-pl-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
}

.hm-pl-tool {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0,0,0,.68);
  border: 1px solid var(--hm-edge);
  font-size: 12px;
  color: #e6efff;
}

.hm-track-list {
  display: grid;
  flex-direction: column;
  gap: 10px;
  min-height: 144px;
  transition: opacity .18s ease;
  grid-template-columns: minmax(0,1fr);
  padding: 0 0 18px;
  align-items: stretch;
}

.hm-track-row {
  display: grid;
  align-items: center;
  gap: 4px 11px;
  padding: 11px;
  cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid var(--hm-edge);
  contain: layout style;
  -webkit-tap-highlight-color: transparent;
  grid-template-columns: 56px minmax(0,1fr) 40px;
  grid-template-rows: auto auto;
  grid-template-areas: "art info play" "art meta menu";
  min-width: 0;
  min-height: 100px;
  border: 1px solid var(--hm-edge);
  border-radius: 15px;
  background: var(--hm-surface);
}

.hm-track-row:hover {
  background: var(--hm-surface-raised);
  border-color: var(--hm-edge-strong);
}

.hm-track-row:active {
  background: rgba(53,234,255,.06);
}

.hm-track-art {
  width: 56px;
  height: 66px;
  border-radius: 11px;
  flex-shrink: 0;
  background: linear-gradient(135deg,rgba(53,234,255,.15),rgba(255,63,200,.1));
  overflow: hidden;
  border: 1px solid var(--hm-edge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  grid-area: art;
}

.hm-track-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-track-info {
  flex: 1;
  min-width: 0;
  grid-area: info;
  align-self: end;
}

.hm-track-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text,#e8fff6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}

.hm-track-artist {
  font-size: 11px;
  color: var(--hm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.hm-track-album {
  font-size: 10px;
  color: var(--hm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.hm-track-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
  grid-area: meta;
  align-self: start;
  flex-wrap: wrap;
}

.hm-bpm-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(250,208,21,.1);
  border: 1px solid var(--gold-dim,rgba(250,208,21,.25));
  color: var(--cm-gold);
}

.hm-enrich-chip {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(53,234,255,.07);
  border: 1px solid rgba(53,234,255,.2);
  color: var(--cm-cyan);
  white-space: nowrap;
}

.hm-track-meta button {
  cursor: pointer;
  min-height: 28px;
  padding: 4px 7px;
  font-family: var(--font-mono);
  line-height: 1.4;
  transition: background .15s ease, border-color .15s ease;
}

.hm-track-meta button:hover {
  border-color: var(--cm-cyan);
  background: rgba(53,234,255,.12);
}

.hm-track-details[data-status="incomplete"] {
  color: var(--hm-muted);
  border-color: var(--hm-edge);
  background: var(--hm-surface-soft);
}

.hm-track-details[data-status="error"] {
  color: #ffb49c;
  border-color: rgba(255,148,112,.35);
  background: rgba(255,148,112,.08);
}

.hm-track-details[data-status="working"] {
  box-shadow: 0 0 12px rgba(53,234,255,.12);
}

.hm-track-dur {
  font-size: 10px;
  color: var(--hm-muted);
  letter-spacing: .02em;
}

.hm-track-play,
.hm-track-menu {
  width: 40px;
  height: 36px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: .15s;
}

.hm-track-play {
  font-size: 12px;
  background: rgba(53,234,255,.09);
  border: 1px solid rgba(53,234,255,.2);
  color: var(--cm-cyan);
  grid-area: play;
}

.hm-track-play:hover {
  background: rgba(53,234,255,.17);
  border-color: rgba(53,234,255,.42);
}

.hm-track-menu {
  font-size: 14px;
  color: var(--hm-muted);
  grid-area: menu;
}

.hm-track-menu:hover {
  background: var(--hm-surface-soft);
  color: var(--text);
}

#hm-sec-discover {
  padding: 14px 14px 20px;
}

.hm-disc-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.hm-disc-search {
  flex: 1;
  height: 50px;
  border-radius: 14px;
  background: var(--hm-input);
  border: 1px solid var(--hm-edge);
  color: var(--text,#e8fff6);
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  transition: .2s;
  min-width: 0;
  border-color: var(--hm-edge);
}

.hm-disc-search:focus {
  border-color: var(--cm-cyan);
  box-shadow: 0 0 0 2px rgba(53,234,255,.1);
}

.hm-disc-search::placeholder {
  color: var(--hm-muted);
}

.hm-disc-search-btn {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(53,234,255,.12);
  border: 1px solid rgba(53,234,255,.3);
  font-size: 18px;
  color: var(--cm-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
  min-width: 50px;
}

.hm-disc-search-btn:hover {
  background: rgba(53,234,255,.2);
}

.hm-source-tabs {
  display: flex;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  gap: 2px;
  padding: 4px;
}

.hm-source-tab {
  flex: 0 0 auto;
  padding: 8px 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--hm-muted);
  cursor: pointer;
  transition: .15s;
  border-right: 1px solid var(--hm-edge);
  min-width: 0;
  white-space: nowrap;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
}

.hm-source-tab:last-child {
  border-right: none;
}

.hm-source-tab.active {
  background: var(--accent-dim);
  color: var(--cm-cyan);
}

#hm-disc-results {
  display: grid;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  grid-template-columns: minmax(0,1fr);
  align-items: start;
}

#hm-disc-empty {
  text-align: center;
  padding: 38px 20px;
  color: var(--hm-muted);
  font-size: 14px;
  border: 1px dashed var(--hm-edge);
  border-radius: 18px;
  background: var(--hm-surface);
}

.hm-disc-empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: .75;
  color: var(--cm-cyan);
}

#hm-sec-dj {
  padding: 14px 14px 20px;
}

.hm-dj-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  gap: 14px;
  padding: 24px 12px;
}

.hm-dj-portrait-icon {
  font-size: 60px;
  opacity: .7;
}

.hm-dj-portrait-msg {
  font-size: 15px;
  color: var(--hm-secondary);
  text-align: center;
  line-height: 1.6;
}

.hm-dj-portrait-hint {
  font-size: 11px;
  color: rgba(53,234,255,.6);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hm-dj-console {
  display: none;
  gap: 18px;
  padding: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hm-deck {
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
  border-color: var(--hm-edge);
  box-shadow: var(--hm-shadow);
}

.hm-deck-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--cm-cyan);
  margin-bottom: 16px;
  text-transform: uppercase;
  font: 700 11px var(--font-mono);
}

.hm-deck-load {
  width: 100%;
  padding: 10px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  background: rgba(53,234,255,.08);
  border: 1px solid rgba(53,234,255,.2);
  color: var(--cm-cyan);
  cursor: pointer;
  margin-bottom: 16px;
  transition: .15s;
  min-height: 44px;
}

.hm-deck-load:hover {
  background: rgba(53,234,255,.15);
}

.hm-deck-bpm {
  font-size: 22px;
  font-weight: 700;
  color: var(--cm-gold);
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 0 18px rgba(255,212,95,.12);
  font: 700 40px/1.25 var(--font-mono);
  margin: 14px 0 8px;
}

.hm-deck-bpm-label {
  font-size: 10px;
  color: var(--hm-muted);
  text-align: center;
  margin-top: -6px;
  letter-spacing: .06em;
  font: 600 10px var(--font-mono);
}

.hm-deck-btns {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 22px;
}

.hm-deck-btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--hm-edge);
  background: var(--hm-surface-soft);
  color: var(--hm-secondary);
  cursor: pointer;
  transition: .15s;
  min-width: 0;
}

.hm-deck-btn.play:hover {
  border-color: var(--cm-violet);
  color: var(--cm-violet);
}

.hm-deck-btn.cue:hover {
  border-color: var(--cm-gold);
  color: var(--cm-gold);
}

.hm-deck-btn.sync:hover {
  border-color: var(--cm-cyan);
  color: var(--cm-cyan);
}

.hm-crossfader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
}

.hm-cf-label {
  font-size: 10px;
  color: var(--hm-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font: 600 11px var(--font-mono);
}

.hm-cf-slider {
  writing-mode: vertical-lr;
  width: 40px;
  height: 180px;
  accent-color: var(--cm-mag);
  cursor: pointer;
}

.hm-ai-plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 13px;
  margin-top: 18px;
  background: linear-gradient(135deg,rgba(255,63,200,.15),rgba(53,234,255,.1));
  border: 1px solid rgba(255,63,200,.3);
  color: var(--cm-mag);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: .2s;
  min-height: 46px;
}

.hm-ai-plan-btn:hover {
  background: linear-gradient(135deg,rgba(255,63,200,.25),rgba(53,234,255,.15));
}

.hm-dj-workspace-link {
  text-decoration: none;
  margin-top: 10px;
  color: var(--cm-cyan);
  border-color: rgba(53,234,255,.3);
}

.hm-dj-portrait-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.hm-dj-tip-card {
  padding: 16px;
  border-radius: var(--cm-radius-sm);
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  font-size: 12px;
  color: var(--hm-secondary);
  line-height: 1.5;
  border-color: var(--hm-edge);
}

#hm-sec-studio {
  padding: 14px 14px 20px;
}

.hm-studio-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 18px;
  align-items: start;
}

.hm-studio-card {
  border-radius: 19px;
  overflow: hidden;
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  transition: .2s;
  min-width: 0;
  border-color: var(--hm-edge);
  box-shadow: 0 9px 28px rgba(0,0,0,.1);
}

.hm-studio-card:hover {
  border-color: rgba(166,87,255,.32);
}

.hm-studio-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  border-bottom: 1px solid var(--hm-edge);
  border-bottom-color: var(--hm-edge);
}

.hm-studio-icon {
  font-size: 27px;
  width: 34px;
  text-align: center;
  flex: 0 0 34px;
}

.hm-studio-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}

.hm-studio-desc {
  font-size: 12px;
  color: var(--hm-muted);
  margin-top: 4px;
  letter-spacing: 0;
  line-height: 1.5;
}

.hm-studio-body {
  padding: 20px;
}

.hm-stem-drop {
  border: 1px dashed var(--hm-edge-strong);
  border-radius: 13px;
  padding: 30px 16px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  color: var(--hm-secondary);
  font-size: 13px;
  background: rgba(53,234,255,.02);
}

.hm-stem-drop:hover,
.hm-stem-drop.drag-over {
  border-color: rgba(53,234,255,.5);
  background: rgba(53,234,255,.06);
  color: rgba(53,234,255,.8);
}

.hm-stem-drop-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.hm-stem-lanes {
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.hm-stem-lane {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: var(--hm-surface-soft);
  border: 1px solid var(--hm-edge);
  min-width: 0;
}

.hm-stem-lane-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

.hm-stem-lane-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text,#e8fff6);
  flex: 1;
  min-width: 40px;
}

.hm-stem-lane-bar {
  height: 18px;
  flex: 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--hm-surface-soft);
  position: relative;
  min-width: 20px;
}

.hm-stem-lane-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg,rgba(53,234,255,.5),rgba(53,234,255,.2));
  animation: hm-stem-pulse 2s ease-in-out infinite;
}

.hm-stem-lane-dl {
  height: 36px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(53,234,255,.08);
  border: 1px solid rgba(53,234,255,.2);
  color: var(--cm-cyan);
  cursor: pointer;
  transition: .15s;
  min-width: 36px;
}

.hm-stem-lane-dl:hover {
  background: rgba(53,234,255,.15);
}

.hm-beat-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hm-beat-select {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  padding: 0 10px;
  background: var(--hm-input);
  border: 1px solid var(--hm-edge);
  color: var(--text,#e8fff6);
  font-size: 12px;
  outline: none;
  min-width: 100px;
}

.hm-beat-bpm-input {
  width: 70px;
  height: 42px;
  border-radius: 10px;
  padding: 0 10px;
  background: var(--hm-input);
  border: 1px solid var(--hm-edge);
  color: var(--text,#e8fff6);
  font-size: 12px;
  outline: none;
  text-align: center;
}

.hm-beat-gen-btn {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255,63,200,.12);
  border: 1px solid rgba(255,63,200,.3);
  color: var(--cm-mag);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
  min-height: 42px;
}

.hm-beat-gen-btn:hover {
  background: rgba(255,63,200,.2);
}

.hm-sequencer {
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.hm-seq-row {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 4px;
  min-width: 400px;
}

.hm-seq-label {
  width: 47px;
  font-size: 10px;
  color: var(--hm-muted);
  letter-spacing: .04em;
  flex-shrink: 0;
  font: 600 10px var(--font-mono);
}

.hm-seq-cells {
  display: flex;
  gap: 4px;
  flex: 1;
}

.hm-seq-cell {
  flex: 1;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  transition: .1s;
  background: var(--hm-surface-soft);
  border: 1px solid var(--hm-edge);
  min-width: 16px;
}

.hm-seq-cell.active {
  background: var(--cm-cyan);
  border-color: var(--cm-cyan);
  box-shadow: 0 0 6px rgba(53,234,255,.5);
}

.hm-daw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(53,234,255,.08);
  border: 1px solid rgba(53,234,255,.3);
  color: var(--cm-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: .2s;
  min-height: 46px;
}

.hm-daw-btn:hover {
  background: rgba(53,234,255,.16);
  box-shadow: 0 0 12px rgba(53,234,255,.2);
}

.hm-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  z-index: 9000;
  transform: translate(-50%,105%);
  transition: transform .25s cubic-bezier(.2,.8,.2,1),opacity .2s ease,visibility .25s;
  background: var(--hm-glass);
  backdrop-filter: var(--cm-blur);
  -webkit-backdrop-filter: var(--cm-blur);
  border-top: 1px solid var(--hm-edge);
  border-radius: 24px 24px 0 0;
  padding: 16px 22px calc(24px + env(safe-area-inset-bottom,0px));
  max-height: 84dvh;
  overflow-y: auto;
  width: min(680px,100%);
  max-width: 680px;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 1px solid var(--hm-edge);
  border-bottom: 0;
  box-shadow: 0 -16px 64px rgba(0,0,0,.32);
}

.hm-bottom-sheet.open {
  transform: translate(-50%,0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hm-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--hm-edge);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.hm-sheet-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
  font: 700 12px/1.5 var(--font-mono);
  padding-right: 40px;
}

.hm-sheet-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1px solid var(--hm-edge);
  border-radius: 12px;
  background: var(--hm-surface-raised);
  color: var(--hm-secondary);
}

.hm-sheet-close:hover {
  color: var(--cm-cyan);
  border-color: var(--hm-edge-strong);
}

/* The shared output picker normally opens upward from a floating pill.
   Inside this scrolling sheet it must expand in flow to remain reachable. */
#hm-output-sheet .hmc-wrap {
  display: block;
  width: 100%;
}

#hm-output-sheet .hmc-pill {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  background: var(--hm-surface-soft);
  border-color: var(--hm-edge);
}

#hm-output-sheet .hmc-dropdown {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
  box-shadow: none;
  background: var(--hm-surface);
  border-color: var(--hm-edge);
}

#hm-output-sheet .hmc-item {
  min-height: 48px;
  padding: 10px;
  gap: 10px;
  border-radius: 9px;
}

#hm-output-sheet .hmc-item-name {
  color: var(--text);
}

#hm-output-sheet .hmc-section,
#hm-output-sheet .hmc-item-type,
#hm-output-sheet .hmc-empty {
  color: var(--hm-muted);
}

#hm-output-sheet .hmc-item-type {
  font-size: 11px;
}

#hm-output-sheet .hmc-btn {
  min-height: 36px;
  border-radius: 9px;
}

#hm-output-sheet .hmc-btn-connect,
#hm-output-sheet .hmc-btn-airplay {
  background: var(--accent-dim);
  color: var(--cm-cyan);
}

#hm-output-sheet .hmc-pill.casting,
#hm-output-sheet .hmc-item.active {
  background: var(--accent-dim);
  color: var(--cm-cyan);
  border-color: var(--hm-edge-strong);
}

.hm-sheet-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--hm-edge);
  cursor: pointer;
  transition: .15s;
  min-height: 52px;
}

.hm-sheet-row:hover {
  background: var(--hm-surface-soft);
  border-radius: 8px;
}

.hm-sheet-row-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
}

.hm-sheet-row-text {
  font-size: 13px;
  color: var(--text,#e8fff6);
}

#hm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(0,2,4,.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(4px);
}

#hm-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.hm-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hm-meta-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hm-meta-field.wide {
  grid-column: 1/-1;
}

.hm-meta-field span {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hm-muted);
  font: 600 10px var(--font-mono);
}

.hm-meta-field input {
  width: 100%;
  box-sizing: border-box;
  background: var(--hm-input);
  border: 1px solid var(--hm-edge);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font: 13px var(--hm-font);
  outline: none;
  min-width: 0;
  height: 42px;
  border-color: var(--hm-edge);
}

.hm-meta-field input:focus {
  border-color: rgba(53,234,255,.55);
  box-shadow: 0 0 0 2px rgba(53,234,255,.08);
}

.hm-meta-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hm-meta-actions button {
  flex: 1;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid var(--hm-edge);
  background: var(--hm-surface-soft);
  color: var(--text);
  font-weight: 700;
  min-height: 44px;
  border-color: var(--hm-edge);
}

.hm-meta-actions .primary {
  background: rgba(53,234,255,.14);
  border-color: rgba(53,234,255,.4);
  color: var(--cm-cyan);
}

.hm-details-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 30px;
  margin: 12px 0 16px;
}

.hm-details-heading > div:last-child {
  min-width: 0;
}

.hm-details-art {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--hm-edge-strong);
  border-radius: 15px;
  color: var(--cm-cyan);
  background: radial-gradient(circle at 30% 20%, rgba(53,234,255,.15), var(--hm-surface-soft));
}

.hm-details-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-details-eyebrow {
  color: var(--cm-cyan);
  font: 600 10px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

#hm-details-title {
  color: var(--text);
  font: 700 18px/1.3 var(--hm-font);
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

#hm-details-artist,
.hm-details-subtitle {
  color: var(--hm-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hm-details-subtitle:empty {
  display: none;
}

.hm-details-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0;
}

.hm-details-field {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--hm-edge);
  border-radius: 12px;
  background: var(--hm-surface-soft);
}

.hm-details-field span,
.hm-details-field strong {
  display: block;
}

.hm-details-field span {
  color: var(--hm-muted);
  font: 500 10px var(--font-mono);
  margin-bottom: 6px;
}

.hm-details-field strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hm-details-field.is-missing strong {
  color: var(--hm-muted);
  font-weight: 500;
}

.hm-details-status {
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 13px;
  border: 1px solid var(--hm-edge);
  border-radius: 12px;
  background: var(--hm-surface-soft);
}

.hm-details-status[data-status="working"] {
  color: var(--cm-cyan);
  border-color: var(--hm-edge-strong);
}

.hm-details-status[data-status="error"] {
  color: #ffb49c;
  border-color: rgba(255,148,112,.3);
}

.hm-details-note {
  margin: 12px 1px 18px;
  color: var(--hm-muted);
  font-size: 11px;
  line-height: 1.6;
}

.hm-details-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.hm-details-actions button {
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--hm-edge-strong);
  border-radius: 11px;
  color: var(--cm-cyan);
  background: rgba(53,234,255,.07);
  font: 600 12px var(--hm-font);
}

.hm-details-actions button:hover:not(:disabled) {
  background: rgba(53,234,255,.14);
  box-shadow: 0 0 18px rgba(53,234,255,.08);
}

.hm-details-actions button:disabled {
  opacity: .45;
  cursor: default;
}

.hm-details-actions button[hidden] {
  display: none;
}

.hm-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(53,234,255,.15);
  border-top-color: var(--cm-cyan);
  border-radius: 50%;
  animation: hm-spin .7s linear infinite;
}

.hm-load-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 16px;
  font-size: 13px;
  color: var(--hm-muted);
}

.hm-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--hm-muted);
  font-size: 13px;
  line-height: 1.7;
  width: 100%;
}

.hm-empty-icon {
  font-size: 35px;
  margin-bottom: 8px;
  opacity: .7;
  color: var(--cm-cyan);
}

#hm-toasts {
  position: fixed;
  top: calc(var(--hm-header-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.hm-toast {
  padding: 12px 16px;
  border-radius: 13px;
  background: var(--hm-glass);
  border: 1px solid rgba(53,234,255,.25);
  color: var(--text,#e8fff6);
  font-size: 12px;
  font-weight: 550;
  box-shadow: var(--hm-shadow);
  white-space: normal;
  animation: hm-toast-in .2s ease both;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.5;
  border-color: var(--hm-edge-strong);
}

.hm-divider {
  height: 1px;
  background: var(--hm-surface-soft);
  margin: 14px 0;
}

.hm-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hm-muted);
  margin-bottom: 10px;
  padding: 0 2px;
  font: 600 10px var(--font-mono);
}

.hm-like-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  cursor: pointer;
  transition: .15s;
  color: var(--hm-muted);
  border: 1px solid var(--hm-edge);
}

.hm-like-btn:hover {
  color: var(--cm-mag);
}

.hm-like-btn.liked {
  color: var(--cm-mag);
  animation: hm-like-pop .3s ease;
}

.hm-genre-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  min-height: 0;
}

.hm-genre-chips::-webkit-scrollbar {
  display: none;
}

.hm-genre-chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--accent-dim,rgba(53,234,255,.3));
  background: var(--accent-glow,rgba(53,234,255,.06));
  color: var(--hm-secondary);
  transition: .15s;
}

.hm-genre-chip.active {
  background: var(--accent-dim,rgba(53,234,255,.15));
  border-color: var(--cm-violet);
  color: var(--cm-violet);
  box-shadow: 0 0 8px rgba(53,234,255,.18);
}

.hm-lib-toolbar2 {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.hm-lib-group-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  border: 1px solid var(--hm-edge);
  background: var(--hm-surface-soft);
  color: var(--hm-secondary);
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}

.hm-lib-group-btn.active {
  background: rgba(53,234,255,.12);
  border-color: var(--cm-cyan);
  color: var(--cm-cyan);
}

.hm-lib-act-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: var(--cm-radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  border: 1px solid var(--hm-edge);
  background: var(--hm-surface-soft);
  color: var(--hm-secondary);
  transition: .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hm-lib-act-btn.enrich {
  border-color: rgba(255,63,200,.3);
  background: rgba(255,63,200,.06);
  color: var(--cm-mag);
}

.hm-lib-act-btn.dedup {
  border-color: rgba(53,234,255,.3);
  background: rgba(53,234,255,.05);
  color: var(--cm-cyan);
}

.hm-lib-act-btn.export {
  border-color: var(--accent-dim,rgba(53,234,255,.3));
  background: var(--accent-glow,rgba(53,234,255,.04));
  color: var(--cm-violet);
}

.hm-lib-act-btn.slsk {
  border-color: rgba(255,200,40,.3);
  background: rgba(255,200,40,.04);
  color: var(--cm-gold);
}

.hm-lib-act-btn:hover {
  filter: brightness(1.3);
}

.hm-lib-act-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: none;
}

.hm-genre-group {
  animation: hm-group-in .22s ease both;
  grid-column: 1/-1;
  min-width: 0;
}

.hm-genre-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  margin-top: 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: .15s;
  min-height: 42px;
}

.hm-genre-group-header:hover {
  background: var(--hm-surface-soft);
}

.hm-genre-group-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--cm-violet);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hm-genre-group-count {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--accent-dim,rgba(53,234,255,.12));
  border: 1px solid var(--accent-dim,rgba(53,234,255,.25));
  color: var(--cm-violet);
  margin-left: 4px;
}

.hm-genre-group-arrow {
  font-size: 11px;
  color: var(--hm-muted);
  margin-left: auto;
  transition: transform .2s;
  display: inline-block;
}

.hm-genre-group-header.collapsed .hm-genre-group-arrow {
  transform: rotate(-90deg);
}

.hm-genre-tracks {
  overflow: hidden;
  max-height: 9999px;
  transition: max-height .3s ease;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 10px;
}

.hm-genre-tracks.collapsed {
  max-height: 0;
}

.hm-genre-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-dim,rgba(53,234,255,.1));
  border: 1px solid var(--accent-dim,rgba(53,234,255,.25));
  color: var(--cm-violet);
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-key-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(180,122,255,.1);
  border: 1px solid rgba(180,122,255,.3);
  color: var(--purple,#b47aff);
  white-space: nowrap;
}

.hm-bpm-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 10px;
  font-size: 11px;
  color: var(--hm-muted);
  flex-wrap: wrap;
  padding-bottom: 14px;
}

.hm-bpm-range-row input[type=range] {
  flex: 1;
  accent-color: var(--cm-gold);
  height: 28px;
  min-width: 56px;
}

.hm-bpm-range-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--cm-gold);
  min-width: 26px;
  text-align: right;
}

.hm-ai-playlist {
  margin-top: 12px;
  border-radius: 14px;
  background: var(--hm-surface);
  border: 1px solid rgba(255,63,200,.2);
  padding: 16px;
}

.hm-ai-playlist-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--cm-mag);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hm-ai-playlist-row {
  display: flex;
  gap: 6px;
}

.hm-ai-playlist-input {
  flex: 1;
  height: 42px;
  border-radius: var(--cm-radius-sm);
  background: var(--hm-input);
  border: 1px solid rgba(255,63,200,.2);
  color: var(--text,#e8fff6);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  transition: .2s;
  min-width: 0;
}

.hm-ai-playlist-input:focus {
  border-color: var(--cm-mag);
  box-shadow: 0 0 0 2px rgba(255,63,200,.1);
}

.hm-ai-playlist-input::placeholder {
  color: var(--hm-muted);
}

.hm-ai-playlist-btn {
  height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  white-space: nowrap;
  background: linear-gradient(135deg,rgba(255,63,200,.2),rgba(53,234,255,.1));
  border: 1px solid rgba(255,63,200,.4);
  color: var(--cm-mag);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: .2s;
}

.hm-ai-playlist-btn:hover {
  filter: brightness(1.2);
}

.hm-ai-playlist-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: none;
}

.hm-skel {
  border-radius: 7px;
  background: linear-gradient(90deg,var(--hm-surface-soft) 25%,rgba(91,132,190,.14) 50%,var(--hm-surface-soft) 75%);
  background-size: 200% 100%;
  animation: hm-skel-slide 1.4s ease infinite;
  margin-bottom: 8px;
}

#hm-sec-discover .hm-source-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 12px;
  scrollbar-width: none;
}

#hm-sec-discover .hm-source-tabs::-webkit-scrollbar {
  display: none;
}

.hm-disc-card {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr);
  grid-template-rows: auto auto;
  gap: 9px 13px;
  align-items: center;
  padding: 14px;
  border-radius: 17px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  cursor: pointer;
  transition: .18s;
  box-shadow: none;
  overflow: hidden;
  min-height: 120px;
  min-width: 0;
}

.hm-disc-card:hover,
.hm-disc-card.expanded {
  border-color: var(--hm-edge-strong);
  background: var(--hm-surface-raised);
}

.hm-disc-card-art {
  grid-row: 1/3;
  width: 76px;
  height: 90px;
  border-radius: 12px;
  background: linear-gradient(135deg,rgba(53,234,255,.15),rgba(255,63,200,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 1px solid var(--hm-edge);
  overflow: hidden;
  box-shadow: none;
  flex-shrink: 0;
  grid-column: 1;
}

.hm-disc-card-info {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: none;
  background: none;
  border: 0;
  padding: 0;
  grid-row: 1;
}

.hm-disc-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.hm-disc-card-sub {
  font-size: 11px;
  color: var(--hm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}

.hm-disc-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
  min-width: 0;
}

.hm-disc-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--hm-edge);
  background: rgba(255,255,255,.045);
  color: var(--hm-secondary);
  white-space: nowrap;
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
  line-height: 1.6;
  font: 600 9px/1.5 var(--font-mono);
}

.hm-disc-pill.source {
  color: var(--cm-cyan);
  border-color: rgba(53,234,255,.28);
  background: rgba(53,234,255,.08);
}

.hm-disc-pill.genre {
  color: var(--cm-violet);
  border-color: var(--accent-dim,rgba(53,234,255,.25));
  background: var(--accent-glow,rgba(53,234,255,.07));
}

.hm-disc-pill.bpm {
  color: var(--cm-gold);
  border-color: rgba(250,208,21,.28);
  background: rgba(250,208,21,.07);
}

.hm-disc-pill.key {
  color: var(--purple,#b47aff);
  border-color: rgba(180,122,255,.28);
  background: rgba(180,122,255,.07);
}

.hm-disc-extra {
  display: none;
  grid-column: 1/-1;
  font-size: 12px;
  line-height: 1.45;
  color: var(--hm-muted);
  padding: 5px 0 0;
  grid-row: 3;
}

.hm-disc-card.expanded .hm-disc-extra {
  display: block;
}

.hm-disc-card-actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: row;
  gap: 7px;
  align-items: center;
  justify-content: flex-start;
  box-shadow: none;
  background: none;
  border: 0;
  padding: 0;
}

.hm-disc-btn {
  width: auto;
  height: 36px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid var(--hm-edge);
  background: rgba(255,255,255,.055);
  color: var(--hm-secondary);
  transition: .15s;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 36px;
}

.hm-disc-btn .label {
  display: none;
  font-size: 11px;
}

.hm-disc-btn.play:hover {
  border-color: var(--cm-violet);
  color: var(--cm-violet);
}

.hm-disc-btn.queue:hover {
  border-color: var(--cm-cyan);
  color: var(--cm-cyan);
}

.hm-disc-btn.dl:hover {
  border-color: var(--cm-gold);
  color: var(--cm-gold);
}

.hm-dl-progress {
  height: 3px;
  border-radius: 2px;
  background: rgba(250,208,21,.12);
  margin-top: 5px;
  overflow: hidden;
  display: none;
}

.hm-dl-progress.active {
  display: block;
}

.hm-dl-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg,var(--cm-gold),rgba(250,208,21,.5));
  width: 0%;
  transition: width .4s ease;
}

#hm-sec-radio {
  padding: 14px 14px 20px;
}

.hm-radio-genre-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.hm-radio-genre-row::-webkit-scrollbar {
  display: none;
}

.hm-radio-genre-pill {
  padding: 4px 11px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255,63,200,.25);
  background: rgba(255,63,200,.05);
  color: var(--hm-secondary);
  transition: .15s;
}

.hm-radio-genre-pill.active {
  background: rgba(255,63,200,.12);
  border-color: var(--cm-mag);
  color: var(--cm-mag);
  box-shadow: 0 0 6px rgba(255,63,200,.18);
}

.hm-station-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 15px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-edge);
  margin-bottom: 10px;
  cursor: pointer;
  transition: .2s;
  min-height: 78px;
  border-color: var(--hm-edge);
}

.hm-station-card:hover {
  border-color: rgba(255,63,200,.3);
  background: rgba(255,63,200,.04);
}

.hm-station-card.playing {
  border-color: var(--cm-mag);
  background: rgba(255,63,200,.07);
}

.hm-station-flag {
  font-size: 24px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.hm-station-info {
  flex: 1;
  min-width: 0;
}

.hm-station-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text,#e8fff6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-station-meta {
  font-size: 11px;
  color: var(--hm-muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.hm-station-bitrate {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--accent-dim,rgba(53,234,255,.1));
  border: 1px solid var(--accent-dim,rgba(53,234,255,.2));
  color: var(--cm-violet);
  flex-shrink: 0;
  white-space: nowrap;
  font: 600 9px/1.5 var(--font-mono);
}

.hm-station-play {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255,63,200,.12);
  border: 1px solid rgba(255,63,200,.3);
  color: var(--cm-mag);
  cursor: pointer;
  transition: .15s;
}

.hm-station-play:hover {
  background: rgba(255,63,200,.22);
}

.hm-station-play.playing {
  background: rgba(255,63,200,.22);
  box-shadow: 0 0 10px rgba(255,63,200,.35);
}

#hm-tabbar::-webkit-scrollbar {
  display: none;
}

.hm-source-auth-row {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 20px;
  padding-bottom: 3px;
}

.hm-source-auth-row::-webkit-scrollbar {
  display: none;
}

.hm-source-auth-btn {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid rgba(53,234,255,.22);
  background: rgba(53,234,255,.06);
  color: var(--cm-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  height: auto;
  cursor: pointer;
  font-family: inherit;
  transition: .15s;
  min-height: 34px;
}

.hm-source-auth-btn.pandora {
  border-color: rgba(255,63,200,.25);
  background: rgba(255,63,200,.06);
  color: var(--cm-mag);
}

#hm-fp-lyrics {
  position: relative;
  z-index: 10;
  width: calc(100% - 40px);
  margin: 12px 20px 0;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(3,7,15,.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hm-edge);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  display: none;
  flex-shrink: 0;
  scrollbar-width: none;
  max-width: 800px;
  border-color: rgba(91,132,190,.3);
}

#hm-fp-lyrics::-webkit-scrollbar {
  display: none;
}

.hm-lyrics-line {
  font-size: 14px;
  color: #91a1bd;
  line-height: 1.7;
  padding: 4px 0;
  transition: color .25s,transform .25s;
  cursor: pointer;
}

.hm-lyrics-current {
  color: var(--cm-cyan);
  font-weight: 700;
  transform: scale(1.04);
  text-shadow: 0 0 12px rgba(53,234,255,.4);
}

#hm-fp-sleep.active {
  color: var(--cm-cyan);
  text-shadow: 0 0 12px var(--cm-cyan);
}

#hm-fp-sleep .hm-sleep-remain {
  font-size: 10px;
  display: block;
  margin-top: -2px;
  color: var(--cm-cyan);
  white-space: nowrap;
}

#hm-fp-speed {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.hm-fp-icons::-webkit-scrollbar {
  display: none;
}

.hm-queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--hm-edge);
  min-height: 66px;
}

.hm-queue-row.current {
  border-left: 3px solid var(--cm-cyan);
  padding-left: 9px;
}

.hm-queue-row-art {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(135deg,rgba(53,234,255,.15),rgba(255,63,200,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.hm-queue-row-info {
  flex: 1;
  min-width: 0;
}

.hm-queue-row-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text,#e8fff6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-queue-row-artist {
  font-size: 11px;
  color: var(--hm-muted);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-queue-row-remove {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hm-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: .15s;
  min-width: 36px;
}

.hm-queue-row-remove:hover {
  color: var(--cm-red,#ff4444);
  background: rgba(255,68,68,.1);
}

#hm-qa-resume {
  border-color: rgba(53,234,255,.30);
  background: linear-gradient(145deg,rgba(53,234,255,.065),transparent 75%),var(--hm-surface);
}

#hm-qa-resume .hm-quick-icon {
  color: var(--cm-cyan);
  filter: none;
}

#hm-qa-radio {
  border-color: rgba(67,143,255,.30);
  background: linear-gradient(145deg,rgba(67,143,255,.065),transparent 75%),var(--hm-surface);
}

#hm-qa-radio .hm-quick-icon {
  color: #438fff;
  filter: none;
}

#hm-qa-dj {
  border-color: rgba(166,87,255,.30);
  background: linear-gradient(145deg,rgba(166,87,255,.065),transparent 75%),var(--hm-surface);
}

#hm-qa-dj .hm-quick-icon {
  color: var(--cm-violet);
  filter: none;
}

#hm-qa-create {
  border-color: rgba(255,63,200,.30);
  background: linear-gradient(145deg,rgba(255,63,200,.065),transparent 75%),var(--hm-surface);
}

#hm-qa-create .hm-quick-icon {
  color: var(--cm-pink);
  filter: none;
}

.hm-track-row.hm-track-playing {
  background: var(--accent-dim);
  border-left: 2px solid var(--cm-cyan);
  padding-left: 10px;
  border-color: rgba(53,234,255,.45);
}

.hm-track-row.hm-track-playing .hm-track-title {
  color: var(--cm-cyan);
}

.hm-station-card.genre-pop {
  border-left: 3px solid rgba(255,63,200,.6);
}

.hm-station-card.genre-rock {
  border-left: 3px solid rgba(255,100,50,.6);
}

.hm-station-card.genre-hiphop {
  border-left: 3px solid rgba(250,208,21,.6);
}

.hm-station-card.genre-jazz {
  border-left: 3px solid rgba(53,234,255,.6);
}

.hm-station-card.genre-electronic {
  border-left: 3px solid rgba(53,234,255,.6);
}

.hm-station-card.genre-classical {
  border-left: 3px solid rgba(180,122,255,.6);
}

.hm-station-card.genre-other {
  border-left: 3px solid var(--hm-edge);
}

.hm-seed-chip {
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(53,234,255,.2);
  background: rgba(53,234,255,.06);
  color: var(--hm-secondary);
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
  min-height: 36px;
}

.hm-seed-chip:hover {
  border-color: var(--cm-cyan);
  color: var(--cm-cyan);
  background: rgba(53,234,255,.1);
}

.hm-workspace-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 25px;
}

.hm-workspace-head h1 {
  font: 780 clamp(25px,3vw,36px)/1.15 var(--hm-font);
  letter-spacing: -.04em;
  color: var(--text);
}

.hm-workspace-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--cm-cyan);
  margin-bottom: 7px;
  font: 650 10px/1.5 var(--font-mono);
}

.hm-workspace-back {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(53,234,255,.22);
  background: rgba(53,234,255,.08);
  font-size: 22px;
  color: var(--cm-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  flex: 0 0 44px;
  padding-bottom: 2px;
}

.hm-disc-card.in-library {
  border-color: rgba(53,234,255,.36);
}

.hm-disc-btn:disabled {
  opacity: .5;
  cursor: wait;
}

.hm-visual-field {
  display: grid;
  grid-template-columns: 116px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hm-edge);
  font-size: 12px;
  color: var(--hm-secondary);
  min-height: 58px;
}

.hm-visual-field select {
  height: 40px;
  border-radius: 10px;
  background: var(--hm-input);
  color: var(--text);
  border: 1px solid rgba(53,234,255,.2);
  padding: 0 9px;
  min-width: 0;
  font-size: 12px;
  border-color: var(--hm-edge);
}

.hm-visual-field input[type=range] {
  width: 100%;
  accent-color: var(--cm-cyan);
  min-width: 0;
  height: 28px;
}

.hm-visual-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.hm-visual-actions button,
.hm-visual-actions label {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(53,234,255,.18);
  border-radius: 10px;
  background: rgba(53,234,255,.06);
  font-size: 11px;
  color: var(--hm-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hm-remix-card {
  background: var(--hm-surface);
}

.hm-remix-field {
  display: grid;
  grid-template-columns: 94px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--hm-secondary);
}

.hm-remix-field select {
  height: 42px;
  min-width: 0;
  border-radius: 9px;
  background: var(--hm-input);
  color: var(--text);
  border: 1px solid rgba(255,63,200,.24);
  padding: 0 10px;
  border-color: var(--hm-edge);
}

.hm-remix-field input {
  width: 100%;
  accent-color: var(--cm-mag);
}

.hm-remix-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cm-mag);
  margin-bottom: 10px;
  font: 650 10px var(--font-mono);
}

.hm-remix-genres {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hm-remix-genre-btn {
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255,63,200,.17);
  background: rgba(255,63,200,.05);
  font-size: 11px;
  color: var(--hm-secondary);
  min-height: 35px;
}

.hm-remix-genre-btn.active {
  border-color: var(--cm-mag);
  color: var(--cm-mag);
  background: rgba(255,63,200,.15);
}

.hm-remix-progress,
.hm-remix-result {
  margin-top: 11px;
  padding: 13px;
  border-radius: 11px;
  border: 1px solid rgba(53,234,255,.15);
  background: var(--hm-surface-soft);
  font-size: 12px;
  color: var(--hm-secondary);
  overflow-wrap: anywhere;
}

.hm-remix-result-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.hm-remix-result-actions button,
.hm-remix-result-actions a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid rgba(53,234,255,.22);
  background: rgba(53,234,255,.07);
  font-size: 11px;
  color: var(--cm-cyan);
}

[data-admin-only="true"] {
  display: none;
}

#hm-theme-toggle,
.hm-tab,
#hm-mp-play,
#hm-mp-next {
  transition: transform .16s cubic-bezier(.2,.8,.2,1),border-color .16s ease,background .16s ease,opacity .16s ease;
}

#hm-theme-toggle:hover,
#hm-mp-play:hover,
#hm-mp-next:hover {
  border-color: var(--hm-edge-strong);
  transform: translateY(-1px);
}

#hm-theme-toggle:active,
#hm-mp-play:active,
#hm-mp-next:active {
  transform: scale(.97);
}

.hm-section[aria-busy="true"]::after {
  content: "";
  display: block;
  width: min(320px,70%);
  height: 4px;
  margin: 20px auto;
  border-radius: 999px;
  background: linear-gradient(90deg,transparent,rgba(53,234,255,.16),transparent);
  animation: hm-skeleton 1.2s ease-in-out infinite;
  max-width: 240px;
}

html[data-mode="light"] {
  --cm-bg: #f2f6fc;
  --bg: #eaf0f9;
  --bg-deep: #eaf0f9;
  --text: #13223b;
  --muted: #53647d;
  --hm-muted: #53647d;
  --hm-secondary: #394d69;
  --hm-surface: #f7faff;
  --hm-surface-raised: #fff;
  --hm-surface-soft: rgba(61,91,143,.065);
  --hm-edge: rgba(61,91,143,.22);
  --hm-edge-strong: rgba(0,123,162,.48);
  --hm-glass: rgba(247,250,255,.95);
  --hm-input: #fff;
  --hm-shadow: 0 12px 34px rgba(34,57,92,.12);
  --cm-cyan: #007b9f;
  --cm-violet: #753bd1;
  --cm-mag: #b92885;
  --cm-pink: #b92885;
  --cm-gold: #956200;
  --accent-dim: rgba(0,123,159,.09);
  --accent-glow: rgba(117,59,209,.07);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.hm-has-track {
  --hm-player-space: var(--hm-mini-h);
}

button,
input,
select,
textarea {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

input,
select,
textarea {
  min-width: 0;
  accent-color: var(--cm-cyan);
}

select option {
  background: var(--hm-input);
  color: var(--text);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cm-cyan);
  outline-offset: 3px;
}

.hm-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hm-pause-icon {
  display: none;
}

button[data-playing="true"] .hm-play-icon {
  display: none;
}

button[data-playing="true"] .hm-pause-icon {
  display: block;
}

::selection {
  background: var(--accent-dim);
  color: var(--text);
}

#hm-app-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--hm-header-h);
  z-index: 5200;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: env(safe-area-inset-top,0px) 76px 0 20px;
  background: var(--hm-glass);
  border-bottom: 1px solid var(--hm-edge);
  backdrop-filter: var(--cm-blur);
  -webkit-backdrop-filter: var(--cm-blur);
}

#hm-app-header > * {
  min-width: 0;
}

#hm-app-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,rgba(53,234,255,.45),rgba(67,143,255,.20),rgba(166,87,255,.24),transparent 85%);
  pointer-events: none;
}

.hm-header-copy {
  min-width: 0;
  flex: 1;
}

.hm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.hm-brand > .hm-icon,
.hm-brand > svg {
  width: 30px;
  height: 30px;
  color: var(--cm-cyan);
  filter: drop-shadow(0 0 9px rgba(53,234,255,.30));
}

.hm-brand > span {
  background: linear-gradient(105deg,var(--cm-cyan),#438fff,var(--cm-violet),var(--cm-pink),var(--cm-cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-quick-btn,
.hm-studio-card,
.hm-deck {
  position: relative;
  isolation: isolate;
}

.hm-quick-btn::before,
.hm-studio-card::before,
.hm-deck::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--hm-chroma);
  -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .3;
  transition: opacity .18s ease;
}

.hm-quick-btn:hover::before,
.hm-studio-card:hover::before,
.hm-deck:focus-within::before {
  opacity: .75;
}

#hm-section-title {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-header-subtitle {
  color: var(--hm-muted);
  font-size: 11px;
  line-height: 1.3;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hm-sec-home,
#hm-sec-library,
#hm-sec-discover,
#hm-sec-dj,
#hm-sec-studio,
#hm-sec-radio {
  padding: 24px 20px 32px;
}

.hm-tab-icon .hm-icon {
  width: 21px;
  height: 21px;
}

.hm-tab.active {
  color: var(--cm-cyan);
  border-color: transparent;
  background: linear-gradient(var(--hm-surface-raised),var(--hm-surface-raised)) padding-box,var(--hm-chroma) border-box;
  box-shadow: 0 0 16px rgba(53,234,255,.09),inset 0 0 16px rgba(53,234,255,.025);
}

#hm-mini-player::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,transparent,#35eaff,#438fff,#a657ff,#ff3fc8,transparent);
  opacity: .65;
}

#hm-mp-play {
  color: var(--cm-cyan);
  background: var(--accent-dim);
  border-color: rgba(53,234,255,.25);
}

#hm-playback-status {
  position: fixed;
  left: 50%;
  bottom: calc(var(--hm-tab-h) + var(--hm-player-space) + env(safe-area-inset-bottom,0px) + 12px);
  transform: translateX(-50%);
  z-index: 9500;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid var(--hm-edge-strong);
  border-radius: 14px;
  background: var(--hm-glass);
  color: var(--text);
  box-shadow: var(--hm-shadow);
  font-size: 12px;
  line-height: 1.5;
  backdrop-filter: var(--cm-blur);
  pointer-events: none;
  overflow-wrap: anywhere;
  text-align: center;
}

#hm-playback-status:empty {
  display: none;
}

body.hm-playback-loading #hm-playback-status::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 9px;
  vertical-align: -2px;
  border: 2px solid var(--hm-edge);
  border-top-color: var(--cm-cyan);
  border-radius: 50%;
  animation: hm-spin .8s linear infinite;
}

.hm-quick-icon .hm-icon {
  width: 25px;
  height: 25px;
}

.hm-rail-more:hover {
  background: var(--accent-dim);
}

button.hm-device-pill,
#hm-cast-pill {
  cursor: pointer;
}

.hm-src-chips,
.hm-genre-chips {
  gap: 8px;
  padding: 2px 0 7px;
}

.hm-src-chip,
.hm-genre-chip,
.hm-radio-genre-pill {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 11px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.hm-lib-act-btn,
.hm-lib-group-btn {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 0;
  border-radius: 10px;
}

.hm-track-dur,
.hm-bpm-chip,
.hm-key-chip,
.hm-genre-badge,
.hm-enrich-chip {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
}

.hm-workspace-head > div {
  min-width: 0;
}

#hm-disc-empty,
#hm-disc-searching {
  grid-column: 1/-1;
}

#hm-disc-empty > div:not(#hm-seed-chips) {
  color: var(--hm-muted) !important;
}

.hm-disc-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hm-deck-b .hm-deck-label {
  color: var(--cm-violet);
}

.hm-studio-header > div {
  min-width: 0;
}

#hm-fp-disc-placeholder::before {
  content: "♫";
  font-size: 76px;
  line-height: 1;
  text-shadow: 0 0 28px rgba(53,234,255,.15);
}

#hm-fp-play-btn .hm-icon {
  width: 28px;
  height: 28px;
}

#hm-fp-commentary:empty {
  padding: 0;
}

#hm-autoeq-families {
  gap: 7px;
}

#hm-autoeq-search {
  height: 40px !important;
  font-size: 12px !important;
  background: #080e18 !important;
  border-color: rgba(91,132,190,.3) !important;
}

#hm-autoeq-results {
  height: 40px !important;
  font-size: 12px !important;
  background: #080e18 !important;
  color: #f6f9ff !important;
}

#hm-autoeq-status {
  color: #91a1bd !important;
  font-size: 11px !important;
}

#hm-output-meter-text {
  color: #b8c6db !important;
}

#hm-fp-eq-sheet .hm-eq-preset {
  flex-shrink: 0;
}

.hm-meta-field input[type=file] {
  height: auto;
  min-height: 42px;
}

.hm-visual-field output {
  font: 10px var(--font-mono);
  min-width: 30px;
  text-align: right;
}

.hm-rail > .hm-empty {
  border: 1px dashed var(--hm-edge);
  border-radius: 16px;
  background: var(--hm-surface);
}

.hm-empty button,
.hm-empty a,
.hm-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  margin: 12px 0 0;
  border: 1px solid var(--hm-edge-strong);
  border-radius: 10px;
  color: var(--cm-cyan);
  background: var(--accent-dim);
  font-size: 12px;
  font-weight: 650;
}

.hm-fp-icon:first-child {
  margin-left: auto;
}

.hm-fp-icon:last-child {
  margin-right: auto;
}

#hm-home-link {
  border-radius: 9px;
  padding: 8px 0;
  text-align: left;
}

#hm-deck-a-title,
#hm-deck-b-title,
#hm-dj-recent > div,
#hm-dj-recent-list {
  color: var(--hm-muted) !important;
  font-size: 12px !important;
}


/* Motion: bounded edges and existing functional indicators */

@keyframes hm-eq1 {0%,100%{height:4px}50%{height:16px}}

@keyframes hm-eq2 {0%,100%{height:8px}50%{height:14px}}

@keyframes hm-eq3 {0%,100%{height:6px}50%{height:18px}}

@keyframes hm-eq4 {0%,100%{height:10px}50%{height:12px}}

@keyframes hm-live-pulse {0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(255,68,68,.6)}
  50%{opacity:.85;box-shadow:0 0 0 6px rgba(255,68,68,0)}}

@keyframes hm-stem-pulse {0%,100%{opacity:.7}50%{opacity:1}}

@keyframes hm-spin {to{transform:rotate(360deg)}}

@keyframes hm-toast-in {from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}

@keyframes hm-like-pop {0%{transform:scale(1)}50%{transform:scale(1.4)}100%{transform:scale(1)}}

@keyframes hm-group-in {from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}

@keyframes hm-skel-slide {from{background-position:200% 0}to{background-position:-200% 0}}

@keyframes hm-skeleton {0%{transform:translateX(-18%);opacity:.45}50%{opacity:1}100%{transform:translateX(18%);opacity:.45}}

@keyframes hm-chroma-breathe {0%,100%{opacity:.55} 50%{opacity:.95}}

@keyframes hm-edge-orbit {to{--hm-edge-angle:360deg}}

@keyframes hm-brand-shimmer {from{background-position:0 50%} to{background-position:200% 50%}}


/* Responsive layout and user motion preference */

@media (prefers-reduced-motion:no-preference) {

  .hm-brand > span {
    animation: hm-brand-shimmer 12s linear infinite;
  }

  #hm-mini-player::before {
    animation: hm-chroma-breathe 5s ease-in-out infinite;
  }

  #hm-fp-controls {
    animation: hm-edge-orbit 18s linear infinite;
  }

}

@media (min-width:640px) {

  .hm-section,
  #hm-sec-home,
  #hm-sec-library,
  #hm-sec-discover,
  #hm-sec-dj,
  #hm-sec-studio,
  #hm-sec-radio {
    padding: 30px 28px 38px;
  }

  .hm-quick-btn {
    flex-direction: row;
    min-height: 84px;
    gap: 12px;
    padding: 16px;
  }

  .hm-quick-label {
    font-size: 13px;
  }

  .hm-disc-card {
    grid-template-columns: 86px minmax(0,1fr);
    gap: 10px 16px;
    padding: 16px;
  }

  .hm-disc-card-art {
    width: 86px;
    height: 94px;
  }

  .hm-disc-btn .label {
    display: inline;
  }

  .hm-disc-btn {
    min-width: 54px;
    padding: 0 10px;
  }

  .hm-playlist-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .hm-fp-icons {
    justify-content: flex-start;
  }

}

@media (min-width:768px) {

  .hm-track-list,
  .hm-genre-tracks {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .hm-track-row {
    grid-template-columns: 60px minmax(0,1fr) 40px;
  }

  .hm-track-art {
    width: 60px;
    height: 70px;
  }

  .hm-dj-portrait {
    display: none;
  }

  .hm-dj-console {
    display: grid;
    grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr);
  }

  .hm-studio-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

}

@media (min-width:1024px) {

  :root {
    --hm-header-h: calc(72px + env(safe-area-inset-top,0px));
    --hm-sidebar-w: 204px;
    --hm-tab-h: 0px;
  }

  #hm-app-header {
    gap: 26px;
    padding-left: 24px;
    padding-right: 88px;
  }

  .hm-brand {
    width: calc(var(--hm-sidebar-w) - 26px);
    font-size: 25px;
  }

  #hm-section-title {
    font-size: 15px;
  }

  #hm-theme-toggle {
    top: calc(16px + env(safe-area-inset-top,0px));
    right: 24px;
  }

  #hm-tabbar {
    top: var(--hm-header-h);
    bottom: 0;
    left: 0;
    right: auto;
    width: var(--hm-sidebar-w);
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 26px 14px;
    border: 0;
    border-right: 1px solid var(--hm-edge);
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--hm-surface);
  }

  .hm-tab {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 50px;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .hm-tab-label {
    font-size: 13px;
    font-weight: 600;
  }

  .hm-tab-icon .hm-icon {
    width: 22px;
    height: 22px;
  }

  #hm-mini-player {
    bottom: env(safe-area-inset-bottom,0px);
    padding: 10px 28px;
  }

  #hm-mp-info {
    max-width: 640px;
  }

  #hm-mp-eq-bars {
    margin-left: auto;
  }

  .hm-section,
  #hm-sec-home,
  #hm-sec-library,
  #hm-sec-discover,
  #hm-sec-dj,
  #hm-sec-studio,
  #hm-sec-radio {
    padding: 34px max(32px,calc((100% - 1160px)/2)) 42px;
  }

  .hm-rail-card {
    width: 184px;
    flex-basis: 184px;
  }

  .hm-rail-art {
    height: 182px;
  }

  .hm-playlist-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  #hm-playback-status {
    left: calc(50% + var(--hm-sidebar-w)/2);
    max-width: calc(100vw - var(--hm-sidebar-w) - 48px);
  }

}

@media (min-width:1280px) {

  #hm-disc-results {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .hm-radio-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
  }

}

@media (max-width:479px) {

  #hm-app-header {
    gap: 14px;
    padding-left: 16px;
    padding-right: 66px;
  }

  .hm-brand {
    font-size: 22px;
    gap: 8px;
  }

  .hm-brand > .hm-icon,
  .hm-brand > svg {
    width: 27px;
    height: 27px;
  }

  .hm-header-subtitle {
    display: none;
  }

  #hm-section-title {
    font-size: 12px;
  }

  #hm-theme-toggle {
    right: 14px;
  }

  .hm-section,
  #hm-sec-home,
  #hm-sec-library,
  #hm-sec-discover,
  #hm-sec-dj,
  #hm-sec-studio,
  #hm-sec-radio {
    padding: 24px 16px 28px;
  }

  .hm-quick-row {
    gap: 8px;
  }

  .hm-quick-btn {
    min-height: 86px;
    padding: 12px 5px;
    gap: 10px;
    border-radius: 13px;
  }

  .hm-quick-label {
    font-size: 11px;
  }

  .hm-rail {
    gap: 12px;
  }

  .hm-rail-card {
    width: 148px;
    flex-basis: 148px;
  }

  .hm-rail-art {
    height: 146px;
  }

  .hm-rail-card-info {
    padding: 10px;
  }

  .hm-radio-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }

  .hm-radio-card {
    min-height: 92px;
    padding: 16px 10px;
  }

  #hm-mini-player {
    gap: 10px;
    padding: 10px 12px;
  }

  #hm-mp-art {
    width: 44px;
    height: 44px;
  }

  #hm-mp-bpm {
    display: none !important;
  }

  #hm-mp-eq-bars {
    display: none;
  }

  #hm-mp-play,
  #hm-mp-next {
    width: 40px;
    height: 42px;
    min-width: 40px;
    border-radius: 11px;
  }

  .hm-lib-search {
    font-size: 13px;
  }

  .hm-lib-topbar {
    gap: 7px;
  }

  .hm-lib-filter-btn,
  .hm-lib-add-btn {
    width: 42px;
    min-width: 42px;
  }

  .hm-ai-playlist-row {
    flex-wrap: wrap;
    gap: 9px;
  }

  .hm-ai-playlist-input {
    flex-basis: 100%;
  }

  .hm-ai-playlist-btn {
    width: 100%;
  }

  .hm-disc-card {
    padding: 12px;
    gap: 9px 11px;
    grid-template-columns: 68px minmax(0,1fr);
  }

  .hm-disc-card-art {
    width: 68px;
    height: 82px;
  }

  .hm-disc-card-title {
    font-size: 13px;
  }

  .hm-disc-pill {
    font-size: 9px;
    max-width: 80px;
  }

  .hm-station-card {
    gap: 10px;
    padding: 12px;
  }

  .hm-station-bitrate {
    max-width: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hm-station-flag {
    width: 26px;
    font-size: 21px;
  }

  .hm-studio-header,
  .hm-studio-body {
    padding: 17px;
  }

  .hm-workspace-head {
    gap: 12px;
    margin-bottom: 22px;
  }

  .hm-workspace-head h1 {
    font-size: 26px;
  }

  .hm-workspace-kicker {
    font-size: 9px;
  }

  .hm-remix-field {
    grid-template-columns: 78px minmax(0,1fr) auto;
    gap: 7px;
    font-size: 11px;
  }

  .hm-meta-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .hm-bottom-sheet {
    padding-left: 17px;
    padding-right: 17px;
  }

  .hm-visual-field {
    grid-template-columns: 96px minmax(0,1fr) auto;
    gap: 9px;
    font-size: 11px;
  }

  #hm-fp-eq-sheet {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hm-eq-bands {
    gap: 3px;
  }

  .hm-eq-band input[type=range] {
    width: 25px;
    height: 112px;
  }

  .hm-eq-band-label,
  .hm-eq-band-val {
    font-size: 9px;
  }

  .hm-eq-gain-row {
    gap: 9px;
    padding: 10px;
  }

}

@media (max-height:740px) {

  #hm-fp-disc-wrap {
    --hm-art-size: clamp(120px,23dvh,170px);
    margin-top: 24px;
  }

  #hm-fp-info {
    padding-top: 13px;
  }

  #hm-fp-title {
    font-size: 22px;
  }

  #hm-fp-wave-wrap {
    margin-top: 16px;
  }

  #hm-fp-controls {
    padding-top: 10px;
    padding-bottom: 12px;
    gap: 10px;
  }

  #hm-fp-play-btn {
    width: 56px;
    height: 56px;
  }

}

@media (orientation:landscape) and (max-height:520px) {

  :root {
    --hm-header-h: calc(56px + env(safe-area-inset-top,0px));
    --hm-tab-h: 58px;
  }

  #hm-theme-toggle {
    top: calc(8px + env(safe-area-inset-top,0px));
    width: 38px;
    height: 38px;
  }

  .hm-tab {
    gap: 3px;
    padding: 4px 2px;
  }

  .hm-tab-label {
    font-size: 10px;
  }

  .hm-dj-portrait {
    display: none;
  }

  .hm-dj-console {
    display: grid;
    grid-template-columns: minmax(0,1fr) 40px minmax(0,1fr);
    gap: 12px;
  }

  .hm-deck {
    padding: 16px;
  }

  #hm-fullplayer {
    align-items: stretch;
    padding: 24px 66px 20px 220px;
    min-height: 100%;
  }

  #hm-fp-handle {
    position: absolute;
    top: 0;
    left: calc(50% - 40px);
    margin: 0;
  }

  #hm-fp-disc-wrap {
    --hm-art-size: 156px;
    position: absolute;
    left: 36px;
    top: calc(50% - 78px);
    margin: 0;
  }

  #hm-fp-info {
    padding: 6px 0 0;
    text-align: left;
    max-width: none;
  }

  #hm-fp-title {
    font-size: 22px;
  }

  #hm-fp-artist {
    font-size: 12px;
    margin-top: 3px;
  }

  #hm-fp-album {
    display: none;
  }

  #hm-fp-wave-wrap {
    width: 100%;
    max-width: none;
    margin: 14px 0 0;
    min-height: 75px;
    padding: 8px 10px 5px;
  }

  #hm-fp-wave {
    height: 42px;
  }

  #hm-fp-wave-reactive {
    top: 8px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    height: 42px;
  }

  #hm-fp-wave-status {
    top: 23px;
  }

  #hm-fp-time-row {
    margin-top: 3px;
  }

  #hm-fp-controls {
    width: 100%;
    max-width: none;
    margin: 9px 0 0;
    padding: 8px 10px;
    gap: 6px;
  }

  .hm-fp-icons {
    justify-content: flex-start;
    gap: 6px;
    padding-bottom: 3px;
  }

  .hm-fp-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  #hm-fp-play-btn {
    width: 46px;
    height: 46px;
  }

  #hm-fp-prev,
  #hm-fp-next-btn {
    width: 42px;
    height: 42px;
  }

  #hm-fp-commentary {
    padding: 9px 0 0;
    font-size: 11px;
  }

  #hm-fp-lyrics {
    width: 100%;
    margin: 10px 0 0;
  }

  #hm-fp-radio-badge {
    top: 20px;
    left: 24px;
  }

  #hm-fp-eq-sheet,
  .hm-bottom-sheet {
    max-height: 92dvh;
  }

}

@media (orientation:landscape) and (max-height:520px) and (min-width:1024px) {

  :root {
    --hm-tab-h: 0px;
  }

}

@media (max-width:600px) and (orientation:landscape) and (max-height:520px) {

  #hm-fullplayer {
    padding-left: 150px;
    padding-right: 55px;
  }

  #hm-fp-disc-wrap {
    --hm-art-size: 112px;
    left: 20px;
    top: calc(50% - 56px);
  }

}

@media (pointer:coarse),(max-width:767px) {
  .hm-rc-btn,
  .hm-like-btn,
  .hm-rail-more {
    height: 44px;
    min-height: 44px;
  }

  .hm-like-btn {
    width: 44px;
    min-width: 44px;
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  #hm-mini-player::before,
  #hm-fp-controls,
  .hm-skel,
  .hm-stem-lane-fill {
    animation: none !important;
  }

}


/* hyMusic mobile/runtime utility states — retained after legacy CSS removal. */
.hm-hidden{display:none!important}
.hm-opacity-0{opacity:0!important;pointer-events:none!important}
.hm-opacity-85{opacity:.85!important}
#hm-fs-ui,#hym-fs-controls,#hym-fs-title{will-change:opacity}


/* R25 — Hucifer featured player on Music Home */
.hm-hucifer-feature{
  position:relative;overflow:hidden;margin:16px 14px 18px;padding:14px;
  border:1px solid rgba(214,166,44,.30);border-radius:18px;
  background:
    radial-gradient(circle at 18% 0%,rgba(214,166,44,.14),transparent 38%),
    linear-gradient(145deg,rgba(20,17,9,.96),rgba(3,4,5,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 16px 42px rgba(0,0,0,.24),0 0 28px rgba(214,166,44,.05)
}
.hm-hucifer-feature::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 0 42%,rgba(255,227,146,.07) 50%,transparent 58%);transform:translateX(-120%);animation:hmHuciferSweep 8s ease-in-out infinite}
@keyframes hmHuciferSweep{0%,68%{transform:translateX(-120%)}88%,100%{transform:translateX(120%)}}
.hm-hucifer-feature-head{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.hm-hucifer-feature-head>div{display:grid;gap:2px}.hm-hucifer-kicker{font-size:8px;font-weight:900;letter-spacing:.18em;color:#d7a62c}.hm-hucifer-feature-head strong{font:900 17px Orbitron,system-ui,sans-serif;letter-spacing:.08em;color:#fff1b5;text-shadow:0 0 16px rgba(214,166,44,.24)}
.hm-hucifer-feature-head a{position:relative;z-index:2;font-size:9px;font-weight:800;color:#d7a62c;text-decoration:none;white-space:nowrap}
.hm-hucifer-player-shell{position:relative;z-index:1;overflow:hidden;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:#070707}
.hm-hucifer-player-shell iframe{display:block;width:100%;height:166px;border:0}
@media(max-width:620px){.hm-hucifer-feature{margin:12px 10px 14px;padding:10px;border-radius:15px}.hm-hucifer-feature-head strong{font-size:15px}.hm-hucifer-feature-head a{font-size:8px}.hm-hucifer-player-shell iframe{height:166px}}
@media(prefers-reduced-motion:reduce){.hm-hucifer-feature::after{animation:none}}


/* R26 — Spotify-style Hucifer catalog */
.hm-hucifer-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 2px 7px;color:#9f9a88;font-size:9px;text-transform:uppercase;letter-spacing:.12em}
.hm-hucifer-catalog-head strong{color:#d7a62c;font-size:9px}
.hm-hucifer-tracklist{position:relative;z-index:1;display:grid;max-height:430px;overflow:auto;border:1px solid rgba(255,255,255,.075);border-radius:12px;background:rgba(0,0,0,.34);scrollbar-width:thin;scrollbar-color:rgba(215,166,44,.35) transparent}
.hm-hucifer-track{display:grid;grid-template-columns:28px minmax(0,1fr) 46px 26px;align-items:center;gap:8px;width:100%;min-height:43px;padding:6px 10px;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:transparent;color:#e8e6df;text-align:left;cursor:pointer;transition:background .15s ease,color .15s ease}
.hm-hucifer-track:last-child{border-bottom:0}.hm-hucifer-track:hover,.hm-hucifer-track:focus-visible{background:rgba(215,166,44,.08);outline:none}.hm-hucifer-track.active{background:rgba(215,166,44,.13);color:#fff4c7}
.hm-hucifer-track-num{color:#6f6b60;font:700 9px Roboto Mono,monospace;text-align:center}.hm-hucifer-track.active .hm-hucifer-track-num{color:#d7a62c}
.hm-hucifer-track-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:650}.hm-hucifer-track-time{color:#77756d;font:500 9px Roboto Mono,monospace;text-align:right}.hm-hucifer-track-play{color:#d7a62c;font-size:10px;text-align:center;opacity:.55}.hm-hucifer-track:hover .hm-hucifer-track-play,.hm-hucifer-track.active .hm-hucifer-track-play{opacity:1}
@media(max-width:620px){.hm-hucifer-tracklist{max-height:360px}.hm-hucifer-track{grid-template-columns:22px minmax(0,1fr) 38px 20px;gap:5px;min-height:40px;padding:5px 7px}.hm-hucifer-track-title{font-size:10px}.hm-hucifer-track-time{font-size:8px}.hm-hucifer-catalog-head{margin-top:10px}}


/* Dan's Dash entry — private owner-scoped library presentation */
.hm-dan-library-banner{display:grid;grid-template-columns:minmax(0,1fr) 86px;align-items:center;gap:16px;margin:0 0 16px;padding:18px 20px;border:1px solid rgba(255,212,95,.28);border-radius:18px;background:radial-gradient(420px 180px at 86% 18%,rgba(255,212,95,.11),transparent 70%),linear-gradient(135deg,rgba(255,212,95,.055),rgba(255,255,255,.018));box-shadow:0 18px 44px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.04)}
.hm-dan-library-banner[hidden]{display:none!important}.hm-dan-kicker{display:block;margin-bottom:4px;color:#ffd45f;font-size:8px;font-weight:900;letter-spacing:.18em}.hm-dan-library-banner h1{font:900 clamp(22px,4vw,34px)/1 Orbitron,system-ui,sans-serif;color:#fff4c4;letter-spacing:.02em}.hm-dan-library-banner p{margin-top:8px;max-width:680px;color:#b8b29f;font-size:10px;line-height:1.55}.hm-dan-mark{display:grid;place-items:center;width:76px;height:76px;border:1px solid rgba(255,212,95,.38);border-radius:50%;color:#ffd45f;font:900 20px Orbitron,system-ui,sans-serif;letter-spacing:.08em;background:rgba(255,212,95,.045);box-shadow:0 0 26px rgba(255,212,95,.08),inset 0 0 22px rgba(255,212,95,.035)}
body.hm-dan-mode #hm-sec-library .hm-lib-sec-title{color:#fff0b0}body.hm-dan-mode #hm-sec-library .hm-lib-topbar{margin-top:2px}
@media(max-width:620px){.hm-dan-library-banner{grid-template-columns:minmax(0,1fr) 58px;padding:14px 15px;gap:10px;border-radius:15px}.hm-dan-library-banner h1{font-size:23px}.hm-dan-library-banner p{font-size:9px}.hm-dan-mark{width:54px;height:54px;font-size:15px}}


/* R28 — compact animated Now Playing hero */
.hm-now-banner{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,28%);align-items:center;gap:16px;min-height:118px;margin:0 0 16px;padding:17px 20px;overflow:hidden;border:1px solid rgba(53,234,255,.22);border-radius:20px;background:radial-gradient(360px 160px at 12% 12%,rgba(53,234,255,.12),transparent 72%),radial-gradient(320px 180px at 92% 88%,rgba(166,87,255,.12),transparent 72%),linear-gradient(135deg,rgba(3,8,18,.96),rgba(5,3,14,.97));box-shadow:0 18px 46px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.04)}
.hm-now-banner::before{content:"";position:absolute;inset:-55% -25%;z-index:-1;background:conic-gradient(from 45deg,transparent 0 20%,rgba(53,234,255,.08) 27%,transparent 34% 58%,rgba(166,87,255,.09) 66%,transparent 74%);animation:hmNowSweep 14s linear infinite}.hm-now-banner::after{content:"";position:absolute;left:-15%;right:-15%;top:50%;height:1px;background:linear-gradient(90deg,transparent,rgba(53,234,255,.28),rgba(166,87,255,.42),transparent);filter:blur(.2px);animation:hmNowScan 5.4s ease-in-out infinite}
.hm-now-copy{position:relative;z-index:2;min-width:0;display:grid;gap:4px}.hm-now-kicker{display:flex;align-items:center;gap:7px;font-size:8px;font-weight:900;letter-spacing:.18em;color:#7f92ad}.hm-now-pulse{width:7px;height:7px;border-radius:50%;background:#556274;box-shadow:0 0 0 rgba(53,234,255,0)}.hm-now-banner.playing .hm-now-pulse{background:#35eaff;box-shadow:0 0 14px rgba(53,234,255,.8);animation:hmNowPulse 1.2s ease-in-out infinite}.hm-now-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:900 clamp(22px,4vw,34px)/1.05 Orbitron,system-ui,sans-serif;letter-spacing:.01em;color:#f7fbff;text-shadow:0 0 24px rgba(53,234,255,.08)}.hm-now-copy>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9cabbe;font-size:10px}.hm-now-banner.playing .hm-now-copy strong{background:linear-gradient(90deg,#f7fbff 0%,#8ef4ff 48%,#c69aff 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hm-now-eq{position:relative;z-index:2;height:70px;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 6px}.hm-now-eq i{display:block;width:5px;height:20%;min-height:8px;border-radius:999px;background:linear-gradient(180deg,#35eaff,#a657ff);opacity:.58;transform-origin:center;animation:hmNowIdle 2.8s ease-in-out infinite}.hm-now-eq i:nth-child(2n){animation-delay:-.35s}.hm-now-eq i:nth-child(3n){animation-delay:-.7s}.hm-now-eq i:nth-child(4n){animation-delay:-1.05s}.hm-now-banner.playing .hm-now-eq i{opacity:.96;animation-name:hmNowBeat;animation-duration:.82s}.hm-now-banner.playing .hm-now-eq i:nth-child(2n){animation-duration:1.04s}.hm-now-banner.playing .hm-now-eq i:nth-child(3n){animation-duration:.66s}.hm-now-banner.playing .hm-now-eq i:nth-child(4n){animation-duration:1.18s}
.hm-now-orbit{position:absolute;right:20%;top:50%;width:92px;height:92px;z-index:1;transform:translate(50%,-50%);border:1px solid rgba(166,87,255,.12);border-radius:50%;animation:hmNowOrbit 16s linear infinite;pointer-events:none}.hm-now-orbit::before{content:"";position:absolute;inset:14px;border:1px dashed rgba(53,234,255,.11);border-radius:50%}.hm-now-orbit span{position:absolute;color:rgba(166,87,255,.45);font-size:11px;text-shadow:0 0 10px rgba(166,87,255,.25)}.hm-now-orbit span:nth-child(1){left:6px;top:42px}.hm-now-orbit span:nth-child(2){right:8px;top:15px}.hm-now-orbit span:nth-child(3){right:18px;bottom:7px}
@keyframes hmNowBeat{0%,100%{height:18%}35%{height:92%}68%{height:42%}}@keyframes hmNowIdle{0%,100%{height:18%;opacity:.4}50%{height:44%;opacity:.72}}@keyframes hmNowPulse{0%,100%{transform:scale(.8);opacity:.55}50%{transform:scale(1.2);opacity:1}}@keyframes hmNowSweep{to{transform:rotate(360deg)}}@keyframes hmNowScan{0%,100%{transform:translateY(-36px);opacity:.1}50%{transform:translateY(38px);opacity:.65}}@keyframes hmNowOrbit{to{transform:translate(50%,-50%) rotate(360deg)}}
@media(max-width:620px){.hm-now-banner{grid-template-columns:minmax(0,1fr) 92px;min-height:96px;margin:0 0 12px;padding:13px 14px;gap:7px;border-radius:16px}.hm-now-copy strong{font-size:20px}.hm-now-copy>span:last-child{font-size:9px}.hm-now-eq{height:54px;gap:3px;padding:0}.hm-now-eq i{width:4px}.hm-now-orbit{right:18%;width:68px;height:68px}.hm-now-orbit span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.hm-now-banner::before,.hm-now-banner::after,.hm-now-pulse,.hm-now-eq i,.hm-now-orbit{animation:none!important}}

/* 2026-11-06 hyMusic header controls polish */
#hm-app-header{display:flex;align-items:center;gap:14px;padding-right:16px}
.hm-header-actions{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0}
.hm-header-icon-btn{width:40px;height:40px;min-width:40px;border-radius:13px;display:grid;place-items:center;background:var(--hm-surface-raised);border:1px solid var(--hm-edge);color:var(--text);box-shadow:0 0 20px rgba(53,234,255,.06);transition:.16s ease}
.hm-header-icon-btn:hover,.hm-header-icon-btn:focus-visible,.hm-profile-btn:hover,.hm-profile-btn:focus-visible{border-color:rgba(53,234,255,.5);background:rgba(53,234,255,.08);outline:none}
.hm-header-icon-btn .hm-icon{width:19px;height:19px}
#hm-theme-toggle{position:static;top:auto;right:auto;z-index:auto}
body:not(.hm-home-active) #hm-theme-toggle{display:grid}
.hm-header-popover-wrap{position:relative}
.hm-header-popover{position:absolute;right:0;top:48px;z-index:7600;width:min(330px,calc(100vw - 20px));padding:8px;border:1px solid rgba(53,234,255,.24);border-radius:16px;background:rgba(3,7,15,.98);backdrop-filter:blur(24px);box-shadow:0 22px 60px rgba(0,0,0,.38)}
.hm-header-popover[hidden]{display:none}
#hm-cast-host .hmc-wrap{display:block;width:100%}
#hm-cast-host .hmc-pill{width:100%;justify-content:flex-start;border-radius:11px}
#hm-cast-host .hmc-dropdown{position:static!important;display:block!important;min-width:0!important;width:100%;margin-top:6px;box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important}
.hm-profile-btn{height:40px;max-width:220px;display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border:1px solid var(--hm-edge);border-radius:999px;background:var(--hm-surface-raised);color:var(--text);transition:.16s ease}
.hm-profile-avatar{width:31px;height:31px;flex:0 0 31px;border-radius:10px;display:grid;place-items:center;font:800 10px/1 var(--hm-font);background:linear-gradient(145deg,rgba(53,234,255,.16),rgba(166,87,255,.2));border:1px solid rgba(53,234,255,.3);overflow:hidden}
.hm-profile-avatar img{width:100%;height:100%;object-fit:cover}
.hm-profile-avatar-lg{width:40px;height:40px;flex-basis:40px;border-radius:13px}
.hm-profile-name{max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:750}
.hm-profile-caret{font-size:13px;color:var(--hm-muted)}
.hm-profile-menu{position:absolute;right:0;top:48px;z-index:7600;width:min(292px,calc(100vw - 20px));padding:9px;border:1px solid rgba(53,234,255,.24);border-radius:16px;background:rgba(3,7,15,.98);backdrop-filter:blur(24px);box-shadow:0 22px 60px rgba(0,0,0,.38)}
.hm-profile-menu[hidden]{display:none}
.hm-profile-head{display:flex;align-items:center;gap:10px;padding:7px 7px 11px;margin-bottom:4px;border-bottom:1px solid var(--hm-edge)}
.hm-profile-head>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}.hm-profile-head strong{font-size:11px}.hm-profile-head small{font-size:9px;color:var(--hm-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-profile-menu>a{display:flex;align-items:center;min-height:40px;padding:8px 10px;border-radius:10px;font-size:11px;font-weight:700}
.hm-profile-menu>a:hover,.hm-profile-menu>a:focus-visible{background:rgba(53,234,255,.08);color:var(--cm-cyan);outline:none}
@media(max-width:720px){#hm-app-header{gap:8px;padding-right:8px}.hm-header-copy{min-width:0}.hm-header-subtitle{display:none}.hm-header-actions{gap:5px}.hm-header-icon-btn{width:38px;height:38px;min-width:38px}.hm-profile-name,.hm-profile-caret{display:none}.hm-profile-btn{width:38px;padding:3px;border-radius:12px}.hm-profile-avatar{width:30px;height:30px;flex-basis:30px}.hm-brand span{display:none}}
@media(max-width:430px){.hm-header-copy{display:none}.hm-header-actions{margin-left:auto}}
/* 2026-11-06 radio station icon polish */
.hm-station-icon{width:46px;height:46px;flex:0 0 46px;border-radius:13px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,rgba(53,234,255,.09),rgba(166,87,255,.11));border:1px solid rgba(91,132,190,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.hm-station-icon img{width:100%;height:100%;object-fit:cover;display:block}
.hm-station-country img{object-fit:cover}
.hm-station-fallback svg,.hm-station-icon.icon-failed:before{width:24px;height:24px;color:var(--cm-cyan)}
.hm-station-icon.icon-failed:before{content:"";display:block;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='8' width='18' height='13' rx='3' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='m6 8 12-6M6 12h5m-5 4h3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='15' r='2.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat}
.hm-station-card{gap:14px}
@media(max-width:640px){.hm-station-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px}.hm-station-bitrate{display:none}}

.hm-listen-popover{width:min(340px,calc(100vw - 20px))}
.hm-listen-kicker{font-size:9px;font-weight:900;letter-spacing:.16em;color:var(--cm-cyan);margin:2px 2px 8px}
.hm-listen-state{font-size:10px;line-height:1.45;color:var(--hm-muted);padding:4px 2px 8px}
.hm-listen-result{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;background:rgba(53,234,255,.05);border:1px solid rgba(53,234,255,.12)}
.hm-listen-result[hidden]{display:none}
.hm-listen-art{width:52px;height:52px;flex:0 0 52px;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:rgba(255,255,255,.04);font-size:18px}
.hm-listen-art img{width:100%;height:100%;object-fit:cover}
.hm-listen-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.hm-listen-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hm-listen-copy span{font-size:9px;color:var(--hm-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-listen-actions{display:flex;gap:8px;margin-top:8px}.hm-listen-actions button{flex:1;min-height:36px;border-radius:10px;border:1px solid rgba(53,234,255,.25);background:rgba(53,234,255,.08);color:var(--text);font-size:10px;font-weight:800}.hm-listen-actions button:hover{background:rgba(53,234,255,.14)}
#hm-listen-btn.listening{border-color:rgba(53,234,255,.85);box-shadow:0 0 0 3px rgba(53,234,255,.08),0 0 22px rgba(53,234,255,.22)}
/* R31 — Hucifer SoundCloud search / genres / download */
.hm-hucifer-feature-actions{position:relative;z-index:2;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#hm-hucifer-download{height:30px;padding:0 10px;border:1px solid rgba(215,166,44,.34);border-radius:9px;background:rgba(215,166,44,.09);color:#f1c95d;font-size:9px;font-weight:850;letter-spacing:.02em;transition:.15s ease}
#hm-hucifer-download:hover:not(:disabled),#hm-hucifer-download:focus-visible{background:rgba(215,166,44,.16);border-color:rgba(215,166,44,.62);outline:none}
#hm-hucifer-download:disabled{opacity:.38;cursor:not-allowed}
.hm-hucifer-tools{position:relative;z-index:2;display:grid;gap:9px;margin:12px 2px 8px}
.hm-hucifer-search-wrap{height:38px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid rgba(215,166,44,.18);border-radius:11px;background:rgba(255,255,255,.035)}
.hm-hucifer-search-wrap .hm-icon{width:16px;height:16px;color:#b69b58;flex:0 0 16px}
#hm-hucifer-search{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#f4edd8;font-size:10px}
#hm-hucifer-search::placeholder{color:#6e695b}
.hm-hucifer-genres{display:flex;gap:6px;overflow-x:auto;padding:1px 0 3px;scrollbar-width:none}
.hm-hucifer-genres::-webkit-scrollbar{display:none}
.hm-hucifer-genre{flex:0 0 auto;min-height:30px;padding:0 10px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.025);color:#908a7b;font-size:9px;font-weight:800;white-space:nowrap;transition:.15s ease}
.hm-hucifer-genre:hover,.hm-hucifer-genre:focus-visible{border-color:rgba(215,166,44,.34);color:#e8d9a6;outline:none}
.hm-hucifer-genre.active{border-color:rgba(215,166,44,.46);background:rgba(215,166,44,.12);color:#ffd971;box-shadow:0 0 14px rgba(215,166,44,.05)}
.hm-hucifer-track[hidden]{display:none!important}
@media(max-width:620px){.hm-hucifer-feature-head{align-items:flex-start}.hm-hucifer-feature-actions{gap:6px}.hm-hucifer-feature-actions a{order:2}.hm-hucifer-feature-actions #hm-hucifer-download{order:1;height:28px;padding:0 8px;font-size:8px}.hm-hucifer-tools{margin-top:10px}.hm-hucifer-search-wrap{height:36px}}

@keyframes hmDownloadLivePulse{
  0%,100%{box-shadow:0 0 0 0 rgba(255,58,70,.18),0 0 16px rgba(255,58,70,.22);filter:saturate(1)}
  50%{box-shadow:0 0 0 5px rgba(255,58,70,0),0 0 28px rgba(255,58,70,.52);filter:saturate(1.22)}
}
#hm-hucifer-download.is-live{
  position:relative;
  border-color:rgba(255,76,86,.72);
  background:linear-gradient(180deg,rgba(255,71,82,.22),rgba(111,9,18,.42));
  color:#ffd8dc;
  text-shadow:0 0 9px rgba(255,76,86,.55);
  animation:hmDownloadLivePulse 1.05s ease-in-out infinite;
}
#hm-hucifer-download.is-live::before{
  content:"";
  width:7px;height:7px;border-radius:50%;
  display:inline-block;margin-right:7px;vertical-align:1px;
  background:#ff3448;
  box-shadow:0 0 11px rgba(255,52,72,.95);
}
#hm-hucifer-download[aria-busy="true"]{animation:none!important}
@media(prefers-reduced-motion:reduce){#hm-hucifer-download.is-live{animation:none}}
