/* =========================================================
   01 — VARIABLES + RESET + BASE
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #000000;
  --bg-hover: #0d0d0d;
  --bg-active: #141414;

  --border: #1e1e1e;
  --border-hover: #4a3b08;
  --border-active: #fff;

  --text: #ffffff;
  --text-focus: #fff;
  --text-muted-1: #8f897c;
  --text-muted-2: #d3cfc6;

  --font-main: "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --header-height-desktop: 76px;
  --header-height-mobile-collapsed: 78px;
  --header-height-mobile-expanded: 132px;
  --header-height-mobile: var(--header-height-mobile-expanded);
  --bottom-player-height-desktop: 116px;
  --bottom-player-height-mobile: 104px;

  --radius-card: 10px;
  --transition-fast: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.4;
  touch-action: manipulation;
}

body {
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.player-ready {
  padding-bottom: var(--bottom-player-height-desktop);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

button:disabled {
  cursor: default;
  opacity: 0.5;
}

input {
  color: inherit;
}

svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}



:focus {
  outline: none;
}

:focus-visible {
  outline: 1px solid var(--border-active);
  outline-offset: 3px;
}

body.app-loading .content-toolbar,
body.app-loading .shell,
body.app-loading .bottom-player {
  visibility: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.empty {
  margin: 0;
  color: var(--text-muted-1);
  text-align: center;
}

@media (max-width: 900px) {
  body,
  body.player-ready {
    padding-bottom: 0;
  }
}


/* =========================================================
   02 — LAYOUT GLOBAL
   ========================================================= */

body {
  overscroll-behavior-y: none;
}

.content-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: grid;
  grid-template-columns: auto minmax(280px, 640px);
  justify-content: space-between;
  align-items: center;

  height: var(--header-height-desktop);
  padding: 0 18px;

  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .content-toolbar {
    background: rgba(10, 10, 10, 0.94);
  }
}

.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);

  width: 100%;
  height: 100vh;
  padding-top: var(--header-height-desktop);

  overflow: hidden;
}

.sidebar {
  overflow-y: auto;
  overflow-x: hidden;

  padding: 18px 14px 18px 18px;

  background: var(--bg-active);
}

.content {
  overflow-y: auto;
  overflow-x: hidden;

  padding: 14px 14px 140px;

  background: var(--bg-active);
}

.browse-playlist .content {
  padding-left: 8px;
  padding-right: 8px;
}

.home-section,
.search-results,
.player-card,
.queue,
.playback-queue {
  width: 100%;
}

.folder-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1600px) {
  .folder-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .folder-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .content-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;

    height: var(--header-height-mobile);
    padding: 10px 12px 12px;
    gap: 10px;
  }

  .shell {
    display: block;
    padding-top: var(--header-height-mobile);
  }

  .sidebar {
    display: none;
  }

  .content {
    padding:
      10px
      10px
      calc(var(--bottom-player-height-mobile) + 12px);
  }

  .folder-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* =========================================================
   03 — HEADER FLOTTANT + SEARCH
   ========================================================= */

.toolbar-brand,
.mobile-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: repeat(2, auto);
  align-items: center;
  align-content: center;
  column-gap: 12px;
  row-gap: 2px;

  min-width: 0;
  height: 100%;

  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.toolbar-brand:active {
  color: var(--text);
}

.toolbar-brand img {
  grid-row: 1 / 3;
  width: 72px;
  height: 58px;
  object-fit: contain;
}

.toolbar-brand > span:first-of-type {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-playlist-count {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted-1);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-playlist-count:empty {
  display: none;
}

.mobile-search-toggle {
  display: none;
}

.content-search,
.search-box {
  min-width: 0;
}

.search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  width: 100%;
  max-width: 640px;
  min-height: 44px;
  padding: 0 14px;

  background: var(--bg-active);
  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--text-muted-1);

  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--border-active);
  color: var(--text-focus);
}

.search-box svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  min-width: 0;

  border: 0;
  outline: 0;
  background: transparent;

  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.search-box input::placeholder {
  color: var(--text-muted-1);
}

.search-box input::-webkit-search-cancel-button {
  filter: invert(1);
}

