@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --black: #050505;
  --panel: rgba(19, 19, 20, .82);
  --panel-solid: #141415;
  --panel-soft: #1a1a1c;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f7f7f8;
  --muted: #a2a2a9;
  --muted-2: #727279;
  --accent: #ff4d55;
  --sidebar: 236px;
  --topbar: 76px;
  --player: 88px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { max-width: 100%; overflow-x: hidden; background: var(--black); scroll-behavior: smooth; }

body {
  margin: 0;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 8%, rgba(162, 41, 52, .18), transparent 31rem),
    radial-gradient(circle at 20% 74%, rgba(85, 49, 127, .11), transparent 34rem),
    var(--black);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 9px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.dashboard-app { min-height: 100vh; }

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto var(--player) 0;
  z-index: 40;
  width: var(--sidebar);
  padding: 28px 18px 22px;
  border-right: 1px solid var(--line);
  background: rgba(7, 7, 8, .88);
  backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  height: 36px;
  margin: 0 10px 34px;
}

.dashboard-brand img { width: 160px; height: auto; }

.sidebar-nav { min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 4px; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-label {
  margin: 0 12px 8px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav-label-artist { margin-top: 25px; }
.nav-label-explore { margin-top: 25px; }

.nav-item {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.is-active { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.08); }

.sidebar-foot {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 15px 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.sidebar-socials {
  gap: 8px;
}

.sidebar-social-link {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease, transform .2s ease;
}

.sidebar-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.sidebar-social-link:hover,
.sidebar-social-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}

.sidebar-social-link[aria-disabled="true"] { cursor: default; }

.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: #53d48a; box-shadow: 0 0 12px rgba(83,212,138,.65); }

.dashboard-shell { margin-left: var(--sidebar); padding-bottom: var(--player); }

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar);
  padding: 0 clamp(24px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, .76);
  backdrop-filter: blur(26px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mobile-brand { display: none; }

.mode-switcher {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  display: flex;
}

.mode-button {
  min-width: 78px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mode-button.is-active { background: #f5f5f5; color: #080808; box-shadow: 0 5px 20px rgba(0,0,0,.25); }

.topbar-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

.dashboard-search {
  width: min(26vw, 290px);
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: border-color .2s ease, background .2s ease;
}

.dashboard-search:focus-within { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.dashboard-search svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--muted-2); }
.dashboard-search input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 12px; }
.dashboard-search input::placeholder { color: var(--muted-2); }

.exit-link { padding: 9px 4px; color: var(--muted); font-size: 11px; transition: color .2s ease; }
.exit-link:hover { color: #fff; }

.profile-chip {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(140deg, #27272b, #111);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.dashboard-content { width: min(100%, 1500px); margin: 0 auto; padding: 50px clamp(24px, 4vw, 58px) 72px; }
.dashboard-view[hidden] { display: none !important; }

.page-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.page-heading h1, .artist-hero h1 { margin: 4px 0 8px; font-size: clamp(36px, 5vw, 62px); line-height: .98; letter-spacing: -.055em; }
.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }
.compact-heading { margin-bottom: 38px; }
.compact-heading h1 { font-size: clamp(38px, 5vw, 58px); }

.eyebrow {
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.primary-action, .secondary-action {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.primary-action { background: #f5f5f5; color: #090909; }
.primary-action:hover { transform: translateY(-1px); background: #fff; }
.primary-action svg { width: 17px; height: 17px; }
.secondary-action { border-color: var(--line-strong); background: rgba(255,255,255,.045); color: #fff; }
.secondary-action:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.075); }

.preview-notice {
  min-height: 52px;
  margin-bottom: 20px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
}

.preview-notice svg { flex: 0 0 auto; width: 18px; height: 18px; }
.preview-notice p { margin: 0; }
.preview-notice strong { color: #fff; }

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

.stat-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.stat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stat-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-icon-heart { background: rgba(255,77,85,.14); color: #ff7c82; }
.stat-card > span:last-child { min-width: 0; display: grid; gap: 1px; }
.stat-card strong { font-size: 21px; line-height: 1; }
.stat-card small { color: var(--muted); font-size: 10px; }

.content-section { margin-top: 45px; }
.section-heading { margin-bottom: 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h2, .workspace-card-heading h2 { margin: 3px 0 0; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.035em; }
.section-heading > a, .workspace-card-heading > a { color: var(--muted); font-size: 11px; transition: color .2s ease; }
.section-heading > a:hover, .workspace-card-heading > a:hover { color: #fff; }

.track-list { border-top: 1px solid var(--line); }
.track-row { min-height: 76px; padding: 10px 8px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 54px minmax(140px, 1fr) minmax(70px, .45fr) 64px 36px 36px; align-items: center; gap: 15px; transition: background .2s ease; }
.track-row:hover { background: rgba(255,255,255,.025); }

.cover-play { position: relative; width: 54px; height: 54px; padding: 0; overflow: hidden; border: 0; border-radius: 9px; background: #1a1a1a; cursor: pointer; }
.cover-play img { width: 100%; height: 100%; object-fit: cover; }
.cover-play span { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; color: #fff; font-size: 13px; opacity: 0; transition: opacity .2s ease; }
.cover-play:hover span, .cover-play:focus-visible span { opacity: 1; }
.track-copy { min-width: 0; display: grid; gap: 4px; }
.track-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.track-copy span, .track-genre, .track-duration { color: var(--muted); font-size: 10px; }
.track-genre, .track-duration { text-align: right; }

.icon-button, .artist-favorite {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.icon-button svg, .artist-favorite svg { width: 17px; height: 17px; }
.icon-button:hover { color: #fff; background: rgba(255,255,255,.075); }
.favorite-button.is-favorite, .artist-favorite.is-favorite { color: var(--accent); }
.favorite-button.is-favorite svg, .artist-favorite.is-favorite svg { fill: currentColor; }

.artist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 25px); }
.artist-card { min-width: 0; }
.artist-image-wrap { position: relative; aspect-ratio: 1; margin-bottom: 13px; overflow: hidden; border-radius: 14px; background: var(--panel-solid); box-shadow: 0 18px 35px rgba(0,0,0,.28); }
.artist-image-wrap > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.artist-card:hover .artist-image-wrap > img { transform: scale(1.025); }
.artist-favorite { position: absolute; right: 9%; bottom: 7%; background: rgba(6,6,6,.82); color: #fff; backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.artist-card > strong, .artist-card > span { display: block; text-align: center; }
.artist-card > strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.artist-card > span { margin-top: 4px; color: var(--muted); font-size: 10px; }

.empty-state { min-height: 230px; padding: 38px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.02); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-icon { width: 48px; height: 48px; margin-bottom: 15px; border-radius: 11px; background: rgba(255,255,255,.07); color: var(--muted); display: grid; place-items: center; }
.empty-icon svg { width: 22px; height: 22px; }
.empty-state h3 { margin: 0 0 7px; font-size: 17px; }
.empty-state p { max-width: 390px; margin: 0 0 19px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.empty-state-large { min-height: 430px; }

.playlist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.playlist-card { min-width: 0; padding: 14px 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.playlist-cover { position: relative; aspect-ratio: 1; margin-bottom: 15px; overflow: hidden; border-radius: 13px; background: linear-gradient(145deg, #29292d, #101011); display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.playlist-cover img { width: 100%; height: 100%; object-fit: cover; }
.playlist-cover img:only-child { grid-column: 1 / -1; }
.playlist-cover.is-empty { display: grid; place-items: center; }
.playlist-cover.is-empty svg { width: 42px; height: 42px; color: var(--muted-2); }
.playlist-card-copy { min-width: 0; padding: 0 3px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.playlist-card-copy > div { min-width: 0; }
.playlist-card-copy strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.playlist-card-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.playlist-delete { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted-2); display: grid; place-items: center; cursor: pointer; }
.playlist-delete:hover { background: rgba(255,255,255,.06); color: #fff; }
.playlist-delete svg { width: 16px; height: 16px; }

.artist-hero { position: relative; min-height: 415px; padding: clamp(34px, 5vw, 68px); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(128deg, rgba(36,11,16,.97), rgba(12,12,14,.98) 52%, rgba(23,20,33,.98)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .48fr); align-items: center; gap: 40px; }
.artist-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 86% 20%, rgba(255,77,85,.2), transparent 32%), linear-gradient(90deg, transparent, rgba(255,255,255,.025)); pointer-events: none; }
.artist-hero-copy, .artist-hero-art { position: relative; z-index: 1; }
.workspace-badge { width: fit-content; padding: 7px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.055); color: #d4d4d8; display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.workspace-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(255,77,85,.8); }
.artist-hero h1 { max-width: 800px; margin-top: 19px; font-size: clamp(38px, 5vw, 68px); }
.artist-hero-copy > p { max-width: 630px; margin: 19px 0 0; color: #b8b8be; font-size: 13px; line-height: 1.75; }
.hero-actions { margin-top: 29px; display: flex; flex-wrap: wrap; gap: 10px; }
.artist-hero-art { width: min(100%, 330px); aspect-ratio: .85; margin-left: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 19px; overflow: hidden; box-shadow: 0 35px 70px rgba(0,0,0,.55); transform: rotate(3deg); }
.artist-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.artist-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.8)); }
.art-label { position: absolute; z-index: 1; right: 15px; bottom: 14px; left: 15px; font-size: 10px; font-weight: 600; }

.artist-workspace-grid { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 22px; }
.workspace-card { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(18px); }
.workspace-card-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.workspace-card-heading > strong { font-size: 23px; }
.artist-empty { min-height: 280px; border: 0; background: rgba(255,255,255,.022); }
.profile-readiness { min-height: 100%; }
.readiness-progress { height: 5px; margin-bottom: 25px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.08); }
.readiness-progress span { display: block; width: 0; height: 100%; background: #fff; }
.readiness-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 17px; }
.readiness-list li { color: #cacacf; display: flex; align-items: center; gap: 11px; font-size: 11px; }
.readiness-list li span { flex: 0 0 auto; width: 15px; height: 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; }
.coming-soon { margin: 25px 0 0; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9px; line-height: 1.6; }
.appearance-card { margin-top: 22px; }
.profile-preview { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.025); display: grid; grid-template-columns: 112px minmax(0, 1fr) 42px; align-items: center; gap: 22px; }
.profile-preview > img { width: 112px; height: 112px; border-radius: 13px; object-fit: cover; }
.profile-preview > div { min-width: 0; }
.profile-preview span { color: var(--muted-2); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.profile-preview h3 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -.03em; }
.profile-preview p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.round-arrow { width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; display: grid; place-items: center; transition: background .2s ease; }
.round-arrow:hover { background: #fff; color: #000; }

.dashboard-player {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--player);
  padding: 10px 24px;
  border-top: 1px solid rgba(255,255,255,.13);
  background: rgba(12,12,13,.93);
  backdrop-filter: blur(30px);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 1.2fr) minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
}

.player-track { min-width: 0; display: flex; align-items: center; gap: 12px; }
.player-track img { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.player-track > div { min-width: 0; display: grid; gap: 3px; }
.player-track strong, .player-track span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-track strong { font-size: 11px; }
.player-track span { color: var(--muted); font-size: 9px; }
.player-controls { min-width: 0; display: grid; justify-items: center; gap: 8px; }
.transport-controls { display: flex; align-items: center; gap: 17px; }
.transport-controls button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #ddd; display: grid; place-items: center; cursor: pointer; }
.transport-controls svg { width: 16px; height: 16px; }
.transport-controls .player-play { width: 34px; height: 34px; border-radius: 9px; background: #f5f5f5; color: #080808; font-size: 11px; }
.player-timeline { width: min(100%, 430px); color: var(--muted-2); display: grid; grid-template-columns: 28px minmax(60px, 1fr) 28px; align-items: center; gap: 8px; font-size: 8px; }
.timeline-bar { height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.15); }
.timeline-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: #f1f1f1; }
.player-meta { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.player-preview-label { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted-2); font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.mobile-dashboard-nav { display: none; }

.playlist-dialog { width: min(520px, calc(100% - 28px)); max-height: min(720px, calc(100vh - 32px)); padding: 0; overflow: hidden auto; border: 1px solid rgba(255,255,255,.17); border-radius: 16px; background: #111113; color: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.8); }
.playlist-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.playlist-dialog form { padding: 28px; }
.dialog-heading { margin-bottom: 25px; display: flex; justify-content: space-between; gap: 18px; }
.dialog-heading h2 { margin: 5px 0 0; font-size: 28px; letter-spacing: -.045em; }
.dialog-close { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.field-label, .playlist-dialog legend { display: block; margin-bottom: 8px; color: #d4d4d7; font-size: 10px; font-weight: 600; }
.playlist-dialog > form > input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; background: rgba(255,255,255,.05); color: #fff; font-size: 12px; }
.playlist-dialog > form > input:focus { border-color: rgba(255,255,255,.42); }
.playlist-dialog fieldset { margin: 24px 0 0; padding: 0; border: 0; }
.playlist-dialog legend span { color: var(--muted-2); font-weight: 400; }
.track-choice { min-height: 58px; padding: 7px 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 18px 43px minmax(0, 1fr); align-items: center; gap: 11px; cursor: pointer; }
.track-choice img { width: 43px; height: 43px; border-radius: 7px; object-fit: cover; }
.track-choice > span { min-width: 0; display: grid; gap: 3px; }
.track-choice strong, .track-choice small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-choice strong { font-size: 11px; }
.track-choice small { color: var(--muted); font-size: 9px; }
.track-choice input { accent-color: #fff; }
.dialog-error { min-height: 17px; margin: 10px 0 0; color: #ff8a90; font-size: 10px; }
.dialog-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 9px; }

.dashboard-toast { position: fixed; z-index: 150; right: 22px; bottom: calc(var(--player) + 18px); max-width: min(330px, calc(100vw - 30px)); padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: #f5f5f5; color: #090909; font-size: 10px; font-weight: 600; box-shadow: 0 15px 45px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.dashboard-toast.is-visible { opacity: 1; transform: translateY(0); }
.searchable-item.is-filtered { display: none; }
.search-empty { padding: 30px 0; color: var(--muted); text-align: center; font-size: 11px; }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 980px) {
  :root { --sidebar: 204px; }
  .dashboard-sidebar { padding-inline: 13px; }
  .dashboard-brand { margin-inline: 9px; }
  .dashboard-brand img { width: 148px; }
  .exit-link { display: none; }
  .artist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artist-card:last-child { display: none; }
  .artist-workspace-grid { grid-template-columns: 1fr; }
  .artist-hero { grid-template-columns: minmax(0, 1fr) 210px; }
  .playlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --topbar: 70px; --player: 74px; }
  body { background: radial-gradient(circle at 85% 2%, rgba(162,41,52,.18), transparent 22rem), var(--black); }
  .dashboard-sidebar { display: none; }
  .dashboard-shell { margin-left: 0; padding-bottom: calc(var(--player) + 67px); }
  .dashboard-topbar { height: var(--topbar); padding: 0 16px; gap: 10px; }
  .mobile-brand { display: block; flex: 0 0 auto; }
  .mobile-brand img { width: 115px; }
  .mode-switcher { margin-left: auto; }
  .mode-button { min-width: 60px; height: 30px; padding: 0 10px; font-size: 10px; }
  .topbar-actions { gap: 8px; }
  .dashboard-search { position: absolute; top: calc(var(--topbar) + 12px); right: 16px; left: 16px; width: auto; background: rgba(20,20,21,.96); }
  .profile-chip { width: 34px; height: 34px; }
  .dashboard-content { max-width: 100vw; padding: 80px 16px 42px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 42px; }
  .page-heading > .primary-action { padding-inline: 14px; font-size: 0; }
  .page-heading > .primary-action svg { margin: 0; }
  .library-stats { margin-bottom: 37px; gap: 8px; }
  .stat-card { padding: 13px 10px; gap: 9px; }
  .stat-icon { width: 32px; height: 32px; border-radius: 9px; }
  .stat-card strong { font-size: 17px; }
  .stat-card small { font-size: 8px; }
  .track-row { grid-template-columns: 50px minmax(100px, 1fr) 32px 32px; gap: 10px; }
  .cover-play { width: 50px; height: 50px; }
  .track-genre, .track-duration { display: none; }
  .artist-grid { margin-right: -16px; padding-right: 16px; overflow-x: auto; grid-template-columns: repeat(4, minmax(132px, 42vw)); scrollbar-width: none; }
  .artist-grid::-webkit-scrollbar { display: none; }
  .artist-card:last-child { display: block; }
  .playlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .playlist-card { padding: 9px 9px 13px; border-radius: 15px; }
  .artist-hero { min-height: auto; padding: 34px 24px; grid-template-columns: 1fr; }
  .artist-hero-art { display: none; }
  .artist-hero h1 { font-size: 41px; }
  .artist-hero-copy > p { font-size: 11px; }
  .artist-workspace-grid { gap: 14px; }
  .workspace-card { padding: 22px 18px; }
  .profile-preview { grid-template-columns: 78px minmax(0, 1fr) 34px; gap: 13px; }
  .profile-preview > img { width: 78px; height: 78px; }
  .profile-preview p { display: none; }
  .profile-preview h3 { font-size: 19px; }
  .round-arrow { width: 34px; height: 34px; }
  .dashboard-player { bottom: 67px; height: var(--player); padding: 8px 13px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .player-track img { width: 46px; height: 46px; }
  .player-controls { display: block; }
  .transport-controls { gap: 4px; }
  .transport-controls button:first-child, .transport-controls button:last-child, .player-timeline, .player-preview-label { display: none; }
  .player-meta { gap: 0; }
  .mobile-dashboard-nav { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; height: 67px; padding: 7px 6px 9px; border-top: 1px solid rgba(255,255,255,.11); background: rgba(7,7,8,.96); backdrop-filter: blur(26px); display: grid; grid-template-columns: repeat(5, 1fr); }
  .mobile-dashboard-nav button, .mobile-dashboard-nav a { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--muted-2); display: grid; place-items: center; align-content: center; gap: 4px; font-size: 8px; cursor: pointer; }
  .mobile-dashboard-nav svg { width: 19px; height: 19px; }
  .mobile-dashboard-nav button.is-active, .mobile-dashboard-nav a.is-active { color: #fff; }
  .dashboard-toast { right: 15px; bottom: calc(var(--player) + 82px); left: 15px; max-width: none; text-align: center; }
}

@media (max-width: 470px) {
  .mobile-brand img { width: 96px; }
  .mode-button { min-width: 54px; padding-inline: 8px; }
  .profile-chip { display: none; }
  .page-heading { gap: 12px; }
  .library-stats { grid-template-columns: 1fr 1fr; }
  .stat-card:last-child { grid-column: 1 / -1; }
  .artist-grid { grid-template-columns: repeat(4, minmax(124px, 45vw)); }
  .playlist-grid { grid-template-columns: 1fr; }
  .playlist-card { display: grid; grid-template-columns: 100px minmax(0,1fr); align-items: center; gap: 14px; }
  .playlist-cover { width: 100px; margin-bottom: 0; }
  .artist-hero h1 { font-size: 36px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .profile-preview { grid-template-columns: 68px minmax(0, 1fr) 32px; }
  .profile-preview > img { width: 68px; height: 68px; }
  .profile-preview span { font-size: 7px; }
  .profile-preview h3 { font-size: 17px; }
  .player-track strong { max-width: 34vw; }
  .player-track span { max-width: 34vw; }
  .playlist-dialog form { padding: 22px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
