:root {
  --blue-950: #08294d;
  --blue-900: #0d3a6a;
  --blue-800: #123f70;
  --blue-700: #1a528b;
  --blue-100: #dce9f6;
  --ink: #061c36;
  --muted: #607795;
  --line: #c5d5e6;
  --soft: #f6f9fc;
  --row: #edf7e9;
  --yellow: #ffe7a3;
  --green: #dff5df;
  --orange: #f5ad31;
  --red: #ffd9d3;
  --shadow: 0 14px 35px rgba(5, 24, 48, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #d7e2ee;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.player-body {
  display: grid;
  place-items: center;
  height: 100dvh;
  padding: 12px;
  overflow: hidden;
}

.phone-app {
  position: relative;
  width: min(100%, 440px);
  height: min(956px, calc(100dvh - 24px));
  max-height: 956px;
  background: #e8f0f8;
  border: 10px solid #101722;
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.app-head {
  background: var(--blue-900);
  color: #fff;
}

.brand-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px 14px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  color: var(--blue-900);
  display: grid;
  place-items: center;
  font-weight: 900;
  overflow: hidden;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy span {
  margin-top: 2px;
  color: #dcecff;
  font-size: 11px;
}

.head-btn {
  height: 34px;
  min-width: 72px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  font-size: 12px;
  font-weight: 900;
}

.app-content {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hero-card {
  background: var(--blue-900);
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(8, 36, 70, 0.18);
}

.cover,
.mini-cover,
.album-art,
.big-cover,
.home-playlist-cover {
  background: linear-gradient(135deg, #0d3a6a, #384ea0 58%, #ff9f36);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-logo {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: #07111e;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 231, 163, 0.18);
}

.home-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.cover {
  aspect-ratio: 1;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.cover-blue-orange {
  background:
    radial-gradient(circle at 30% 30%, #fff2a4 0 13%, transparent 14%),
    linear-gradient(135deg, #121827, #0d5b8f 58%, #f45b2f);
}

.cover-green-gold {
  background:
    radial-gradient(circle at 72% 23%, #dff5df 0 12%, transparent 13%),
    linear-gradient(135deg, #102c40, #4aa36d 58%, #f5ca59);
}

.cover-purple-red {
  background:
    radial-gradient(circle at 70% 70%, #c3e9ff 0 12%, transparent 13%),
    linear-gradient(135deg, #111827, #883366 58%, #f37746);
}

.cover-steel-pink {
  background:
    radial-gradient(circle at 33% 68%, #ffe7a3 0 13%, transparent 14%),
    linear-gradient(135deg, #193d68, #5f6f88 56%, #c45179);
}

.cover.has-image,
.mini-cover.has-image,
.album-art.has-image,
.big-cover.has-image,
.home-playlist-cover.has-image {
  background-color: #07111e;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-copy {
  min-width: 0;
  align-self: center;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.hero-copy p {
  margin: 7px 0 0;
  color: #dcecff;
  font-size: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  border: 1px solid #d4e2f1;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-900);
  min-height: 28px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}

.chip.dark {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.action-card {
  min-height: 64px;
  border: 1px solid #b9cbe1;
  border-radius: 11px;
  background: #fff;
  color: var(--blue-900);
  padding: 10px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(8, 36, 70, 0.08);
  font-weight: 900;
}

.action-card.primary {
  background: #fff8df;
  border-color: #e3b231;
  color: #422b00;
}

.action-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(8, 36, 70, 0.07);
}

.panel-head {
  min-height: 36px;
  padding: 10px 12px;
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 1px solid #d8e3ef;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.panel-head small {
  color: var(--muted);
  text-transform: none;
  font-size: 11px;
}

.row-list {
  display: grid;
}

.track-row,
.artist-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #dbe5ef;
  background: var(--row);
  color: var(--ink);
  text-align: left;
}

.track-row:nth-child(even),
.artist-row:nth-child(even) {
  background: #f5f8fc;
}

.track-row:last-child,
.artist-row:last-child {
  border-bottom: 0;
}

.mini-cover {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}

.row-copy {
  min-width: 0;
}

.row-copy strong,
.row-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.row-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.screen-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.view-toolbar {
  min-height: 38px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.view-toolbar strong {
  color: var(--blue-900);
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-title h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: 21px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

.segmented button {
  height: 34px;
  border: 1px solid #b9cbe1;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 900;
}

.segmented button.active {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #fff;
}

.sort-bar {
  min-height: 38px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
}

.sort-bar label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: var(--blue-900);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sort-bar select {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid #b9cbe1;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 5px 8px;
  font-weight: 800;
}

.sort-bar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.az-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 0 8px;
  margin-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.az-row button {
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  border: 1px solid #b9cbe1;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-900);
  font-size: 11px;
  font-weight: 900;
}

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

.album-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(8, 36, 70, 0.07);
  text-align: left;
  padding: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 58px;
}

.album-art {
  width: 54px;
  height: 100%;
  min-height: 58px;
}

.album-info {
  min-height: 58px;
  padding: 6px 7px;
}

.album-info strong,
.album-info span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.album-info strong {
  font-size: 11px;
  line-height: 1.15;
}

.compact-actions {
  margin-bottom: 10px;
}

.compact-actions .action-card {
  min-height: 50px;
  padding: 8px 9px;
}

.searchbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-bottom: 10px;
}

.searchbox input {
  height: 42px;
  border: 1px solid #b9cbe1;
  border-radius: 11px;
  padding: 9px 11px;
  outline: none;
}

.searchbox button,
.small-btn {
  border: 1px solid var(--blue-900);
  border-radius: 11px;
  background: var(--blue-900);
  color: #fff;
  min-width: 72px;
  font-weight: 900;
}

.small-btn.ghost {
  height: 34px;
  min-width: 64px;
  background: #fff;
  color: var(--blue-900);
  border-color: #b9cbe1;
  font-size: 12px;
}

.folder-nav-card {
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

.folder-path span,
.folder-path strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-path span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.folder-path strong {
  margin-top: 2px;
  color: var(--blue-900);
  font-size: 14px;
}

.folder-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.folder-nav-btn {
  min-height: 38px;
  border: 1px solid var(--blue-900);
  border-radius: 12px;
  background: var(--blue-900);
  color: #fff;
  font-weight: 900;
}

.folder-nav-btn.root {
  background: var(--yellow);
  border-color: var(--orange);
  color: #412600;
}

.folder-nav-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.folder-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.folder-crumb,
.folder-sep {
  flex: 0 0 auto;
}

.folder-crumb {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f9fc;
  color: var(--blue-900);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.folder-crumb.active {
  border-color: var(--orange);
  background: var(--yellow);
  color: #412600;
}

.folder-sep {
  color: var(--muted);
  font-weight: 900;
}

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

.filter-grid label {
  display: grid;
  gap: 4px;
  color: var(--blue-900);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-grid input,
.filter-grid select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 8px;
}

.now-screen {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 14px;
}

.big-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.track-heading h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: 25px;
  line-height: 1.1;
}

.track-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}

.progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.crossfade-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #b9cbe1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.crossfade-setting-label strong,
.crossfade-setting-label small {
  display: block;
}

.crossfade-setting-label strong {
  color: var(--blue-900);
  font-size: 13px;
}

.crossfade-setting-label small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.crossfade-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.crossfade-options button {
  min-width: 0;
  padding: 0 6px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #d7e3f0;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-700), var(--orange));
  border-radius: inherit;
}

.seek-range {
  --seek-pct: 0%;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  accent-color: var(--orange);
}

[data-action="back15"],
[data-action="forward15"] {
  touch-action: manipulation;
}

.seek-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange) 0 var(--seek-pct), #d7e3f0 var(--seek-pct) 100%);
}

.seek-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.seek-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #d7e3f0;
}

.seek-range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
}

.seek-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  background: #fff;
}

.audio-message,
.empty-state {
  border: 1px solid #e3b231;
  border-radius: 8px;
  background: #fff8df;
  color: #422b00;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
}

.play-controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.round-btn {
  height: 48px;
  border: 1px solid #b9cbe1;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-900);
  font-weight: 900;
  font-size: 11px;
}

.round-btn.main {
  background: var(--blue-900);
  color: #fff;
}

.mini-player {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 7px 9px;
  align-items: center;
}

.mini-copy {
  min-width: 0;
}

.mini-copy strong,
.mini-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.mini-controls {
  display: grid;
  grid-template-columns: 48px 58px 48px;
  align-items: center;
  gap: 5px;
}

.mini-control {
  width: 48px;
  height: 46px;
  padding: 0;
  border: 1px solid #b9cbe1;
  border-radius: 12px;
  background: #fff;
  color: var(--blue-900);
  display: grid;
  place-items: center;
}

.mini-control.mini-play {
  width: 58px;
  height: 58px;
  border-color: var(--blue-900);
  background: var(--blue-900);
  border-radius: 50%;
}

.mini-control img {
  display: block;
  width: 30px;
  height: 30px;
}

.mini-control.mini-transport img {
  width: 34px;
  height: 34px;
}

.mini-control.mini-play img {
  width: 31px;
  height: 31px;
}

.mini-control:disabled {
  opacity: 0.45;
}

.bottom-nav {
  min-height: 72px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
}

@media (max-width: 520px) {
  .player-body {
    padding: 0;
    background: #101722;
  }

  .phone-app {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .brand-row {
    padding-bottom: 10px;
  }

  .mini-controls {
    grid-template-columns: 44px 54px 44px;
    gap: 4px;
  }

  .mini-control {
    width: 44px;
    height: 42px;
  }

  .mini-control.mini-play {
    width: 54px;
    height: 54px;
  }
}

/* V2.1B: remove the simulated phone status row and divide its 44px gain
   between a 22px taller Home hero and 22px additional content space. */
.player-body .cmp-home-hero {
  min-height: 98px;
}

.player-body .cmp-hero-logo {
  max-width: 96px;
}

.track-rating-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #315f89;
  border-radius: 16px;
  background: #0b1d30;
}

.track-rating-card > div:first-child {
  display: grid;
  gap: 2px;
}

.track-rating-card small {
  color: #a9bed5;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-stars button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #8b650f;
  border-radius: 50%;
  background: #201b12;
  color: #74613a;
  font-size: 19px;
  line-height: 1;
}

.rating-stars button.active {
  border-color: #f4b02c;
  background: #38280d;
  color: #ffc044;
  text-shadow: 0 1px 5px rgba(255, 192, 68, 0.48);
}

.rating-stars .rating-clear {
  border-color: #315f89;
  background: #0b1d30;
  color: #b7c9df;
  font-size: 18px;
}

.playlist-picker .track-sheet-card {
  height: 90%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.playlist-picker .track-sheet-head,
.playlist-picker .playlist-create-inline {
  flex: 0 0 auto;
}

.playlist-picker-list {
  display: grid;
  gap: 7px;
  flex: 1 1 auto;
  min-height: 0;
  grid-auto-rows: min-content;
  align-content: start;
  overflow-y: auto;
  padding: 4px 0;
}

.playlist-picker-list > button {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #315f89;
  border-radius: 12px;
  background: #0b1d30;
  color: #fff;
  text-align: left;
}

.playlist-picker-cover {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.playlist-picker-cover.has-image {
  background-color: #07111e;
  background-size: contain !important;
}

.playlist-picker-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.playlist-picker-confirmation {
  overflow-y: auto;
  min-height: 0;
}

.playlist-picker-list small {
  color: #a9bed5;
}

.playlist-create-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.playlist-create-inline input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #315f89;
  border-radius: 12px;
  background: #07121f;
  color: #fff;
  font-size: 16px;
}

.playlist-create-inline button {
  border: 0;
  border-radius: 12px;
  padding: 10px 13px;
  background: #f4b02c;
  color: #07121f;
  font-weight: 800;
}

.playlist-picker button {
  touch-action: manipulation;
}

.playlist-picker-confirmation {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(74, 119, 165, 0.72);
  border-radius: 13px;
  background: #0b1d30;
}

.playlist-picker-confirmation > strong {
  color: #fff;
  font-size: 16px;
}

.playlist-picker-confirmation > small {
  color: #a9bed5;
}

.playlist-picker-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 5px;
}

.playlist-picker-confirm-actions button {
  min-height: 44px;
  border: 1px solid #315f89;
  border-radius: 11px;
  background: #0d2035;
  color: #fff;
  font-weight: 900;
}

.playlist-picker-confirm-actions button.primary {
  border-color: #f4b02c;
  background: linear-gradient(180deg, #ffd36d, #f1a51d);
  color: #120d06;
}

.player-toast {
  position: absolute;
  z-index: 80;
  right: 14px;
  bottom: 150px;
  left: 14px;
  padding: 11px 14px;
  border: 1px solid #f4b02c;
  border-radius: 14px;
  background: #10263d;
  color: #ffe7a3;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  text-align: center;
  font-weight: 750;
}

.player-home-slot-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #315f89;
  border-radius: 12px;
  background: #0b1d30;
}

.player-home-slot-card > strong {
  color: #ffe09a;
}

.player-home-slot-card input[type="text"] {
  width: 100%;
}

.player-home-folder-summary {
  min-height: 36px;
  color: #a9bed5;
  overflow-wrap: anywhere;
}

.player-home-slot-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.player-home-order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-home-order-actions .admin-btn {
  min-width: 0;
  padding: 7px 10px;
}

.player-home-genre-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #315f89;
  border-radius: 12px;
  background: #0b1d30;
}

.player-home-genre-card label {
  display: grid;
  gap: 6px;
}

.player-home-genre-card [data-player-home-genre-position] {
  color: #ffe09a;
  font-weight: 800;
}

.player-home-folder-picker .folder-picker-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.player-home-folder-picker .folder-picker-row button {
  padding: 7px 10px;
}

@media (max-width: 520px) {
  .player-body .app-content {
    padding-top: calc(12px + env(safe-area-inset-top));
  }

  .player-body .cmp-home-hero {
    min-height: 106px;
  }

  .player-body .cmp-hero-logo {
    max-width: 90px;
  }

  .track-rating-card {
    grid-template-columns: 1fr;
  }

  .rating-stars {
    justify-content: space-between;
  }
}

.nav-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 11px;
  display: grid;
  place-items: center;
  gap: 2px;
  font-weight: 900;
  font-size: 10px;
}

.nav-btn.active {
  color: var(--blue-900);
  background: #e9f2fc;
}

.nav-btn span {
  width: 19px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid currentColor;
  display: block;
}

.admin-body {
  min-height: 100dvh;
  padding: 12px;
  background: #d7e2ee;
}

.admin-shell {
  max-width: 1500px;
  margin: 0 auto;
}

.admin-top {
  min-height: 68px;
  background: var(--blue-900);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.admin-top strong,
.admin-top span {
  display: block;
}

.admin-top strong {
  font-size: 20px;
}

.admin-top span {
  margin-top: 3px;
  color: #dcecff;
  font-size: 12px;
}

.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-badges span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  padding: 0 10px;
  color: #fff;
  font-weight: 900;
}

.admin-login {
  min-height: 620px;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 8px;
  color: var(--blue-900);
}

.login-card p {
  color: var(--muted);
  line-height: 1.45;
}

.login-card .login-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: #9d1c10;
  font-weight: 900;
}

.login-card label {
  display: block;
  margin-top: 12px;
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card input {
  width: 100%;
  height: 40px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.login-card button {
  width: 100%;
  height: 42px;
  margin-top: 16px;
  border: 1px solid var(--blue-900);
  border-radius: 8px;
  background: var(--blue-900);
  color: #fff;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.player-lock {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 28px 18px;
  text-align: center;
  color: #f6fbff;
}

.player-lock img {
  width: min(210px, 58vw);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

.player-lock h1 {
  margin: 0;
  color: #ffd36b;
  font-size: 28px;
  line-height: 1.05;
}

.player-lock p {
  max-width: 340px;
  margin: 0;
  color: #a8c2df;
  line-height: 1.45;
}

.player-pin-form {
  width: min(100%, 320px);
  display: grid;
  gap: 9px;
}

.player-pin-form label {
  text-align: left;
  color: #a8c2df;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-pin-form input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(244, 176, 44, 0.48);
  border-radius: 10px;
  background: rgba(5, 9, 18, 0.86);
  color: #fff;
  padding: 8px 12px;
  font-size: 18px;
}

.player-pin-form button {
  height: 44px;
  border: 1px solid #f4b02c;
  border-radius: 999px;
  background: #f4b02c;
  color: #130d05;
  font-weight: 900;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 10px;
}

.admin-side,
.admin-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(8, 36, 70, 0.07);
}

.admin-side {
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 7px;
}

.admin-nav {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-900);
  text-align: left;
  padding: 0 10px;
  font-weight: 900;
}

.admin-nav.active {
  background: var(--blue-900);
  color: #fff;
  border-color: var(--blue-900);
}

.admin-main {
  min-height: 720px;
  padding: 12px;
}

.admin-hero,
.section-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-hero h1,
.section-head h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: 20px;
}

.admin-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.admin-btn {
  min-height: 34px;
  border: 1px solid #b9cbe1;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-900);
  padding: 0 11px;
  font-weight: 900;
}

.admin-btn.primary {
  background: #174c7e;
  border-color: #79a9cf;
  color: #fff;
}

.cmp-overview-stack {
  display: grid;
  gap: 16px;
}

.cmp-overview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.cmp-overview-panel--actions {
  background: #eef5fb;
  border-color: #9bbad4;
}

.cmp-overview-panel--direct {
  background: #f7f9fc;
  border-color: #c4d2df;
}

.cmp-overview-panel--status {
  background: #e7eef5;
  border-color: #7798b4;
  margin-top: 4px;
}

.cmp-overview-panel h2 {
  margin: 0 0 10px;
  color: var(--blue-900);
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cmp-overview-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.cmp-overview-actions .admin-btn {
  min-height: 64px;
  background: #2a5b80;
  border-color: #79a9cf;
  color: #fff;
  font-size: 14px;
}

.cmp-overview-direct-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.cmp-overview-direct-actions .admin-btn {
  min-height: 48px;
  background: #eef3f7;
  border-color: #89a5bc;
  color: #173a58;
  font-size: 13px;
}

.cmp-overview-status-line {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.cmp-overview-configuration summary {
  cursor: pointer;
  color: var(--blue-900);
  font-weight: 900;
}

.cmp-overview-configuration .admin-actions {
  margin-top: 10px;
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .cmp-overview-actions { grid-template-columns: 1fr; }
  .cmp-overview-direct-actions { grid-template-columns: 1fr; }
}

.admin-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 9px;
}

.admin-form label {
  display: grid;
  gap: 4px;
  color: var(--blue-900);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-form .wide {
  grid-column: span 2;
}

.admin-form input,
.admin-form select {
  height: 36px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 7px 9px;
  text-transform: none;
  font-weight: 700;
}

.admin-form button {
  align-self: end;
}

.index-subpath-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.folder-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 18, 35, 0.58);
}

.folder-picker-card {
  width: min(640px, 100%);
  max-height: min(720px, calc(100dvh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.folder-picker-head,
.folder-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
}

.folder-picker-head {
  color: #fff;
  background: var(--blue-900);
  font-size: 16px;
}

.folder-picker-head button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-weight: 900;
}

.folder-picker-card > p {
  margin: 0;
  padding: 12px;
  color: var(--blue-900);
  font-weight: 800;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
}

.folder-picker-actions {
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
}

.folder-picker-list {
  display: grid;
}

.folder-picker-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #dbe5ef;
  background: #f7fbff;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.folder-picker-row:hover {
  background: #e8f2fd;
}

.folder-picker-row small {
  color: var(--blue-700);
}

.folder-picker-empty {
  padding: 22px 12px;
  color: var(--muted);
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.metric-grid.overview-metrics {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.media-track-counts {
  margin-bottom: 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.media-track-counts-title {
  padding: 10px 12px;
  background: var(--blue-900);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.media-track-counts-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) repeat(3, minmax(90px, 0.45fr));
  min-width: 590px;
  font-variant-numeric: tabular-nums;
}

.media-track-counts-grid > div {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.media-track-counts-grid .media-track-counts-head {
  border-top: 0;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.media-track-counts-grid .numeric {
  text-align: right;
}

.media-track-counts-grid .total {
  color: var(--blue-900);
  font-weight: 900;
}

.media-track-counts-note {
  padding: 0 12px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.media-track-counts-note.error {
  color: var(--danger);
}

.media-track-counts-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.media-track-counts-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-grid.audit-metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.audit-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.audit-search-form {
  display: flex;
  gap: 8px;
  min-width: min(460px, 100%);
}

.audit-search-form input {
  flex: 1;
  min-width: 180px;
}

.lexicon-audit-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lexicon-audit-table {
  min-width: 1080px;
}

.lexicon-audit-head,
.lexicon-audit-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) 120px minmax(170px, 0.9fr) minmax(170px, 0.9fr) minmax(250px, 1.2fr);
  gap: 10px;
  align-items: start;
  padding: 9px 11px;
}

.lexicon-audit-head {
  background: var(--blue-900);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lexicon-audit-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #d8e3ef;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}

.lexicon-audit-row:nth-child(odd) {
  background: #f5f8fc;
}

.lexicon-audit-row.error {
  border-left: 4px solid var(--danger);
}

.lexicon-audit-row:hover,
.lexicon-audit-row:focus-visible {
  background: #e8f2fc;
  outline: none;
}

.lexicon-audit-row.selected {
  background: #d9ebfb;
  box-shadow: inset 4px 0 0 var(--yellow);
}

.lexicon-audit-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lexicon-audit-detail-card {
  margin-top: 12px;
}

.lexicon-audit-detail-card .kv span:last-child {
  overflow-wrap: anywhere;
  text-align: left;
}

.audit-page-actions {
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.audit-page-actions span {
  min-width: 150px;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 900px) {
  .metric-grid.audit-metrics {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
  .audit-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .audit-search-form {
    min-width: 0;
  }
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 5px;
  color: var(--blue-900);
  font-size: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

.admin-grid.two {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  overflow: hidden;
}

.admin-card h2 {
  margin: 0;
  padding: 10px 12px;
  background: var(--blue-900);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.admin-card .body {
  padding: 12px;
}

.kv {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #d8e3ef;
}

.kv:last-child {
  border-bottom: 0;
}

.kv span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.kv span:last-child {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 70px 110px 110px 120px minmax(170px, 1fr) minmax(180px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
}

.table-head {
  background: var(--blue-900);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.table-row {
  border-bottom: 1px solid #d8e3ef;
  background: var(--row);
}

.table-row:nth-child(odd) {
  background: #f5f8fc;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-note {
  margin: 10px 0 0;
  border: 1px solid #e3b231;
  border-radius: 8px;
  background: #fff8df;
  color: #422b00;
  padding: 10px 12px;
  font-weight: 800;
}

.admin-command-block {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-command-block code {
  display: block;
  padding: 9px 10px;
  border: 1px solid #bfd0e5;
  border-radius: 6px;
  background: #f5f8fc;
  color: var(--blue-900);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-progress {
  margin-bottom: 10px;
}

.admin-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-progress-bar {
  height: 12px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid #b9cbe1;
  border-radius: 999px;
  background: #e6eff8;
}

.admin-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-700), var(--orange));
  transition: width 220ms ease;
}

.admin-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid #e3b231;
  border-radius: 8px;
  background: #fff8df;
  color: #422b00;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ok {
  color: #0c6b2f;
}

.warn {
  color: #8a5a00;
}

.bad {
  color: #9d1c10;
}

@media (max-width: 760px) {
  .player-body {
    padding: 0;
  }

  .phone-app {
    width: 100%;
    min-height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .admin-top,
  .admin-hero,
  .section-head,
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .admin-badges {
    justify-content: flex-start;
  }

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

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

  .admin-grid.two,
  .metric-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-form .wide {
    grid-column: auto;
  }

  .index-subpath-control {
    grid-template-columns: 1fr;
  }

  .table-head,
  .table-row {
    grid-template-columns: 70px minmax(90px, 1fr) minmax(90px, 1fr);
  }

  .table-head span:nth-child(4),
  .table-head span:nth-child(5),
  .table-row span:nth-child(4),
  .table-row span:nth-child(5) {
    display: none;
  }
}

/* CMP Player V1.3D dark iPhone skin */
.player-body {
  color: #f6fbff;
  background:
    radial-gradient(circle at 20% 0%, rgba(219, 162, 40, 0.14), transparent 28%),
    linear-gradient(180deg, #090d12 0%, #050912 100%);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.player-body .phone-app {
  background: #050912;
  border-color: #050912;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.player-body .app-head {
  background: #050912;
  color: #fff;
  border-bottom: 1px solid rgba(93, 133, 174, 0.22);
}

.player-body .brand-row {
  display: none;
}

.player-body .app-content {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(18, 49, 80, 0.22) 0, transparent 180px),
    #050912;
}

.player-body .cmp-home-hero {
  position: relative;
  min-height: 142px;
  grid-template-columns: 42% minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px 14px 10px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, rgba(229, 169, 43, 0.17) 0%, rgba(229, 169, 43, 0.10) 26%, rgba(17, 45, 73, 0.94) 54%, rgba(8, 18, 31, 0.96) 100%),
    radial-gradient(circle at 18% 52%, rgba(242, 190, 72, 0.25), transparent 34%);
}

.player-body .cmp-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0 42%, rgba(7, 12, 20, 0.12) 55%, transparent 100%);
}

.player-body .cmp-hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 142px;
  justify-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.player-body .cmp-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(222, 151, 25, 0.34));
}

.player-body .cmp-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.player-body .cmp-title {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #f4b02c;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 #ffe59b,
    0 3px 0 #8f5b09,
    0 9px 18px rgba(0, 0, 0, 0.42);
}

.player-body .cmp-title span:first-child {
  color: #ffe7a3;
}

.player-body .cmp-hero-copy small {
  display: block;
  margin-top: 10px;
  color: #b7c9df;
  font-size: 12px;
  font-weight: 800;
}

.player-body .hero-note {
  position: absolute;
  top: -22px;
  right: 8px;
  color: #f1b12d;
  font-size: 22px;
  text-shadow: 0 2px 0 #6e4205, 0 0 18px rgba(250, 190, 70, 0.6);
}

.player-body .home-strip {
  margin-bottom: 12px;
}

.player-body .panel-head.clean {
  min-height: 26px;
  padding: 0 0 8px;
  color: #cfe0f5;
  border: 0;
  background: transparent;
  font-size: 13px;
  letter-spacing: 0;
}

.player-body .link-btn {
  border: 0;
  background: transparent;
  color: #f4b02c;
  font-size: 12px;
  font-weight: 850;
}

.player-body .home-album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.player-body .home-folder-grid,
.player-body .home-genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
  padding-bottom: 0;
}

.player-body .home-playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-body .home-folder-tile,
.player-body .home-playlist-tile {
  min-width: 0;
  min-height: 54px;
  border: 1px solid rgba(74, 119, 165, 0.68);
  border-radius: 13px;
  background:
    radial-gradient(circle at 18% 15%, rgba(244, 176, 44, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(16, 42, 70, 0.98), rgba(7, 17, 29, 0.98));
  color: #f6fbff;
  padding: 8px 9px;
  display: grid;
  align-content: center;
  gap: 3px;
  text-align: left;
  box-shadow: inset 2px 0 0 rgba(244, 176, 44, 0.48);
}

.player-body .home-playlist-tile {
  min-height: 58px;
  background:
    radial-gradient(circle at 20% 5%, rgba(74, 119, 165, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(12, 31, 53, 0.98), rgba(7, 16, 27, 0.98));
}

.player-body .home-folder-tile strong,
.player-body .home-folder-tile span,
.player-body .home-playlist-tile strong,
.player-body .home-playlist-tile span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .home-folder-tile strong,
.player-body .home-playlist-tile strong {
  color: #ffe7a3;
  font-size: 12px;
  line-height: 1.1;
}

.player-body .home-folder-tile span,
.player-body .home-playlist-tile span {
  color: #a8c2df;
  font-size: 10px;
  font-weight: 800;
}

.player-body .home-album-tile {
  min-height: 76px;
  border: 1px solid rgba(74, 119, 165, 0.72);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(19, 47, 77, 0.96), rgba(8, 19, 32, 0.98));
  color: #fff;
  padding: 9px;
  text-align: left;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 9px;
  box-shadow: inset 3px 0 0 rgba(244, 176, 44, 0.52);
}

.player-body .home-album-tile .mini-cover {
  grid-row: 1 / 3;
}

.player-body .home-album-tile strong,
.player-body .home-album-tile span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .home-album-tile strong {
  align-self: end;
  color: #ffe7a3;
  font-size: 14px;
}

.player-body .home-album-tile span {
  color: #a8c2df;
  font-size: 11px;
}

.player-body .genre-row,
.player-body .library-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.player-body .home-genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
  padding-bottom: 0;
}

.player-body .genre-pill {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(244, 176, 44, 0.55);
  border-radius: 999px;
  background: rgba(244, 176, 44, 0.12);
  color: #ffe7a3;
  padding: 0 9px;
  font-weight: 850;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .home-genre-grid .genre-pill {
  width: 100%;
  justify-content: center;
  font-size: 11px;
}

.player-body .muted-inline {
  color: #8da4bf;
  font-size: 12px;
}

.player-body .panel,
.player-body .search-panel {
  background: rgba(10, 22, 37, 0.96);
  border-color: rgba(74, 119, 165, 0.48);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.player-body .search-panel {
  border: 1px solid rgba(74, 119, 165, 0.48);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}

.player-body .playlist-add-panel {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(74, 119, 165, 0.62);
  border-radius: 14px;
  background: rgba(10, 22, 37, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.player-body .playlist-add-head,
.player-body .playlist-default-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.player-body .playlist-add-head span,
.player-body .playlist-add-head strong,
.player-body .playlist-add-head small {
  display: block;
  min-width: 0;
}

.player-body .playlist-add-head strong {
  color: #f6fbff;
  font-size: 15px;
}

.player-body .playlist-add-head small {
  margin-top: 2px;
  overflow: hidden;
  color: #9db4cf;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .playlist-add-head button,
.player-body .playlist-default-sort button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(74, 119, 165, 0.72);
  border-radius: 10px;
  background: #0d2035;
  color: #f6fbff;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.player-body .playlist-add-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.player-body .playlist-add-form label {
  display: grid;
  gap: 4px;
  color: #f6fbff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-body .playlist-add-form input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(74, 119, 165, 0.72);
  border-radius: 10px;
  background: #0a1625;
  color: #f6fbff;
  padding: 8px 36px 8px 8px;
}

.player-body .playlist-add-input {
  position: relative;
  display: block;
}

.player-body .playlist-add-input button {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a8c2df;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.player-body .playlist-add-form > button,
.player-body .playlist-add-confirm {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 1px solid #f4b02c;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffd36d, #f1a51d);
  color: #120d06;
  font-weight: 900;
}

.player-body .playlist-add-summary {
  margin: 8px 0;
  color: #9db4cf;
  font-size: 11px;
  font-weight: 800;
}

.player-body .playlist-add-sticky-actions {
  position: sticky;
  top: 6px;
  z-index: 4;
  display: grid;
  gap: 5px;
  margin: 0 0 8px;
  padding: 5px;
  border: 1px solid rgba(244, 176, 44, 0.55);
  border-radius: 12px;
  background: rgba(10, 22, 37, 0.98);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.player-body .playlist-add-sticky-actions small {
  color: #ffe7a3;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.player-body .playlist-add-results {
  max-height: min(42vh, 420px);
  overflow-y: auto;
  border: 1px solid rgba(74, 119, 165, 0.35);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.player-body .playlist-add-result {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid rgba(74, 119, 165, 0.28);
  background: #091728;
  color: #f6fbff;
  padding: 6px 9px;
  text-align: left;
}

.player-body .playlist-add-result:last-child {
  border-bottom: 0;
}

.player-body .playlist-add-result.selected {
  background: rgba(244, 176, 44, 0.16);
  box-shadow: inset 3px 0 #f4b02c;
}

.player-body .playlist-add-result.already-added {
  opacity: 0.52;
}

.player-body .playlist-add-result .mini-cover {
  width: 44px;
  height: 44px;
}

.player-body .playlist-add-result span,
.player-body .playlist-add-result strong,
.player-body .playlist-add-result small {
  display: block;
  min-width: 0;
}

.player-body .playlist-add-result strong,
.player-body .playlist-add-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .playlist-add-result strong {
  font-size: 12px;
}

.player-body .playlist-add-result small {
  margin-top: 3px;
  color: #9db4cf;
  font-size: 10px;
}

.player-body .playlist-add-result b {
  color: #ffe7a3;
  font-size: 11px;
}

.player-body .playlist-add-confirm {
  width: 100%;
  margin: 0;
}

.player-body .playlist-add-confirm:disabled,
.player-body .playlist-add-form button:disabled,
.player-body .playlist-default-sort button:disabled,
.player-body .playlist-order-toolbar button:disabled {
  opacity: 0.45;
}

.player-body .playlist-default-sort {
  min-height: 38px;
  margin: -2px 0 8px;
  padding: 5px 7px;
  border: 1px solid rgba(74, 119, 165, 0.35);
  border-radius: 10px;
  background: rgba(13, 32, 53, 0.7);
  color: #9db4cf;
  font-size: 10px;
  font-weight: 800;
}

.player-body .playlist-default-sort strong {
  color: #ffe7a3;
}

.player-body .playlist-order-toolbar {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -2px 0 8px;
  padding: 5px 7px;
  border: 1px solid rgba(74, 119, 165, 0.35);
  border-radius: 10px;
  background: rgba(13, 32, 53, 0.7);
  color: #9db4cf;
  font-size: 10px;
  font-weight: 800;
}

.player-body .playlist-order-toolbar > div {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.player-body .playlist-order-toolbar button {
  min-height: 32px;
  border: 1px solid rgba(74, 119, 165, 0.72);
  border-radius: 10px;
  background: #0d2035;
  color: #f6fbff;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 900;
}

.player-body .playlist-order-toolbar button:first-child {
  border-color: #f4b02c;
}

.player-body .playlist-order-list {
  border-top: 1px solid rgba(74, 119, 165, 0.38);
}

.player-body .playlist-order-row .queue-row-main {
  grid-template-columns: 30px minmax(0, 1fr);
}

.player-body .panel-head {
  color: #d9e8fb;
  border-color: rgba(74, 119, 165, 0.35);
  background: rgba(15, 38, 65, 0.88);
}

.player-body .panel-head small,
.player-body .row-copy span,
.player-body .row-meta,
.player-body .track-heading p,
.player-body .mini-copy span {
  color: #a8c2df;
}

.player-body .queue-panel-head {
  align-items: center;
}

.player-body .queue-panel-head > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.player-body .queue-clear-btn {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(244, 176, 44, 0.55);
  border-radius: 8px;
  background: rgba(244, 176, 44, 0.12);
  color: #ffe3a0;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-body .track-row,
.player-body .artist-row,
.player-body .home-track-row {
  background: rgba(12, 28, 47, 0.98);
  border-color: rgba(74, 119, 165, 0.32);
  color: #f6fbff;
}

.player-body .track-row:nth-child(even),
.player-body .artist-row:nth-child(even),
.player-body .home-track-row:nth-child(even) {
  background: rgba(9, 22, 37, 0.98);
}

.player-body .home-track-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(74, 119, 165, 0.32);
  text-align: left;
}

.player-body .mini-cover {
  border: 1px solid rgba(244, 176, 44, 0.38);
  background-color: #07111e;
}

.player-body .screen-title h1,
.player-body .view-toolbar strong,
.player-body .sort-bar label,
.player-body .filter-grid label,
.player-body .track-heading h1 {
  color: #f6fbff;
}

.player-body .sort-bar {
  grid-template-columns: minmax(0, 1fr) 52px auto auto;
  margin: 6px 0 10px;
}

.player-body .sort-bar select,
.player-body .filter-grid input,
.player-body .filter-grid select,
.player-body .searchbox input {
  background: #0a1625;
  border-color: rgba(74, 119, 165, 0.72);
  color: #f6fbff;
}

.player-body .sort-dir-btn {
  width: 52px;
  height: 34px;
  border: 1px solid rgba(244, 176, 44, 0.55);
  border-radius: 10px;
  background: rgba(244, 176, 44, 0.12);
  color: #ffe7a3;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.player-body .sort-dir-btn:disabled {
  opacity: 0.45;
}

.player-body .searchbox {
  position: sticky;
  top: 0;
  z-index: 12;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin: 0 0 10px;
  padding: 6px;
  border: 1px solid rgba(74, 119, 165, 0.62);
  border-radius: 12px;
  background: rgba(5, 14, 25, 0.98);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.player-body .searchbox button {
  min-width: 58px;
  padding: 0 10px;
}

.player-body .small-btn.ghost,
.player-body .searchbox button,
.player-body .action-card,
.player-body .round-btn,
.player-body .mini-control,
.player-body .segmented button {
  border-color: rgba(74, 119, 165, 0.72);
  background: #0d2035;
  color: #f6fbff;
}

.player-body .action-card {
  min-height: 52px;
  border-radius: 14px;
  box-shadow: none;
}

.player-body .action-card.primary,
.player-body .round-btn.main,
.player-body .mini-control.mini-play,
.player-body .segmented button.active {
  border-color: #f4b02c;
  background: linear-gradient(180deg, #ffd36d, #f1a51d);
  color: #120d06;
}

.player-body .mini-control.mini-transport {
  background: transparent;
  border-color: transparent;
}

.player-body .action-card small {
  color: #a8c2df;
}

.player-body .chip.dark,
.player-body .chip {
  border-color: rgba(244, 176, 44, 0.45);
  background: rgba(244, 176, 44, 0.12);
  color: #ffe7a3;
}

.player-body .folder-nav-card {
  border-color: rgba(74, 119, 165, 0.52);
  background:
    linear-gradient(135deg, rgba(17, 43, 72, 0.96), rgba(8, 18, 31, 0.98));
  box-shadow: inset 3px 0 0 rgba(244, 176, 44, 0.42);
}

.player-body .folder-path span,
.player-body .folder-sep {
  color: #8da4bf;
}

.player-body .folder-path strong {
  color: #f6fbff;
}

.player-body .folder-nav-btn {
  border-color: rgba(74, 119, 165, 0.72);
  background: #0d2035;
  color: #f6fbff;
}

.player-body .folder-nav-btn.root {
  border-color: #f4b02c;
  background: linear-gradient(180deg, #ffd36d, #f1a51d);
  color: #120d06;
}

.player-body .folder-crumb {
  border-color: rgba(74, 119, 165, 0.6);
  background: rgba(6, 18, 31, 0.88);
  color: #cfe0f5;
}

.player-body .folder-crumb.active {
  border-color: rgba(244, 176, 44, 0.8);
  background: rgba(244, 176, 44, 0.16);
  color: #ffe7a3;
}

.player-body .album-card {
  background: rgba(12, 28, 47, 0.98);
  border-color: rgba(74, 119, 165, 0.48);
}

.player-body .album-info strong {
  color: #f6fbff;
}

.player-body .album-info span {
  color: #a8c2df;
}

.player-body .now-screen {
  min-height: auto;
  align-content: start;
}

.player-body .crossfade-setting {
  border-color: rgba(74, 119, 165, 0.48);
  background: rgba(10, 22, 37, 0.95);
}

.player-body .crossfade-setting-label strong {
  color: #f6fbff;
}

.player-body .crossfade-setting-label small {
  color: #8da4bf;
}

.player-body .big-cover {
  width: min(74%, 280px);
  justify-self: center;
  border-radius: 20px;
}

.player-body .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-body .detail-grid > div,
.player-body .detail-grid > button {
  min-width: 0;
  border: 1px solid rgba(74, 119, 165, 0.42);
  border-radius: 12px;
  background: rgba(10, 22, 37, 0.95);
  padding: 8px 9px;
}

.player-body .detail-grid > button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.player-body .detail-grid > button:focus-visible {
  border-color: #f4b02c;
  outline: 2px solid rgba(244, 176, 44, 0.34);
  outline-offset: 1px;
}

.player-body .detail-grid span,
.player-body .detail-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .detail-grid span {
  color: #8da4bf;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-body .detail-grid strong {
  margin-top: 3px;
  color: #f6fbff;
  font-size: 12px;
}

.player-body .mini-player {
  background: rgba(7, 16, 27, 0.98);
  border-color: rgba(74, 119, 165, 0.42);
}

.player-body .seek-range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #f4b02c 0 var(--seek-pct), rgba(74, 119, 165, 0.45) var(--seek-pct) 100%);
}

.player-body .seek-range::-moz-range-track {
  background: rgba(74, 119, 165, 0.45);
}

.player-body .bottom-nav {
  min-height: 58px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #050912;
  border-color: rgba(74, 119, 165, 0.42);
}

.player-body .nav-btn {
  color: #a8c2df;
  min-height: 42px;
  border: 1px solid rgba(74, 119, 165, 0.58);
  border-radius: 999px;
  background: rgba(10, 24, 40, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  padding: 0 6px;
  box-shadow: none;
}

.player-body .nav-btn.active {
  color: #120d06;
  border-color: #f4b02c;
  background: linear-gradient(180deg, #ffd36d, #f1a51d);
  box-shadow: 0 0 0 1px rgba(255, 225, 145, 0.24), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.player-body .nav-btn span {
  display: none;
}

.player-body .empty-state,
.player-body .audio-message {
  background: rgba(244, 176, 44, 0.13);
  border-color: rgba(244, 176, 44, 0.52);
  color: #ffe7a3;
}

@media (max-width: 520px) {
  .player-body .app-content {
    padding: 12px;
  }

  .player-body .cmp-home-hero {
    min-height: 128px;
    grid-template-columns: 39% minmax(0, 1fr);
    gap: 8px;
    padding-left: 4px;
  }

  .player-body .cmp-hero-logo {
    max-width: 128px;
  }

  .player-body .cmp-title {
    font-size: clamp(30px, 9.2vw, 38px);
  }

  .player-body .bottom-nav {
    min-height: 60px;
  }
}

/* CMP Player V1.3J: track actions and manual queue */
.track-row-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: stretch;
  border-bottom: 1px solid #dbe5ef;
  background: var(--row);
}

.track-row-wrap:nth-child(even) {
  background: #f5f8fc;
}

.track-row-wrap .track-row {
  width: 100%;
  border-bottom: 0;
  background: transparent;
}

.track-row-action {
  border: 0;
  border-left: 1px solid #dbe5ef;
  background: transparent;
  color: var(--blue-900);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.track-row-action.selected {
  color: #a46800;
  background: #fff8df;
}

.track-actions-toolbar {
  min-height: 42px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-bottom: 1px solid #dbe5ef;
}

.track-actions-toolbar.selecting {
  justify-content: flex-start;
}

.track-actions-toolbar strong {
  margin-right: auto;
  color: var(--blue-900);
  font-size: 12px;
}

.track-sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
}

.track-sheet-dismiss {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 7, 14, 0.68);
}

.track-sheet-card {
  position: relative;
  z-index: 1;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border: 1px solid #b9cbe1;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.22);
}

.track-sheet-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.track-sheet-head span {
  min-width: 0;
}

.track-sheet-head strong,
.track-sheet-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-sheet-head small {
  margin-top: 3px;
  color: var(--muted);
}

.track-sheet-head > button {
  width: 34px;
  height: 34px;
  border: 1px solid #b9cbe1;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-900);
  font-size: 22px;
}

.track-sheet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.track-sheet-actions button {
  min-height: 46px;
  border: 1px solid #b9cbe1;
  border-radius: 9px;
  background: #f7faff;
  color: var(--blue-900);
  font-weight: 900;
}

.detail-notice {
  padding: 9px 10px;
  border: 1px solid #e3b231;
  border-radius: 8px;
  background: #fff8df;
  color: #6c4800;
  font-size: 12px;
  font-weight: 800;
}

.queue-list {
  display: grid;
}

.queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 7px 9px;
  border-bottom: 1px solid #dbe5ef;
}

.queue-row.active {
  background: #fff8df;
}

.queue-row-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.queue-position {
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-row-main strong,
.queue-row-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-row-main small {
  margin-top: 3px;
  color: var(--muted);
}

.queue-row-actions {
  display: flex;
  gap: 4px;
}

.queue-row-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid #b9cbe1;
  border-radius: 7px;
  background: #fff;
  color: var(--blue-900);
  font-weight: 900;
}

.queue-row-actions button:disabled {
  opacity: 0.32;
}

.player-body .track-row-wrap,
.player-body .track-row-wrap:nth-child(even) {
  border-color: rgba(74, 119, 165, 0.38);
  background: rgba(7, 20, 34, 0.97);
}

.player-body .track-row-action {
  border-color: rgba(74, 119, 165, 0.38);
  color: #dbe9fb;
}

.player-body .track-row-action.selected,
.player-body .queue-row.active {
  background: rgba(244, 176, 44, 0.14);
  color: #ffe7a3;
}

.player-body .track-actions-toolbar,
.player-body .queue-row {
  border-color: rgba(74, 119, 165, 0.38);
  background: rgba(8, 20, 34, 0.98);
}

.player-body .track-actions-toolbar strong,
.player-body .queue-position {
  color: #ffe7a3;
}

.player-body .track-sheet-card {
  border-color: rgba(74, 119, 165, 0.7);
  background: #0a1726;
}

.player-body .track-sheet-head small,
.player-body .queue-row-main small {
  color: #a8c2df;
}
/* Queue titles used the light-theme ink colour in the dark player shell. */
.player-body .queue-row-main,
.player-body .queue-row-main strong {
  color: #f6fbff;
}

.player-body .queue-row.active .queue-row-main strong {
  color: #ffe7a3;
}

.player-body .track-sheet-head > button,
.player-body .track-sheet-actions button,
.player-body .queue-row-actions button {
  border-color: rgba(74, 119, 165, 0.72);
  background: #0d2035;
  color: #f6fbff;
}

.player-body .track-sheet-actions button:first-child {
  border-color: #f4b02c;
  background: linear-gradient(180deg, #ffd36d, #f1a51d);
  color: #120d06;
}

.player-body .detail-notice {
  border-color: rgba(244, 176, 44, 0.55);
  background: rgba(244, 176, 44, 0.12);
  color: #ffe7a3;
}

.security-form {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.security-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.security-form .toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  color: var(--blue-900);
}

.security-form input[type="password"] {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.totp-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 8px;
}

.totp-qr {
  display: block;
  width: min(280px, 100%);
  height: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  image-rendering: pixelated;
}

.totp-key-label {
  display: grid;
  gap: 5px;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.totp-manual-key {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-900);
  background: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
}


.backup-progress-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
  margin-bottom: 10px;
}

.backup-progress-head {
  display: flex;
  justify-content: space-between;
  color: var(--blue-900);
  font-weight: 900;
  text-transform: uppercase;
}

.backup-progress-bar {
  height: 14px;
  border: 1px solid #9cb5cf;
  border-radius: 999px;
  overflow: hidden;
  background: #dbe8f4;
  margin: 10px 0 8px;
}

.backup-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0e477b, #ffc43b);
}

.backup-progress-sub {
  color: var(--blue-900);
  font-weight: 800;
}

.backup-target-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.backup-target {
  border: 1px solid var(--line);
  border-left: 6px solid #9cb5cf;
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
  min-width: 0;
}

.backup-target.ok { border-left-color: #087d34; }
.backup-target.bad { border-left-color: #97170f; }
.backup-target.warn { border-left-color: #a06b00; }

.backup-target-head,
.backup-target-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.backup-target-head strong {
  color: var(--blue-900);
  font-size: 15px;
}

.backup-target-path {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.backup-target-message {
  margin-top: 10px;
  color: var(--blue-900);
  font-weight: 900;
}

.backup-target-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .backup-target-grid {
    grid-template-columns: 1fr;
  }
}

/* CMP Player V2.1B + Admin V1.4F */
.player-body .cmp-home-hero {
  min-height: 76px;
  grid-template-columns: 30% minmax(0, 1fr);
  gap: 8px;
  padding: 6px 12px 7px 5px;
  margin-bottom: 12px;
}

.player-body .cmp-hero-logo {
  max-width: 74px;
}

.player-body .cmp-title {
  gap: 0;
  font-size: clamp(23px, 6.3vw, 30px);
  line-height: 0.92;
}

.player-body .cmp-hero-copy small {
  margin-top: 5px;
  font-size: 11px;
}

.player-body .hero-note {
  top: 0;
  right: 5px;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(244, 176, 44, 0.42));
}

.player-body .home-folder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.player-body .home-playlist-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.player-body .home-folder-tile,
.player-body .home-playlist-tile {
  min-height: 62px;
  padding: 8px 9px;
}

.player-body .home-playlist-tile {
  border-color: rgba(122, 93, 179, 0.78);
  background:
    radial-gradient(circle at 20% 5%, rgba(149, 103, 211, 0.3), transparent 36%),
    linear-gradient(135deg, rgba(33, 29, 63, 0.98), rgba(9, 17, 30, 0.98));
  box-shadow: inset 2px 0 0 rgba(178, 126, 235, 0.58);
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  align-content: initial;
  column-gap: 8px;
}

.player-body .home-playlist-cover {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 231, 163, 0.38);
  border-radius: 9px;
}

.player-body .home-playlist-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.player-body .home-playlist-copy strong,
.player-body .home-playlist-copy span {
  display: block;
}

.player-body .home-playlist-tile.home-slot-empty {
  grid-template-columns: minmax(0, 1fr);
}

.player-body .home-folder-tile strong,
.player-body .home-playlist-tile strong {
  font-size: 14px;
}

.player-body .home-folder-tile span,
.player-body .home-playlist-tile span {
  font-size: 11px;
}

.player-body .home-slot-empty {
  opacity: 0.48;
  border-style: dashed;
  box-shadow: none;
}

.player-body .home-genre-grid .genre-pill {
  min-height: 36px;
  font-size: 13px;
}

.player-body .library-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  margin: 2px 0 9px;
}

.player-body .library-tab {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(74, 119, 165, 0.62);
  border-radius: 999px;
  background: #0d2035;
  color: #bcd0e7;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 900;
}

.player-body .library-tab.active {
  border-color: #f4b02c;
  background: rgba(244, 176, 44, 0.16);
  color: #ffe7a3;
}

.player-body .library-pathbar {
  display: grid;
  gap: 7px;
  margin-bottom: 9px;
  padding: 8px;
  border: 1px solid rgba(74, 119, 165, 0.48);
  border-radius: 12px;
  background: rgba(10, 22, 37, 0.96);
}

.player-body .library-path-actions {
  display: flex;
  gap: 7px;
}

.player-body .library-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  color: #fff;
}

.player-body .library-breadcrumbs button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 3px;
  font-weight: 800;
}

.player-body .library-breadcrumbs button.active {
  color: #ffe7a3;
}

.player-body .library-summary .current-folder-name {
  color: #ffe7a3;
  font-weight: 800;
}

.player-body .library-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 9px 10px;
  border-left: 3px solid #f4b02c;
  background: rgba(13, 32, 53, 0.82);
}

.player-body .library-summary strong,
.player-body .library-summary span {
  display: block;
}

.player-body .library-summary strong {
  color: #f6fbff;
  font-size: 16px;
}

.player-body .library-summary div > span {
  margin-top: 2px;
  color: #a8c2df;
  font-size: 11px;
  font-weight: 800;
}

.player-body .library-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 9px;
}

.player-body .library-actions .action-card {
  min-height: 50px;
  padding: 7px 4px;
  font-size: 11px;
}

.player-body .library-actions .action-card small {
  font-size: 8px;
}

.player-body .search-panel {
  padding: 9px;
}

.player-body .filter-grid {
  gap: 6px 8px;
  margin-bottom: 8px;
}

.player-body .filter-grid input,
.player-body .filter-grid select {
  height: 34px;
}

.player-body .search-more-btn {
  display: block;
  width: calc(100% - 20px);
  min-height: 38px;
  margin: 10px;
  border: 1px solid #f4b02c;
  border-radius: 999px;
  background: rgba(244, 176, 44, 0.14);
  color: #ffe7a3;
  font-weight: 900;
}

/* CMP Player V2.1C */
.player-body .home-strip + .home-strip {
  margin-top: 7px;
}

.player-body .track-actions-toolbar.selecting {
  flex-wrap: wrap;
}

.player-body .track-actions-toolbar.selecting strong {
  flex: 1 0 100%;
  margin-right: 0;
}

.player-body .small-btn.danger {
  border-color: rgba(224, 102, 117, 0.72);
  background: rgba(189, 82, 96, 0.16);
  color: #ffd5dc;
}

.phone-app.now-main .app-content {
  overflow: hidden;
}

.player-body .now-main-layout {
  min-height: 0;
  height: calc(100% - 43px);
  align-content: start;
  gap: 12px;
}

.player-body .now-summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.player-body .now-summary .big-cover {
  width: 190px;
  border-radius: 18px;
}

.player-body .now-summary .track-heading h1 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 24px;
  line-height: 1.12;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.player-body .now-track-meta {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.player-body .now-meta-item {
  min-width: 0;
}

.player-body .now-meta-item small {
  display: block;
  margin-bottom: 2px;
  color: #f4b02c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.player-body .now-meta-item strong,
.player-body .now-meta-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #f6fbff;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .now-track-meta .track-rating-card.compact {
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.player-body .now-track-meta .track-rating-card.compact > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.player-body .now-track-meta .track-rating-card.compact strong {
  color: #f4b02c;
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.player-body .now-track-meta .track-rating-card.compact small {
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .now-track-meta .track-rating-card.compact .rating-stars {
  gap: 3px;
}

.player-body .now-track-meta .track-rating-card.compact .rating-stars button {
  width: 25px;
  height: 25px;
  font-size: 14px;
}

.player-body .now-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.player-body .now-chip-grid .chip {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  justify-content: flex-start;
  padding: 0 10px 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
}

.player-body .now-main-layout .progress {
  gap: 10px;
  padding: 8px 4px;
  font-size: 13px;
}

.player-body .now-main-layout .seek-range {
  height: 34px;
}

.player-body .crossfade-setting.compact {
  padding: 9px 10px;
}

.player-body .crossfade-setting.compact .crossfade-setting-label small {
  margin-top: 2px;
  font-size: 10px;
}

.player-body .crossfade-setting.compact .segmented button {
  min-height: 34px;
  padding: 0 7px;
}

.player-body .now-main-layout .play-controls {
  gap: 8px;
}

.player-body .now-main-layout .round-btn {
  min-width: 0;
  width: 100%;
  height: 52px;
  font-size: 11px;
}

.player-body .now-main-layout .round-btn.main {
  height: 58px;
}

.player-body .now-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-body .now-quick-actions .action-card {
  min-height: 48px;
  padding: 8px 6px;
  font-size: 12px;
}

.player-body .compact-message {
  margin: 0;
  padding: 6px 8px;
  font-size: 10px;
}

.player-body .connection-recovery-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.player-body .connection-recovery-message .small-btn {
  min-width: 64px;
  min-height: 32px;
  padding: 5px 10px;
  flex: 0 0 auto;
}

.player-body .now-details-screen {
  display: grid;
  gap: 10px;
}

.player-body .now-detail-heading {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.player-body .now-detail-heading .mini-cover {
  width: 68px;
  height: 68px;
}

.player-body .now-detail-heading strong,
.player-body .now-detail-heading span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .now-detail-heading strong {
  color: #f6fbff;
}

.player-body .now-detail-heading span {
  margin-top: 3px;
  color: #a8c2df;
  font-size: 12px;
}

.player-body .now-details-screen > .detail-grid > div,
.player-body .now-details-screen > .detail-grid > button {
  border-color: rgba(47, 78, 105, 0.62);
  background: linear-gradient(180deg, rgba(18, 43, 66, 0.98), rgba(7, 21, 34, 0.99));
  box-shadow: inset 0 1px 0 rgba(125, 163, 194, 0.05);
}

.player-body .now-details-screen > .detail-grid > button {
  border-color: rgba(104, 179, 230, 0.96);
  background: linear-gradient(180deg, rgba(52, 118, 170, 0.98), rgba(21, 61, 98, 0.99));
  box-shadow: inset 0 2px 0 rgba(204, 234, 255, 0.18);
}

.player-body .now-details-screen > .track-rating-card {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 0;
  padding: 6px 10px;
  border-color: rgba(206, 170, 101, 0.64);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(113, 94, 57, 0.90), rgba(48, 46, 40, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 227, 168, 0.10);
}

.player-body .now-details-screen > .track-rating-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 0;
}

.player-body .now-details-screen > .track-rating-card > div:first-child strong {
  color: #ffe0a1;
}

.player-body .now-details-screen > .track-rating-card .rating-stars {
  position: relative;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding-right: 50px;
}

.player-body .now-details-screen > .track-rating-card .rating-stars > button {
  flex: 0 0 34px;
}

.player-body .now-details-screen > .track-rating-card .rating-clear {
  position: absolute;
  top: 50%;
  right: 0;
  margin-left: 0;
  transform: translateY(-50%);
}

.player-body .now-details-screen > .compact-actions {
  margin-bottom: 0;
}

.player-body .now-details-screen > .compact-actions .action-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 8px 12px;
  border-color: rgba(107, 166, 135, 0.90);
  background: linear-gradient(180deg, rgba(62, 121, 92, 0.97), rgba(32, 71, 54, 0.98));
  color: #ffffff;
  text-align: left;
  line-height: 1.15;
  box-shadow: inset 2px 0 0 rgba(151, 207, 174, 0.35), 0 3px 10px rgba(7, 20, 14, 0.20);
}

.player-body .now-details-screen > .compact-actions .action-card.primary {
  border-color: #f4b02c;
  background: linear-gradient(180deg, #ffd36d, #f1a51d);
  color: #120d06;
}

.player-body .now-queue-screen {
  margin-bottom: 0;
}

.player-body .match-next-panel {
  margin-bottom: 10px;
}

.player-body .match-next-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 9px;
  align-items: center;
  padding: 10px;
}

.player-body .match-next-direction {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.player-body .match-next-run {
  min-height: 36px;
  border-color: #f4b02c;
  background: linear-gradient(180deg, #ffd36d, #f1a51d);
  color: #120d06;
}

.player-body .match-next-run:disabled {
  opacity: 0.48;
}

.player-home-form {
  grid-template-columns: 1fr;
}

.player-home-form .wide {
  grid-column: 1 / -1;
}

.player-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 9px;
}

.match-next-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.player-home-form .admin-card {
  margin: 0;
}

@media (max-width: 900px) {
  .match-next-settings-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

.playlist-cover-grid {
  display: grid;
  gap: 10px;
}

.playlist-cover-card {
  display: grid;
  grid-template-columns: 96px minmax(180px, 1fr) minmax(220px, 0.9fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #bfd0e2;
  border-radius: 10px;
  background: #fff;
}

.playlist-cover-preview {
  width: 84px;
  height: 84px;
  border: 1px solid #7f9cbb;
  border-radius: 9px;
  background: #07111e;
  overflow: hidden;
}

.playlist-cover-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.playlist-cover-preview.empty {
  display: grid;
  place-items: center;
  padding: 6px;
  color: #a8c2df;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

.playlist-cover-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.playlist-cover-copy strong,
.playlist-cover-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-cover-copy strong {
  color: var(--blue-900);
  font-size: 15px;
}

.playlist-cover-copy span {
  color: var(--muted);
  font-size: 12px;
}

.playlist-cover-file {
  display: grid;
  gap: 5px;
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 800;
}

.playlist-cover-file input {
  width: 100%;
  min-width: 0;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .player-home-grid {
    grid-template-columns: 1fr;
  }

  .playlist-cover-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .playlist-cover-file,
  .playlist-cover-card .admin-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .player-body .cmp-home-hero {
    min-height: 72px;
    grid-template-columns: 28% minmax(0, 1fr);
    padding-left: 3px;
  }

  .player-body .cmp-hero-logo {
    max-width: 68px;
  }

  .player-body .cmp-title {
    font-size: clamp(22px, 7vw, 28px);
  }

  .player-body .now-summary {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 14px;
  }

  .player-body .now-summary .big-cover {
    width: 176px;
  }

  .player-body .now-summary .track-heading h1 {
    font-size: 22px;
  }

  .player-body .now-meta-item strong,
  .player-body .now-meta-item span {
    font-size: 15px;
  }
}

/* Final V2.1B Home spacing overrides. */
.player-body .cmp-home-hero {
  min-height: 98px;
}

.player-body .cmp-hero-logo {
  max-width: 96px;
}

@media (max-width: 520px) {
  .player-body .app-content {
    padding-top: calc(12px + env(safe-area-inset-top));
  }

  .player-body .cmp-home-hero {
    min-height: 106px;
  }

  .player-body .cmp-hero-logo {
    max-width: 90px;
  }
}

/* CMP Player V2.2A + Admin V1.4K: playlist management and universal selection. */
.player-body .cmp-hero-logo {
  max-width: 114px;
}

.player-body .cmp-hero-logo img {
  border-radius: 0;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.28));
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.28));
}

@media (max-width: 520px) {
  .player-body .cmp-hero-logo {
    max-width: 108px;
  }

  .admin-brand img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  /*
   * iOS zooms the page when a focused form control renders below 16px.
   * Keep normal user pinch-zoom enabled and prevent only that focus zoom.
   */
  .player-body input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
  .player-body select,
  .player-body textarea {
    font-size: 16px;
  }
}

/* CMP Player V2.1G: use the complete standalone iPhone viewport. */
html.player-root {
  --cmp-visual-height: 100dvh;
  --cmp-app-height: var(--cmp-visual-height);
  width: 100%;
  height: var(--cmp-app-height);
  min-height: var(--cmp-app-height);
  overflow: hidden;
  overscroll-behavior: none;
  background: #050912;
}

@supports (height: 100lvh) {
  html.player-root.player-standalone {
    --cmp-app-height: max(var(--cmp-visual-height), 100lvh);
  }
}

@media (max-width: 520px) {
  html.player-root body.player-body {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: var(--cmp-app-height);
    min-height: 0;
    max-height: none;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #050912;
  }

  html.player-root .player-body .phone-app {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  .player-body .cmp-hero-copy {
    padding-left: 10px;
  }
}

.playlist-manage-list {
  display: grid;
}

.playlist-manage-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border-bottom: 1px solid #dbe5ef;
  background: var(--row);
}

.playlist-manage-row:nth-child(even) {
  background: #f5f8fc;
}

.playlist-manage-row:last-child {
  border-bottom: 0;
}

.playlist-manage-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.playlist-manage-rename,
.playlist-manage-delete {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(189, 82, 96, 0.45);
  border-radius: 50%;
  background: rgba(189, 82, 96, 0.08);
  color: #9b2638;
  font-size: 17px;
  line-height: 1;
  opacity: 0.82;
}

.playlist-manage-rename {
  border-color: rgba(74, 119, 165, 0.55);
  background: rgba(74, 119, 165, 0.12);
  color: #b7d5f4;
}

.playlist-manage-rename:active {
  background: rgba(74, 119, 165, 0.26);
  opacity: 1;
}

.playlist-manage-delete:active {
  background: rgba(189, 82, 96, 0.2);
  opacity: 1;
}

.playlist-manage-rename svg,
.playlist-manage-delete svg {
  display: block;
  width: 17px;
  height: 17px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.playlist-manage-note {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* CMP Player V2.2A + Server V1.5A: universal selection and safe playlist management. */
/* CMP Player V2.2B: iPhone-safe To Playlist confirmation without interrupting audio. */
/* CMP Player V2.2D: recursive folder/album selection for Play and Shuffle. */
.player-body .library-actions.with-collection-select {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-body .collection-select-panel {
  border-color: rgba(76, 123, 168, 0.72);
  background: rgba(7, 20, 35, 0.96);
}

.player-body .collection-select-panel .panel-head {
  align-items: center;
  color: #f6fbff;
}

.player-body .collection-select-all,
.player-body .collection-select-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(76, 123, 168, 0.34);
  color: #f6fbff;
  cursor: pointer;
}

.player-body .collection-select-all {
  border-left: 3px solid #f4b02c;
  background: rgba(244, 176, 44, 0.12);
}

.player-body .collection-select-list {
  max-height: 290px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.player-body .collection-select-row:nth-child(even) {
  background: rgba(24, 47, 72, 0.42);
}

.player-body .collection-select-all input,
.player-body .collection-select-row input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: #f4b02c;
}

.player-body .collection-select-all span,
.player-body .collection-select-row span {
  min-width: 0;
}

.player-body .collection-select-all strong,
.player-body .collection-select-all small,
.player-body .collection-select-row strong,
.player-body .collection-select-row small {
  display: block;
}

.player-body .collection-select-all strong,
.player-body .collection-select-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .collection-select-all small,
.player-body .collection-select-row small {
  margin-top: 2px;
  color: #a8c2df;
  font-size: 10px;
  font-weight: 800;
}

.player-body .collection-select-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
}

.player-body .collection-select-actions .small-btn {
  min-height: 40px;
}

.player-body .collection-select-actions .small-btn.primary {
  border-color: #f4b02c;
  background: #f4b02c;
  color: #071423;
}

/* CMP Player V3.0D: direct play with separate collection browsing. */
.player-body .quick-collection-tile {
  position: relative;
  min-width: 0;
  height: 100%;
}

.player-body .quick-collection-tile > .home-folder-tile,
.player-body .quick-collection-tile > .home-playlist-tile,
.player-body .quick-collection-tile > .home-album-tile,
.player-body .quick-collection-tile > .album-card {
  width: 100%;
  height: 100%;
  padding-right: 38px;
}

.player-body .quick-collection-browse,
.player-body .collection-row-browse {
  border: 0;
  background: rgba(244, 176, 44, 0.16);
  color: #ffd36b;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.player-body .quick-collection-browse {
  position: absolute;
  top: 5px;
  right: 4px;
  bottom: 5px;
  width: 30px;
  border-left: 1px solid rgba(244, 176, 44, 0.35);
  border-radius: 0 9px 9px 0;
}

.player-body .collection-row-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: stretch;
  border-bottom: 1px solid rgba(74, 119, 165, 0.35);
}

.player-body .collection-row-wrap:nth-child(even) {
  background: rgba(22, 50, 78, 0.42);
}

.player-body .collection-row-wrap > .track-row,
.player-body .collection-row-wrap > .artist-row {
  width: 100%;
  border-bottom: 0;
  background: transparent;
}

.player-body .collection-row-browse {
  border-left: 1px solid rgba(244, 176, 44, 0.35);
}

/* CMP Player V3.0X: album and folder Favorites use the same actions pattern as tracks. */
.player-body .favorite-collection-row {
  grid-template-columns: minmax(0, 1fr) 42px 42px;
}

.player-body .track-sheet-actions.single-action {
  grid-template-columns: minmax(0, 1fr);
}

/* CMP Player V3.0E: Home folders open first; deeper folder browse targets are larger. */
.player-body .folder-collection-row {
  grid-template-columns: minmax(0, 1fr) 64px;
}

.player-body .folder-collection-row > .folder-play-row {
  grid-template-columns: 44px minmax(0, 1fr);
}

.player-body .folder-collection-row > .collection-row-browse {
  min-width: 64px;
  font-size: 32px;
}

/* CMP Player V3.0F: purple means the next folder directly contains tracks. */
.player-body .folder-collection-row > .collection-row-browse.tracks-next {
  color: #b27eeb;
  border-left-color: rgba(178, 126, 235, 0.68);
  background:
    radial-gradient(circle at 50% 35%, rgba(178, 126, 235, 0.24), transparent 70%),
    rgba(122, 93, 179, 0.18);
  box-shadow: inset 3px 0 0 rgba(178, 126, 235, 0.58);
}

/* CMP Admin V1.4P: official unlimited Lexicon Cues with safe per-mix removal. */
.lexicon-cue-grid .admin-card .body {
  display: grid;
  gap: 8px;
}

.lexicon-selected-row,
.lexicon-candidate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(91, 145, 196, 0.36);
  border-radius: 8px;
  background: rgba(11, 47, 82, 0.72);
}

.lexicon-selected-row span:first-child,
.lexicon-candidate-row span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.lexicon-selected-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.lexicon-selected-row small,
.lexicon-candidate-row small {
  overflow: hidden;
  color: #a9c9e8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lexicon-count {
  color: #ffc43d;
  font-weight: 800;
}

.lexicon-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.lexicon-search-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #4f86b8;
  border-radius: 7px;
  background: #071b30;
  color: #fff;
  font: inherit;
}

.lexicon-candidate-list {
  display: grid;
  gap: 7px;
  max-height: 440px;
  overflow: auto;
}

.lexicon-candidate-row {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  cursor: pointer;
}

.lexicon-candidate-row input {
  width: 21px;
  height: 21px;
  accent-color: #f4b02c;
}

.lexicon-browser-card {
  margin-top: 14px;
}

.lexicon-browser-card .body {
  display: grid;
  gap: 10px;
}

.lexicon-browser-breadcrumb,
.lexicon-browser-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lexicon-browser-breadcrumb button {
  padding: 6px 9px;
  border: 1px solid rgba(244, 176, 44, 0.55);
  border-radius: 6px;
  background: #0b2f52;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.lexicon-browser-breadcrumb span {
  color: #ffc43d;
  font-weight: 900;
}

.lexicon-browser-toolbar {
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(91, 145, 196, 0.4);
  border-radius: 7px;
  background: #071b30;
}

.lexicon-browser-toolbar > span {
  color: #a9c9e8;
  font-weight: 700;
}

.lexicon-browser-folders,
.lexicon-browser-tracks {
  display: grid;
  gap: 7px;
  max-height: 330px;
  overflow: auto;
}

.lexicon-browser-folder,
.lexicon-browser-track {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(91, 145, 196, 0.36);
  border-radius: 8px;
  background: rgba(11, 47, 82, 0.72);
  color: #fff;
}

.lexicon-browser-folder {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.lexicon-browser-folder > span {
  font-size: 24px;
}

.lexicon-browser-folder small,
.lexicon-browser-track small {
  color: #a9c9e8;
}

.lexicon-browser-track {
  grid-template-columns: minmax(0, 1fr) auto;
}

.lexicon-browser-track > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.lexicon-browser-track small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* CMP Player V3.0N: Management V1.1O progress-layout release. */
.player-body .cue-action-card {
  border-color: rgba(244, 176, 44, 0.72);
  background: linear-gradient(145deg, rgba(244, 176, 44, 0.2), rgba(19, 73, 121, 0.82));
}

.player-body .cue-action-card small {
  color: #ffd36b;
}

.player-body .now-cue-screen {
  display: grid;
  gap: 14px;
  padding: 14px 12px 28px;
}

.player-body .cue-track-heading {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(83, 139, 190, 0.46);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(19, 73, 121, 0.82), rgba(7, 27, 48, 0.94));
}

.player-body .cue-track-heading small,
.player-body .cue-track-heading span,
.player-body .cue-readonly-note {
  color: #a9c9e8;
}

.player-body .cue-track-heading strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .cue-loading {
  min-height: 70px;
  display: grid;
  place-items: center;
  color: #ffd36b;
  font-weight: 800;
}

.player-body .cue-waveform {
  position: relative;
  height: 190px;
  overflow: hidden;
  border: 1px solid rgba(244, 176, 44, 0.55);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(29, 86, 137, 0.28), rgba(5, 20, 36, 0.95)),
    repeating-linear-gradient(90deg, transparent 0 9.9%, rgba(100, 153, 201, 0.12) 10%);
}

.player-body .cue-waveform svg {
  width: 100%;
  height: 100%;
}

.player-body .cue-waveform svg line {
  stroke: rgba(255, 211, 107, 0.26);
  stroke-width: 2;
}

.player-body .cue-waveform svg polygon {
  fill: rgba(244, 121, 44, 0.88);
  stroke: #ffc43d;
  stroke-width: 1;
}

.player-body .cue-waveform-empty {
  display: grid;
  place-items: center;
  color: #a9c9e8;
}

.player-body .cue-playhead {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-1px);
  background: #fff;
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.player-body .cue-waveform-marker {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 30px;
  padding: 0;
  transform: translateX(-15px);
  border: 0;
  background: transparent;
  color: #07111e;
}

.player-body .cue-waveform-marker::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
  background: var(--cue-color);
}

.player-body .cue-waveform-marker span {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: var(--cue-color);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.player-body .cue-jump-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.player-body .cue-jump-button {
  min-width: 0;
  min-height: 88px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 8px 4px;
  border: 1px solid var(--cue-color);
  border-radius: 10px;
  background: linear-gradient(160deg, #164f82, #09233d);
  color: #fff;
  box-shadow: inset 0 3px 0 var(--cue-color);
}

.player-body .cue-jump-button > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cue-color);
  color: #07111e;
  font-size: 12px;
  font-weight: 900;
}

.player-body .cue-jump-button strong {
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-body .cue-jump-button small {
  color: #c7def2;
  font-size: 11px;
}

.player-body .cue-jump-button.active {
  outline: 3px solid #fff;
  outline-offset: 1px;
  transform: translateY(-1px);
}

.player-body .cue-readonly-note {
  margin: 0;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 430px) {
  .player-body .cue-waveform {
    height: 170px;
  }

  .player-body .cue-jump-grid {
    gap: 6px;
  }

  .player-body .cue-jump-button {
    min-height: 82px;
  }
}
/* CMP Player V3.1H: Playlists precede latest albums and Home folder buttons are more compact. */
.player-body .album-card {
  grid-template-rows: minmax(58px, auto) auto;
}

.player-body .album-card > .album-total {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 3px 7px 4px;
  overflow: hidden;
  color: #a8c2df;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-body .library-summary > div {
  flex: 1 1 auto;
  min-width: 0;
}

.player-body .library-summary .folder-summary-meta {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.player-body .library-summary > .chip {
  flex: 0 0 auto;
}

/* CMP Player V3.1G: compact turquoise latest-album rows replace Home listening history. */
.player-body .home-latest-album-list {
  display: grid;
  gap: 7px;
}

.player-body .home-latest-album-row {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  overflow: hidden;
  border: 1px solid rgba(66, 211, 191, 0.58);
  border-radius: 13px;
  background:
    radial-gradient(circle at 12% 15%, rgba(70, 232, 207, 0.19), transparent 34%),
    linear-gradient(135deg, rgba(10, 61, 68, 0.98), rgba(6, 30, 42, 0.99));
  box-shadow: inset 3px 0 0 rgba(78, 230, 205, 0.72), 0 7px 18px rgba(0, 0, 0, 0.16);
}

.player-body .home-latest-album-row:nth-child(even) {
  background:
    radial-gradient(circle at 12% 15%, rgba(67, 218, 196, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(9, 53, 61, 0.98), rgba(6, 26, 38, 0.99));
}

.player-body .home-latest-album-main {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: #f4ffff;
  text-align: left;
}

.player-body .home-latest-album-main .mini-cover {
  width: 42px;
  height: 42px;
  border-color: rgba(109, 241, 220, 0.55);
}

.player-body .home-latest-album-main .row-copy strong {
  color: #c9fff4;
  font-size: 13px;
}

.player-body .home-latest-album-main .row-copy span {
  color: #8eddd3;
  font-size: 11px;
}

.player-body .home-latest-album-browse {
  min-width: 0;
  border: 0;
  border-left: 1px solid rgba(93, 225, 206, 0.35);
  background: rgba(27, 124, 119, 0.24);
  color: #a8fff0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.player-body .home-latest-album-main:focus-visible,
.player-body .home-latest-album-browse:focus-visible {
  outline: 2px solid #7ff7e5;
  outline-offset: -3px;
}

.player-body .home-latest-empty {
  border-color: rgba(66, 211, 191, 0.38);
  background: rgba(8, 48, 55, 0.68);
  color: #9de6dc;
}
/* CMP Player V3.1H: compact Home folder controls keep a 48px touch target. */
.player-body .home-folder-grid {
  row-gap: 6px;
}

.player-body .home-folder-tile {
  min-height: 48px;
  padding: 6px 9px;
}
/* CMP Player V3.1I: hide only the tiny Home-content edge above the fixed player. */
.player-body .mini-player {
  position: relative;
  z-index: 2;
  box-shadow: 0 -4px 0 rgba(7, 16, 27, 0.98);
}
/* CMP Player V3.1J: album displays show artist first and album title second. */

/* CMP Player V3.1K: singular folder counts use folder; plural counts use folders. */

/* CMP Player V3.1L: two Home playlists and a two-column reorderable Playlist library. */
.player-body .home-playlist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-body .playlist-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.player-body .playlist-library-head > span {
  min-width: 0;
}

.player-body .playlist-library-head .small-btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
}

.player-body .playlist-library-note {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(122, 93, 179, 0.32);
  color: #a8c2df;
  font-size: 10px;
  line-height: 1.35;
}

.player-body .playlist-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 9px;
}

.player-body .playlist-library-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(145, 103, 204, 0.72);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 8%, rgba(149, 103, 211, 0.27), transparent 35%),
    linear-gradient(145deg, rgba(31, 28, 61, 0.99), rgba(7, 16, 29, 0.99));
  box-shadow: inset 2px 0 0 rgba(178, 126, 235, 0.54), 0 6px 15px rgba(0, 0, 0, 0.15);
}

.player-body .playlist-library-main {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #f6fbff;
  text-align: left;
}

.player-body .playlist-library-main[aria-disabled="true"] {
  cursor: default;
}

.player-body .playlist-library-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 231, 163, 0.38);
  border-radius: 10px;
  background: linear-gradient(135deg, #0d3a6a, #384ea0 58%, #ff9f36);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.player-body .playlist-library-cover.has-image {
  background-color: #07111e;
  background-size: contain !important;
}

.player-body .playlist-library-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-right: 31px;
}

.player-body .playlist-library-copy strong {
  min-height: 2.35em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #ffe7a3;
  font-size: 13px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.player-body .playlist-library-copy span {
  color: #bca8df;
  font-size: 10px;
  font-weight: 800;
}

.player-body .playlist-library-browse {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 28px;
  height: 45px;
  border: 1px solid rgba(178, 126, 235, 0.5);
  border-radius: 9px;
  background: rgba(91, 62, 143, 0.34);
  color: #e1c7ff;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.player-body .playlist-collection-order-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(178, 126, 235, 0.35);
  background: rgba(45, 31, 76, 0.42);
  color: #d8c4f3;
  font-size: 10px;
  line-height: 1.3;
}

.player-body .playlist-collection-order-toolbar button,
.player-body .playlist-library-order-actions button {
  min-height: 38px;
  border: 1px solid rgba(178, 126, 235, 0.62);
  border-radius: 9px;
  background: rgba(91, 62, 143, 0.42);
  color: #f6eaff;
  font-weight: 900;
}

.player-body .playlist-collection-order-toolbar button {
  flex: 0 0 auto;
  padding: 0 10px;
}

.player-body .playlist-library-tile.ordering .playlist-library-copy {
  padding-right: 0;
}

.player-body .playlist-library-order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 8px 8px;
}

.player-body .playlist-library-order-actions button {
  min-width: 44px;
  font-size: 20px;
}

.player-body .playlist-library-order-actions button:disabled,
.player-body .playlist-library-head button:disabled,
.player-body .playlist-collection-order-toolbar button:disabled {
  opacity: 0.42;
}

.player-body .playlist-library-empty {
  grid-column: 1 / -1;
}
/* V3.1O: terminal folders keep one compact Sort/Select row. */
.player-body .leaf-track-tools {
  min-width: 0;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(74, 119, 165, 0.38);
  background: rgba(8, 20, 34, 0.98);
}

.player-body .leaf-track-tools.selecting {
  grid-template-columns: minmax(0, 1fr);
}

.player-body .leaf-track-tools .sort-bar {
  min-height: 34px;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) 52px;
}

.player-body .leaf-track-tools > .small-btn {
  height: 34px;
  min-width: 64px;
}

.player-body .leaf-track-panel > .title-track-jump {
  margin: 0;
  padding: 7px 10px 8px;
  border-bottom: 1px solid rgba(74, 119, 165, 0.38);
  background: rgba(8, 20, 34, 0.98);
}

/* CMP V3.3L: validated player layout from the full V3.3K test. */
.player-body .cmp-diagnostic-version {
  display: block;
  appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.player-body .view-toolbar > [data-goto="home"],
.player-body .view-toolbar > [data-goto="search"] {
  display: none;
}

.player-body .library-pathbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.player-body .library-breadcrumbs {
  order: 1;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  font-size: 16px;
  line-height: 1.45;
  gap: 4px 8px;
}

.player-body .library-crumb {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  gap: 5px;
}

.player-body .library-breadcrumbs button {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.player-body .library-path-actions {
  order: 0;
  justify-content: flex-end;
  margin-left: auto;
  gap: 8px;
}

.player-body .library-path-actions .small-btn {
  min-height: 44px;
  min-width: 70px;
  font-size: 16px;
  padding: 9px 14px;
}

.player-body .action-card.playback-control,
.player-body .action-card.primary.playback-control,
.player-body .small-btn.playback-control,
.player-body .small-btn.primary.playback-control,
.player-body .chip.playback-control {
  background: #164c3c;
  border-color: #59c69a;
  color: #f4fff9;
  box-shadow: none;
}

.player-body .action-card.playback-control.is-playing,
.player-body .action-card.primary.playback-control.is-playing,
.player-body .small-btn.playback-control.is-playing,
.player-body .small-btn.primary.playback-control.is-playing,
.player-body .chip.playback-control.is-playing {
  background: #b51f2a;
  border-color: #ff7180;
  color: #ffffff;
  box-shadow: inset 0 2px 0 rgba(255, 113, 128, .2);
}

.player-body .action-card.playback-control small {
  color: #def5e9;
}

.player-body .action-card.playback-control.is-playing small {
  color: #fff0f1;
}

.player-body .library-actions,
.player-body .library-actions.with-collection-select {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-body .library-actions .action-card {
  min-height: 62px;
  padding: 10px 8px;
  font-size: 14px;
  line-height: 1.3;
  white-space: normal;
}

.player-body .library-actions .action-card small,
.player-body .action-grid .action-card small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* CMP V3.3M: fixed navigation/action row at the tracks; larger touch targets. */
.player-body .folder-track-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  padding: 10px;
}

.player-body .folder-track-actions > .small-btn {
  min-width: 0;
  min-height: 52px;
  height: auto;
  padding: 8px 4px;
  border: 2px solid #a879e3;
  border-radius: 11px;
  background: #111b31;
  color: #f6efff;
  font-size: .875rem;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.player-body .folder-track-actions > .small-btn:disabled {
  opacity: .45;
  cursor: default;
}

.player-body .folder-track-actions > .small-btn:focus-visible {
  outline: 2px solid #dfc4ff;
  outline-offset: 2px;
}

.player-body .leaf-track-tools {
  min-height: 66px;
  padding: 10px;
}

.player-body .leaf-track-tools .sort-bar {
  min-height: 46px;
}

.player-body .leaf-track-tools .sort-bar label {
  font-size: .875rem;
}

.player-body .leaf-track-tools .sort-bar select,
.player-body .leaf-track-tools .sort-dir-btn,
.player-body .leaf-track-tools > .small-btn {
  min-height: 46px;
  height: auto;
  font-size: .875rem;
}
