:root {
  --bg: #101114;
  --panel: #181a20;
  --panel-2: #20242c;
  --ink: #f4f6f8;
  --muted: #aeb6c2;
  --line: #333945;
  --accent: #2ecc71;
  --gold: #d4af37;
  --cyan: #26d7ff;
  --blue: #46a6ff;
  --danger: #ef4444;
  --app-surface: #0c0d10;
  --app-surface-soft: rgba(32, 36, 44, 0.92);
  --app-input: #0c0d10;
  --app-rail-glow: rgba(38, 215, 255, 0.09);
  --app-brand-glow: rgba(38, 215, 255, 0.22);
  --app-player-bg: rgba(7, 8, 11, 0.76);
  --app-player-glow-a: rgba(46, 204, 113, 0.92);
  --app-player-glow-b: rgba(38, 215, 255, 0.86);
  --app-player-glow-c: rgba(212, 175, 55, 0.8);
  --app-theme-color: #101114;
  --radius: 8px;
  --rail-content-width: clamp(132px, 12vw, 190px);
  --rail-pad: clamp(12px, 1.5vw, 24px);
  --rail-width: calc(var(--rail-content-width) + (var(--rail-pad) * 2));
  --display-font: "Sora", "Aptos Display", "Segoe UI Variable Display", Inter, "Segoe UI", Arial, sans-serif;
  --hand-font: "Segoe Print", "Ink Free", "Bradley Hand ITC", "Comic Sans MS", cursive;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Aptos, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

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

button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--ink);
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
}

button:hover,
button.active {
  border-color: var(--cyan);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button:disabled:hover {
  border-color: var(--line);
  box-shadow: none;
}

.danger-button {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.danger-button:hover {
  border-color: var(--danger);
  box-shadow: inset 0 -2px 0 var(--danger);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--app-input);
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  padding: 11px 12px;
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 1;
  background: var(--app-input);
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
  padding-bottom: 116px;
  transition: grid-template-columns 180ms ease;
}

.app-shell.rail-collapsed {
  --rail-content-width: 44px;
  --rail-pad: 10px;
  --rail-width: 64px;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
}

.app-shell.rail-collapsed .rail {
  gap: 10px;
  overflow-x: hidden;
}

.rail {
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, var(--app-rail-glow), transparent 34%),
    var(--app-surface);
  padding: var(--rail-pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow-y: auto;
  transition: padding 180ms ease;
}

.brand {
  display: grid;
  grid-template-columns: minmax(42px, 0.36fr) minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 10px;
  position: relative;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: min(64px, var(--rail-content-width));
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px var(--app-brand-glow));
  transition: width 180ms ease, filter 180ms ease;
}

.brand-name {
  min-width: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.02rem, 1.25vw, 1.35rem);
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.rail-toggle {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--app-surface-soft);
  z-index: 2;
}

.rail-toggle svg,
.nav-item svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.eyebrow,
.muted,
.persona-card span {
  color: var(--muted);
}

h1,
h2,
h3 {
  letter-spacing: 0;
  font-family: var(--display-font);
}

.rail-section {
  width: var(--rail-content-width);
  max-width: 100%;
}

.playlist-nav-section summary,
.pages-section summary {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.playlist-nav-section {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.playlist-nav-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  list-style-position: outside;
  min-width: 0;
}

.rail-count {
  min-width: 22px;
  min-height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(38, 215, 255, 0.36);
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(38, 215, 255, 0.08);
  font-size: 0.66rem;
  line-height: 1;
  padding: 0 6px;
}

.playlist-nav-list {
  display: grid;
  gap: 4px;
  max-height: calc((34px * 5) + (4px * 4));
  overflow-y: auto;
  padding-right: 2px;
}

.playlist-nav-button {
  min-height: 34px;
  width: 100%;
  padding: 4px 30px 4px 6px;
  text-align: left;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  column-gap: 6px;
  align-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(38, 215, 255, 0.06), rgba(212, 175, 55, 0.04)),
    var(--panel-2);
}

.playlist-nav-button::before {
  content: "";
  width: 5px;
  min-height: 24px;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--playlist-a, var(--cyan)), var(--playlist-b, var(--accent)), var(--playlist-c, var(--gold)));
  box-shadow: 0 0 18px color-mix(in srgb, var(--playlist-a, var(--cyan)) 42%, transparent);
  animation: playlistGlow 4.8s ease-in-out infinite alternate;
}

@keyframes playlistGlow {
  from {
    filter: saturate(1) brightness(0.9);
    transform: translateY(0);
  }

  to {
    filter: saturate(1.55) brightness(1.2);
    transform: translateY(-3px);
  }
}

.playlist-nav-button strong,
.playlist-nav-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  grid-column: 2;
}

.playlist-nav-button strong {
  white-space: nowrap;
  overflow-wrap: anywhere;
  line-height: 1.08;
  font-size: 0.78rem;
  font-weight: 950;
}

.playlist-nav-button span,
.playlist-nav-empty {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.playlist-track-count {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  grid-column: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--playlist-a, var(--cyan)) 58%, rgba(255, 255, 255, 0.24));
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--playlist-c, var(--gold)) 62%, transparent), transparent 68%),
    color-mix(in srgb, var(--playlist-a, var(--cyan)) 18%, rgba(8, 10, 14, 0.94));
  color: color-mix(in srgb, var(--playlist-c, var(--gold)) 46%, #ffffff);
  box-shadow: 0 0 14px color-mix(in srgb, var(--playlist-a, var(--cyan)) 32%, transparent);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}

.playlist-nav-button.active {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(46, 204, 113, 0.28),
    0 0 24px rgba(46, 204, 113, 0.12);
}

.playlist-nav-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: block;
  overflow-wrap: anywhere;
}

.pages-section {
  display: grid;
  gap: 4px;
}

.pages-section summary {
  cursor: pointer;
  list-style-position: outside;
  margin-bottom: 4px;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  text-align: left;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nav-a, var(--cyan)) 8%, transparent), color-mix(in srgb, var(--nav-b, var(--gold)) 5%, transparent)),
    rgba(32, 36, 44, 0.76);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item svg {
  color: var(--nav-a, var(--cyan));
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--nav-a, var(--cyan)) 42%, transparent));
}

.nav-item[data-view="drive"] {
  --nav-a: #26d7ff;
  --nav-b: #2ecc71;
}

.nav-item[data-view="library"] {
  --nav-a: #8b5cf6;
  --nav-b: #26d7ff;
}

.nav-item[data-view="played"] {
  --nav-a: #f59e0b;
  --nav-b: #ef4444;
}

.nav-item[data-view="playlists"] {
  --nav-a: #2ecc71;
  --nav-b: #d4af37;
}

.nav-item[data-view="dj"] {
  --nav-a: #ff4fd8;
  --nav-b: #26d7ff;
}

.nav-item[data-view="profile"] {
  --nav-a: #d4af37;
  --nav-b: #2ecc71;
}

.ghost-button {
  min-height: 36px;
  padding: 0 12px;
}

.pin-panel {
  width: 100%;
  margin-top: 10px;
  min-height: 0;
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid rgba(38, 215, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72)),
    var(--profile-pin-image, none),
    radial-gradient(circle at 22% 18%, rgba(38, 215, 255, 0.26), transparent 42%),
    linear-gradient(135deg, rgba(38, 215, 255, 0.12), rgba(46, 204, 113, 0.06)),
    rgba(8, 10, 14, 0.76);
  background-size: cover;
  background-position: center;
  display: grid;
  align-content: end;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -80px 80px rgba(0, 0, 0, 0.42);
}

.profile-pin-initials {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(8, 10, 14, 0.48);
  font-size: 0.72rem;
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.88);
  z-index: 1;
}

.pin-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pin-panel-head label {
  color: var(--ink);
  font-weight: 900;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.pin-panel-head small {
  display: block;
  margin-top: 2px;
  color: rgba(239, 246, 255, 0.76);
  font-size: 0.62rem;
  line-height: 1.16;
}

.pin-row button svg,
.profile-add-glyph svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.pin-row {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.pin-row input {
  min-height: 38px;
  text-align: center;
  letter-spacing: 0.16em;
  font-family: "Segoe UI Mono", "Cascadia Mono", Consolas, monospace;
  font-weight: 850;
}

.pin-row button {
  min-height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-color: rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.12);
  color: #bfffe0;
}

.profile-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  color: #ffe8a3;
  background: rgba(212, 175, 55, 0.09);
  font-size: 0.74rem;
  font-weight: 850;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.app-shell.rail-collapsed .brand-logo {
  width: 44px;
  filter: drop-shadow(0 0 10px var(--app-brand-glow));
}

.app-shell.rail-collapsed .brand {
  grid-template-columns: 44px;
}

.app-shell.rail-collapsed .rail-toggle {
  right: -4px;
  top: -4px;
}

.app-shell.rail-collapsed .playlist-nav-section,
.app-shell.rail-collapsed .pages-section summary,
.app-shell.rail-collapsed .pin-panel,
.app-shell.rail-collapsed .brand-name,
.app-shell.rail-collapsed .nav-item span {
  display: none;
}

.app-shell.rail-collapsed .nav-item {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  grid-template-columns: 1fr;
  justify-items: center;
}

.app-shell.rail-collapsed .nav-item svg {
  width: 22px;
  height: 22px;
}

main {
  min-width: 0;
  padding: clamp(12px, 2vw, 28px);
}

.topbar,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.topbar {
  min-height: 58px;
  margin-bottom: 12px;
  padding: 6px 0;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(38, 215, 255, 0.05), rgba(46, 204, 113, 0.03), transparent 68%);
  isolation: isolate;
}

.masthead-title {
  position: absolute;
  inset: 0;
  min-width: 0;
  pointer-events: none;
  z-index: 0;
}

.masthead-title .eyebrow {
  position: absolute;
  top: 8px;
  left: 0;
  margin: 0;
  color: rgba(244, 246, 248, 0.72);
}

.masthead-title h1 {
  position: absolute;
  left: 0;
  bottom: -20px;
  margin: 0;
  max-width: min(760px, 68vw);
  color: rgba(244, 246, 248, 0.08);
  font-size: clamp(3.6rem, 9vw, 8.4rem);
  font-weight: 900;
  line-height: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.scan-actions {
  position: relative;
  z-index: 1;
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 8px;
  align-items: center;
}

.topbar .scan-actions input,
.topbar .scan-actions button {
  min-height: 36px;
}

.topbar .scan-actions input {
  background: rgba(12, 13, 16, 0.84);
}

.topbar .scan-actions button {
  padding-inline: 18px;
  font-weight: 800;
}

.topbar .scan-actions .icon-tool.compact-icon-tool {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.library-harvester-button {
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 850;
}

.library-harvester-button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.library-chart-button {
  border-color: rgba(212, 175, 55, 0.48);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(212, 175, 55, 0.17), rgba(46, 204, 113, 0.08)),
    rgba(10, 12, 16, 0.82);
  color: #ffe8a3;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

#libraryView.library-empty-results {
  position: relative;
  min-height: calc(100vh - 116px);
  overflow: visible;
  isolation: isolate;
}

#libraryView.library-empty-results::before {
  content: "";
  position: absolute;
  top: calc(-88px - clamp(12px, 2vw, 28px));
  right: calc(-1 * clamp(12px, 2vw, 28px));
  bottom: -116px;
  left: calc(-1 * clamp(12px, 2vw, 28px));
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.42), rgba(6, 7, 10, 0.05) 50%, rgba(6, 7, 10, 0.36)),
    linear-gradient(180deg, rgba(6, 7, 10, 0.04), rgba(6, 7, 10, 0.18) 48%, rgba(6, 7, 10, 0.64)),
    url("/assets/search-not-found.png") center top / cover no-repeat,
    #080a0e;
}

#libraryView.library-empty-results > * {
  position: relative;
  z-index: 1;
}

.drive-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1.58fr) minmax(280px, 0.42fr);
  gap: 12px;
}

.now-playing,
.queue-panel,
.control-panel,
.stats-panel,
.dj-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.now-playing {
  display: grid;
  grid-template-columns: minmax(260px, 40%) 1fr;
  gap: 16px;
  padding: 16px;
}

.compact-now-playing {
  grid-template-columns: 1fr;
  align-self: start;
  gap: 12px;
  padding: 12px;
}

.compact-now-playing .cover {
  max-height: 260px;
}

.compact-now-playing #trackTitle {
  font-size: clamp(1.65rem, 3.2vw, 3.2rem);
  line-height: 0.98;
}

.compact-now-playing #trackArtist {
  font-size: 1rem;
}

.cover {
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(70, 166, 255, 0.55)),
    #15181d;
  border: 3px solid #050608;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  color: #07110b;
}

.cover.has-artwork,
.mini-cover.has-artwork {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.cover.has-artwork span,
.mini-cover.has-artwork {
  text-shadow: none;
}

.track-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#trackTitle {
  font-size: clamp(2rem, 5vw, 5.6rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
  margin-bottom: 14px;
}

#trackArtist {
  font-size: 1.5rem;
  color: var(--muted);
}