@media (min-width: 901px) {
  .toolbar-brand {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    row-gap: 3px;
  }

  .toolbar-brand img {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }

  .toolbar-brand > span:first-of-type {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .toolbar-brand > span:first-of-type,
  .toolbar-playlist-count {
    line-height: 1.08;
  }

  .toolbar-playlist-count {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .toolbar-brand:not(:has(.toolbar-playlist-count:not(:empty))) {
    grid-template-rows: auto;
  }

  .toolbar-brand:not(:has(.toolbar-playlist-count:not(:empty))) img,
  .toolbar-brand:not(:has(.toolbar-playlist-count:not(:empty))) > span:first-of-type {
    grid-row: 1;
    align-self: center;
  }
}

/* Masquage temporaire des sticky de piste, à réactiver après refonte sticky/auto-scroll. */
.playlist-active-track-sticky,
.playlist-active-track-sticky.is-visible,
.search-active-track-sticky,
.search-active-track-sticky.is-visible {
  display: none !important;
}

@media (max-width: 900px) {
  :root {
    --header-height-mobile: var(--header-height-mobile-collapsed);
  }

  body.mobile-search-open {
    --header-height-mobile: var(--header-height-mobile-expanded);
  }

  .content-toolbar {
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas:
      "brand search-toggle"
      "search search";
    grid-template-rows: 56px 0;
    align-content: start;
    row-gap: 0;
  }

  .toolbar-brand {
    grid-area: brand;
    grid-template-rows: 1fr auto 1fr;
    align-items: stretch;
    align-content: stretch;
    row-gap: 0;
    height: 56px;
  }

  .toolbar-brand:has(.toolbar-playlist-count:not(:empty)) {
    grid-template-rows: 1.12fr auto auto 0.88fr;
    row-gap: 3px;
  }

  .toolbar-brand img {
    grid-row: 1 / -1;
    width: 72px;
    height: 56px;
  }

  .toolbar-brand > span:first-of-type {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    font-size: 17px;
    line-height: 1.08;
  }

  .toolbar-brand:has(.toolbar-playlist-count:not(:empty)) > span:first-of-type {
    align-self: end;
  }

  .toolbar-playlist-count {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    line-height: 1.08;
  }

  .mobile-search-toggle {
    grid-area: search-toggle;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    align-self: center;
    justify-self: end;
    color: var(--text-muted-1);
  }

  .mobile-search-toggle svg {
    width: 22px;
    height: 22px;
  }

  .mobile-search-icon-search {
    color: var(--text);
  }

  .mobile-search-icon-close {
    display: none;
  }

  body.mobile-search-open .mobile-search-icon-search {
    display: none;
  }

  body.mobile-search-open .mobile-search-icon-close {
    display: block;
  }

  .content-search {
    grid-area: search;
    display: none;
    width: 100%;
  }

  body.mobile-search-open .content-toolbar {
    grid-template-rows: 56px 42px;
    row-gap: 10px;
  }

  body.mobile-search-open .content-search {
    display: grid;
  }

  .search-box {
    max-width: none;
    min-height: 42px;
  }

  .search-box input {
    font-size: 16px;
  }
}

/* =========================================================
   04 — SIDEBAR DESKTOP
   ========================================================= */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;

  background: var(--bg-active);
  border: 0;
}

.app-nav {
  display: grid;
  gap: 8px;
  width: 100%;
}

.app-nav-button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  width: 100%;
  min-height: 44px;
  padding: 0 12px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;

  color: var(--text-muted-1);
  font-size: 14px;
  font-weight: 400;
  text-align: left;

  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.app-nav-button svg {
  width: 20px;
  height: 20px;
}

.app-nav-button.active {
  border-color: var(--border-active);
  color: var(--text-focus);
}

.tag-cloud {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.tag-cloud h2,
.tag-cloud h3 {
  margin: 0;
  letter-spacing: 0;
}

.tag-cloud h2 {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.tag-cloud-section {
  display: grid;
  gap: 5px;
}

.tag-cloud-section h3 {
  color: var(--text-muted-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-cloud-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.tag-cloud-list.other-artists {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--border);
}

.tag-cloud-button {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 6px 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted-1);
  font: inherit;
  font-size: 11px;
  line-height: 1.25;
  cursor: pointer;
}

.tag-cloud-button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-cloud-count {
  position: relative;
  top: -0.25em;
  color: color-mix(in srgb, var(--text-muted-2) 72%, transparent);
  font-size: 0.68em;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tag-cloud-button:focus-visible,
.tag-cloud-button:hover {
  border-color: var(--border-hover);
  color: var(--text-focus);
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
}

/* =========================================================
   05 — HOME + CARTES PLAYLISTS
   ========================================================= */

.home-section {
  background: transparent;
}

.folder-entry {
  min-width: 0;
}

.folder-button {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;

  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);

  color: var(--text);
  text-align: left;

  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.folder-button.active {
  background: var(--bg-active);
  border-color: var(--border-active);
}

.folder-cover-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.folder-cover,
.folder-cover-root,
.default-cover,
.empty-cover {
  position: relative;
  display: grid;
  place-items: center;

  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;

  background: var(--bg);
  color: var(--text-muted-1);
}

.folder-cover img,
.default-cover img,
.empty-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.folder-button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  aspect-ratio: 16 / 9;
  z-index: 2;

  background: var(--bg);
  opacity: 0;

  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.folder-button.active::before {
  opacity: 0.38;
}

.folder-copy {
  display: grid;
  gap: 3px;

  min-width: 0;
  padding: 10px 12px 12px;

  background: var(--bg);
}

.folder-button.active .folder-copy {
  background: var(--bg-active);
}

.folder-name {
  display: block;
  min-width: 0;
  overflow: hidden;

  color: var(--text-muted-1);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-title-line {
  display: block;
}

.folder-title-prefix {
  display: block;
  color: var(--text-muted-1);
  font-size: 12px;
  font-weight: 400;
}

.folder-title-name {
  display: block;
  margin-top: 2px;

  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.15;
}

.folder-title-name.has-playing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  vertical-align: top;
}

.folder-title-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-playing-badge {
  width: 15px;
  min-width: 15px;
  height: 15px;
  transform: translateY(-3px);
}

.folder-playing-badge span {
  width: 2px;
  height: 10px;
}

.folder-detail {
  margin: 0;
  color: var(--text-muted-1);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
}

.folder-button.active .folder-title-prefix,
.folder-button.active .folder-detail {
  color: var(--text-muted-2);
}

.folder-button.active .folder-title-name {
  color: var(--text-focus);
}

.folder-collage {
  display: none;
}

  .folder-button.active::after {
    font-size: 11px;
  }
}
  .folder-button.active::after {
    font-size: 11px;
  }

  .folder-copy {
    padding: 8px 9px 10px;
  }

  .folder-title-prefix {
    font-size: 11px;
  }

  .folder-title-name {
    font-size: 13px;
  }

  .folder-detail {
    font-size: 11px;
  }
}


/* =========================================================
   06 — HEADER PLAYLIST
   ========================================================= */

.player-card {
  width: 100%;
  margin-bottom: 18px;

  background: var(--bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.browse-playlist .now {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 22px;

  width: 100%;
  overflow: hidden;

  background: var(--bg);
}

.browse-playlist .cover {
  position: relative;

  width: 100%;
  max-width: 320px;
  overflow: hidden;

  background: var(--bg);
}

.browse-playlist .cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mobile-cover-controls {
  display: none;
}

.mobile-cover-close-button {
  display: none;
}

.mobile-cover-lock-indicator {
  display: none;
}

.mobile-cover-swipe-hint {
  display: none;
}

.now-meta {
  display: grid;
  gap: 10px;

  min-width: 0;
  padding-right: 12px;
}

.eyebrow,
.title-count {
  display: block;

  overflow: hidden;

  color: var(--text-muted-1);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-playlist h1,
.track-title {
  margin: 0;

  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  line-height: 1;
}

.folder-detail {
  display: block;

  overflow: hidden;

  color: var(--text-muted-2);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-playlist-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 38px;
  padding: 0 14px;

  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--text-muted-1);
  font-size: 13px;
  font-weight: 400;

  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.share-playlist-button.active {
  border-color: var(--border-active);
  color: var(--text-focus);
}

.share-playlist-button svg {
  width: 16px;
  height: 16px;
}

.playlist-share-button {
  display: none;
}

@media (max-width: 900px) {
  .browse-playlist .now {
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .browse-playlist .cover {
    max-width: 104px;
  }

  .now-meta {
    gap: 6px;
    padding-right: 0;
  }

  .eyebrow,
  .title-count {
    font-size: 11px;
  }

  .browse-playlist h1,
  .track-title {
    font-size: clamp(20px, 6vw, 28px);
  }

  .folder-detail {
    font-size: 11px;
  }

  .share-playlist-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }
}


/* =========================================================
   07 — TRACKLIST
   ========================================================= */

.queue {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.search-results .queue-header {
  position: sticky;
  top: -14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 12px;
  background: var(--bg);
}

.search-results-title-query {
  overflow: hidden;
  color: var(--text-focus);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results .queue-header h2 {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-list {
  display: grid;
  gap: 8px;
  width: 100%;
}
.search-results .queue-header p,
.search-results .queue-header button {
  color: var(--text-muted-1);
}

.search-results .queue-header p {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.search-results .queue-header .search-summary-button {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted-1);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.search-results .queue-header button.active,
.search-results .queue-header button[aria-pressed="true"] {
  border-color: var(--border-active);
  color: var(--text-focus);
}

.track-button,
.queue-track-button {
  position: relative;

  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;

  width: 100%;
  min-height: 68px;
  padding: 10px 12px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;

  color: var(--text);
  text-align: left;
  cursor: pointer;

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.track-list > .track-button {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  min-height: 64px;
  padding-block: 0;
  padding-left: 0;
  overflow: hidden;
}

.track-list > .track-button.active {
  padding-right: 42px;
}

.track-button.active,
.queue-track-button.active {
  background: var(--bg-active);
  border-color: var(--border-active);
  box-shadow: inset 4px 0 0 var(--border-active);
}

.track-index {
  color: var(--text-muted-1);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

.track-cover-thumb {
  display: block;
  align-self: stretch;
  width: 64px;
  min-height: 64px;
  overflow: hidden;
  background: var(--bg-muted);
  border-radius: 9px 0 0 9px;
}

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

.track-main {
  min-width: 0;
}

.track-name {
  display: block;
  overflow: hidden;

  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-detail {
  display: block;
  margin-top: 4px;
  overflow: hidden;

  color: var(--text-muted-1);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-extra {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;

  min-width: 44px;

  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.track-share-button {
  position: relative;
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted-1);
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.track-share-button.active {
  border-color: var(--border-hover);
  color: var(--text);
}

.track-share-button svg {
  width: 22px;
  height: 22px;
}

.track-share-button.active::after {
  content: "Lien copié";
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 4px 7px;
  background: var(--bg-active);
  border: 1px solid var(--border-active);
  border-radius: 6px;
  color: var(--text-focus);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.track-button.active .track-index,
.queue-track-button.active .track-index,
.track-button.active .track-name,
.queue-track-button.active .track-name {
  color: var(--text-focus);
}

.track-button.active .track-detail,
.queue-track-button.active .track-detail {
  color: var(--text-muted-1);
}

.playing-badge {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: end;
  justify-content: center;
  gap: 3px;

  width: 18px;
  min-width: 18px;
  height: 18px;

  color: var(--text-focus);
}

.track-list > .track-button > .playing-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.playing-badge span {
  display: block;

  width: 3px;
  height: 12px;
  border-radius: 999px;

  background: var(--text-focus);

  animation: equalizer 760ms ease-in-out infinite;
}

.playing-badge span:nth-child(2) {
  animation-delay: 120ms;
}

.playing-badge span:nth-child(3) {
  animation-delay: 240ms;
}

.playing-badge.is-paused span {
  animation: none;
}

@keyframes equalizer {
  0%,
  100% {
    transform: scaleY(0.35);
  }

  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 900px) {
  .track-list {
    gap: 7px;
  }

  .track-button,
  .queue-track-button {
    grid-template-columns: 30px minmax(0, 1fr) auto 20px;
    gap: 8px;

    min-height: 62px;
    padding: 9px 8px;

    border-radius: 9px;
  }

  .track-list > .track-button {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    min-height: 56px;
    padding-block: 0;
    padding-left: 0;
  }

  .track-list > .track-button.active {
    padding-right: 34px;
  }

  .track-list > .track-button > .playing-badge {
    right: 8px;
  }

  .track-index {
    font-size: 12px;
  }

  .track-cover-thumb {
    width: 56px;
    min-height: 56px;
  }

  .track-name {
    font-size: 14px;
  }

  .track-detail {
    font-size: 12px;
  }

  .track-extra {
    min-width: 34px;
    font-size: 12px;
  }

  .playing-badge {
    width: 16px;
    min-width: 16px;
    height: 16px;
    gap: 2px;
  }

  .playing-badge span {
    width: 3px;
    height: 10px;
  }
}

@media (max-width: 420px) {
  .track-button,
  .queue-track-button {
    grid-template-columns: 26px minmax(0, 1fr) 18px;
  }

  .track-list > .track-button {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .track-cover-thumb {
    width: 56px;
  }

  .track-extra {
    display: none;
  }
}


/* =========================================================
   08 — RECHERCHE
   ========================================================= */

.search-results {
  width: 100%;
  background: transparent;
}

.search-results[hidden] {
  display: none !important;
}

.playback-queue[hidden] {
  display: none !important;
}

.search-result-list:has(.search-playlist-result) {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.search-result-list:has(.search-result-duration) {
  display: grid;
  gap: 8px;
}

.search-active-track-sticky {
  display: none;
}

.search-active-track-sticky.is-visible {
  position: sticky;
  top: calc(var(--search-summary-sticky-height, 0px) - 14px);
  z-index: 2;
  display: block;
  margin: 0 0 8px;
  background: var(--bg);
}

.search-active-track-sticky-row.search-result-item {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.search-active-track-sticky,
.search-active-track-sticky * {
  animation: none !important;
  transition: none !important;
}

.search-playlist-match-count {
  color: var(--text-focus);
}

.search-playlist-match-detail {
  color: var(--text-muted-1);
}

.search-result-item {
  position: relative;

  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  width: 100%;
  min-height: 68px;
  padding: 8px 10px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;

  color: var(--text);
  text-align: left;

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.search-result-item.active {
  background: var(--bg-active);
  border-color: var(--border-active);
}

.search-result-title {
  display: block;
  overflow: hidden;

  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-subtitle, 
.search-folder-link  {
  display: block;
  margin-top: 7px;
  overflow: hidden;

  color: var(--text-muted-1);
  font-size: 11px;
  font-weight: 100;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-folder-link  {
  color: var(--text-focus);
}

.search-result-duration {
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.search-result-item:has(.search-result-duration) {
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  min-height: 68px;
  padding: 0 12px 0 0;
}

.search-result-item:has(.search-result-duration).active {
  box-shadow: none;
}

.search-result-item:has(.search-result-duration) .search-play-button {
  align-self: stretch;
  display: grid;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 9px 0 0 9px;
}

.search-result-item:has(.search-result-duration) .search-cover {
  display: grid;
  place-items: center;
  width: 118px;
  height: 100%;
  min-height: 68px;
  overflow: hidden;
  background: var(--bg);
  border-radius: 9px 0 0 9px;
}

.search-result-item:has(.search-result-duration) .search-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-result-item:has(.search-result-duration) .search-result-copy {
  align-self: center;
  min-width: 0;
  overflow: hidden;
}

.search-result-item:has(.search-result-duration) .search-result-title {
  max-width: 100%;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.search-result-item:has(.search-result-duration) .search-result-subtitle,
.search-result-item:has(.search-result-duration) .search-folder-link {
  max-width: 100%;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.search-result-item:has(.search-result-duration) .search-folder-link {
  color: var(--text-focus);
}

.search-result-item:has(.search-result-duration) .search-result-duration {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  font-size: 13px;
}

.search-result-item:has(.search-result-duration).active .search-result-title {
  color: var(--text-focus);
}

.search-empty {
  padding: 22px 0;

  color: var(--text-muted-1);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1600px) {
  .search-result-list:has(.search-playlist-result) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .search-result-list:has(.search-playlist-result) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .search-results .queue-header {
    position: fixed;
    top: var(--header-height-mobile);
    left: 10px;
    right: 10px;
    align-items: center;
  }

  .search-results .queue-header h2 {
    font-size: 13px;
  }

  .search-results .queue-header p {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .search-results .queue-header .search-summary-button {
    min-height: 40px;
    padding: 0 11px;
    font-size: 13px;
  }

  .search-result-list:has(.search-playlist-result) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: calc(var(--search-summary-sticky-height, 0px) + 12px);
  }

  .search-result-item {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 62px;
    gap: 10px;
    padding: 7px 8px;
  }

  .search-result-item::before {
    width: 56px;
  }

  .search-result-item::after {
    left: 28px;

    width: 28px;
    height: 28px;

    font-size: 11px;
  }

  .search-result-title {
    font-size: 13px;
  }

  .search-result-subtitle,
  .search-result-duration {
    font-size: 11px;
  }

  .search-result-duration {
    display: none;
  }

  .search-result-item:has(.search-result-duration) .search-result-duration {
    display: none;
  }

  .search-result-item:has(.search-result-duration) {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 8px;
    min-height: 62px;
    padding: 0 8px 0 0;
    border-radius: 9px;
  }

  .search-result-item:has(.search-result-duration) .search-cover {
    width: 102px;
    min-height: 62px;
    border-radius: 8px 0 0 8px;
  }

  .search-result-item:has(.search-result-duration) .search-play-button {
    border-radius: 8px 0 0 8px;
  }

  .search-result-item:has(.search-result-duration) .search-result-title {
    font-size: 14px;
  }

  .search-result-item:has(.search-result-duration) .search-result-subtitle,
  .search-result-item:has(.search-result-duration) .search-folder-link {
    font-size: 12px;
  }

  .search-result-list:has(.search-result-duration) {
    gap: 7px;
    padding-top: calc(var(--search-summary-sticky-height, 0px) + 12px);
  }

  .search-active-track-sticky.is-visible {
    display: none;
  }
}


/* =========================================================
   09 — LECTEUR FLOTTANT BAS
   ========================================================= */

.bottom-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  overflow: hidden;

  display: none;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 720px) minmax(180px, 1fr);
  grid-template-rows: 22px minmax(0, 1fr);
  grid-template-areas:
    "timeline timeline timeline"
    "track controls utilities";
  align-items: center;
  column-gap: 18px;
  row-gap: 2px;

  min-height: var(--bottom-player-height-desktop);
  padding: 0 18px 8px;

  background: var(--bg-active);
  border-top: 1px solid var(--border);
}

body.player-ready .bottom-player.has-track {
  display: grid;
}

.bottom-track {
  grid-area: track;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bottom-cover {
  height: 80px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

.bottom-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bottom-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--text-muted-1);
  text-align: left;
  margin-left: 70px;
}

.bottom-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bottomPlaylistTitle {
  color: var(--text-muted-1);
  font-size: 11px;
  font-weight: 400;
}

#bottomTrackTitle {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

#bottomTrackDetail,
#bottomPlaybackPosition {
  font-size: 11px;
  font-weight: 400;
}

#bottomPlaybackPosition {
  color: var(--text-muted-2);

}

#bottomPlaybackPosition {
  color: var(--text);
}


.bottom-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bottom-icon-button,
.icon-button,
.volume-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text-muted-1);
  background: transparent;
  transition: color var(--transition-fast);
}

.mode-button {
  position: relative;
}

.bottom-icon-button.active,
.icon-button.active,
.volume-toggle.active,
.mode-button.active {
  color: var(--text-focus);
}

.mode-button.reverse-playback-active {
  color: var(--text-focus);
}

.mode-button.reverse-playback-active .reverse-playback-icon {
  color: var(--text-focus);
}

.reverse-playback-icon {
  fill: currentColor;
}

.repeat-badge {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--text-focus);
  color: var(--bg);
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
}

.bottom-play-button,
.play-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--text);
  background: transparent;
}

.bottom-play-button svg,
.play-button svg {
  width: 28px;
  height: 28px;
}

.bottom-timeline,
.timeline {
  grid-area: timeline;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  color: var(--text-muted-1);
  font-size: 11px;
  font-weight: 400;
}

.bottom-timeline span:first-child,
.timeline span:first-child {
  text-align: left;
}

.bottom-timeline span:last-child,
.timeline span:last-child {
  text-align: right;
}

/* Sliders Audio */
input[type="range"] {
  width: 100%;
  min-width: 0;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      var(--text) 0%,
      var(--text) var(--range-progress, 0%),
      var(--bg-hover) var(--range-progress, 0%),
      var(--bg-hover) 100%
    );
}

input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--text);
}

input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--bg-hover);
}

input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--text);
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
}

.bottom-utilities {
  grid-area: utilities;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.bottom-volume {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  color: var(--text-muted-1);
}

.bottom-volume-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text-muted-1);
  transition: color var(--transition-fast);
}

.bottom-volume-toggle.muted {
  color: var(--text-focus);
}

.bottom-volume-toggle.muted::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 18px;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(-38deg);
  transform-origin: center;
}

.bottom-volume svg {
  width: 20px;
  height: 20px;
}

.bottom-volume-control {
  position: absolute;
  left: 50%;
  bottom: 100%;
  z-index: 4;
  width: 112px;
  padding: 8px 10px;
  background: var(--bg-active);
  border: 1px solid var(--border);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.bottom-volume:focus-within .bottom-volume-control {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.bottom-volume-control input {
  display: block;
  height: 16px;
}

.bottom-volume-control input::-webkit-slider-runnable-track {
  height: 3px;
}

.bottom-volume-control input::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
}

.bottom-volume-control input::-moz-range-track,
.bottom-volume-control input::-moz-range-progress {
  height: 3px;
}

.bottom-volume-control input::-moz-range-thumb {
  width: 10px;
  height: 10px;
}

.bottom-share-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text-muted-1);
  transition: color var(--transition-fast);
}

.bottom-share-button.active {
  color: var(--text-focus);
}

.bottom-share-button svg {
  width: 24px;
  height: 24px;
}

.bottom-share-button.active::after {
  content: "Lien copié";
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 4px 7px;
  background: var(--bg-active);
  border: 1px solid var(--border-active);
  border-radius: 6px;
  color: var(--text-focus);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

body.player-view .bottom-player,
.shell.player-view .bottom-player {
  display: none !important;
}

@media (min-width: 901px) {
  .bottom-player {
    background: rgba(10, 10, 10, 0.78);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    border-top: 0;
    overflow: visible;
  }

  .bottom-timeline {
    position: relative;
    align-self: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 10px 12px;
    grid-template-areas:
      "seek seek"
      "current duration";
    gap: 0;
    width: calc(100% + 36px);
    margin: 0 -18px;
    overflow: visible;
  }

  .bottom-timeline input {
    grid-area: seek;
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    z-index: 3;
    width: auto;
    height: 12px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .bottom-timeline input::-webkit-slider-runnable-track {
    height: 3px;
    background:
      linear-gradient(
        to right,
        var(--text) 0%,
        var(--text) var(--range-progress, 0%),
        var(--border) var(--range-progress, 0%),
        var(--border) 100%
      );
  }

  .bottom-timeline input::-webkit-slider-thumb {
    margin-top: -4px;
  }

  .bottom-timeline input::-moz-range-track,
  .bottom-timeline input::-moz-range-progress {
    height: 3px;
  }

  .bottom-timeline input::-moz-range-track {
    background: var(--border);
  }

  .bottom-timeline input::-moz-range-progress {
    background: var(--text);
  }

  .bottom-timeline span:first-child {
    grid-area: current;
    align-self: start;
    padding-left: 18px;
    line-height: 12px;
  }

  .bottom-timeline span:last-child {
    grid-area: duration;
    align-self: start;
    padding-right: 18px;
    line-height: 12px;
  }

  #bottomPreviousButton,
  #bottomNextButton {
    width: clamp(56px, 5vw, 72px);
    height: clamp(56px, 5vw, 72px);
  }

  #bottomPreviousButton svg,
  #bottomNextButton svg {
    width: clamp(34px, 3.4vw, 42px);
    height: clamp(34px, 3.4vw, 42px);
  }

  #bottomPlayButton {
    position: relative;
    width: clamp(64px, 5.5vw, 76px);
    height: clamp(64px, 5.5vw, 76px);
  }

  #bottomPlayButton::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 0;
    border-radius: 50%;
    background:
      conic-gradient(
        var(--text) 0%,
        var(--text) var(--play-progress, 0%),
        rgba(255, 255, 255, 0.14) var(--play-progress, 0%),
        rgba(255, 255, 255, 0.14) 100%
      );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    pointer-events: none;
  }

  #bottomPlayButton svg {
    position: relative;
    z-index: 1;
    width: clamp(38px, 3.8vw, 46px);
    height: clamp(38px, 3.8vw, 46px);
  }

  .bottom-volume {
    justify-self: end;
  }

  .bottom-volume svg {
    width: 24px;
    height: 24px;
  }

  .bottom-volume-control {
    left: auto;
    right: 0;
    transform: translate(0, 6px);
  }

  .bottom-volume:focus-within .bottom-volume-control {
    transform: translate(0, 0);
  }

  .bottom-track,
  .bottom-controls,
  .bottom-timeline,
  .bottom-mobile-trackline,
  .bottom-utilities,
  .bottom-volume {
    position: relative;
    z-index: 4;
  }
}

@media (min-width: 901px) {
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .bottom-player {
      background: rgba(10, 10, 10, 0.94);
    }
  }
}

