/* Harmonix pages: Download, Settings, Playlists, Albums */

/* ── Base utilitaires ───────────────────────────────────────────── */
.hx-card-panel {
  background: linear-gradient(180deg, rgba(15, 24, 44, 0.82), rgba(10, 16, 30, 0.84));
  border: 1px solid rgba(150, 178, 255, 0.24);
  border-radius: var(--radius);
  padding: var(--spacing-md);
}

.hx-form-stack {
  display: grid;
  gap: 10px;
}

.hx-subtitle {
  margin: 0;
  font-size: var(--fs-200);
  font-weight: 700;
  color: #edf4ff;
}

.hx-help-text,
.hx-field-label {
  margin: 0;
  color: #93a7d1;
  font-size: var(--fs-100);
}

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

.hx-input,
.hx-select {
  width: 100%;
  min-height: 38px;
  background: rgba(13, 22, 42, 0.9);
  border: 1px solid rgba(150, 178, 255, 0.24);
  border-radius: 10px;
  color: #eaf2ff;
  padding: 8px 12px;
}

.hx-input::placeholder {
  color: #7f96c4;
}

.hx-input:focus,
.hx-select:focus {
  outline: none;
  border-color: rgba(124, 231, 255, 0.58);
  box-shadow: 0 0 0 2px rgba(124, 231, 255, 0.18);
}

.hx-input--sm {
  width: 86px;
  text-align: center;
}

.hx-btn-primary,
.hx-btn-ghost,
.hx-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hx-btn-primary {
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  color: #191205;
}

.hx-btn-primary:hover {
  filter: brightness(1.03);
}

.hx-btn-ghost {
  border-color: rgba(150, 178, 255, 0.28);
  color: #dce8ff;
  background: rgba(120, 160, 255, 0.06);
}

.hx-btn-ghost:hover {
  background: rgba(124, 231, 255, 0.12);
  border-color: rgba(124, 231, 255, 0.4);
}

.hx-btn-danger {
  border-color: rgba(255, 109, 154, 0.35);
  background: rgba(255, 109, 154, 0.16);
  color: #ffd6e5;
}

.hx-btn-sm {
  min-height: 34px;
  padding: 6px 12px;
}

.hx-beta-badge,
.hx-soon-badge,
.hx-dl-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.hx-beta-badge,
.hx-dl-badge--available {
  border: 1px solid rgba(246, 199, 104, 0.45);
  background: rgba(246, 199, 104, 0.18);
  color: #ffe7b7;
}

.hx-soon-badge,
.hx-dl-badge--soon {
  border: 1px solid rgba(124, 231, 255, 0.36);
  background: rgba(124, 231, 255, 0.12);
  color: #b8f2ff;
}

/* ── Download ─────────────────────────────────────────────────── */
.hx-dl-body {
  padding: var(--spacing-lg);
  max-width: 1120px;
  display: grid;
  gap: var(--spacing-md);
}

.hx-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.hx-dl-card {
  background: linear-gradient(180deg, rgba(16, 26, 48, 0.86), rgba(10, 16, 31, 0.88));
  border: 1px solid rgba(150, 178, 255, 0.25);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.hx-dl-card--available {
  border-color: rgba(246, 199, 104, 0.34);
}

.hx-dl-card--available:hover {
  border-color: rgba(246, 199, 104, 0.6);
}

.hx-dl-card--soon {
  opacity: 0.78;
}

.hx-dl-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hx-dl-platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(120, 160, 255, 0.14);
  color: #aac3f4;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.hx-dl-card--available .hx-dl-platform-icon {
  color: var(--gold);
  background: rgba(246, 199, 104, 0.16);
}

.hx-dl-platform-info {
  display: grid;
  gap: 4px;
}

.hx-dl-platform-name {
  color: #edf4ff;
  font-weight: 700;
}

.hx-dl-card-desc,
.hx-dl-features,
.hx-dl-unavailable-note,
.hx-dl-version-label,
.hx-dl-note {
  color: #93a7d1;
}

.hx-dl-features {
  list-style: none;
  display: grid;
  gap: 6px;
}