.track-meta-links {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  overflow: hidden;
  white-space: nowrap;
}

.metadata-search-link {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.metadata-search-link:hover,
.metadata-search-link:focus-visible {
  color: var(--cyan);
  box-shadow: none;
}

.transport {
  display: grid;
  grid-template-columns: repeat(5, 38px);
  gap: 6px;
  margin-top: 10px;
}

.transport button {
  min-height: 38px;
  width: 38px;
}

.prefetch-meter {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
}

.prefetch-meter strong {
  color: var(--accent);
}

.drive-layout {
  grid-template-columns: minmax(0, 1fr) minmax(214px, clamp(224px, 18vw, 286px));
  gap: clamp(8px, 1vw, 12px);
  align-items: start;
}

.drive-main-column {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.drive-now-playing,
.drive-queue-panel,
.drive-dj-rail,
.drive-dj-card,
.drive-info-card {
  min-width: 0;
}

.drive-now-playing {
  position: relative;
  grid-template-columns: minmax(132px, clamp(150px, 18vw, 226px)) minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  padding: clamp(12px, 1.5vw, 20px);
  min-height: clamp(188px, 20vw, 248px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(38, 215, 255, 0.07), transparent 58%),
    #101419;
  border-color: rgba(38, 215, 255, 0.22);
}

.drive-cover-stack {
  display: grid;
  gap: 10px;
  align-self: start;
  min-width: 0;
}

.drive-now-playing .cover {
  width: 100%;
  max-width: 226px;
  border-width: 1px;
  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.drive-now-playing .track-stack {
  min-height: 0;
  padding-top: 0;
  padding-right: 0;
  display: grid;
  align-content: start;
}

.drive-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.drive-title-row #trackTitle {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.now-action-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.drive-now-playing #trackArtist {
  margin: 7px 0 0;
  color: var(--cyan);
  font-size: clamp(1rem, 1.5vw, 1.65rem);
  font-weight: 850;
}

.drive-now-playing #trackArtist .metadata-search-link + .metadata-search-link,
.drive-now-playing #trackArtist .metadata-search-link:nth-of-type(2) {
  color: color-mix(in srgb, var(--cyan) 48%, var(--muted));
}

.drive-track-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.drive-track-chips span {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--chip-a, var(--cyan)) 48%, rgba(255, 255, 255, 0.16));
  border-radius: 999px;
  padding: 0 12px;
  color: color-mix(in srgb, var(--chip-a, var(--cyan)) 30%, #ffffff);
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--chip-b, var(--gold)) 36%, transparent), transparent 62%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 16px color-mix(in srgb, var(--chip-a, var(--cyan)) 18%, transparent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

#driveDurationChip {
  --chip-a: var(--cyan);
  --chip-b: var(--blue);
}

#driveGenreChip {
  --chip-a: var(--accent);
  --chip-b: var(--gold);
}

#driveYearChip {
  --chip-a: var(--gold);
  --chip-b: #ff4fd8;
}

#drivePlaylistChip {
  --chip-a: #ff4fd8;
  --chip-b: var(--cyan);
}

.drive-action-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

#drivePlayCountChip {
  min-height: 34px;
  height: 34px;
  min-width: 58px;
  align-self: center;
}

.drive-placeholder-action {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid rgba(38, 215, 255, 0.54);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.16), transparent 62%),
    linear-gradient(145deg, rgba(38, 215, 255, 0.2), rgba(8, 10, 14, 0.92));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 18px rgba(38, 215, 255, 0.18);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.drive-placeholder-action:hover,
.drive-placeholder-action:focus-visible {
  border-color: var(--cyan);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 26px rgba(38, 215, 255, 0.32);
  transform: translateY(-1px);
}

.drive-now-playing .now-rating-slot {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 4px 7px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.62);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.08);
}

.drive-now-playing .now-rating-slot .rating-control {
  margin: 0;
}

.now-playlist-button {
  width: 38px;
  min-height: 38px;
  border-color: rgba(38, 215, 255, 0.42);
  background: rgba(38, 215, 255, 0.08);
}

.now-playlist-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.drive-transport {
  display: none;
}

.drive-transport button {
  width: clamp(42px, 4vw, 54px);
  min-height: clamp(42px, 4vw, 54px);
}

.drive-transport .primary-now-control {
  width: clamp(48px, 4.6vw, 64px);
  min-height: clamp(48px, 4.6vw, 64px);
  border-radius: 50%;
  border-color: var(--cyan);
  background: rgba(38, 215, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(38, 215, 255, 0.28);
}

.drive-volume-row {
  display: none;
}

.drive-volume-row svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.drive-volume-row input {
  min-height: 22px;
  padding: 0;
}

.drive-meter {
  display: none;
  grid-template-columns: repeat(2, clamp(14px, 1.4vw, 18px));
  gap: clamp(5px, 0.7vw, 8px);
  align-items: end;
  justify-content: center;
  height: clamp(184px, 19vw, 232px);
  padding: 10px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.meter-channel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.meter-channel span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.meter-channel i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.28);
  opacity: var(--meter-l-opacity, 0.52);
  transform: scaleX(var(--meter-l-scale, 0.9));
  transition: opacity 120ms linear, transform 120ms linear, filter 120ms linear;
  transform-origin: center;
}

.meter-channel:nth-child(2) i {
  opacity: var(--meter-r-opacity, 0.5);
  transform: scaleX(var(--meter-r-scale, 0.88));
}

.meter-channel i:nth-of-type(3n) {
  filter: brightness(var(--meter-bright-a, 1));
}

.meter-channel i:nth-of-type(3n + 1) {
  filter: brightness(var(--meter-bright-b, 1));
}

.meter-channel i:nth-of-type(3n + 2) {
  filter: brightness(var(--meter-bright-c, 1));
}

.meter-channel i:nth-of-type(n + 9) {
  background: #f59e0b;
}

.meter-channel i:nth-of-type(n + 11) {
  background: #ef4444;
}

.rating-control {
  display: inline-grid;
  grid-template-columns: repeat(5, 18px);
  gap: 0;
  align-items: center;
  justify-content: start;
  width: max-content;
  color: var(--muted);
}

.rating-control button {
  width: 18px;
  min-width: 18px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.rating-control button:hover,
.rating-control button:focus-visible {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: none;
}

.rating-control button.active {
  color: var(--gold);
  box-shadow: none;
}

.compact-rating {
  grid-template-columns: repeat(5, 15px);
}

.compact-rating button {
  width: 15px;
  min-width: 15px;
  height: 20px;
  min-height: 20px;
  font-size: 0.86rem;
}

.live-badge {
  border: 1px solid rgba(46, 204, 113, 0.55);
  border-radius: 999px;
  color: var(--accent);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.queue-panel {
  padding: 12px;
}

.queue-list {
  padding: 0;
  margin: 8px 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.compact-head {
  margin-top: 18px;
}

.history-list {
  margin-bottom: 18px;
}

.queue-list li,
.track-card,
.playlist-card,
.persona-card,
.station-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.queue-list button {
  width: 100%;
  min-height: 56px;
  border: 0;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.queue-list span,
.track-card span {
  color: var(--muted);
}

.empty-history {
  min-height: 48px;
  display: grid;
  place-items: center start;
  padding: 0 12px;
  color: var(--muted);
}

.empty-upcoming {
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
}

.empty-upcoming div {
  display: grid;
  gap: 3px;
}

.empty-upcoming strong {
  color: var(--ink);
}

.empty-upcoming span {
  color: var(--muted);
  font-size: 0.86rem;
}

.queue-manager-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.queue-heading-copy {
  min-width: 0;
}

.queue-dj-strip {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.queue-dj-avatar {
  width: 100%;
  aspect-ratio: 1;
  min-height: 180px;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border-color: rgba(38, 215, 255, 0.5);
  background: #08090c;
}

.queue-dj-avatar.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.34), inset 0 -2px 0 var(--gold);
}

.queue-dj-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queue-dj-strip p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.28;
  overflow-wrap: anywhere;
  align-self: center;
}

.queue-count-pill {
  border: 1px solid rgba(38, 215, 255, 0.45);
  border-radius: 999px;
  color: var(--cyan);
  padding: 6px 9px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.queue-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.queue-tabs button {
  min-height: 34px;
  font-weight: 850;
}

.queue-tabs button:not(.active) {
  background: #121419;
  color: var(--muted);
}

.queue-tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 38px;
  gap: 6px;
  margin-bottom: 8px;
}

.queue-tool-row input,
.queue-tool-row select,
.queue-tool-row button {
  min-height: 38px;
}

.upcoming-list {
  max-height: none;
  overflow: visible;
  padding-right: 2px;
}

.upcoming-item {
  display: grid;
  grid-template-columns: 28px 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 6px;
}

.played-history-item,
.rich-played-item {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--queue-accent, var(--cyan)) 42%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--queue-accent, var(--cyan)) 17%, transparent), transparent 42%),
    var(--panel-2);
}

.played-history-item::before,
.rich-played-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--queue-accent, var(--cyan));
  opacity: 0.92;
}

.upcoming-item.dragging {
  opacity: 0.58;
  border-color: var(--cyan);
}

.queue-handle {
  cursor: grab;
}

.queue-track-art {
  width: 60px;
  height: 60px;
  min-height: 60px;
  padding: 0;
  border: 2px solid #06070a;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.86), rgba(70, 166, 255, 0.58)),
    #11141a;
  background-size: cover;
  background-position: center;
  color: #07110b;
  font-weight: 950;
  font-size: 0.86rem;
  display: grid;
  place-items: center;
}

.queue-track-art.has-artwork span {
  opacity: 0;
}

.queue-track-main {
  min-width: 0;
  min-height: 42px;
  padding: 0;
  display: grid;
  gap: 2px;
  text-align: left;
  align-content: center;
}

.queue-track-title-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.queue-track-title-button:hover,
.queue-track-title-button:focus-visible {
  box-shadow: none;
  color: var(--cyan);
}

.queue-track-main .queue-track-title-button,
.queue-add-main .queue-track-title-button {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.queue-track-main em {
  display: block;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  font-style: normal;
}

.queue-track-main .track-meta-links,
.queue-add-main .track-meta-links {
  color: var(--muted);
  font-size: 0.82rem;
}

.queue-history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.played-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--muted);
  background: rgba(7, 8, 11, 0.48);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.played-chip.plays {
  color: #bfffe0;
  border-color: rgba(46, 204, 113, 0.34);
  background: rgba(46, 204, 113, 0.12);
}

.played-chip.playlist {
  color: #dff8ff;
  border-color: rgba(38, 215, 255, 0.34);
  background: rgba(38, 215, 255, 0.12);
}

.played-chip.rating {
  color: #ffe8a3;
  border-color: rgba(212, 175, 55, 0.38);
  background: rgba(212, 175, 55, 0.12);
}

.played-chip.genre,
.played-chip.duration {
  color: #dbeafe;
  border-color: rgba(70, 166, 255, 0.3);
}

.queue-actions {
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 4px;
}