@media (max-width: 900px) {
  .bottom-player .bottom-controls,
  .bottom-player .bottom-mobile-trackline,
  .bottom-player .bottom-mobile-trackline-title,
  .bottom-player .bottom-icon-button,
  .bottom-player .bottom-play-button,
  .bottom-player .bottom-share-button,
  .bottom-player .bottom-volume-toggle {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .bottom-player .bottom-controls,
  .bottom-player .bottom-mobile-trackline,
  .bottom-player .bottom-icon-button,
  .bottom-player .bottom-play-button,
  .bottom-player .bottom-share-button,
  .bottom-player .bottom-volume-toggle {
    touch-action: manipulation;
  }

  .bottom-player {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "timeline"
      "controls"
      "mobile-trackline";
    align-items: start;
    justify-items: stretch;
    gap: 4px;
    min-height: var(--bottom-player-height-mobile);
    padding: 0 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.06);
    overflow: visible;
    background: rgba(10, 10, 10, 0.78);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    transform: translateY(6px);
  }

  .bottom-track,
  .bottom-controls,
  .bottom-timeline,
  .bottom-mobile-trackline,
  .bottom-utilities,
  .bottom-volume {
    position: relative;
    z-index: 2;
  }

.bottom-track {
  grid-area: meta;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;

  text-align: center;
}

@media (max-width: 900px) {
  body:not(.player-view) .browse-playlist .cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
  }

  body:not(.player-view) .browse-playlist .cover,
  body:not(.player-view) .browse-playlist .cover img,
  body:not(.player-view) .browse-playlist .cover-image {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-visible::after {
    opacity: 1;
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-visible,
  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-locked {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-swipe-hint {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 52px;
    height: min(48%, 168px);
    color: rgba(0, 0, 0, 0.78);
    opacity: 0.52;
    pointer-events: auto;
    transform: translateY(-50%);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-swipe-hint-left {
    left: 0;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-swipe-hint-right {
    right: 0;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-swipe-hint svg {
    width: 42px;
    height: 100%;
    fill: currentColor;
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.14))
      drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
  }

  body:not(.player-view) .browse-playlist .cover:active .mobile-cover-swipe-hint {
    opacity: 0.78;
  }

  body:not(.player-view) .browse-playlist .cover:active .mobile-cover-swipe-hint-left {
    transform: translate(-2px, -50%);
  }

  body:not(.player-view) .browse-playlist .cover:active .mobile-cover-swipe-hint-right {
    transform: translate(2px, -50%);
  }

  body:not(.player-view) .browse-playlist .mobile-cover-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 220ms ease,
      background var(--transition-fast),
      border-color var(--transition-fast);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-visible .mobile-cover-close-button {
    opacity: 1;
    pointer-events: auto;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-close-button svg {
    width: 18px;
    height: 18px;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-lock-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 20px);
    min-height: 34px;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-visible .mobile-cover-lock-indicator {
    opacity: 1;
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-locked .mobile-cover-lock-indicator {
    opacity: 1;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-lock-indicator svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-lock-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-lock-closed {
    display: none;
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-locked .mobile-cover-lock-open,
  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-locked .mobile-cover-lock-text {
    display: none;
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-locked.mobile-cover-lock-feedback .mobile-cover-lock-text {
    display: inline;
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-locked .mobile-cover-lock-closed {
    display: block;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-controls {
    position: absolute;
    inset: 48px 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition:
      opacity 320ms ease,
      transform 320ms ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-transport {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-trackline {
    display: flex;
    justify-content: center;
    width: min(86%, 390px);
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    line-height: 19px;
    text-align: center;
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.58),
      0 6px 18px rgba(0, 0, 0, 0.34);
    white-space: nowrap;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-trackline:empty {
    display: none;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-trackline .bottom-mobile-trackline-title {
    min-width: 0;
    overflow: hidden;
    text-align: center !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  @supports (width: 1cqw) {
    body:not(.player-view) .browse-playlist .mobile-cover-trackline {
      container-type: inline-size;
      justify-content: flex-start;
    }

    body:not(.player-view) .browse-playlist .mobile-cover-trackline .bottom-mobile-trackline-title {
      flex: 0 0 auto;
      width: max-content;
      min-width: 100%;
      max-width: none;
      overflow: visible;
      animation: bottom-mobile-title-scroll 18s linear infinite;
      text-overflow: clip;
    }
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-controls-visible .mobile-cover-controls {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body:not(.player-view) .browse-playlist .mobile-cover-control-button,
  body:not(.player-view) .browse-playlist .mobile-cover-play-button {
    display: grid;
    place-items: center;
    color: var(--text);
    background: rgba(10, 10, 10, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    transition:
      background var(--transition-fast),
      border-color var(--transition-fast),
      color var(--transition-fast);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-control-button {
    width: 48px;
    height: 48px;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-play-button {
    position: relative;
    width: 66px;
    height: 66px;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-play-button::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 0;
    border-radius: 50%;
    background:
      conic-gradient(
        var(--text) 0%,
        var(--text) var(--play-progress, 0%),
        rgba(255, 255, 255, 0.18) var(--play-progress, 0%),
        rgba(255, 255, 255, 0.18) 100%
      );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    pointer-events: none;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-control-button:active,
  body:not(.player-view) .browse-playlist .mobile-cover-play-button:active {
    border-color: var(--border-active);
    color: var(--text-focus);
  }

  body:not(.player-view) .browse-playlist .mobile-cover-control-button svg {
    width: 28px;
    height: 28px;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-play-button svg {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-share-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(84%, 360px);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-share-button {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    background: rgba(10, 10, 10, 0.68);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
    font-size: 12px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-share-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-share-button[hidden] {
    display: none;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-share-button.active {
    border-color: var(--border-active);
    color: var(--text-focus);
  }

  body:not(.player-view) .browse-playlist .mobile-cover-close-panel {
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: min(86%, 320px);
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-close-panel-visible .mobile-cover-transport,
  body:not(.player-view) .browse-playlist .cover.mobile-cover-close-panel-visible .mobile-cover-share-row {
    display: none;
  }

  body:not(.player-view) .browse-playlist .cover.mobile-cover-close-panel-visible .mobile-cover-close-panel {
    display: flex;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-close-action {
    flex: 1 1 130px;
    min-height: 40px;
    padding: 0 12px;
    background: rgba(10, 10, 10, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    transition:
      border-color var(--transition-fast),
      color var(--transition-fast);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }

  body:not(.player-view) .browse-playlist .mobile-cover-close-action:active {
    border-color: var(--border-active);
    color: var(--text-focus);
  }

  .mobile-playlist-swipe-dialog[hidden] {
    display: none;
  }

  .mobile-playlist-swipe-dialog {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.56);
  }

  .mobile-playlist-swipe-panel {
    display: grid;
    gap: 12px;
    width: min(100%, 340px);
    padding: 16px;
    background: var(--bg-active);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  }

  .mobile-playlist-swipe-title,
  .mobile-playlist-swipe-target {
    margin: 0;
    text-align: center;
  }

  .mobile-playlist-swipe-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.25;
  }

  .mobile-playlist-swipe-target {
    color: var(--text-muted-2);
    font-size: 13px;
    line-height: 1.3;
  }

  .mobile-playlist-swipe-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mobile-playlist-swipe-actions button {
    min-height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
  }

  .mobile-playlist-swipe-actions button:active {
    border-color: var(--border-active);
  }

  #bottomPlaylistTitle,
  #bottomTrackDetail {
    display: none;
  }

  #bottomTrackTitle {
    overflow: hidden;

    max-width: 100%;

    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #bottomPlaybackPosition {
    display: inline;
    margin-right: 6px;

    color: var(--text-muted-1);
    font-size: 12px;
    font-weight: 400;
  }
}

  .bottom-cover {
    display: none;
  }

  .bottom-controls {
    grid-area: controls;
    justify-self: center;
    gap: 10px;
  }

  .bottom-timeline {
    grid-area: timeline;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "current duration";
    gap: 2px 0;
    align-items: start;
    width: calc(100% + 24px);
    margin: 0 -12px;
    padding-top: 12px;
    overflow: visible;
  }

  .bottom-timeline input {
    position: absolute;
    top: -6px;
    left: 6px;
    right: 6px;
    z-index: 3;
    width: auto;
    height: 12px;
    margin: 0;
    overflow: visible;
  }

  .bottom-timeline input::-webkit-slider-runnable-track {
    height: 3px;
    background:
      linear-gradient(
        to right,
        var(--text) 0%,
        var(--text) var(--range-progress, 0%),
        var(--border) var(--range-progress, 0%),
        var(--border) 100%
      );
  }

  .bottom-timeline input::-webkit-slider-thumb {
    margin-top: -4.5px;
  }

  .bottom-timeline input::-moz-range-track,
  .bottom-timeline input::-moz-range-progress {
    height: 3px;
  }

  .bottom-timeline input::-moz-range-track {
    background: var(--border);
  }

  .bottom-timeline input::-moz-range-progress {
    background: var(--text);
  }

  .bottom-timeline span:first-child {
    grid-area: current;
    padding-left: 12px;
    transform: translateY(6px);
  }

  .bottom-timeline span:last-child {
    grid-area: duration;
    padding-right: 12px;
    transform: translateY(6px);
  }

  .bottom-utilities,
  .bottom-volume {
    display: none;
  }

  .bottom-icon-button {
    width: 40px;
    height: 40px;
  }

  .bottom-play-button {
    width: 54px;
    height: 54px;
  }

  #bottomPreviousButton:active,
  #bottomNextButton:active,
  #bottomPlayButton:active {
    background: rgba(10, 10, 10, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: var(--text-focus);
    opacity: 0.94;
    transform: scale(0.94);
  }

  .bottom-icon-button.mode-button.reverse-playback-active,
  .bottom-icon-button.mode-button.reverse-playback-active .reverse-playback-icon {
    color: var(--text-focus);
    fill: currentColor;
    stroke: currentColor;
  }

  .bottom-play-button svg {
    width: 34px;
    height: 34px;
  }
}

/* =========================================================
   10 — LECTEUR MOBILE
   ========================================================= */

.mobile-player-back,
.mobile-player-close {
  display: none;
}

@media (max-width: 900px) {
  body.player-view,
  body.player-ready.player-view {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;

    background: var(--bg);
    padding-bottom: 0;
  }

  .shell.player-view {
    position: fixed;
    inset: 0;

    display: block;

    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;

    background: var(--bg);
  }

  .shell.player-view .sidebar,
  .shell.player-view .content-toolbar,
  .shell.player-view .home-section,
  .shell.player-view .queue,
  .shell.player-view .search-results,
  .shell.player-view .playback-queue {
    display: none !important;
  }

  .shell.player-view .content {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;

    background: var(--bg);
  }

  .shell.player-view .player-card {
    position: relative;

    display: grid;
    grid-template-rows: auto;
    align-content: start;
    gap: 14px;

    width: min(100%, 760px);
    height: calc(100dvh - var(--bottom-player-height-mobile));
    margin: 0 auto;
    padding:
      calc(14px + env(safe-area-inset-top))
      14px
      12px;

    background: var(--bg);
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .shell.player-view .mobile-player-close {
    position: absolute;
    top: calc(24px + env(safe-area-inset-top));
    right: 14px;
    z-index: 1100;

    display: grid !important;
    place-items: center;

    width: 42px;
    height: 42px;

    background: var(--bg-active);
    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text);

    transition:
      border-color var(--transition-fast),
      color var(--transition-fast);
  }

  .shell.player-view .mobile-player-close:active {
    border-color: var(--border-active);
    color: var(--text-focus);
  }

  .shell.player-view .mobile-player-close svg {
    width: 22px;
    height: 22px;
  }

  .shell.player-view .back-button {
    display: none !important;
  }

  .shell.player-view .now {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 18px;

    min-height: 0;
    padding-top: 46px;

    text-align: center;
  }

  .shell.player-view .cover {
    width: 100%;
    max-width: 500px;
    overflow: visible;

    background: var(--bg);
  }

  .shell.player-view .cover img,
  .shell.player-view .cover-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .shell.player-view .now-meta {
    display: grid;
    gap: 8px;

    width: min(100%, 560px);
    text-align: center;
  }

  .shell.player-view .eyebrow,
  .shell.player-view .player-playlist-link {
    margin: 0;

    color: var(--text-muted-1);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
  }

  .shell.player-view .player-playlist-link {
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
  }

  .shell.player-view .title-row {
    display: block;
  }

  .shell.player-view h1 {
    margin: 0;

    color: var(--text);
    font-size: clamp(22px, 6vw, 34px);
    font-weight: 650;
    line-height: 1.15;
    text-align: center;
  }

  .shell.player-view .track-title {
    margin: 0;

    color: var(--text-muted-1);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
  }

  .shell.player-view .mobile-player-back {
    position: relative;
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 8px;

    width: min(100%, 500px);
    min-height: 40px;
    margin: clamp(18px, 4svh, 34px) auto 0;
    padding: 0 12px;

    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text-muted-1);
    font-size: 12px;
    font-weight: 400;
    text-align: left;

    transition:
      border-color var(--transition-fast),
      color var(--transition-fast);
  }

  .shell.player-view .mobile-player-back:active {
    border-color: var(--border-active);
    color: var(--text-focus);
  }

  .shell.player-view .mobile-player-back svg {
    width: 20px;
    height: 20px;
  }

  .shell.player-view #mobilePlayerBackLabel {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shell.player-view .timeline {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .shell.player-view .transport {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .shell.player-view .transport .title-count {
    display: block;
    width: min(100%, 500px);
    margin: 0 auto 10px;
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
  }

  .shell.player-view .controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .shell.player-view .icon-button {
    width: 42px;
    height: 42px;
  }

  .shell.player-view .play-button {
    width: 62px;
    height: 62px;
  }

  .shell.player-view .volume-panel {
    display: none;
  }

}

@media (max-width: 900px) {
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .bottom-player {
      background: rgba(10, 10, 10, 0.94);
    }
  }
}

/* =========================================================
   11 — ÉTATS DE VUES + RESPONSIVE FINAL
   ========================================================= */

/* Accueil */
.browse-roots .player-card,
.browse-roots .queue,
.browse-roots .search-results,
.browse-roots .playback-queue,
.browse-folders .player-card,
.browse-folders .queue,
.browse-folders .search-results,
.browse-folders .playback-queue {
  display: none;
}

/* Playlist */
.browse-playlist .home-section,
.browse-playlist .search-results,
.browse-playlist .playback-queue {
  display: none;
}

/* Recherche */
.section-search .home-section,
.section-search .player-card,
.section-search .queue,
.section-search .playback-queue {
  display: none;
}

.section-search .search-results {
  display: block;
}

/* Queue de Lecture */
.section-queue .home-section,
.section-queue .player-card,
.section-queue > .content > .queue,
.section-queue .search-results {
  display: none;
}

.section-queue .playback-queue {
  display: block;
}

/* Lecteur Ouvert */
.shell.player-view .home-section,
.shell.player-view .queue,
.shell.player-view .search-results,
.shell.player-view .playback-queue {
  display: none;
}

/* Espacement Desktop */
@media (min-width: 901px) {
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .browse-playlist .content {
    padding-top: 14px;
  }

  .browse-playlist .player-card {
    margin-bottom: 18px;
  }
}

/* Tablette */
@media (min-width: 901px) and (max-width: 1200px) {
  .shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .browse-playlist .now {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .browse-playlist .cover {
    max-width: 260px;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .browse-roots .content,
  .browse-folders .content,
  .section-search .content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .browse-playlist .content {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .browse-playlist .player-card {
    margin-bottom: 2px;
  }

  .browse-playlist .now {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .browse-playlist .cover {
    max-width: 108px;
  }
}

/* Petits Mobiles */
@media (max-width: 420px) {
  :root {
    --bottom-player-height-mobile: 100px;
  }

  .content {
    padding-left: 8px;
    padding-right: 8px;
  }

  .folder-list {
    gap: 10px;
  }

  .browse-playlist .now {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

  .browse-playlist .cover {
    max-width: 96px;
  }
}



/* =========================================================
   12 — ANIMATIONS + SCROLLBAR + FINITIONS
   ========================================================= */

html,
body {
  scrollbar-color: #4a4a4a transparent;
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
body *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
body *::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
body *::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border: 2px solid transparent;
  border-radius: 999px;
}

@media (hover: hover) and (pointer: fine) {
  .toolbar-brand:hover {
    color: var(--text);
  }

  .search-box:hover {
    border-color: var(--border-hover);
    color: var(--text);
  }

  .app-nav-button:hover {
    border-color: var(--border-hover);
    color: var(--text);
  }

  .app-nav-button.active:hover {
    border-color: var(--border-active);
    color: var(--text-focus);
  }

  .folder-button:hover {
    background: var(--bg);
    border-color: var(--border-hover);
  }

  .folder-button.active:hover {
    background: var(--bg-active);
    border-color: var(--border-active);
  }

  .folder-button:hover::before {
    opacity: 0.38;
  }

  .share-playlist-button:hover {
    border-color: var(--border-hover);
    color: var(--text);
  }

  .search-results .queue-header button:hover {
    border-color: var(--border-hover);
    color: var(--text);
  }

  .search-results .queue-header button.active:hover,
  .search-results .queue-header button[aria-pressed="true"]:hover {
    border-color: var(--border-active);
    color: var(--text-focus);
  }

  .track-button:hover,
  .queue-track-button:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
  }

  .track-button.active:hover,
  .queue-track-button.active:hover {
    background: var(--bg-active);
    border-color: var(--border-active);
  }

  .track-share-button:hover {
    border-color: var(--border-hover);
    color: var(--text);
  }

  .search-result-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
  }

  .search-result-item.active:hover {
    background: var(--bg-active);
    border-color: var(--border-active);
  }

  .bottom-icon-button:hover,
  .icon-button:hover,
  .volume-toggle:hover,
  .bottom-volume-toggle:hover {
    color: var(--text);
  }

  .bottom-icon-button.active:hover,
  .icon-button.active:hover,
  .volume-toggle.active:hover,
  .mode-button.active:hover {
    color: var(--text-focus);
  }

  .bottom-volume:hover .bottom-volume-control {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .bottom-share-button:hover {
    color: var(--text-focus);
  }

  body::-webkit-scrollbar-thumb:hover,
  body *::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .bottom-volume:hover .bottom-volume-control {
    transform: translate(0, 0);
  }
}

@media (hover: hover) and (pointer: fine) and (max-width: 900px) {
  .shell.player-view .mobile-player-close:hover,
  .shell.player-view .mobile-player-back:hover {
    border-color: var(--border-hover);
    color: var(--text);
  }
}

.sidebar,
.content,
.shell.player-view .player-card {
  overscroll-behavior: contain;
}

/* Transitions Globales */

.folder-button,
.track-button,
.queue-track-button,
.search-result-item,
.app-nav-button,
.search-box,
.share-playlist-button,
.bottom-icon-button,
.bottom-play-button,
.icon-button,
.play-button,
.volume-toggle,
.mobile-player-back,
.mobile-player-close {
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.bottom-icon-button.mode-button.reverse-playback-active,
.icon-button.mode-button.reverse-playback-active,
.bottom-icon-button.mode-button.reverse-playback-active .reverse-playback-icon,
.icon-button.mode-button.reverse-playback-active .reverse-playback-icon {
  color: var(--text-focus);
}

/* Transition des Pages */

.home-section,
.player-card,
.queue,
.search-results,
.playback-queue {
  animation: pageFade 180ms ease;
}

@media (max-width: 900px) {
  .shell.mobile-playlist-return-stable .player-card,
  .shell.mobile-playlist-return-stable .now {
    animation: none !important;
    transform: none !important;
  }

  .shell.mobile-playlist-entering .playlist-sticky-summary,
  .shell.mobile-playlist-entering .playlist-active-track-sticky,
  .shell.mobile-playlist-entering .queue {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loader */

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;

  display: grid;
  place-items: center;

  background: var(--bg);

  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.app-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.app-loader img {
  width: min(240px, 58vw);
  object-fit: contain;

  animation: loaderFade 1s ease both;
}

@keyframes loaderFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Interactions Natives */

input,
button,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

input:not([type="range"]),
textarea,
select {
  font-size: max(16px, 1em);
}

input:focus,
button:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Fond iOS */

html,
body,
.shell {
  background: var(--bg);
}

.sidebar,
.content {
  background: var(--bg-active);
}

.hidden {
  display: none !important;
}

/* Mouvement Réduit */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* Bannière Playlist */
body:not(.player-view) .browse-playlist .player-card .transport,
body:not(.player-view) .browse-playlist .player-card .timeline,
body:not(.player-view) .browse-playlist .player-card .volume-panel {
  display: none !important;
}

body:not(.player-view) .browse-playlist .player-card .back-button,
body:not(.player-view) .browse-playlist .player-card .mobile-player-back,
body:not(.player-view) .browse-playlist .player-card .mobile-player-close {
  display: none !important;
}

/* Scroll Principal */
html,
body {
  height: 100%;
  overflow: hidden;
}

.shell {
  height: 100vh;
  overflow: hidden;
}

.content {
  height: calc(100vh - var(--header-height-desktop));
  overflow-y: auto;
  overflow-x: hidden;
}

body.player-ready .content {
  height: calc(100vh - var(--header-height-desktop) - var(--bottom-player-height-desktop));
}

@media (max-width: 900px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body .shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body .content {
    height: auto;
    min-height: calc(100vh - var(--header-height-mobile));
    overflow: visible;
  }

  body.player-ready .content {
    padding-bottom: calc(var(--bottom-player-height-mobile) + 12px);
  }
}


@media (max-width: 900px) {
  .bottom-mobile-trackline {
    display: flex !important;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    overflow: hidden;

    font-size: 12px;
    line-height: 26px;

    width: calc(100% + 24px) !important;
    min-height: 26px;

    margin: 0 -12px !important;
    padding: 0 12px !important;

    background: transparent;

    text-align: left !important;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 900px) {
  .bottom-mobile-trackline * {
    min-width: 0;
    overflow: hidden;
    text-align: left !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-content: flex-start !important;
  }

  .bottom-mobile-trackline-title {
    flex: 1 1 auto;
  }
}

@media (max-width: 900px) {
  .bottom-controls {
    margin-top: -12px;
    transform: translateY(4px);
  }
}

.bottom-mobile-trackline {
  display: none;
}

@media (max-width: 900px) {
  .bottom-player {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "timeline"
      "controls"
      "mobile-trackline";
    justify-items: stretch;
  }

  .bottom-track {
    display: none;
  }

  .bottom-mobile-trackline {
    grid-area: mobile-trackline;
    display: flex !important;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    width: 100% !important;
    min-width: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 26px;
    text-align: center !important;
    transform: translateY(-8px);
    white-space: nowrap;
  }

  .bottom-mobile-trackline-title {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    text-align: center !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bottom-controls {
    justify-self: center;
  }
}

@media (max-width: 900px) {
  @supports (width: 1cqw) {
    .bottom-mobile-trackline {
      container-type: inline-size;
      justify-content: flex-start;
    }

    .bottom-mobile-trackline-title {
      flex: 0 0 auto;
      width: max-content;
      min-width: 100%;
      max-width: none;
      overflow: visible;
      animation: bottom-mobile-title-scroll 18s linear infinite;
      text-overflow: clip;
    }
  }
}

@keyframes bottom-mobile-title-scroll {
  0%,
  14% {
    transform: translateX(0);
  }

  72%,
  86% {
    transform: translateX(min(0px, calc(100cqw - 100%)));
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  body.player-ready,
  body.browse-playlist,
  body.player-ready.browse-playlist {
    height: auto !important;
    overflow-y: auto !important;
  }

  body.player-ready .shell,
  body.browse-playlist .shell,
  body.player-ready.browse-playlist .shell {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
  }

  body.player-ready .content,
  body.browse-playlist .content,
  body.player-ready.browse-playlist .content {
    height: auto !important;
    overflow: visible !important;
  }
}

body:not(.player-view) .browse-playlist .player-card {
  margin: 0 0 18px;
  background: var(--bg-active);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:not(.player-view) .browse-playlist .now {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
  width: 100%;
  overflow: visible;
  background: var(--bg-active);
  text-align: center;
}

body:not(.player-view) .browse-playlist .cover {
  width: 100%;
  max-width: 500px;
  overflow: visible;
  background: var(--bg);
}

body:not(.player-view) .browse-playlist .cover img,
body:not(.player-view) .browse-playlist .cover-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

body:not(.player-view) .browse-playlist .now-meta {
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  text-align: center;
}

body:not(.player-view) .browse-playlist .eyebrow,
body:not(.player-view) .browse-playlist .title-count {
  display: none;
}

body:not(.player-view) .browse-playlist .title-row {
  width: 100%;
  justify-content: center;
}

body:not(.player-view) .browse-playlist h1 {
  width: 100%;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
}



body:not(.player-view) .browse-playlist .now-meta .folder-title-line.folder-title-name::before {
  content: " - ";
}

body:not(.player-view) .browse-playlist .track-title {
  display: block;
  width: 100%;
  margin: 0;
  overflow: visible;
  color: var(--text-muted-1);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
}

body:not(.player-view) .browse-playlist .playlist-collaborations {
  display: -webkit-box;
  width: min(100%, 760px);
  max-height: calc(1.3em * 2);
  margin: -2px auto 0;
  overflow: hidden;
  color: var(--text-muted-2);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

body:not(.player-view) .browse-playlist .playlist-collaborations[hidden] {
  display: none;
}

body:not(.player-view) .browse-playlist .queue-header {
  display: none;
}

.playlist-sticky-summary {
  display: none;
}

.playlist-active-track-sticky {
  display: none;
}

@media (min-width: 901px) {
  body:not(.player-view) .browse-playlist .player-card {
    margin-bottom: 18px;
  }

  body:not(.player-view) .browse-playlist .now {
    position: relative;
    isolation: isolate;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 22px;
    overflow: hidden;
    text-align: left;
    background: #000;
  }

  body:not(.player-view) .browse-playlist .now::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  body:not(.player-view) .browse-playlist .now::after {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.72)),
      linear-gradient(to right, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.18) 46%, rgba(0, 0, 0, 0.64)),
      rgba(0, 0, 0, 0.38);
  }

  body:not(.player-view) .browse-playlist .cover,
  body:not(.player-view) .browse-playlist .now-meta {
    position: relative;
    z-index: 1;
  }

  body:not(.player-view) .browse-playlist .cover {
    max-width: 320px;
    overflow: hidden;
  }

  body:not(.player-view) .browse-playlist .now-meta {
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: stretch;
    gap: 6px;
    padding-right: 12px;
    text-align: left;
  }

  body:not(.player-view) .browse-playlist .title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
    justify-content: flex-start;
  }

  body:not(.player-view) .browse-playlist h1 {
    display: grid;
    gap: 5px;
    min-width: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    text-align: left;
  }

  body:not(.player-view) .browse-playlist .playlist-share-button {
    display: inline-flex;
    align-self: end;
    margin-bottom: 4px;
    white-space: nowrap;
  }

  body:not(.player-view) .browse-playlist .track-list > .track-button.active {
    grid-template-columns: 64px minmax(0, 1fr) 26px auto;
    column-gap: 13px;
  }

  body:not(.player-view) .browse-playlist .track-list > .track-button.active .track-share-button {
    display: grid;
    order: 4;
    color: var(--text-muted-1);
  }

  body:not(.player-view) .browse-playlist .track-list > .track-button.active .track-extra {
    order: 5;
    justify-self: start;
    justify-content: flex-start;
    min-width: 0;
    width: max-content;
  }

  body:not(.player-view) .browse-playlist .now-meta .folder-title-line {
    display: block;
  }

  body:not(.player-view) .browse-playlist .now-meta .folder-title-line.folder-title-name {
    display: block;
    margin-top: 0;
  }

  body:not(.player-view) .browse-playlist .now-meta .folder-title-line.folder-title-name::before {
    content: none;
  }

  body:not(.player-view) .browse-playlist .track-title {
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.player-view) .browse-playlist .playlist-collaborations {
    width: 100%;
    max-height: calc(1.25em * 2);
    margin: -1px 0 0;
    color: var(--text-muted-1);
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
  }

  body:not(.player-view) .browse-playlist .playlist-sticky-summary.is-stuck {
    position: sticky;
    top: -14px;
    z-index: 1;
    display: grid;
    gap: 3px;
    margin: 0 0 12px;
    padding: 10px 5px 11px;
    isolation: isolate;
    background: #ececec;
    border-bottom: 1px solid var(--border);
  }

  body:not(.player-view) .browse-playlist .playlist-active-track-sticky.is-visible {
    position: sticky;
    top: 40px;
    z-index: 1;
    display: block;
    margin: -2px 0 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  body:not(.player-view) .browse-playlist .playlist-active-track-sticky .track-button {
    grid-template-columns: 42px minmax(0, 1fr) 26px auto 24px;
    column-gap: 13px;
    min-height: 58px;
    border-color: var(--border-active);
    border-radius: 0;
    box-shadow: inset 4px 0 0 var(--border-active);
  }

  body:not(.player-view) .browse-playlist .playlist-active-track-sticky .track-share-button {
    display: grid;
    order: 3;
    color: var(--text-muted-1);
  }

  body:not(.player-view) .browse-playlist .playlist-active-track-sticky .track-extra {
    order: 4;
    justify-self: start;
    justify-content: flex-start;
    min-width: 0;
    width: max-content;
  }

  body:not(.player-view) .browse-playlist .playlist-active-track-sticky .playing-badge {
    order: 5;
    justify-self: center;
  }

  .browse-playlist .playlist-sticky-summary h2,
  .browse-playlist .playlist-sticky-summary p {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.player-view) .browse-playlist .playlist-sticky-summary h2 {
    color: var(--bg);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.2;
  }

  body:not(.player-view) .browse-playlist .playlist-sticky-summary p {
    color: var(--bg);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
  }
}

@media (max-width: 900px) {
  body:not(.player-view) .browse-playlist {
    --mobile-cover-max-height: 36vh;
    --mobile-pinned-cover-height: 0px;
    --mobile-pinned-cover-gap: 10px;
    --mobile-pinned-cover-top: var(--header-height-mobile);
  }

  body:not(.player-view):has(.shell.browse-playlist .cover.mobile-cover-controls-locked) .content {
    padding-bottom: 12px;
  }

  body:not(.player-view):has(.shell.browse-playlist .cover.mobile-cover-controls-locked) .browse-playlist {
    --mobile-pinned-cover-top: calc(var(--header-height-mobile) - 12px);
  }

  body:not(.player-view):has(.shell.browse-playlist .cover.mobile-cover-controls-locked) .bottom-player {
    display: none !important;
  }

  html:has(.shell.browse-roots),
  body:has(.shell.browse-roots) {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
  }

  body:has(.shell.browse-roots) .shell.browse-roots,
  body:has(.shell.browse-roots) .shell.browse-roots .content,
  body:has(.shell.browse-roots) .shell.browse-roots .home-section,
  body:has(.shell.browse-roots) .shell.browse-roots .folder-list {
    height: auto !important;
    overflow: visible !important;
  }

  body:has(.shell.browse-roots) .shell.browse-roots {
    min-height: 100vh;
  }

  body:has(.shell.browse-roots) .shell.browse-roots .content {
    min-height: calc(100vh - var(--header-height-mobile));
    overscroll-behavior: auto;
  }

  body:has(.shell.browse-roots) .shell.browse-roots .home-section,
  body:has(.shell.browse-roots) .shell.browse-roots .folder-list {
    min-height: 0;
  }

  html:has(.shell.section-search),
  body:has(.shell.section-search) {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
  }

  body:has(.shell.section-search) .shell.section-search,
  body:has(.shell.section-search) .shell.section-search .content,
  body:has(.shell.section-search) .shell.section-search .search-results,
  body:has(.shell.section-search) .shell.section-search .search-result-list {
    height: auto !important;
    overflow: visible !important;
  }

  body:has(.shell.section-search) .shell.section-search {
    min-height: 100vh;
  }

  body:has(.shell.section-search) .shell.section-search .content {
    min-height: calc(100vh - var(--header-height-mobile));
    overscroll-behavior: auto;
  }

  body:has(.shell.section-search) .shell.section-search .search-results,
  body:has(.shell.section-search) .shell.section-search .search-result-list {
    min-height: 0;
  }

  html:has(.shell.browse-playlist),
  body:has(.shell.browse-playlist) {
    overflow: visible !important;
  }

  body:not(.player-view) .browse-playlist .player-card {
    margin-bottom: 0;
    padding-bottom: 0;
    background: var(--bg-active);
  }

  body:not(.player-view):has(.shell.browse-playlist .cover.mobile-cover-controls-locked) .browse-playlist .player-card {
    min-height: var(--mobile-pinned-cover-height);
  }

  body:not(.player-view):has(.shell.browse-playlist .cover.mobile-cover-controls-locked) .browse-playlist .now {
    position: fixed;
    top: var(--mobile-pinned-cover-top);
    left: 0;
    right: 0;
    z-index: 4;
    width: auto;
    max-width: none;
    margin: 0 auto;
    padding: var(--mobile-pinned-cover-gap) 0 0;
    background: var(--bg-active);
  }

  body:not(.player-view):has(.shell.browse-playlist .cover.mobile-cover-controls-locked) .browse-playlist .now::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--bg-active);
    pointer-events: none;
  }

  .browse-playlist .playlist-sticky-summary {
    position: sticky;
    top: var(--header-height-mobile);
    z-index: 1;
    display: grid;
    gap: 3px;
    margin: 0 0 12px;
    padding: 10px 10px 11px;
    background: #ececec;
    border-bottom: 1px solid var(--border);
  }

  body:not(.player-view):has(.shell.browse-playlist .cover.mobile-cover-controls-locked) .browse-playlist .playlist-sticky-summary {
    top: calc(var(--mobile-pinned-cover-top) + var(--mobile-pinned-cover-gap) + var(--mobile-pinned-cover-height));
    z-index: 4;
  }

  .browse-playlist .playlist-active-track-sticky.is-visible {
    display: none;
  }

  .browse-playlist .playlist-active-track-sticky .track-button {
    min-height: 56px;
    border-color: var(--border-active);
    border-radius: 0;
    box-shadow: inset 4px 0 0 var(--border-active);
  }

  .browse-playlist .playlist-active-track-sticky,
  .browse-playlist .playlist-active-track-sticky * {
    animation: none !important;
    transition: none !important;
  }

  .browse-playlist .playlist-active-track-sticky .playing-badge span {
    animation: equalizer 760ms ease-in-out infinite !important;
  }

  .browse-playlist .playlist-active-track-sticky .playing-badge span:nth-child(2) {
    animation-delay: 120ms !important;
  }

  .browse-playlist .playlist-active-track-sticky .playing-badge span:nth-child(3) {
    animation-delay: 240ms !important;
  }

  .browse-playlist .playlist-active-track-sticky .playing-badge.is-paused span {
    animation: none !important;
  }

  .browse-playlist .playlist-sticky-summary h2,
  .browse-playlist .playlist-sticky-summary p {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .browse-playlist .playlist-sticky-summary h2 {
    color: var(--bg);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.2;
  }

  .browse-playlist .playlist-sticky-summary p {
    color: var(--bg);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
  }

  body:not(.player-view) .browse-playlist .now {
    gap: 6px;
  }

  body:not(.player-view) .browse-playlist .cover {
    max-width: min(500px, 100%);
    max-height: var(--mobile-cover-max-height);
    aspect-ratio: 400 / 226;
    touch-action: manipulation;
  }

  body:not(.player-view) .browse-playlist .cover img,
  body:not(.player-view) .browse-playlist .cover-image {
    max-height: var(--mobile-cover-max-height);
  }

  body:not(.player-view) .browse-playlist h1 {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.player-view) .browse-playlist .track-title {
    font-size: 12px;
    line-height: 1.2;
  }

  body:not(.player-view) .browse-playlist .now-meta {
    display: none;
    gap: 4px;
  }

  body:not(.player-view) .browse-playlist .track-list {
    padding-left: 7px;
    padding-right: 7px;
    padding-bottom: 16px;
  }
}

.now-meta #folderTitle .folder-title-prefix {

	font-size: 15px;
}
.now-meta #folderTitle .folder-title-name {

	font-size: 45px;
}

@media (min-width: 901px) {
  body:not(.player-view) .browse-playlist .now-meta #folderTitle .folder-title-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.player-view) .browse-playlist .now-meta #folderTitle .folder-title-name.title-length-short {
    font-size: clamp(58px, 6vw, 74px);
  }

  body:not(.player-view) .browse-playlist .now-meta #folderTitle .folder-title-name.title-length-medium {
    font-size: clamp(45px, 4.4vw, 52px);
  }
}