.hx-dl-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hx-dl-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(150, 178, 255, 0.2);
}

.hx-dl-note {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(150, 178, 255, 0.24);
  background: rgba(16, 25, 46, 0.78);
}

.hx-dl-note-link {
  color: var(--gold);
}

/* ── Settings ─────────────────────────────────────────────────── */
.hx-settings-grid {
  padding: var(--spacing-lg);
  max-width: 980px;
  display: grid;
  gap: var(--spacing-md);
}

.hx-settings-section {
  background: linear-gradient(180deg, rgba(14, 22, 41, 0.86), rgba(9, 14, 28, 0.9));
  border: 1px solid rgba(150, 178, 255, 0.22);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.hx-settings-section-head {
  display: grid;
  gap: 4px;
}

.hx-settings-section-title {
  margin: 0;
  color: #edf4ff;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hx-settings-rows {
  display: grid;
  gap: 8px;
}

.hx-settings-row {
  border: 1px solid rgba(150, 178, 255, 0.16);
  border-radius: 12px;
  background: rgba(120, 160, 255, 0.05);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hx-settings-row-info {
  display: grid;
  gap: 2px;
}

.hx-settings-row-label {
  font-size: 13px;
  color: #e9f1ff;
  font-weight: 700;
}

.hx-settings-row-desc {
  color: #93a7d1;
  font-size: 12px;
}

.hx-settings-row--disabled {
  opacity: 0.64;
}

.hx-settings-row-icon {
  color: #a7bce6;
  width: 20px;
  text-align: center;
}

.hx-settings-row--field .hx-settings-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hx-settings-unit {
  color: #93a7d1;
  font-size: 12px;
}

.hx-settings-row--actions {
  background: transparent;
  border-style: dashed;
}

.hx-settings-save-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hx-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.hx-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hx-toggle-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(150, 178, 255, 0.26);
  background: rgba(120, 160, 255, 0.12);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.hx-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #bcd0fb;
  transition: transform 0.2s, background 0.2s;
}

.hx-toggle input:checked + .hx-toggle-track {
  border-color: rgba(246, 199, 104, 0.6);
  background: rgba(246, 199, 104, 0.24);
}

.hx-toggle input:checked + .hx-toggle-track::after {
  transform: translateX(18px);
  background: #f6c768;
}

/* Theme customisation */
.hx-theme-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.hx-preset-btn {
  border: 1px solid rgba(150, 178, 255, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(120, 160, 255, 0.12), rgba(120, 160, 255, 0.04));
  color: #ecf3ff;
  padding: 10px;
  display: grid;
  justify-items: center;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(6, 10, 18, 0.5);
}

.hx-preset-btn.active,
.hx-preset-btn:hover {
  border-color: rgba(124, 231, 255, 0.62);
  background: linear-gradient(180deg, rgba(124, 231, 255, 0.2), rgba(120, 160, 255, 0.08));
  box-shadow:
    0 0 0 2px rgba(124, 231, 255, 0.14),
    inset 0 0 0 1px rgba(124, 231, 255, 0.26);
}

.hx-preset-preview {
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
}

.hx-preset-preview span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(8, 12, 20, 0.95),
    0 0 0 3px rgba(120, 160, 255, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.hx-preset-name {
  font-size: 11px;
  font-weight: 700;
}

/* Apercus presets: 3 pastilles = accent / fond / surface */
.hx-preset-btn[data-preset='default'] .hx-preset-preview span:nth-child(1) { background: #d4af37; }
.hx-preset-btn[data-preset='default'] .hx-preset-preview span:nth-child(2) { background: #0a1628; }
.hx-preset-btn[data-preset='default'] .hx-preset-preview span:nth-child(3) { background: #12192b; }

.hx-preset-btn[data-preset='violet-dusk'] .hx-preset-preview span:nth-child(1) { background: #a855f7; }
.hx-preset-btn[data-preset='violet-dusk'] .hx-preset-preview span:nth-child(2) { background: #0f0b1e; }
.hx-preset-btn[data-preset='violet-dusk'] .hx-preset-preview span:nth-child(3) { background: #1a1133; }

.hx-preset-btn[data-preset='minuit-bleu'] .hx-preset-preview span:nth-child(1) { background: #3b82f6; }
.hx-preset-btn[data-preset='minuit-bleu'] .hx-preset-preview span:nth-child(2) { background: #060d1f; }
.hx-preset-btn[data-preset='minuit-bleu'] .hx-preset-preview span:nth-child(3) { background: #0d1b3e; }

.hx-preset-btn[data-preset='aube-rose'] .hx-preset-preview span:nth-child(1) { background: #f472b6; }
.hx-preset-btn[data-preset='aube-rose'] .hx-preset-preview span:nth-child(2) { background: #1a0d14; }
.hx-preset-btn[data-preset='aube-rose'] .hx-preset-preview span:nth-child(3) { background: #2d1220; }

.hx-preset-btn[data-preset='foret'] .hx-preset-preview span:nth-child(1) { background: #22c55e; }
.hx-preset-btn[data-preset='foret'] .hx-preset-preview span:nth-child(2) { background: #071510; }
.hx-preset-btn[data-preset='foret'] .hx-preset-preview span:nth-child(3) { background: #0e241a; }

.hx-preset-btn[data-preset='cendre'] .hx-preset-preview span:nth-child(1) { background: #a3a3a3; }
.hx-preset-btn[data-preset='cendre'] .hx-preset-preview span:nth-child(2) { background: #111111; }
.hx-preset-btn[data-preset='cendre'] .hx-preset-preview span:nth-child(3) { background: #1e1e1e; }

.hx-theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.hx-theme-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(150, 178, 255, 0.4);
  border-radius: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(120, 160, 255, 0.14), rgba(120, 160, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(6, 10, 18, 0.45);
}

.hx-theme-color-input {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(200, 220, 255, 0.45), 0 0 0 3px rgba(8, 12, 20, 0.8);
}

.hx-theme-swatch__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(8, 12, 20, 0.9), 0 0 0 4px rgba(150, 178, 255, 0.25);
}

.hx-theme-swatch__label {
  font-size: 12px;
  color: #cadbff;
}

.hx-sleep-timer-display {
  min-width: 62px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #f6e3b6;
  font-weight: 700;
}

/* ── Playlists ────────────────────────────────────────────────── */
.hx-playlists-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.hx-playlists-sidebar,
.hx-playlists-main {
  background: linear-gradient(180deg, rgba(14, 22, 41, 0.86), rgba(9, 14, 28, 0.9));
  border: 1px solid rgba(150, 178, 255, 0.2);
  border-radius: 14px;
}

.hx-playlists-sidebar {
  padding: 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
}

.hx-playlists-main {
  min-height: 0;
  overflow: auto;
}

.hx-pl-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hx-pl-sidebar-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a4bce9;
  font-weight: 800;
}

.hx-playlists-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.hx-playlist-item {
  text-align: left;
  border: 1px solid rgba(150, 178, 255, 0.2);
  border-radius: 10px;
  background: rgba(120, 160, 255, 0.05);
  padding: 8px 10px;
  display: grid;
  gap: 3px;
  color: #dbe8ff;
}

.hx-playlist-item strong {
  font-size: 13px;
}

.hx-playlist-item small {
  color: #8fa6d4;
  font-size: 11px;
}

.hx-playlist-item:hover,
.hx-playlist-item.active {
  border-color: rgba(124, 231, 255, 0.44);
  background: rgba(124, 231, 255, 0.14);
}

.hx-create-details {
  border-top: 1px solid rgba(150, 178, 255, 0.2);
  padding-top: 10px;
}

.hx-create-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dce9ff;
  font-weight: 700;
  cursor: pointer;
}

.hx-create-summary::-webkit-details-marker {
  display: none;
}

.hx-create-chevron {
  margin-left: auto;
  transition: transform var(--transition);
}

.hx-create-details[open] .hx-create-chevron {
  transform: rotate(180deg);
}

.hx-create-form {
  margin-top: 10px;
}

#hx-playlist-detail {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.hx-pl-header {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(150, 178, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(246, 199, 104, 0.1), rgba(246, 199, 104, 0.02));
}

.hx-pl-cover-wrap {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  border: 1px solid rgba(246, 199, 104, 0.34);
  background: rgba(246, 199, 104, 0.08);
  color: #f6c768;
  display: grid;
  place-items: center;
  font-size: 48px;
}

.hx-pl-header-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.hx-pl-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hx-pl-name-input,
.hx-pl-desc-input {
  border: 1px solid transparent;
  background: transparent;
  color: #edf4ff;
  border-radius: 8px;
  padding: 4px 0;
}

.hx-pl-name-input {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
}

.hx-pl-desc-input {
  color: #9db1da;
}

.hx-pl-name-input:hover,
.hx-pl-name-input:focus,
.hx-pl-desc-input:hover,
.hx-pl-desc-input:focus {
  border-color: rgba(150, 178, 255, 0.25);
  background: rgba(120, 160, 255, 0.08);
  padding-left: 8px;
  padding-right: 8px;
  outline: none;
}

.hx-pl-meta-line {
  color: #93a7d1;
  font-size: 12px;
}

.hx-pl-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hx-pl-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: #1f1a08;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform 0.15s, background 0.15s;
}

.hx-pl-play-btn:hover {
  transform: scale(1.06);
  background: var(--gold-light, #e8c84a);
}

.hx-pl-tracks-wrap {
  border: 1px solid rgba(150, 178, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  background: rgba(120, 160, 255, 0.04);
}

.hx-pl-tracks-head {
  display: grid;
  grid-template-columns: 32px 36px minmax(0, 1fr) 52px 100px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(150, 178, 255, 0.2);
  color: #90a6d2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hx-pl-col--num,
.hx-pl-track-num {
  text-align: center;
}

.hx-pl-col--dur,
.hx-pl-track-dur,
.hx-pl-col--actions {
  text-align: right;
}

.hx-playlist-tracks {
  display: grid;
  gap: 4px;
  padding-top: 6px;
}

.hx-playlist-track-row {
  display: grid;
  grid-template-columns: 32px 36px minmax(0, 1fr) 52px 100px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.hx-playlist-track-row:hover {
  background: rgba(124, 231, 255, 0.1);
  border-color: rgba(124, 231, 255, 0.22);
}

.hx-pl-track-cover {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.hx-playlist-track-meta {
  min-width: 0;
}

.hx-playlist-track-title {
  font-size: 13px;
  font-weight: 700;
  color: #eaf2ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-playlist-track-artist {
  font-size: 11px;
  color: #8fa6d4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-pl-track-dur {
  color: #9db1da;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.hx-track-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.hx-track-mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(150, 178, 255, 0.24);
  background: rgba(120, 160, 255, 0.08);
  color: #cfe0ff;
}

.hx-track-mini-btn:hover {
  border-color: rgba(124, 231, 255, 0.44);
  background: rgba(124, 231, 255, 0.16);
}

.hx-pl-tracks-empty,
.hx-pl-no-results {
  color: #93a7d1;
  font-size: 12px;
  padding: 8px;
}

.hx-pl-add-section {
  border: 1px solid rgba(150, 178, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 10px;
  background: rgba(120, 160, 255, 0.04);
}

.hx-pl-search-results {
  display: grid;
  gap: 6px;
}

.hx-pl-result-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(150, 178, 255, 0.2);
  border-radius: 8px;
  padding: 6px;
  background: rgba(120, 160, 255, 0.04);
}

.hx-pl-result-cover {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.hx-pl-result-info {
  min-width: 0;
}

.hx-pl-result-title {
  color: #eaf2ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-pl-result-artist {
  color: #8fa6d4;
  font-size: 11px;
}

.hx-pl-result-add {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(150, 178, 255, 0.24);
  color: #cfe0ff;
}

.hx-pl-result-add:hover {
  border-color: rgba(124, 231, 255, 0.44);
  background: rgba(124, 231, 255, 0.16);
}

/* ── Albums (conservé) ───────────────────────────────────────── */
.hx-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.hx-album-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 10px;
  background: transparent;
  transition: background 0.15s;
  outline: none;
}

.hx-album-card:hover,
.hx-album-card:focus-visible {
  background: var(--bg-surface);
}

.hx-album-card-cover-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hx-album-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.hx-album-card:hover .hx-album-card-cover {
  transform: scale(1.04);
}

.hx-album-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s;
  font-size: 28px;
  color: #fff;
}

.hx-album-card:hover .hx-album-card-overlay {
  opacity: 1;
}

.hx-album-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hx-album-card-name {
  font-size: var(--fs-100);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-album-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.hx-album-hero {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.10) 0%, transparent 100%);
}

.hx-album-hero-cover {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hx-album-hero-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
}

.hx-album-hero-name {
  margin: 0;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
}

.hx-album-hero-desc,
.hx-album-hero-meta {
  color: var(--text-muted);
  font-size: var(--fs-100);
}

.hx-album-tracks-list {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  display: grid;
}

.hx-album-track-row {
  display: grid;
  grid-template-columns: 32px 36px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
}

.hx-album-track-row:hover {
  background: var(--bg-hover);
}

.hx-album-track-num {
  text-align: center;
  font-size: var(--fs-100);
  color: var(--text-muted);
}

.hx-album-track-cover {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.hx-album-track-meta {
  min-width: 0;
}

.hx-album-track-title {
  font-size: var(--fs-100);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-album-track-artist,
.hx-album-track-dur {
  font-size: var(--fs-100);
  color: var(--text-muted);
}

.hx-album-track-dur {
  text-align: right;
}

/* ── Track share ─────────────────────────────────────────────── */
.hx-page-track {
  height: 100%;
}

.hx-track-share-detail {
  padding: var(--spacing-lg);
  min-height: 100%;
}

.hx-track-share-hero {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: var(--spacing-lg);
  align-items: end;
  max-width: 980px;
  min-height: 340px;
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  border: 1px solid rgba(150, 178, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(246, 199, 104, 0.12), rgba(124, 231, 255, 0.06) 42%, rgba(10, 16, 30, 0.88)),
    rgba(15, 24, 44, 0.82);
}

.hx-track-share-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(150, 178, 255, 0.26);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.hx-track-share-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-bottom: 4px;
}

.hx-track-share-title {
  margin: 0;
  color: var(--text);
  font-size: 36px;
  line-height: 1.04;
  font-weight: 800;
}

.hx-track-share-artist {
  color: #d9e5ff;
  font-size: 15px;
  font-weight: 700;
}

.hx-track-share-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #93a7d1;
  font-size: var(--fs-100);
}

.hx-track-share-album {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dce8ff;
  min-width: 0;
}

.hx-track-share-album:hover {
  color: #fff2c8;
}

.hx-track-share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}

.hx-track-share-actions .hx-btn-ghost.active {
  border-color: rgba(246, 199, 104, 0.48);
  background: rgba(246, 199, 104, 0.16);
  color: #ffe7b7;
}

/* ── Responsive global ───────────────────────────────────────── */
@media (max-width: 1040px) {
  .hx-playlists-layout {
    grid-template-columns: 1fr;
  }
}

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

  .hx-settings-row {
    flex-wrap: wrap;
  }

  .hx-pl-tracks-head,
  .hx-playlist-track-row {
    grid-template-columns: 28px 32px minmax(0, 1fr) 42px 84px;
  }
}

@media (max-width: 768px) {
  .hx-dl-body,
  .hx-settings-grid,
  .hx-playlists-layout {
    padding: var(--spacing-md);
  }

  #hx-playlist-detail {
    padding: 10px;
  }

  .hx-pl-header {
    grid-template-columns: 1fr;
  }

  .hx-pl-cover-wrap {
    width: 120px;
    height: 120px;
  }

  .hx-albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
  }

  .hx-album-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hx-album-hero-cover {
    width: 120px;
    height: 120px;
  }

  .hx-track-share-hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: unset;
  }

  .hx-track-share-cover {
    max-width: 260px;
  }

  .hx-track-share-title {
    font-size: 28px;
  }
}