.queue-actions .compact-icon-tool {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.compact-icon-tool {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.compact-icon-tool svg {
  width: 18px;
  height: 18px;
}

.queue-add-panel {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #121419;
}

.queue-add-results {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.queue-add-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 6px;
}

.queue-add-empty {
  color: var(--muted);
  min-height: 40px;
  display: grid;
  align-items: center;
}

.queue-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.drive-queue-panel {
  padding: 14px;
  background: rgba(12, 15, 19, 0.94);
  border-color: rgba(38, 215, 255, 0.14);
}

.drive-queue-panel .queue-manager-head {
  align-items: center;
  margin-bottom: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.drive-queue-panel .eyebrow {
  color: #b48cff;
}

.queue-panel-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.queue-panel-subtitle #queueCount {
  color: var(--ink);
  font-weight: 850;
}

.queue-panel-actions {
  display: grid;
  grid-template-columns: minmax(0, auto) 38px;
  gap: 8px;
  align-items: center;
}

.queue-add-queue-button {
  display: inline-grid;
  grid-template-columns: 18px auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}

.queue-add-queue-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.drive-queue-panel .queue-tabs {
  width: min(320px, 100%);
}

.drive-queue-panel .queue-tool-row {
  grid-template-columns: minmax(0, 1fr) 150px;
  margin-bottom: 10px;
}

.queue-table-head,
.drive-queue-panel .upcoming-item {
  display: grid;
  grid-template-columns: 20px 64px minmax(230px, 1fr) minmax(176px, 0.5fr) 164px;
  gap: 12px;
  align-items: center;
}

.queue-table-head {
  min-height: 30px;
  padding: 0 8px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.drive-queue-panel .upcoming-list {
  min-height: 220px;
  max-height: none;
  gap: 0;
  margin-top: 0;
  overflow: visible;
}

.drive-queue-panel .upcoming-item {
  min-height: 84px;
  padding: 9px 10px;
  border-radius: 0;
  border-width: 0 1px 1px;
  background: rgba(10, 13, 17, 0.84);
}

.drive-queue-panel .upcoming-item:first-child {
  border-top-width: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.drive-queue-panel .upcoming-item:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.drive-queue-panel .upcoming-item:nth-child(odd) {
  background: rgba(15, 21, 27, 0.92);
}

.drive-queue-panel .upcoming-item:hover,
.drive-queue-panel .upcoming-item.dragging {
  background:
    linear-gradient(90deg, rgba(38, 215, 255, 0.15), rgba(38, 215, 255, 0.03)),
    rgba(15, 21, 27, 0.94);
}

.drive-queue-panel .queue-handle,
.drive-queue-panel .queue-track-art,
.drive-queue-panel .queue-track-title-button,
.drive-queue-panel .queue-actions button {
  width: auto;
  min-height: 0;
  display: grid;
}

.drive-queue-panel .queue-handle {
  width: 16px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(174, 182, 194, 0.42);
  box-shadow: none;
}

.drive-queue-panel .queue-handle svg {
  width: 12px;
  height: 12px;
}

.drive-queue-panel .queue-handle:hover,
.drive-queue-panel .queue-handle:focus-visible {
  color: var(--cyan);
  border: 0;
  background: rgba(38, 215, 255, 0.06);
  box-shadow: none;
}

.drive-queue-panel .queue-track-art {
  width: 64px;
  height: 64px;
  min-height: 64px;
  border-radius: 4px;
}

.drive-queue-panel .queue-track-main {
  min-width: 0;
  min-height: 58px;
  text-align: left;
  justify-items: start;
  align-content: center;
  gap: 6px;
}

.drive-queue-panel .queue-track-main em,
.drive-queue-panel .queue-track-main .track-meta-links {
  width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-queue-panel .queue-track-title-button {
  display: block;
  width: 100%;
  justify-content: initial;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  text-align: left;
}

.drive-queue-panel .queue-track-stats {
  display: grid;
  grid-template-columns: auto minmax(96px, auto);
  gap: 7px 10px;
  align-items: center;
  align-content: center;
}

.drive-queue-panel .queue-actions {
  display: grid;
  grid-template-columns: repeat(4, 36px);
  gap: 7px;
  justify-content: end;
  justify-items: end;
}

.drive-queue-panel .queue-actions .icon-tool.compact-icon-tool {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}

.drive-queue-panel .queue-actions .icon-tool.compact-icon-tool svg {
  width: 17px;
  height: 17px;
}

.queue-track-plays-col,
.queue-track-rating-col,
.queue-track-tags-col {
  min-width: 0;
  justify-self: start;
}

.queue-track-rating-col {
  justify-self: center;
}

.queue-track-plays-col {
  grid-row: span 2;
  white-space: nowrap;
}

.queue-track-tags-col {
  overflow: hidden;
}

.queue-track-stats {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
  align-content: center;
}

.queue-track-tags-col.library-track-tags {
  min-width: 0;
  max-height: 50px;
  flex-wrap: wrap;
  overflow: hidden;
}

.drive-dj-rail {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.drive-dj-card,
.drive-info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 19, 24, 0.96);
  overflow: hidden;
}

.drive-dj-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 0.78;
  min-height: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #08090c;
  text-align: left;
}

.drive-dj-photo img,
.drive-dj-photo video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: opacity 220ms ease, transform 420ms ease;
}

.drive-dj-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.drive-dj-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 4px;
  padding: 0 9px;
  color: #06100a;
  background:
    linear-gradient(180deg, #caff8b, #42f86d 54%, #119536);
  border: 1px solid rgba(215, 255, 174, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 14px rgba(46, 204, 113, 0.46);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.drive-dj-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0b3d16;
  box-shadow: 0 0 0 2px rgba(11, 61, 22, 0.14), 0 0 9px rgba(3, 82, 24, 0.64);
}

.drive-dj-identity {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.drive-dj-photo strong {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.25vw, 2rem);
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
}

#driveDjBio {
  color: rgba(244, 248, 255, 0.86);
  line-height: 1.24;
  font-size: clamp(0.72rem, 0.85vw, 0.86rem);
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drive-info-card {
  padding: 14px;
}

.drive-dj-card .drive-statement-card {
  padding: 14px;
  border-top: 0;
  background:
    linear-gradient(135deg, rgba(38, 215, 255, 0.08), rgba(212, 175, 55, 0.04)),
    rgba(8, 10, 14, 0.78);
}

.drive-dj-card .drive-statement-card #djLine {
  position: relative;
  margin: 0;
  padding-left: 30px;
  color: var(--ink);
  font-family: var(--hand-font);
  font-size: clamp(1.06rem, 1.3vw, 1.28rem);
  font-weight: 600;
  line-height: 1.5;
}

.drive-dj-card .drive-statement-card #djLine::before {
  content: "\"";
  position: absolute;
  left: 0;
  top: -12px;
  color: #ffd86b;
  font-size: 3rem;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.32);
}

.drive-show-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.drive-show-list div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: baseline;
}

.drive-show-list dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.drive-show-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.queue-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.queue-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.queue-panel .dj-card {
  margin-top: 10px;
  padding: 10px;
}

.played-list {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.played-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 10px 12px;
}

.rich-played-item {
  grid-template-columns: 32px 60px minmax(240px, 1.2fr) 56px minmax(106px, auto) minmax(128px, 0.58fr) 164px;
  gap: 8px;
  min-height: 76px;
  padding: 7px 8px;
}

.played-number {
  color: var(--muted);
  font-family: "Segoe UI Mono", "Cascadia Mono", Consolas, monospace;
  font-weight: 800;
}

.played-art {
  width: 60px;
  height: 60px;
  min-height: 60px;
  padding: 0;
  border: 2px solid #06070a;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--queue-accent, var(--cyan)) 82%, #ffffff 4%), rgba(212, 175, 55, 0.58)),
    #11141a;
  background-size: cover;
  background-position: center;
  color: #07110b;
  font-weight: 950;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.played-art.has-artwork span {
  opacity: 0;
}

.played-track-button {
  min-height: 48px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 3px;
  align-content: center;
  min-width: 0;
}

.played-track-title-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.played-track-title-button:hover,
.played-track-title-button:focus-visible {
  box-shadow: none;
  color: var(--cyan);
}

.played-track-title-button,
.played-track-button .track-meta-links {
  overflow-wrap: anywhere;
}

.played-track-button .track-meta-links {
  color: var(--muted);
}

.played-plays-col,
.played-rating-col,
.played-tags-col {
  min-width: 0;
}

.played-actions.card-actions {
  display: grid;
  grid-template-columns: repeat(4, 36px);
  gap: 6px;
  justify-content: end;
  margin-top: 0;
}

.played-actions.card-actions button {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.played-empty {
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.load-more-row button {
  min-width: 220px;
}

.dj-card {
  padding: 16px;
  border-color: rgba(212, 175, 55, 0.5);
}

.track-grid,
.playlist-grid,
.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.playlist-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.search-results-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.library-manager {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.library-control-row {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 2fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(38, 215, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 11, 17, 0.78);
  box-shadow: inset 0 0 0 1px rgba(70, 166, 255, 0.04);
  padding: 8px;
}

.library-search-box {
  display: grid;
  grid-template-columns: 28px minmax(180px, 1fr) 40px;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(70, 166, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(5, 8, 13, 0.82);
  padding: 0 8px 0 14px;
}

.library-search > label {
  display: none;
}

.library-search-icon,
.library-filter > svg {
  width: 24px;
  height: 24px;
  color: #b734ff;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.library-search-icon {
  width: 26px;
  height: 26px;
  color: rgba(244, 246, 248, 0.9);
}

.library-search-box input {
  min-height: 54px;
  border: 0;
  background: transparent;
  font-size: 1rem;
  padding: 0;
}

.library-search-box input:focus {
  box-shadow: none;
}

.library-search-box .compact-icon-tool {
  width: 40px;
  height: 40px;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.04);
}

.library-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr)) 48px;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.library-filter {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(70, 166, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(7, 10, 16, 0.72);
  padding: 0 12px;
}

.library-filter > div {
  display: grid;
  gap: 1px;
  align-content: center;
  min-width: 0;
  transform: translateY(-6px);
}

.library-filter-action {
  width: 48px;
  height: 56px;
  min-height: 56px;
}

.library-manager .field {
  gap: 5px;
}

.library-manager .field label {
  font-size: 0.68rem;
  line-height: 1;
}

.library-manager input,
.library-manager select {
  min-height: 38px;
  padding: 0 10px;
}

.library-filter select {
  display: block;
  height: 22px;
  min-height: 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 22px;
  padding: 0;
}

.library-filter select:focus {
  box-shadow: none;
}

.library-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.library-workspace:has(.library-inspector:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.library-track-list {
  display: grid;
  gap: 6px;
}

.library-track-row {
  display: grid;
  grid-template-columns:
    24px
    60px
    minmax(160px, 1.3fr)
    52px
    minmax(96px, auto)
    minmax(130px, 0.7fr)
    minmax(152px, auto);
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 6px 7px;
}

.library-track-row.empty-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-height: calc(100vh - 440px);
  align-content: end;
  justify-items: start;
  text-align: left;
  padding: clamp(22px, 4vw, 54px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.library-track-row.empty-card strong {
  max-width: 540px;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.library-track-row.empty-card span {
  max-width: 540px;
  color: rgba(244, 246, 248, 0.82);
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.92);
}

.library-track-row.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.16);
}

.library-track-sort {
  width: 24px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(38, 215, 255, 0.16);
  border-radius: 6px;
  color: rgba(223, 248, 255, 0.64);
  background:
    linear-gradient(180deg, rgba(38, 215, 255, 0.08), rgba(212, 175, 55, 0.04)),
    rgba(8, 10, 14, 0.4);
  font-size: 0.64rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.library-track-art {
  width: 60px;
  height: 60px;
  min-height: 60px;
  padding: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(38, 215, 255, 0.22), rgba(46, 204, 113, 0.2)),
    #101319;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
}

.library-track-art span {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.library-track-main {
  min-height: 52px;
  padding: 0;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.library-track-title-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-track-title-button:hover,
.library-track-title-button:focus-visible {
  box-shadow: none;
  color: var(--cyan);
}

.library-track-main > .track-meta-links {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-track-main > .track-meta-links,
.library-track-meta {
  color: var(--muted);
}

.library-track-date,
.library-track-plays {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d6dde7;
  font-size: 0.82rem;
  font-weight: 720;
}

.library-track-date,
.library-track-plays {
  justify-self: start;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.library-track-plays::after {
  content: " plays";
  color: rgba(174, 182, 194, 0.72);
  font-size: 0.72rem;
  font-weight: 760;
}

.heat-play-count {
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--play-heat, #86d9ff) 58%, rgba(255, 255, 255, 0.24));
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--play-heat-hot, #c9f5ff) 68%, transparent), transparent 68%),
    linear-gradient(145deg, color-mix(in srgb, var(--play-heat, #86d9ff) 24%, rgba(8, 10, 14, 0.94)), rgba(8, 10, 14, 0.94));
  color: color-mix(in srgb, var(--play-heat-hot, #c9f5ff) 58%, #ffffff);
  box-shadow: 0 0 14px color-mix(in srgb, var(--play-heat-glow, #25c7ff) 44%, transparent);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  justify-self: start;
  overflow: visible;
  text-overflow: clip;
}

.heat-play-count::after {
  content: " Plays";
  margin-left: 3px;
  color: color-mix(in srgb, var(--play-heat-hot, #c9f5ff) 44%, rgba(255, 255, 255, 0.78));
  font-size: 0.58rem;
  font-weight: 900;
}

.library-track-rating-slot {
  display: flex;
  justify-content: start;
  min-width: 102px;
}

.library-track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  max-height: 52px;
  overflow: hidden;
}

.library-track-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
}

.review-badge,
.library-label-chip {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.review-new {
  color: var(--cyan);
  border-color: rgba(38, 215, 255, 0.45);
}

.review-verified {
  color: var(--accent);
  border-color: rgba(46, 204, 113, 0.5);
}

.review-needs_metadata,
.review-needs_artwork,
.review-duplicate_candidate {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.55);
}

.review-rejected {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.58);
}

.library-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  max-height: 24px;
  overflow: hidden;
}

.library-label-chip {
  color: #dff8ff;
  background: rgba(38, 215, 255, 0.08);
}

.genre-chip {
  color: #d9ffe9;
  border-color: rgba(46, 204, 113, 0.4);
  background: rgba(46, 204, 113, 0.09);
}

.playlist-count-chip {
  color: #ffeeb0;
  border-color: rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.1);
}

.muted-chip {
  color: var(--muted);
  background: transparent;
}

.library-inspector {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px;
}

.library-inspector-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.library-inspector-head button {
  justify-self: end;
}

.library-inspector h3,
.library-inspector p {
  margin-bottom: 0;
}

.library-track-row .card-actions {
  margin-top: 0;
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.library-track-row .card-actions .icon-tool.compact-icon-tool,
.library-inspector .icon-tool.compact-icon-tool,
.library-search-box .icon-tool.compact-icon-tool,
.library-toolbar .icon-tool.compact-icon-tool,
.section-actions .icon-tool.compact-icon-tool {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.song-action-cluster .icon-tool.compact-icon-tool {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--song-action, var(--cyan)) 48%, rgba(255, 255, 255, 0.14));
  background:
    radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--song-action-hot, #ffffff) 35%, transparent), transparent 58%),
    linear-gradient(145deg, color-mix(in srgb, var(--song-action, var(--cyan)) 22%, rgba(8, 10, 14, 0.92)), rgba(8, 10, 14, 0.9));
  color: color-mix(in srgb, var(--song-action, var(--cyan)) 34%, #ffffff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 16px color-mix(in srgb, var(--song-action, var(--cyan)) 18%, transparent);
}

.song-action-cluster .icon-tool.compact-icon-tool:hover,
.song-action-cluster .icon-tool.compact-icon-tool:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 0 24px color-mix(in srgb, var(--song-action, var(--cyan)) 34%, transparent);
}

.start-dj-action {
  --song-action: #ff4fd8;
  --song-action-hot: #26d7ff;
}

.queue-song-action {
  --song-action: #2ecc71;
  --song-action-hot: #d4af37;
}

.review-song-action {
  --song-action: #46a6ff;
  --song-action-hot: #8b5cf6;
}

.delete-song-action {
  --song-action: #ef4444;
  --song-action-hot: #f59e0b;
}

.remove-from-playlist-action {
  --song-action: #d4af37;
  --song-action-hot: #26d7ff;
}

.inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, 38px);
  justify-content: end;
  gap: 8px;
}

.empty-card {
  color: var(--muted);
}

.playlist-editor {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 26, 32, 0.94);
  display: grid;
  gap: 14px;
}

.playlist-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.playlist-editor-head h3 {
  margin: 0;
}

.playlist-editor-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 132px repeat(3, 38px);
  gap: 10px;
  align-items: center;
}

.playlist-track-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.playlist-track-item {
  display: grid;
  grid-template-columns: 36px 60px minmax(180px, 1.6fr) 56px minmax(96px, auto) minmax(118px, 0.7fr) 164px;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c0d10;
  padding: 6px 7px;
}

.playlist-track-item.dragging {
  opacity: 0.58;
  border-color: var(--cyan);
}

.playlist-track-handle.icon-tool.compact-icon-tool {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  cursor: grab;
  color: var(--cyan);
  background: rgba(38, 215, 255, 0.08);
}

.playlist-track-art {
  width: 60px;
  height: 60px;
  min-height: 60px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid #06070a;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(38, 215, 255, 0.28), rgba(212, 175, 55, 0.22)),
    #11141a;
  background-size: cover;
  background-position: center;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.playlist-track-art.has-artwork span {
  opacity: 0;
}

.playlist-track-main {
  min-height: 52px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.playlist-track-title-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.playlist-track-title-button:hover,
.playlist-track-title-button:focus-visible {
  box-shadow: none;
  color: var(--cyan);
}

.playlist-track-title-button,
.playlist-track-main .track-meta-links {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-track-main .track-meta-links,
.playlist-track-empty {
  color: var(--muted);
}

.playlist-plays-col,
.playlist-rating-col,
.playlist-tags-col {
  min-width: 0;
}

.playlist-row-actions {
  display: flex;
  gap: 7px;
  justify-content: end;
  flex-wrap: nowrap;
  min-width: 164px;
  width: 164px;
  margin-top: 0;
  justify-self: end;
}

.playlist-row-actions .icon-tool.compact-icon-tool {
  flex: 0 0 36px;
}

.playlist-track-empty {
  min-height: 48px;
  display: grid;
  place-items: center start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c0d10;
  padding: 0 12px;
}

.playlist-add-select {
  min-height: 40px;
  margin: 0;
  padding: 0 10px;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.track-card,
.playlist-card,
.persona-card {
  padding: 14px;
}

.track-card {
  display: grid;
  gap: 8px;
}

.playlist-card {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 260px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(7, 9, 12, 0.06), rgba(7, 9, 12, 0.88) 66%),
    radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--playlist-b, var(--accent)) 36%, transparent), transparent 62%),
    linear-gradient(135deg, color-mix(in srgb, var(--playlist-a, var(--cyan)) 46%, #101419), color-mix(in srgb, var(--playlist-c, var(--gold)) 34%, #101419));
  background-image:
    linear-gradient(180deg, rgba(7, 9, 12, 0.06), rgba(7, 9, 12, 0.88) 66%),
    radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--playlist-b, var(--accent)) 36%, transparent), transparent 62%),
    linear-gradient(135deg, color-mix(in srgb, var(--playlist-a, var(--cyan)) 46%, #101419), color-mix(in srgb, var(--playlist-c, var(--gold)) 34%, #101419));
  background-size: cover;
  background-position: center;
}

.playlist-card-has-art {
  background-image:
    linear-gradient(180deg, rgba(7, 9, 12, 0.04), rgba(7, 9, 12, 0.9) 70%),
    var(--playlist-image);
}

.playlist-card-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.playlist-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.18rem, 2.1vw, 1.9rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.86);
}

.playlist-card span {
  color: rgba(244, 248, 255, 0.78);
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 850;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.82);
}

.playlist-card.active,
.playlist-card-playable:hover,
.playlist-card-playable:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.18);
}

.playlist-card-playable {
  cursor: pointer;
}

.playlist-card-generated {
  border-color: rgba(212, 175, 55, 0.42);
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.playlist-card-actions {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(4, 38px);
  justify-content: end;
  gap: 6px;
  margin-top: 0;
}

.playlist-card-generated .playlist-card-actions {
  grid-template-columns: repeat(2, 38px);
}

.playlist-card-actions .icon-tool.compact-icon-tool {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-width: 1px;
  background-color: rgba(6, 8, 11, 0.78);
  backdrop-filter: blur(8px);
}

.playlist-card-actions .icon-tool.compact-icon-tool svg {
  width: 18px;
  height: 18px;
}

.card-actions button {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0 10px;
}

.playlist-row-actions.card-actions {
  display: flex;
  grid-template-columns: none;
  gap: 7px;
  justify-content: end;
  flex-wrap: nowrap;
  min-width: 164px;
  width: 164px;
  margin-top: 0;
  justify-self: end;
}

.playlist-row-actions.card-actions button {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
}

.playlist-artwork-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.playlist-artwork-overlay[hidden] {
  display: none;
}

.playlist-artwork-panel {
  width: min(920px, 100%);
  max-height: min(880px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(38, 215, 255, 0.16), transparent 38%),
    linear-gradient(150deg, rgba(16, 19, 24, 0.98), rgba(7, 9, 12, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: 22px;
}

.playlist-artwork-head,
.playlist-artwork-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.playlist-artwork-head h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.playlist-artwork-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.playlist-artwork-preview span,
.playlist-artwork-field span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.playlist-artwork-current,
.playlist-artwork-candidate {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(5, 7, 10, 0.22), rgba(5, 7, 10, 0.7)),
    radial-gradient(circle at 25% 16%, rgba(38, 215, 255, 0.28), transparent 52%),
    linear-gradient(135deg, rgba(38, 215, 255, 0.28), rgba(212, 175, 55, 0.22));
  background-size: cover;
  background-position: center;
  color: rgba(255, 255, 255, 0.88);
  min-height: 0;
}

.playlist-artwork-current.has-artwork,
.playlist-artwork-candidate.has-artwork {
  box-shadow: inset 0 -120px 120px rgba(0, 0, 0, 0.28);
}

.playlist-artwork-field {
  display: block;
  margin-top: 12px;
}

.playlist-artwork-field textarea {
  width: 100%;
  resize: vertical;
}

.playlist-artwork-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
}

.playlist-artwork-actions button {
  min-height: 42px;
}

.playlist-artwork-actions button:disabled {
  opacity: 0.44;
  cursor: not-allowed;
}

.station-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.station-card {
  overflow: hidden;
}

.station-card.active {
  border-color: var(--accent);
}

.station-art {
  min-height: 150px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.85), rgba(70, 166, 255, 0.55)),
    #15181d;
  color: #07110b;
  font-size: 3rem;
  font-weight: 900;
}

.station-art.has-artwork {
  background-size: cover;
  background-position: center;
}

.station-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.station-body h3,
.station-body p {
  margin-bottom: 0;
}

.station-body > span {
  color: var(--muted);
  font-size: 0.9rem;
}

.station-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.station-actions a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 0 14px;
  text-decoration: none;
}

.station-actions a:hover {
  border-color: var(--cyan);
}

.track-card button {
  width: 100%;
  margin-top: 12px;
}

.track-card .card-actions button,
.playlist-card .card-actions button,
.profile-card .card-actions button {
  margin-top: 0;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
}

.dj-layout,
.profile-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.control-panel,
.stats-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.profile-create-grid {
  display: grid;
  gap: 10px;
}

.profile-create-grid label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.profile-create-grid input {
  margin-top: 6px;
}

.profile-create-grid #profilePin {
  text-align: center;
  letter-spacing: 0.2em;
  font-family: "Segoe UI Mono", "Cascadia Mono", Consolas, monospace;
  font-weight: 900;
}

.profile-create-button {
  min-height: 42px;
  border-color: rgba(46, 204, 113, 0.46);
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.18), rgba(38, 215, 255, 0.1)),
    var(--panel-2);
  color: #e8fff2;
  font-weight: 900;
}

.profile-panel {
  align-content: start;
}

.appearance-panel {
  align-content: start;
  margin-bottom: 16px;
}

.appearance-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 12px;
  align-items: stretch;
}

.appearance-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.48);
}

.appearance-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-editor {
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
}

.appearance-brand-preview {
  min-height: 148px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--cyan) 22%, transparent), transparent 58%),
    var(--app-surface);
  text-align: center;
}

.appearance-brand-preview img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px var(--app-brand-glow));
}

.appearance-brand-preview strong {
  max-width: 100%;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 950;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.appearance-fields {
  display: grid;
  gap: 10px;
}

.appearance-logo-actions,
.appearance-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.appearance-logo-actions button,
.appearance-card-head button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 0.82rem;
  font-weight: 850;
}

.skin-preset-swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.skin-preset-swatch {
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-color: var(--line);
}

.skin-preset-swatch.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 32%, transparent);
}

.skin-preset-swatch span {
  min-width: 0;
}

.appearance-card-head strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.custom-skin-card {
  align-content: start;
}

.custom-skin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.custom-color-field {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.custom-color-field input[type="color"] {
  width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 2px;
  border-radius: 7px;
}

.custom-color-field span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-card {
  position: relative;
  min-height: 310px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.06), rgba(5, 7, 10, 0.24) 38%, rgba(5, 7, 10, 0.9)),
    var(--profile-card-image, none),
    radial-gradient(circle at 28% 20%, rgba(38, 215, 255, 0.28), transparent 40%),
    linear-gradient(135deg, rgba(38, 215, 255, 0.22), rgba(46, 204, 113, 0.15), rgba(212, 175, 55, 0.14)),
    var(--panel-2);
  background-size: cover;
  background-position: center;
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  overflow: hidden;
  box-shadow: inset 0 -98px 92px rgba(0, 0, 0, 0.52);
}

.profile-card.active {
  border-color: var(--accent);
  box-shadow:
    inset 0 -98px 92px rgba(0, 0, 0, 0.52),
    0 0 0 2px rgba(46, 204, 113, 0.18);
}

.profile-card-badge,
.profile-card-initials {
  position: relative;
  z-index: 1;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 7, 10, 0.58);
  color: rgba(244, 248, 255, 0.84);
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.profile-card-badge {
  justify-self: end;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.profile-card.active .profile-card-badge {
  color: var(--accent);
  border-color: rgba(46, 204, 113, 0.55);
}

.profile-card-initials {
  justify-self: start;
  align-self: start;
  min-width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  font-size: 0.84rem;
}

.profile-card .card-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  margin: 0;
}

.profile-card .profile-delete-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  background-color: rgba(6, 8, 11, 0.76);
  backdrop-filter: blur(8px);
}

.profile-card-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 5px;
  min-width: 0;
  text-align: right;
}

.profile-card-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.28rem, 2.2vw, 2rem);
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.86);
}

.profile-card-copy span,
.profile-card-last-seen {
  color: rgba(244, 248, 255, 0.78);
  font-size: 0.83rem;
  font-weight: 850;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.82);
}

.profile-empty-card,
.profile-add-card {
  background:
    radial-gradient(circle at 50% 18%, rgba(38, 215, 255, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(38, 215, 255, 0.12), rgba(46, 204, 113, 0.08), rgba(212, 175, 55, 0.1)),
    var(--panel-2);
  box-shadow: none;
}

.profile-add-card {
  align-content: start;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.profile-add-card .profile-card-copy {
  align-self: start;
  text-align: left;
}

.profile-add-glyph {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(38, 215, 255, 0.4);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(38, 215, 255, 0.2), rgba(46, 204, 113, 0.12)),
    #0b1015;
  color: var(--cyan);
  box-shadow: 0 0 28px rgba(38, 215, 255, 0.12);
}

.profile-add-card .profile-create-grid {
  align-self: end;
}

.profile-add-card .profile-create-button,
.profile-add-card #profileCreateStatus {
  position: relative;
  z-index: 1;
}

.control-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.toggle {
  grid-template-columns: 22px 1fr;
  align-items: center;
}

.toggle input {
  min-height: auto;
}

.persona-card.selected {
  border-color: var(--gold);
}

.persona-card {
  overflow: hidden;
  padding: 0;
}

.persona-photo {
  min-height: 260px;
  background: #0c0d10;
  border-bottom: 1px solid var(--line);
}

.persona-photo img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.persona-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.persona-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.persona-role {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.persona-folder {
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.persona-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.persona-actions button {
  min-height: 40px;
  padding: 0 10px;
}

.dj-booth-main {
  display: grid;
  gap: 18px;
}

.dj-booth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: -8px;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.sync-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.7);
}

.icon-tool {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
}

.icon-tool svg,
.edit-icon svg,
.station-pool-item button svg,
.dj-profile-panel .button-link svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-tool.compact-icon-tool {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.queue-actions .icon-tool.compact-icon-tool {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.icon-tool.compact-icon-tool svg {
  width: 18px;
  height: 18px;
}

.dj-rules-panel,
.dj-roster-card,
.break-preview,
.dj-profile-card,
.dj-profile-section,
.dj-image-card,
.dj-slug-card,
.dj-break-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 26, 32, 0.94);
}

.dj-rules-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
}

.dj-rules-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.76), rgba(5, 7, 10, 0.52), rgba(5, 7, 10, 0.82)),
    url("/assets/mad-global-behavior-bg.png") center / cover no-repeat,
    linear-gradient(135deg, rgba(38, 215, 255, 0.28), rgba(46, 204, 113, 0.14), rgba(212, 175, 55, 0.2));
  transform: scale(1.01);
}

.dj-rules-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 12%, rgba(38, 215, 255, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(10, 12, 16, 0.16), rgba(10, 12, 16, 0.78));
}

.behavior-strip {
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(5, 7, 10, 0.3), rgba(5, 7, 10, 0.54));
  backdrop-filter: blur(4px);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.mode-field {
  grid-column: span 2;
}

.cadence-field {
  grid-column: span 1;
}

.random-field,
.length-field,
.time-field {
  grid-column: span 2;
}

.persona-source-field {
  grid-column: span 3;
}

.field {
  display: grid;
  align-content: end;
  gap: 8px;
  min-width: 0;
}

.field label,
.station-pool-head label,
.dj-profile-section label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 7, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-switch .mode-card {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: none;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.mode-switch .mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-switch .mode-card:hover {
  border-color: rgba(38, 215, 255, 0.35);
  box-shadow: none;
  color: var(--ink);
}

.mode-switch .mode-card svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.mode-switch .quiet-mode {
  color: #aeb6c2;
}

.mode-switch .active-mode {
  color: #aeb6c2;
}

.mode-switch .mode-card.active {
  border-color: rgba(46, 204, 113, 0.48);
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.22), rgba(38, 215, 255, 0.12));
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(46, 204, 113, 0.12);
}

.mode-switch .quiet-mode.active {
  border-color: rgba(38, 215, 255, 0.5);
  background: linear-gradient(135deg, rgba(38, 215, 255, 0.2), rgba(174, 182, 194, 0.1));
}

.cadence-field input {
  text-align: center;
  padding: 0 8px;
}

.rules-grid input,
.rules-grid select {
  min-height: 44px;
  background: rgba(12, 13, 16, 0.92);
}

.toggle-row label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--ink);
  padding: 0 12px;
}

.toggle-row input {
  width: auto;
  min-height: auto;
  accent-color: var(--accent);
}

.dj-global-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, 38px);
  gap: 8px;
  align-items: center;
  max-width: 430px;
  margin-left: auto;
}

.dj-global-actions .sync-pill {
  min-height: 38px;
  justify-content: start;
  background: rgba(12, 13, 16, 0.78);
}

.station-pool-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.station-pool-list {
  display: grid;
  gap: 8px;
}

.station-pool-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 48px 48px;
  gap: 8px;
  align-items: center;
}

.station-pool-item > span,
.dj-slug-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 900;
  background: rgba(12, 13, 16, 0.72);
}

.dj-roster-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.dj-roster-card {
  overflow: hidden;
  min-width: 0;
}

.dj-roster-card.hidden {
  opacity: 0.58;
}

.dj-roster-portrait {
  min-height: 230px;
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.28), transparent 5rem),
    linear-gradient(135deg, var(--portrait-a, #26d7ff), var(--portrait-b, #2ecc71) 52%, var(--portrait-c, #d4af37));
  overflow: hidden;
}

.dj-roster-portrait.has-image {
  background-size: cover;
  background-position: center;
}

.dj-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.dj-roster-portrait:not(.has-image)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  width: 96px;
  height: 96px;
  transform: translateX(-50%);
  border: 4px solid rgba(5, 6, 8, 0.8);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 38%, #f5f7fa 0 7px, transparent 8px),
    radial-gradient(circle at 65% 38%, #f5f7fa 0 7px, transparent 8px),
    radial-gradient(circle at 50% 60%, rgba(5, 6, 8, 0.74) 0 11px, transparent 12px),
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(174, 182, 194, 0.56));
}

.dj-roster-portrait:not(.has-image)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 118px;
  width: 170px;
  height: 170px;
  transform: translateX(-50%);
  border-radius: 48% 52% 0 0;
  background: rgba(6, 9, 12, 0.74);
}

.status-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.66);
  padding: 6px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-badge {
  right: 12px;
  color: var(--accent);
}

.status-toggle {
  min-height: 0;
  width: auto;
  cursor: pointer;
}

.status-toggle:hover,
.status-toggle:focus-visible {
  border-color: rgba(46, 204, 113, 0.72);
  background: rgba(5, 6, 8, 0.86);
  color: var(--ink);
}

.status-badge.inactive {
  color: #ffb86b;
}

.dj-roster-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.dj-roster-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: start;
}

.edit-icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
}

.dj-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.dj-metric-row span {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(38, 215, 255, 0.14), rgba(46, 204, 113, 0.12), rgba(212, 175, 55, 0.13)),
    #101318;
  padding: 6px 7px;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.dj-metric-row b {
  color: var(--gold);
}

.dj-image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dj-thumb {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.dj-thumb.primary {
  border-color: var(--gold);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.pronunciation-panel {
  display: grid;
  gap: 14px;
}

.pronunciation-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.pronunciation-form,
.pronunciation-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 30, 0.72);
  padding: 14px;
}

.pronunciation-form {
  display: grid;
  gap: 12px;
}

.pronunciation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pronunciation-test-field textarea {
  min-height: 74px;
}

.pronunciation-result {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pronunciation-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
}

.pronunciation-rule {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.2fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.pronunciation-rule.specific {
  border-left-color: var(--gold);
}

.pronunciation-terms,
.pronunciation-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pronunciation-terms strong,
.pronunciation-terms span,
.pronunciation-meta span,
.pronunciation-meta em {
  overflow-wrap: anywhere;
}

.pronunciation-terms span {
  color: var(--cyan);
  font-family: "Share Tech Mono", Consolas, monospace;
}

.pronunciation-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.pronunciation-meta em {
  font-style: normal;
  color: #d9e2ee;
}

.pronunciation-row-actions {
  display: flex;
  gap: 6px;
}

.pronunciation-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.break-preview {
  position: relative;
  padding: 16px;
  overflow: hidden;
  isolation: isolate;
}

.break-preview::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -28px;
  z-index: -2;
  height: 170px;
  opacity: 0.78;
  filter: blur(20px) saturate(1.35);
  background:
    linear-gradient(90deg, rgba(46,204,113,0), rgba(46,204,113,0.72), rgba(38,215,255,0.76), rgba(92,124,250,0.7), rgba(212,175,55,0.72), rgba(46,204,113,0)),
    linear-gradient(90deg, rgba(255,145,0,0), rgba(255,77,141,0.44), rgba(191,95,255,0.42), rgba(38,215,255,0.36), rgba(255,145,0,0));
  border-radius: 999px;
  animation: breakWaveDrift 8s ease-in-out infinite alternate;
}

.break-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24,26,32,0.58), rgba(24,26,32,0.94));
}

@keyframes breakWaveDrift {
  from { transform: translateX(-34px) rotate(-2deg) scaleY(0.86); }
  to { transform: translateX(42px) rotate(2deg) scaleY(1.16); }
}

.break-script {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.script-part {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(24, 26, 32, 0.42), rgba(24, 26, 32, 0.94)),
    var(--panel-2);
  padding: 10px;
  min-height: 232px;
  overflow: hidden;
}

.script-dj-image {
  min-height: 128px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.25), transparent 5rem),
    linear-gradient(135deg, var(--cyan), var(--accent) 48%, var(--gold));
  background-size: cover;
  background-position: center;
}

.script-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.script-part span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.script-part strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-speak-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 145, 0, 0.92), rgba(38, 215, 255, 0.8));
}

.script-speak-button svg {
  width: 18px;
  height: 18px;
}

.script-speak-button.playing {
  animation: previewSpeakerPulse 0.74s ease-in-out infinite alternate;
}

.script-part p {
  margin: 0;
  line-height: 1.35;
}

@keyframes previewSpeakerPulse {
  from { transform: scale(1); filter: saturate(1); }
  to { transform: scale(1.08); filter: saturate(1.4); }
}

.dj-profile-panel {
  display: grid;
  gap: 18px;
}

.dj-profile-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.dj-profile-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.dj-profile-card,
.dj-profile-section {
  padding: 16px;
}

.dj-primary-portrait {
  min-height: 430px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.25), transparent 6rem),
    linear-gradient(135deg, var(--cyan), var(--accent) 50%, var(--gold));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.dj-primary-portrait:not(.has-image)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54px;
  width: 150px;
  height: 150px;
  transform: translateX(-50%);
  border: 5px solid rgba(5, 6, 8, 0.82);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 38%, #f5f7fa 0 10px, transparent 11px),
    radial-gradient(circle at 65% 38%, #f5f7fa 0 10px, transparent 11px),
    radial-gradient(circle at 50% 62%, rgba(5, 6, 8, 0.74) 0 17px, transparent 18px),
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(174, 182, 194, 0.56));
}

.source-note {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(38, 215, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(38, 215, 255, 0.07);
  color: var(--muted);
  padding: 10px 12px;
  line-height: 1.32;
}

.source-note strong {
  color: var(--cyan);
}

.dj-profile-fields,
.field-grid,
.right-stack,
.prompt-panel,
.dj-slug-list,
.dj-break-list {
  display: grid;
  gap: 12px;
}

.field-grid {
  grid-template-columns: 1fr 1fr;
}

.dj-profile-section textarea {
  min-height: 104px;
  padding: 11px 12px;
  line-height: 1.38;
  resize: vertical;
}

.dj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dj-image-card {
  overflow: hidden;
  background: var(--panel-2);
}

.dj-image-preview {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cyan), var(--accent), var(--gold));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.dj-image-card.primary {
  border-color: var(--gold);
}

.dj-image-card.primary .dj-image-preview {
  box-shadow: inset 0 -4px 0 var(--gold);
}

.dj-image-actions {
  display: grid;
  grid-template-columns: repeat(2, 38px);
  gap: 6px;
  justify-content: end;
  padding: 8px;
}

.dj-image-actions button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.dj-slug-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--panel-2);
}

.dj-break-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--panel-2);
}

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

.preview-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1014;
  padding: 12px;
  color: var(--muted);
  line-height: 1.42;
}

.preview-box strong {
  color: var(--accent);
}

.bottom-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: 96px minmax(170px, 0.9fr) auto minmax(240px, 31vw) minmax(220px, 270px);
  gap: 8px;
  align-items: center;
  padding: 8px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--app-player-bg);
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  overflow: visible;
  isolation: isolate;
}

.player-wave {
  position: absolute;
  inset: -128px 0 -24px;
  z-index: -2;
  overflow: hidden;
  opacity: 0.88;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 14%, rgba(0, 0, 0, 0.6) 36%, #000 58%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 14%, rgba(0, 0, 0, 0.6) 36%, #000 58%, #000 100%);
}

.wave-band {
  position: absolute;
  left: -18%;
  right: -18%;
  height: 105px;
  border-radius: 999px;
  filter: blur(28px) saturate(1.45);
  transform-origin: center;
  mix-blend-mode: screen;
  animation: waveDrift 8s ease-in-out infinite alternate;
}

.wave-one {
  bottom: 12px;
  background: linear-gradient(90deg, transparent, var(--app-player-glow-a), var(--app-player-glow-b), var(--blue), var(--app-player-glow-c), transparent);
  transform: translateX(calc(var(--level-a, 0.72) * -42px)) rotate(-2deg) scaleY(calc(0.7 + var(--level-a, 0.72)));
}

.wave-two {
  bottom: -6px;
  background: linear-gradient(90deg, transparent, var(--app-player-glow-b), color-mix(in srgb, var(--blue) 82%, var(--accent)), color-mix(in srgb, var(--gold) 58%, var(--cyan)), var(--app-player-glow-a), transparent);
  transform: translateX(calc(var(--level-b, 0.38) * 58px)) rotate(3deg) scaleY(calc(0.56 + var(--level-b, 0.38)));
  animation-duration: 10s;
}

.wave-three {
  bottom: -28px;
  background: linear-gradient(90deg, transparent, var(--app-player-glow-c), var(--app-player-glow-a), var(--app-player-glow-b), var(--blue), transparent);
  transform: translateX(calc(var(--level-c, 0.55) * -24px)) rotate(1deg) scaleY(calc(0.5 + var(--level-c, 0.55)));
  animation-duration: 7s;
}

.wave-four {
  bottom: 48px;
  height: 78px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 236, 153, 0.42), rgba(109, 40, 217, 0.48), rgba(20, 184, 166, 0.5), rgba(255, 255, 255, 0));
  transform: translateX(calc(var(--level-b, 0.38) * -34px)) rotate(-5deg) scaleY(calc(0.48 + var(--level-c, 0.55)));
  animation-duration: 12s;
}

.bottom-player::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.02) 0%, rgba(7, 8, 11, 0.36) 32%, rgba(7, 8, 11, 0.88) 100%),
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--cyan) 24%, transparent), transparent 42%),
    radial-gradient(circle at 78% 0%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 44%);
}

@keyframes waveDrift {
  from {
    background-position: 0 50%;
  }

  to {
    background-position: 420px 50%;
  }
}

.mini-cover {
  width: 84px;
  height: 84px;
  align-self: center;
  margin-top: -22px;
  display: grid;
  place-items: center;
  border: 3px solid #050608;
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.95), rgba(38, 215, 255, 0.82) 52%, rgba(212, 175, 55, 0.88)),
    #15181d;
  color: #07110b;
  font-weight: 950;
  font-size: 2.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.bottom-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.bottom-meta > strong,
.bottom-meta > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-meta > strong {
  font-size: 1.02rem;
}

.bottom-meta > span {
  color: var(--muted);
  font-size: 0.92rem;
}

.bottom-controls {
  display: grid;
  grid-template-columns: repeat(9, 46px);
  gap: 7px;
  align-items: center;
}

.player-icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 46px;
}

.player-icon-button svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.playlist-save-popover {
  position: absolute;
  right: clamp(180px, 18vw, 360px);
  bottom: calc(100% + 10px);
  width: min(320px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 16, 20, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
}

.playlist-save-head,
.playlist-save-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.playlist-save-head strong {
  font-size: 0.92rem;
}

.playlist-save-popover select {
  min-height: 38px;
}

.playlist-save-actions {
  justify-content: flex-end;
}

.playlist-save-queue-button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(212, 175, 55, 0.55);
  color: #fff2b8;
}

.playlist-save-queue-button:hover,
.playlist-save-queue-button:focus-visible {
  border-color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.playlist-save-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.primary-control {
  border-color: rgba(38, 215, 255, 0.72);
  background: rgba(38, 215, 255, 0.13);
  color: #dff8ff;
}

.delete-current-control {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.delete-current-control:hover {
  border-color: var(--danger);
  box-shadow: inset 0 -2px 0 var(--danger);
}

.repeat-control {
  position: relative;
}

.repeat-control[data-repeat="one"]::after {
  content: "1";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #06100c;
  font-size: 0.66rem;
  font-weight: 900;
}

.repeat-control[data-repeat="off"] {
  color: #6d7580;
}

.dj-avatar-control {
  overflow: hidden;
  padding: 0;
  border-width: 2px;
  position: relative;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(38, 215, 255, 0.14)),
    #101114;
}

.dj-avatar-control.active {
  border-color: var(--gold);
  color: #fff3bf;
  box-shadow:
    inset 0 -2px 0 var(--gold),
    0 0 22px rgba(212, 175, 55, 0.2);
}

.dj-avatar-control img,
.dj-avatar-control video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: opacity 220ms ease, transform 420ms ease;
}

.drive-dj-photo .dj-media-fade-out,
.drive-dj-photo .dj-media-fade-in,
.dj-avatar-control .dj-media-fade-out,
.dj-avatar-control .dj-media-fade-in {
  opacity: 0;
  transform: scale(1.025);
}

.dj-avatar-control::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 11px;
  height: 11px;
  border: 2px solid #08090c;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.75);
  opacity: 0;
}

.dj-avatar-control.active::after {
  opacity: 1;
}

.bottom-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: #d7deea;
  font-size: 0.88rem;
}

.bottom-progress input[type="range"] {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
}

.bottom-progress input[type="range"]::-webkit-slider-runnable-track {
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--accent) 0%, var(--cyan) var(--progress, 0%), rgba(255, 255, 255, 0.2) var(--progress, 0%)),
    rgba(255, 255, 255, 0.16);
}

.bottom-progress input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -5px;
  border: 2px solid #07100c;
  border-radius: 50%;
  background: #f5f7fa;
  box-shadow: 0 0 18px rgba(38, 215, 255, 0.35);
  appearance: none;
}

.bottom-progress input[type="range"]::-moz-range-track {
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.bottom-progress input[type="range"]::-moz-range-progress {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--gold));
}

.bottom-progress input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #07100c;
  border-radius: 50%;
  background: #f5f7fa;
}

.bottom-player audio {
  display: none;
}

.bottom-preload {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  justify-items: stretch;
}

.preload-cover {
  width: 54px;
  height: 54px;
  border: 2px solid #040507;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(46, 204, 113, 0.78), rgba(38, 215, 255, 0.72)),
    #15181d;
  display: grid;
  place-items: center;
  color: #07100c;
  font-size: 1.35rem;
  font-weight: 950;
}

.preload-cover.has-artwork {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.preload-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.preload-meta span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preload-meta strong,
.preload-meta em {
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preload-meta strong {
  font-size: 0.95rem;
  font-style: normal;
}

.preload-meta em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.dj-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 9, 0.74);
  backdrop-filter: blur(14px);
}

.dj-mode-overlay[hidden] {
  display: none;
}

.lyrics-overlay {
  --lyrics-bg: #070b10;
  --lyrics-font: #dcecff;
  --lyrics-size: 38px;
  --lyrics-line-spacing: 1.35;
  --lyrics-highlight: #26d7ff;
  --lyrics-align: center;
  --lyrics-scroll-speed: 1;
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 9, 0.72);
  backdrop-filter: blur(13px);
}

.lyrics-overlay[hidden] {
  display: none;
}

.lyrics-panel {
  position: relative;
  width: min(980px, 100%);
  height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(38, 215, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--lyrics-bg) 86%, rgba(38, 215, 255, 0.18)), var(--lyrics-bg)),
    var(--lyrics-bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 38px rgba(38, 215, 255, 0.12);
}

.lyrics-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.lyrics-head h2 {
  margin: 2px 0 4px;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 800;
}

.lyrics-head p:last-child {
  margin: 0;
  color: var(--lyrics-highlight);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lyrics-head .eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 4px;
}

.lyrics-head-actions {
  display: flex;
  gap: 10px;
}

.lyrics-settings-panel {
  position: absolute;
  top: 112px;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  width: min(380px, calc(100% - 48px));
  max-height: calc(100% - 136px);
  overflow-y: auto;
  display: grid;
  grid-auto-rows: max-content;
  gap: 14px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(14, 18, 24, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.lyrics-settings-panel[hidden] {
  display: none;
}

.lyrics-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.lyrics-settings-head strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.lyrics-settings-head button {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  color: #ffd76a;
  font-size: 0.78rem;
  font-weight: 800;
}

.lyrics-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lyrics-setting-label {
  flex: 0 0 auto;
  color: #cfd5de;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
}

.lyrics-swatch-row {
  display: flex;
  gap: 8px;
}

.lyrics-swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: var(--swatch, #000);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.lyrics-swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.45);
}

.lyrics-swatch.active {
  border-color: var(--lyrics-highlight);
  box-shadow: 0 0 0 2px rgba(38, 215, 255, 0.32), 0 0 12px rgba(38, 215, 255, 0.35);
}

.lyrics-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.lyrics-slider-row input[type="range"] {
  width: 160px;
  flex: 0 0 auto;
}

.lyrics-slider-glyph {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lyrics-slider-glyph.lyrics-glyph-a-small,
.lyrics-slider-glyph.lyrics-glyph-a-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  font-family: inherit;
}

.lyrics-slider-glyph.lyrics-glyph-a-small {
  font-size: 0.78rem;
}

.lyrics-slider-glyph.lyrics-glyph-a-large {
  font-size: 1.15rem;
  width: 22px;
  height: 22px;
}

.lyrics-segment-control {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.lyrics-segment-control button {
  width: 36px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.lyrics-segment-control button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lyrics-segment-control button:hover {
  color: #ffffff;
}

.lyrics-segment-control button.active {
  border-color: color-mix(in srgb, var(--lyrics-highlight) 60%, transparent);
  background: color-mix(in srgb, var(--lyrics-highlight) 18%, rgba(255, 255, 255, 0.04));
  color: #ffffff;
}

.lyrics-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lyrics-import-copy {
  margin: 0;
  color: #b9c2ce;
  font-size: 0.88rem;
  line-height: 1.45;
}

.lyrics-import-copy span {
  display: inline-block;
  margin-top: 4px;
  color: #ffffff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.lyrics-fetch-button,
.lyrics-file-button,
.lyrics-upload-submit {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--lyrics-highlight) 58%, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: color-mix(in srgb, var(--lyrics-highlight) 18%, rgba(255, 255, 255, 0.06));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.lyrics-fetch-button {
  background: linear-gradient(135deg, #d4af37, #26d7ff);
  color: #041015;
  border-color: transparent;
}

.lyrics-fetch-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.lyrics-fetch-button svg,
.lyrics-file-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lyrics-upload-submit {
  background: linear-gradient(135deg, #2ecc71, #26d7ff);
  color: #041015;
  border-color: transparent;
}

.lyrics-upload-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.lyrics-upload-name {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #dfe7f0;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.045);
  overflow-wrap: anywhere;
}

.lyrics-upload-status {
  min-height: 34px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: #b9c2ce;
  font-size: 0.84rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.04);
}

.lyrics-upload-status[data-tone="success"] {
  color: #bdf8cf;
  background: rgba(46, 204, 113, 0.12);
}

.lyrics-upload-status[data-tone="error"] {
  color: #ffd2d2;
  background: rgba(255, 90, 90, 0.12);
}

.lyrics-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.lyrics-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.lyrics-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 160ms ease;
}

.lyrics-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 160ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lyrics-switch input:checked + .lyrics-switch-track {
  background: #2ecc71;
}

.lyrics-switch input:checked + .lyrics-switch-track::after {
  transform: translateX(20px);
}

.lyrics-switch input:focus-visible + .lyrics-switch-track {
  box-shadow: 0 0 0 3px rgba(38, 215, 255, 0.35);
}

.lyrics-body {
  min-height: 0;
  padding: 12px 26px 28px;
}

.lyrics-scroll {
  height: 100%;
  overflow: auto;
  scroll-behavior: smooth;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.18);
}

.lyrics-overlay.reduce-motion .lyrics-scroll {
  scroll-behavior: auto;
}

.lyrics-status {
  margin: 28px auto;
  width: min(620px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.lyrics-lines {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(var(--lyrics-size) * 0.18);
  margin: 0;
  padding: 36vh 28px;
  list-style: none;
  transition: padding-right 180ms ease;
}

.lyrics-overlay.settings-open .lyrics-lines {
  padding-right: min(420px, 44vw);
}

.lyrics-line {
  max-width: 820px;
  margin: 0 auto;
  color: var(--lyrics-font);
  font-size: clamp(1.35rem, var(--lyrics-size), 4rem);
  line-height: var(--lyrics-line-spacing);
  text-align: var(--lyrics-align);
  opacity: 0.55;
  font-weight: 600;
  transition:
    opacity calc(220ms / var(--lyrics-scroll-speed)) ease,
    color calc(220ms / var(--lyrics-scroll-speed)) ease,
    text-shadow calc(220ms / var(--lyrics-scroll-speed)) ease;
}

.lyrics-line.active {
  color: var(--lyrics-highlight);
  opacity: 1;
  font-weight: 700;
  text-shadow:
    0 0 10px color-mix(in srgb, var(--lyrics-highlight) 85%, transparent),
    0 0 24px color-mix(in srgb, var(--lyrics-highlight) 70%, transparent),
    0 0 48px color-mix(in srgb, var(--lyrics-highlight) 45%, transparent),
    0 0 80px color-mix(in srgb, var(--lyrics-highlight) 30%, transparent);
}

.lyrics-line.past {
  opacity: 0.26;
}

.lyrics-line.next {
  opacity: 0.5;
}

.lyrics-break {
  min-height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.28;
  transition: opacity calc(180ms / var(--lyrics-scroll-speed)) ease;
}

.lyrics-break.active {
  opacity: 0.92;
}

.lyrics-break.past {
  opacity: 0.12;
}

.lyrics-break-dots {
  display: inline-flex;
  gap: clamp(5px, calc(var(--lyrics-size) * 0.13), 10px);
}

.lyrics-break-dots span {
  width: clamp(5px, calc(var(--lyrics-size) * 0.16), 9px);
  height: clamp(5px, calc(var(--lyrics-size) * 0.16), 9px);
  border-radius: 999px;
  background: color-mix(in srgb, var(--lyrics-font) 45%, transparent);
  transform: scale(0.74);
  transition:
    transform calc(180ms / var(--lyrics-scroll-speed)) ease,
    background calc(180ms / var(--lyrics-scroll-speed)) ease,
    box-shadow calc(180ms / var(--lyrics-scroll-speed)) ease;
}

.lyrics-break-dots span.filled {
  background: var(--lyrics-highlight);
  transform: scale(1);
  box-shadow: 0 0 10px color-mix(in srgb, var(--lyrics-highlight) 64%, transparent);
}

.lyrics-line.unsynced {
  opacity: 0.86;
  transform: none;
}

.lyrics-overlay.reduce-motion .lyrics-line,
.lyrics-overlay.reduce-motion .lyrics-break,
.lyrics-overlay.reduce-motion .lyrics-break-dots span {
  transition: none;
}

.lyrics-overlay.reduce-motion .lyrics-lines {
  transition: none;
}

.lyrics-body {
  position: relative;
}

.lyrics-dot-wave {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 10px;
  height: 96px;
  width: calc(100% - 52px);
  pointer-events: none;
  opacity: 0.95;
  z-index: 0;
  display: block;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lyrics-highlight) 50%, transparent));
}

.lyrics-scroll {
  position: relative;
  z-index: 1;
}

.dj-mode-panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(24, 26, 32, 0.96), rgba(12, 13, 16, 0.98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5);
}

.dj-mode-wave {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  pointer-events: none;
  overflow: hidden;
}

.dj-mode-head,
.dj-mode-layout,
.dj-mode-roster {
  position: relative;
  z-index: 1;
}

.dj-mode-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 28px 12px;
}

.dj-mode-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.dj-mode-roster {
  display: flex;
  gap: 10px;
  padding: 0 28px 20px;
  overflow-x: auto;
}

.dj-mode-roster-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.dj-mode-roster-item img,
.dj-mode-roster-item video {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.dj-mode-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.25fr);
  gap: 18px;
  padding: 0 28px 28px;
}

.dj-mode-form,
.dj-mode-preview {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.76);
  padding: 18px;
}

.seed-tabs,
.dj-mode-controls,
.dj-mode-actions {
  display: grid;
  gap: 10px;
}

.seed-tabs {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 12px;
}

.seed-tabs button {
  min-height: 38px;
  padding: 0 8px;
}

.dj-mode-form input,
.dj-mode-form select {
  margin-bottom: 12px;
}

.dj-mode-controls {
  grid-template-columns: 1fr 1fr;
}

.dj-mode-controls label {
  color: var(--muted);
  font-size: 0.82rem;
}

.dj-mode-controls select {
  margin-top: 6px;
}

.dj-mode-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 2px;
}

.primary-action {
  border-color: rgba(46, 204, 113, 0.65);
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.28), rgba(38, 215, 255, 0.18));
}

.dj-mode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dj-mode-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.dj-mode-art {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(38, 215, 255, 0.35), rgba(212, 175, 55, 0.32)),
    #14171d;
  background-size: cover;
  background-position: center;
  font-weight: 900;
}

.dj-mode-list strong,
.dj-mode-list em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dj-mode-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
}

.dj-mode-list b {
  min-width: 42px;
  text-align: center;
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(38, 215, 255, 0.12);
  color: #c9f5ff;
}

.dj-mode-now {
  color: #c9f5ff;
  font-style: normal;
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .dj-mode-layout,
  .dj-mode-controls,
  .dj-mode-actions {
    grid-template-columns: 1fr;
  }

  .seed-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1320px) {
  .playlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .library-track-row {
    grid-template-columns: 24px 60px minmax(154px, 0.7fr) 52px minmax(96px, auto) minmax(152px, auto);
  }

  .library-track-row .library-track-date,
  .library-track-row .library-track-tags {
    display: none;
  }

  .library-track-row > .card-actions {
    grid-column: auto;
  }

  .bottom-player {
    grid-template-columns: 92px minmax(135px, 0.66fr) auto minmax(150px, 0.7fr) 52px;
    gap: 7px;
    padding-inline: 16px;
  }

  .bottom-preload {
    grid-template-columns: 46px;
    gap: 0;
  }

  .preload-cover {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .preload-meta {
    display: none;
  }

  .bottom-controls {
    grid-template-columns: repeat(9, 42px);
    gap: 6px;
  }

  .player-icon-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .player-icon-button svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 980px) {
  .app-shell,
  .drive-layout,
  .now-playing,
  .library-control-row,
  .library-toolbar,
  .library-workspace,
  .library-workspace:has(.library-inspector:not([hidden])),
  .dj-layout,
  .profile-layout,
  .rules-grid,
  .dj-profile-layout {
    grid-template-columns: 1fr;
  }

  .rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .appearance-grid {
    grid-template-columns: 1fr;
  }

  .brand-editor {
    grid-template-columns: 120px minmax(0, 1fr);
  }

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

  .topbar,
  .section-head,
  .dj-profile-top,
  .behavior-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .dj-global-actions {
    max-width: none;
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr) repeat(3, 38px);
  }

  .dj-roster-grid {
    grid-template-columns: 1fr;
  }

  .mode-field,
  .cadence-field,
  .random-field,
  .length-field,
  .time-field,
  .persona-source-field {
    grid-column: auto;
  }

  .break-script,
  .field-grid,
  .dj-break-grid {
    grid-template-columns: 1fr;
  }

  .scan-actions,
  .library-track-row,
  .transport,
  .playlist-editor-actions {
    grid-template-columns: 1fr;
  }

  .playlist-artwork-overlay {
    padding: 12px;
  }

  .playlist-artwork-panel {
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  .playlist-artwork-grid {
    grid-template-columns: 1fr;
  }

  .playlist-track-item {
    grid-template-columns: 36px 52px minmax(0, 1fr) 164px;
    align-items: center;
  }

  .playlist-track-art {
    width: 52px;
    height: 52px;
    min-height: 52px;
  }

  .playlist-plays-col,
  .playlist-rating-col,
  .playlist-tags-col {
    display: none;
  }

  .library-search-box {
    grid-template-columns: 28px minmax(0, 1fr) 40px;
  }

  .library-track-art {
    width: 60px;
    height: 60px;
    min-height: 60px;
  }

  .library-track-row .library-track-sort,
  .library-track-row .library-track-date,
  .library-track-row .library-track-plays,
  .library-track-row .library-track-tags {
    display: none;
  }

  .library-track-rating-slot,
  .library-track-row .card-actions {
    justify-self: start;
  }

  .playlist-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    min-height: 104px;
    padding: 34px 0 8px;
  }

  .topbar .scan-actions {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-left: 0;
    align-self: stretch;
  }

  .masthead-title h1 {
    max-width: 100%;
    bottom: 42px;
    font-size: clamp(3rem, 16vw, 5.8rem);
  }

  .app-shell {
    padding-bottom: 150px;
  }

  .bottom-player {
    min-height: 74px;
    grid-template-columns: 76px minmax(112px, 0.66fr) auto minmax(120px, 0.72fr) 46px;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
  }

  .mini-cover {
    width: 68px;
    height: 68px;
    margin-top: -8px;
    font-size: 1.7rem;
  }

  .bottom-meta > strong {
    font-size: 0.92rem;
  }

  .bottom-meta > span {
    font-size: 0.78rem;
  }

  .bottom-controls {
    grid-template-columns: repeat(7, 38px);
    justify-items: center;
    gap: 5px;
  }

  .player-icon-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .player-icon-button svg {
    width: 18px;
    height: 18px;
  }

  .bottom-progress {
    gap: 7px;
    font-size: 0.78rem;
  }

  .preload-cover {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .bottom-progress input[type="range"]::-webkit-slider-runnable-track {
    height: 12px;
  }

  .bottom-progress input[type="range"]::-moz-range-track,
  .bottom-progress input[type="range"]::-moz-range-progress {
    height: 12px;
  }

  .played-item {
    grid-template-columns: 32px 60px minmax(0, 1fr) 56px minmax(106px, auto) 164px;
  }

  .played-tags-col {
    display: none;
  }

  .played-art {
    width: 60px;
    height: 60px;
    min-height: 60px;
  }

  .compact-now-playing .transport {
    grid-template-columns: repeat(5, 38px);
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: 134px;
  }

  .brand-editor,
  .custom-skin-fields {
    grid-template-columns: 1fr;
  }

  .appearance-brand-preview {
    min-height: 126px;
  }

  .bottom-player {
    grid-template-columns: 60px minmax(0, auto) minmax(104px, 1fr) 40px;
    gap: 6px;
  }

  .profile-list {
    grid-template-columns: 1fr;
  }

  .mini-cover {
    width: 58px;
    height: 58px;
    margin-top: -5px;
    font-size: 1.45rem;
  }

  .bottom-meta {
    display: none;
  }

  .bottom-controls {
    grid-template-columns: repeat(9, 32px);
    gap: 3px;
  }

  .player-icon-button {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .player-icon-button svg {
    width: 16px;
    height: 16px;
  }

  .bottom-progress {
    min-width: 104px;
  }

  .bottom-preload {
    grid-template-columns: 38px;
  }

  .preload-cover {
    width: 38px;
    height: 38px;
    border-width: 2px;
    font-size: 0.88rem;
  }

  .queue-tool-row {
    grid-template-columns: minmax(0, 1fr) 112px 38px;
  }

  .queue-dj-strip {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .queue-dj-avatar {
    min-height: 104px;
  }

  .upcoming-item {
    grid-template-columns: 28px 42px minmax(0, 1fr) minmax(102px, auto);
  }

  .rich-played-item {
    grid-template-columns: 32px 56px minmax(0, 1fr) 56px minmax(106px, auto) 164px;
  }

  .queue-track-tags-col {
    display: none;
  }

  .played-art {
    width: 52px;
    height: 52px;
    min-height: 52px;
  }

  .queue-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .queue-actions .icon-tool.compact-icon-tool {
    width: 100%;
  }

  .lyrics-overlay {
    padding: 12px;
  }

  .lyrics-panel {
    height: calc(100vh - 24px);
  }

  .lyrics-head {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 18px 12px;
  }

  .lyrics-head-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .lyrics-settings-panel {
    top: 136px;
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-height: calc(100% - 148px);
  }

  .lyrics-overlay.settings-open .lyrics-lines {
    padding-right: 28px;
  }
}

@media (max-width: 1180px) {
  .drive-layout {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  }

  .drive-now-playing {
    grid-template-columns: minmax(142px, 190px) minmax(0, 1fr);
  }

  .drive-now-playing .track-stack {
    padding-right: 0;
  }

  .drive-meter {
    display: none;
  }

  .drive-transport,
  .drive-volume-row {
    position: static;
  }

  .drive-volume-row {
    margin-top: 18px;
  }

  .queue-table-head,
  .drive-queue-panel .upcoming-item {
    grid-template-columns: 20px 58px minmax(0, 1fr) minmax(130px, auto);
    gap: 10px;
  }

  .queue-table-head span:nth-child(5) {
    display: none;
  }

  .queue-track-tags-col {
    display: none;
  }

  .drive-queue-panel .queue-track-art {
    width: 58px;
    height: 58px;
    min-height: 58px;
  }

  .drive-queue-panel .queue-track-stats {
    grid-template-columns: minmax(0, auto);
  }

  .drive-queue-panel .queue-actions {
    grid-column: 3 / -1;
    justify-content: start;
    justify-items: start;
  }
}

@media (max-width: 1060px) {
  .drive-layout {
    grid-template-columns: 1fr;
  }

  .drive-dj-rail {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 980px) {
  .drive-layout {
    grid-template-columns: 1fr;
  }

  .drive-now-playing {
    grid-template-columns: minmax(142px, 190px) minmax(0, 1fr);
  }

  .drive-transport {
    grid-template-columns: repeat(3, 54px);
  }

  .drive-dj-rail {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .app-shell {
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }

  .rail {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .drive-dj-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .playlist-grid {
    grid-template-columns: 1fr;
  }

  .rail {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 12px;
    gap: 10px;
    align-items: start;
  }

  .brand {
    grid-row: 1 / span 2;
    align-self: start;
    justify-content: start;
  }

  .brand-logo {
    width: 96px;
  }

  .rail-toggle {
    right: 0;
    top: 0;
  }

  .playlist-nav-section,
  .pages-section {
    width: 100%;
    grid-column: 2;
  }

  .playlist-nav-list {
    max-height: 96px;
  }

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

  .nav-item {
    min-height: 38px;
    padding: 0 8px;
  }

  .pin-panel {
    grid-column: 1 / -1;
    max-width: 360px;
    margin-top: 0;
  }

  .drive-now-playing {
    grid-template-columns: minmax(120px, 240px) minmax(0, 1fr);
    min-height: 0;
    padding: 12px;
  }

  .drive-now-playing .cover {
    max-width: 240px;
  }

  .drive-now-playing .track-stack {
    padding-right: 0;
  }

  .drive-transport {
    grid-template-columns: repeat(3, 46px);
    justify-content: start;
    margin-top: 12px;
  }

  .drive-transport button,
  .drive-transport .primary-now-control {
    width: 46px;
    min-height: 46px;
  }

  .drive-dj-rail,
  .queue-table-head,
  .drive-queue-panel .upcoming-item {
    grid-template-columns: 1fr;
  }

  .queue-table-head {
    display: none;
  }

  .drive-queue-panel .upcoming-item {
    gap: 8px;
    padding: 10px;
  }

  .drive-queue-panel .queue-handle {
    display: none;
  }

  .queue-track-rating-col,
  .queue-track-tags-col {
    display: none;
  }

  .drive-queue-panel .queue-track-stats {
    display: flex;
  }

  .drive-queue-panel .queue-actions {
    justify-content: start;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding-bottom: 128px;
  }

  .drive-now-playing {
    grid-template-columns: 1fr;
  }

  .drive-title-row {
    grid-template-columns: 1fr;
  }

  .drive-title-row .now-action-stack {
    justify-self: start;
    justify-items: start;
  }

  .drive-now-playing .cover {
    max-width: 100%;
  }

  .bottom-player {
    grid-template-columns: 54px auto minmax(76px, 1fr) 34px;
    padding-inline: 8px;
  }

  .mini-cover {
    width: 52px;
    height: 52px;
    border-width: 2px;
    font-size: 1.28rem;
  }

  .bottom-controls {
    grid-template-columns: repeat(9, 28px);
    gap: 2px;
  }

  .player-icon-button {
    width: 28px;
    height: 28px;
    min-height: 28px;
  }

  .player-icon-button svg {
    width: 16px;
    height: 16px;
  }

  .bottom-progress {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    font-size: 0.7rem;
  }

  .bottom-preload {
    grid-template-columns: 32px;
  }

  .preload-cover {
    width: 32px;
    height: 32px;
    font-size: 0.74rem;
  }

  .playlist-save-popover {
    right: 8px;
    bottom: calc(100% + 8px);
  }

  .queue-dj-strip {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
  }

  .queue-dj-avatar {
    min-height: 82px;
  }

  #bottomElapsed {
    display: none;
  }

  #bottomVolumeButton {
    display: none;
  }

  #bottomRandomButton,
  #bottomRepeatButton {
    display: none;
  }
}

@media (max-width: 480px) {
  .bottom-player {
    grid-template-columns: 54px auto minmax(74px, 1fr);
  }

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

  .bottom-preload {
    display: none;
  }

  #bottomDuration {
    display: none;
  }

}

/* Chart Toppers view */
.chart-toppers-panel {
  display: grid;
  gap: 14px;
}

.chart-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chart-provider-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 10px;
  align-items: center;
  text-align: left;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(24, 26, 32, 0.92);
}

.chart-provider-card span {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(38, 215, 255, 0.12);
  color: var(--cyan);
  font-weight: 950;
}

.chart-provider-card strong,
.chart-provider-card em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-provider-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.chart-provider-card.active {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.11);
}

.chart-provider-card.active span {
  background: rgba(212, 175, 55, 0.16);
  color: #ffe8a3;
}

.chart-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 26, 32, 0.94);
  padding: 14px;
}

.chart-basket {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.06);
  padding: 10px 12px;
}

.chart-basket strong {
  color: #ffe8a3;
}

.chart-basket span {
  color: var(--muted);
  font-size: 0.86rem;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(286px, 330px);
  gap: 14px;
  align-items: start;
}

.chart-results {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(15, 17, 22, 0.92);
  overflow: hidden;
}

.chart-table-head,
.chart-row {
  display: grid;
  grid-template-columns: 34px 48px 58px minmax(190px, 1.5fr) 120px 116px 174px;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
}

.chart-table-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

.chart-row {
  min-height: 74px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-row:last-child {
  border-bottom: 0;
}

.chart-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.chart-select {
  display: grid;
  place-items: center;
}

.chart-select input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}

.chart-rank strong {
  color: #ffe8a3;
  font-size: 1.12rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.chart-art {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, var(--cyan), var(--accent), var(--gold));
  background-size: cover;
  background-position: center;
  color: #06100b;
  font-weight: 950;
}

.chart-art span {
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.35);
}

.chart-song {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chart-song strong,
.chart-song span,
.chart-metric {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-song strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 950;
}

.chart-song span,
.chart-metric {
  color: var(--muted);
  font-size: 0.8rem;
}

.chart-status {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chart-status.local {
  color: #a7eec3;
  background: rgba(46, 204, 113, 0.16);
}

.chart-status.missing {
  color: #f1dd9a;
  background: rgba(212, 175, 55, 0.16);
}

.chart-status.possible {
  color: #c9f5ff;
  background: rgba(38, 215, 255, 0.14);
}

.chart-row-actions {
  display: grid;
  grid-template-columns: repeat(4, 38px);
  gap: 6px;
  justify-content: end;
}

.chart-row-actions .icon-tool.compact-icon-tool {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.chart-harvest-action {
  border-color: rgba(212, 175, 55, 0.42);
  color: #ffe8a3;
}

.chart-youtube-action {
  border-color: rgba(255, 255, 255, 0.32);
  color: #ff6b6b;
}

.chart-side-panel {
  display: grid;
  gap: 12px;
}

.chart-side-panel section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(24, 26, 32, 0.94);
  padding: 14px;
}

.chart-side-panel h3 {
  margin-bottom: 10px;
}

.chart-side-panel dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.chart-side-panel dt {
  color: #fff;
  font-weight: 900;
}

.chart-side-panel dd {
  margin: 0;
}

.chart-missing-preview {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.chart-missing-preview span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.chart-missing-preview strong {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(38, 215, 255, 0.1);
  color: #c9f5ff;
}

@media (max-width: 1180px) {
  .chart-layout,
  .chart-filter-grid {
    grid-template-columns: 1fr;
  }

  .chart-table-head,
  .chart-row {
    grid-template-columns: 28px 42px 54px minmax(150px, 1fr) 96px 104px;
  }

  .chart-table-head span:nth-child(7),
  .chart-row-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .chart-provider-grid,
  .chart-basket {
    grid-template-columns: 1fr;
  }

  .chart-table-head {
    display: none;
  }

  .chart-row {
    grid-template-columns: 32px 54px minmax(0, 1fr);
  }

  .chart-song,
  .chart-row-actions {
    grid-column: 1 / -1;
  }
}

/* Harvester view */
.harvester-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.4fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}
.harvester-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.78);
  padding: 20px;
}
.harvester-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.harvester-card .muted {
  font-size: 0.82rem;
  margin: 0 0 12px;
}
.harvester-card textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  background: #0c0d10;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.5;
}
.harvester-card textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.harvester-label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
}
.harvester-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.harvester-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  color: #dbe3ec;
}
.harvester-chip-dest {
  background: rgba(46, 204, 113, 0.08);
  border-color: rgba(46, 204, 113, 0.35);
  color: #cdf5dd;
}
.harvester-chip-x {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 2px;
  min-height: 0;
}
.harvester-chip-x:hover {
  color: var(--danger);
}
.harvester-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.harvester-site-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(38, 215, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(38, 215, 255, 0.08);
  color: #dff8ff;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}
.harvester-site-link:hover,
.harvester-site-link:focus-visible {
  border-color: rgba(38, 215, 255, 0.72);
  color: var(--ink);
}
.harvester-empty-inline {
  color: var(--muted);
  font-size: 0.85rem;
}
.harvester-empty-inline code {
  color: #cdf5dd;
}
.harvester-slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}
.harvester-slider-row input[type="range"] {
  width: 100%;
}
.harvester-thr-value {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-weight: 900;
  color: #cdf5dd;
  min-width: 44px;
  text-align: right;
}
.harvester-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--ink);
}
.harvester-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--cyan);
}
.harvester-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}
.harvester-spacer {
  flex: 1;
}
.harvester-counter {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
#harvesterRunBar {
  margin-bottom: 18px;
}

.harvester-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.harvester-stat {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}
.harvester-stat .n {
  font-size: 1.6rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.harvester-stat .l {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.harvester-stat.copied { border-color: rgba(46, 204, 113, 0.45); }
.harvester-stat.copied .n { color: var(--accent); }
.harvester-stat.already { border-color: rgba(38, 215, 255, 0.45); }
.harvester-stat.already .n { color: var(--cyan); }
.harvester-stat.low { border-color: rgba(245, 158, 11, 0.45); }
.harvester-stat.low .n { color: #f59e0b; }
.harvester-stat.missing { border-color: rgba(239, 68, 68, 0.45); }
.harvester-stat.missing .n { color: var(--danger); }
.harvester-stat.would { border-color: rgba(212, 175, 55, 0.45); }
.harvester-stat.would .n { color: var(--gold); }

.harvester-results {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.harvester-table {
  width: 100%;
  border-collapse: collapse;
}
.harvester-table th,
.harvester-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}
.harvester-table th {
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.harvester-table tr:last-child td {
  border-bottom: none;
}
.harvester-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
.harvester-release-table th:first-child,
.harvester-release-table td:first-child {
  width: 42px;
  text-align: center;
}
.harvester-release-check {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.harvester-torrent-want-row td {
  background: rgba(255, 255, 255, 0.035);
}
.harvester-torrent-want-row strong,
.harvester-torrent-want-row em {
  display: block;
}
.harvester-torrent-want-row em {
  color: var(--muted);
  font-style: normal;
  margin-top: 4px;
}
.harvester-want {
  font-weight: 600;
}
.harvester-want em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 500;
}
.harvester-matchcell strong {
  display: block;
}
.harvester-matchcell em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
}
.harvester-src {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.harvester-score {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.harvester-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.harvester-pill.copied { background: rgba(46, 204, 113, 0.16); color: #a7eec3; }
.harvester-pill.would { background: rgba(212, 175, 55, 0.16); color: #f1dd9a; }
.harvester-pill.already { background: rgba(38, 215, 255, 0.14); color: #c9f5ff; }
.harvester-pill.low { background: rgba(245, 158, 11, 0.16); color: #f5d289; }
.harvester-pill.missing { background: rgba(239, 68, 68, 0.16); color: #ffc1c1; }
.harvester-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.harvester-row-btn {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
}
.harvester-row-btn:hover:not(:disabled) {
  border-color: var(--cyan);
}
.harvester-row-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.harvester-row-btn.harvester-force {
  border-color: rgba(212, 175, 55, 0.55);
  color: #f1dd9a;
}
.harvester-empty {
  padding: 54px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.harvester-empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 1.1rem;
}

@media (max-width: 1100px) {
  .harvester-layout { grid-template-columns: 1fr; }
  .harvester-summary { grid-template-columns: repeat(2, 1fr); }
}

.harvester-mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(8, 10, 14, 0.6);
}
.harvester-mode-btn {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.harvester-mode-btn:hover { color: var(--ink); }
.harvester-mode-btn.active {
  background: rgba(38, 215, 255, 0.12);
  border-color: rgba(38, 215, 255, 0.45);
  color: #c9f5ff;
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.harvester-mode-panel[hidden] { display: none; }

.harvester-cfg {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}
.harvester-cfg-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.harvester-cfg-row:last-child { border-bottom: none; }
.harvester-cfg-row dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.harvester-cfg-row dd {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  color: #cdf5dd;
  word-break: break-all;
}
.harvester-cfg-status {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.harvester-cfg-status-ready {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #a7eec3;
}
.harvester-cfg-status-missing {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f5d289;
}

.harvester-jobs-title {
  margin: 22px 0 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.harvester-jobs {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.harvester-jobs .harvester-table { width: 100%; }

@media (max-width: 860px) {
  .pronunciation-layout,
  .pronunciation-rule {
    grid-template-columns: 1fr;
  }

  .pronunciation-row-actions {
    justify-content: flex-end;
  }
}
