/* Boite2leak — Streaming audio protégé — Complete CSS */
/* Design system matching boubouw.com */

:root {
  --c-bg: #1a1a1c;
  --c-bg-2: #141415;
  --c-sidebar: #1c1c1e;
  --c-surface: #2a2a2c;
  --c-surface-hover: #333335;
  --c-border: #3a3a3c;
  --c-text: #f0f0f2;
  --c-text-secondary: #a8a8b0;
  --c-text-muted: #6e6e78;
  --c-accent: #2f7bff;
  --c-accent-hover: #4a90ff;
  --c-danger: #ef4444;
  --c-success: #22c55e;
  --c-warning: #f59e0b;
  --c-premium: #f59e0b;
  --sidebar-w: 200px;
  --topbar-h: 56px;
  --player-h: 72px;
  --bottom-nav-h: 58px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { background: none; border: none; color: inherit; cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }

/* ===== LANDING PAGE ===== */
.landing-wrapper {
  min-height: 100vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
}
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
}
.landing-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 30px rgba(47,123,255,0.3));
}
.landing-hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #aab 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing-hero p {
  font-size: 18px;
  color: var(--c-text-secondary);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 60px auto 40px;
  padding: 0 20px;
}
.landing-feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
}
.landing-feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.landing-feature-card p { font-size: 13px; color: var(--c-text-muted); line-height: 1.5; }

/* ===== APP SHELL ===== */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 1fr var(--player-h);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  grid-row: 1 / 3;
  background: var(--c-sidebar);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px 16px;
}
.sidebar-logo { width: 28px; height: 28px; }
.sidebar-brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}
.sidebar-nav { margin-bottom: 8px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text-secondary);
  transition: all var(--transition);
  border-radius: 0;
  position: relative;
}
.sidebar-link:hover {
  color: var(--c-text);
  background: rgba(255,255,255,0.04);
}
.sidebar-link.active {
  color: var(--c-text);
  background: rgba(255,255,255,0.08);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--c-accent);
  border-radius: 0 3px 3px 0;
}
.sidebar-section {
  padding-top: 12px;
  flex-shrink: 0;
}
.sidebar-section-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--c-text-muted);
  padding: 0 18px 6px;
}
.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 14px;
}
.sidebar-add-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--c-text-muted);
  transition: all var(--transition);
}
.sidebar-add-btn:hover { color: var(--c-text); background: var(--c-surface); }
.sidebar-playlists-list { max-height: 240px; overflow-y: auto; }
.sidebar-playlist { gap: 10px; }
.sidebar-playlist img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: var(--c-surface); }
.sidebar-playlist-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-playlist-lock { font-size: 10px; opacity: 0.6; }
.sidebar-muted {
  display: block;
  font-size: 12px;
  color: var(--c-text-muted);
  padding: 4px 18px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
.sidebar-security {
  font-size: 12px !important;
  color: var(--c-text-muted) !important;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,0.04); }
.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-username {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-border);
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  z-index: 90;
}
.burger-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-brand { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* ===== MAIN CONTENT ===== */
.main-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-bg);
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  height: var(--topbar-h);
  flex-shrink: 0;
  background: var(--c-bg);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-surface);
  border-radius: 20px;
  padding: 8px 16px;
  flex: 1;
  max-width: 480px;
  color: var(--c-text-muted);
}
.topbar-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--c-text);
  width: 100%;
  font-size: 13px;
}
.topbar-search input::placeholder { color: var(--c-text-muted); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.topbar-toggle {
  display: flex;
  background: var(--c-surface);
  border-radius: 20px;
  overflow: hidden;
}
.toggle-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.toggle-btn.active {
  background: var(--c-surface-hover);
  color: var(--c-text);
}
.toggle-btn:hover { color: var(--c-text); }
.topbar-bell { position: relative; }

/* ===== VIEW CONTENT ===== */
.view-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  padding-bottom: calc(var(--player-h) + 24px);
}

/* ===== PLAYER BAR ===== */
.player-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 0 16px;
  height: var(--player-h);
  background: rgba(20,20,22,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border);
  z-index: 200;
}
.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.player-left img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}
.player-track-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.player-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-artist {
  font-size: 11.5px;
  color: var(--c-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.play-btn-main {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-text);
  color: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.play-btn-main:hover { transform: scale(1.08); }
.ctrl-btn { color: var(--c-text-secondary); }
.ctrl-btn:hover { color: var(--c-text); }
.ctrl-btn.active { color: var(--c-accent); }
.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 500px;
}
.progress-time {
  font-size: 11px;
  color: var(--c-text-muted);
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.progress-bar-wrap {
  flex: 1;
  height: 4px;
  background: var(--c-surface);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.progress-bar-wrap:hover { height: 6px; }
.progress-bar-fill {
  height: 100%;
  background: var(--c-text);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}
.progress-bar-wrap:hover .progress-bar-fill { background: var(--c-accent); }
.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.volume-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.volume-slider-wrap {
  width: 80px;
  height: 4px;
  background: var(--c-surface);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.volume-slider-fill {
  height: 100%;
  background: var(--c-text);
  border-radius: 2px;
}

/* ===== MOBILE MINI PROGRESS & CONTROLS ===== */
.player-mini-progress {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.player-mini-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--c-accent);
  transition: width 0.1s linear;
}
.player-mobile-controls {
  display: none;
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
  display: none;
}

/* ===== FULL SCREEN MOBILE PLAYER SHEET ===== */
.full-player-sheet {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, #222638 0%, #0e0f14 85%);
  z-index: 1000;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(14px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--c-text);
}
.full-player-sheet.active {
  display: flex;
  transform: translateY(0);
}
.full-player-drag-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
  cursor: pointer;
}
.full-player-pill {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}
.full-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.full-player-down-btn {
  width: 40px;
  height: 40px;
}
.full-player-header-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.full-player-now-playing {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--c-text-muted);
  text-transform: uppercase;
}
.full-player-playlist-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.full-player-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  gap: 16px;
}
.full-player-cover-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}
.full-player-cover-wrap img {
  width: min(72vw, 300px);
  height: min(72vw, 300px);
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 40px rgba(47, 123, 255, 0.15);
}
.full-player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.full-player-meta {
  min-width: 0;
}
.full-player-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.full-player-artist {
  font-size: 15px;
  color: var(--c-text-secondary);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.full-player-fav-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.full-player-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.full-player-progress .progress-bar-wrap {
  /* Column layout: without flex: none the bar was squashed to 0px on phones */
  flex: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.full-player-progress .progress-bar-fill {
  height: 100%;
  background: var(--c-accent);
  border-radius: 3px;
}
.full-player-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
}
.full-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.full-ctrl-btn {
  width: 48px;
  height: 48px;
  color: var(--c-text-secondary);
  transition: all var(--transition);
}
.full-ctrl-btn:hover, .full-ctrl-btn.active {
  color: var(--c-accent);
}
.full-play-btn-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
  transition: transform 0.15s, background 0.15s;
}
.full-play-btn-large:active {
  transform: scale(0.93);
}
.full-player-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}
.full-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--c-text-secondary);
}
.full-action-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ===== SEARCH BOX IN VIEW ===== */
.search-box-wrap {
  width: 100%;
}
.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 28px;
  padding: 10px 18px;
  transition: border-color var(--transition);
}
.search-input-box:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px rgba(47, 123, 255, 0.2);
}
.search-input-field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--c-text);
  font-size: 15px;
}
.search-input-field::placeholder {
  color: var(--c-text-muted);
}
.search-clear-btn {
  width: 24px;
  height: 24px;
  padding: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 13px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--c-accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--c-text-secondary);
}
.btn-ghost:hover { color: var(--c-text); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-full { width: 100%; margin-top: 10px; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text-secondary);
}
.btn-outline:hover { border-color: var(--c-text-muted); color: var(--c-text); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--c-text-secondary);
  transition: all var(--transition);
}
.icon-btn:hover { color: var(--c-text); background: rgba(255,255,255,0.06); }
.icon-btn.active { color: var(--c-accent); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-premium { background: var(--c-premium); color: #000; }
.badge-official { background: var(--c-accent); color: #fff; }
.badge-map { background: #6d28d9; color: #fff; }
.badge-exclu { background: var(--c-danger); color: #fff; }

/* ===== MODALS ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-card {
  background: var(--c-sidebar);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-wide { max-width: 620px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 18px; font-weight: 700; }
.auth-tabs { display: flex; gap: 8px; }
.auth-tab {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  color: var(--c-text-muted);
  transition: all var(--transition);
}
.auth-tab.active { background: var(--c-surface); color: var(--c-text); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-secondary);
  margin-bottom: 5px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--c-text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--c-accent);
}
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 60px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: calc(var(--player-h) + 16px);
  right: 20px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--c-sidebar);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  max-width: 340px;
  animation: toast-in 0.3s ease;
  transition: opacity 0.3s, transform 0.3s;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== LYRICS ===== */
.lyrics-view { position: relative; max-height: 400px; overflow-y: auto; padding: 10px 0; }
/* Same size and weight for every line: only the colour changes, so the list
   never shifts while it scrolls to the current line */
.lyric-line {
  padding: 8px 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--c-text-muted);
  text-align: center;
  cursor: pointer;
  transition: color 0.3s;
  border-radius: 6px;
}
.lyric-line:hover { color: var(--c-text-secondary); }
.lyric-line.past { color: var(--c-text-secondary); }
.lyric-line.active { color: var(--c-text); }


/* ===== SECTION COMPONENTS ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-text-muted);
}
.section-title-lg {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.section-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-accent);
}
.section-link:hover { text-decoration: underline; }

/* ===== HORIZONTAL SCROLL CAROUSEL ===== */
.h-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* ===== FEATURED ARTIST CARDS (À la une) ===== */
.featured-card {
  width: 280px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition);
}
.featured-card:hover { transform: scale(1.02); }
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.featured-kicker {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
}
.featured-name { font-size: 18px; font-weight: 700; }
.featured-count { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ===== SUGGESTED PLAYLIST CARDS ===== */
.suggested-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.suggested-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition);
  position: relative;
  overflow: hidden;
}
.suggested-card:hover { transform: scale(1.02); filter: brightness(1.1); }
.suggested-card.gradient-coral { background: linear-gradient(135deg, #e65c5c, #ff8c5c); }
.suggested-card.gradient-green { background: linear-gradient(135deg, #16a34a, #22d3ee); }
.suggested-card.gradient-blue { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.suggested-card-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.suggested-card-title { font-size: 20px; font-weight: 700; }
.suggested-card-count { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.suggested-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
}
.suggested-tag {
  font-size: 11px;
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ===== CATEGORY GRID (Search) ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.category-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 110px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), filter var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.category-card:hover { transform: scale(1.03); filter: brightness(1.1); }
.category-card-title { font-size: 15px; font-weight: 700; position: relative; z-index: 1; }
.category-card-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  opacity: 0.15;
}

/* ===== TRACK LIST ===== */
.track-list { display: flex; flex-direction: column; }
.track-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.track-row:hover { background: var(--c-surface); }
.track-row-cover {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--c-surface);
}
.track-row-info { min-width: 0; }
.track-row-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-row-artist {
  font-size: 12px;
  color: var(--c-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-text-muted);
  flex-shrink: 0;
}

/* ===== ARTIST GRID (Circular) ===== */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}
.artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform var(--transition);
}
.artist-card:hover { transform: scale(1.05); }
.artist-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--c-surface);
  object-fit: cover;
  overflow: hidden;
}
.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artist-name { font-size: 13px; font-weight: 600; text-align: center; }
.artist-count { font-size: 11px; color: var(--c-text-muted); text-align: center; }

/* ===== SQUARE COVER CARDS (Titles carousel) ===== */
.cover-card {
  width: 140px;
  cursor: pointer;
  transition: transform var(--transition);
}
.cover-card:hover { transform: scale(1.03); }
.cover-card-img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--c-surface);
  margin-bottom: 8px;
}
.cover-card-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cover-card-sub {
  font-size: 11px;
  color: var(--c-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== NEW RELEASE LARGE CARDS ===== */
.release-card {
  width: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  cursor: pointer;
  position: relative;
  transition: transform var(--transition);
}
.release-card:hover { transform: scale(1.02); }
.release-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--c-border);
}
.release-card-body { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.release-card-title { font-size: 14px; font-weight: 600; }
.release-card-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 24px;
}
.stat-item {
  flex: 1;
  text-align: center;
}
.stat-value { font-size: 20px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }

/* ===== PLAYLIST CARD ===== */
.playlist-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
}
.playlist-card:hover { background: var(--c-surface-hover); }
.playlist-card-cover {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--c-border);
  object-fit: cover;
  flex-shrink: 0;
}
.playlist-card-info { min-width: 0; }
.playlist-card-name { font-size: 14px; font-weight: 600; }
.playlist-card-meta { font-size: 12px; color: var(--c-text-muted); }

/* ===== ADMIN PANEL ===== */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.admin-tab-btn {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--c-text-muted);
  white-space: nowrap;
  transition: all var(--transition);
}
.admin-tab-btn.active { background: var(--c-accent); color: #fff; }
.admin-tab-btn:hover { color: var(--c-text); }
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
}
.admin-stat-card .stat-value { font-size: 24px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== PROFILE PAGE ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--c-surface);
  object-fit: cover;
}
.profile-name { font-size: 28px; font-weight: 800; }
.profile-bio { font-size: 14px; color: var(--c-text-muted); margin-top: 4px; max-width: 400px; }

/* ===== SUBSCRIPTION PAGE ===== */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.plan-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
}
.plan-card.highlighted { border-color: var(--c-accent); }
.plan-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.plan-price { font-size: 28px; font-weight: 800; }
.plan-price-period { font-size: 13px; color: var(--c-text-muted); }
.plan-features { list-style: none; text-align: left; margin: 16px 0; }
.plan-features li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--c-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-check { color: var(--c-success); }
.plan-x { color: var(--c-text-muted); }

/* ===== SETTINGS ===== */
.settings-section {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.settings-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.settings-section.danger-zone { border: 1px solid color-mix(in srgb, var(--c-danger) 40%, transparent); }

/* ===== PROFILE (settings preview + public page) ===== */
.profile-banner {
  position: relative;
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--profile-accent, var(--c-accent)), color-mix(in srgb, var(--profile-accent, var(--c-accent)) 30%, #000));
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-banner-lg { height: 220px; }

.profile-edit-preview { position: relative; margin-bottom: 68px; }
/* Name next to the avatar so the overlapping photo lines up with the rest of the card */
.profile-edit-name {
  position: absolute; left: 124px; right: 0; bottom: -44px;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.profile-edit-name strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-edit-avatar, .profile-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-surface-hover);
  border: 4px solid var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  flex-shrink: 0;
}
.profile-edit-avatar { position: absolute; left: 16px; bottom: -48px; }
.profile-edit-avatar img, .profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Photo and banner side by side, close together (no wide gap on big screens) */
.profile-image-actions { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.pref-title { font-size: 14px; font-weight: 600; }

.accent-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.accent-swatch {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  font-weight: 700;
  outline-offset: 2px;
}
.accent-swatch.selected { border-color: var(--c-text); box-shadow: 0 0 0 2px var(--c-surface) inset; }
.accent-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--c-border);
  cursor: pointer;
}
.pref-row:first-of-type { border-top: none; padding-top: 0; }
.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--c-border);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.switch:checked { background: var(--c-accent); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.share-row { display: flex; gap: 8px; }
.share-row .form-input { flex: 1; min-width: 0; }

.account-block { border-top: 1px solid var(--c-border); padding: 12px 0; }
.account-block summary { cursor: pointer; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; list-style: none; }
.account-block summary::-webkit-details-marker { display: none; }
.account-block summary .text-accent { margin-left: auto; font-size: 13px; }

.public-profile .btn-primary { background: var(--profile-accent); }
.profile-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 24px;
  margin-top: -64px;
  margin-bottom: 20px;
  position: relative;
}
.profile-hero-avatar { width: 128px; height: 128px; border-color: var(--c-bg); }
/* Only the avatar overlaps the banner: the name and info start just under it */
.profile-hero-info { flex: 1; min-width: 0; padding-top: 76px; }
.profile-hero-info .profile-name { overflow-wrap: anywhere; }
.profile-bio-full { font-size: 14px; color: var(--c-text-secondary); margin-top: 8px; white-space: pre-line; max-width: 560px; overflow-wrap: anywhere; }
.profile-hero-actions { display: flex; gap: 8px; padding-top: 76px; }
.profile-stats { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.profile-stat {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  min-width: 110px;
}
.profile-stat strong { font-size: 20px; color: var(--profile-accent); }
.profile-stat span { font-size: 12px; color: var(--c-text-muted); }
.profile-counts { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--c-text-secondary); margin-top: 6px; }
.profile-counts a { cursor: pointer; color: inherit; font-weight: 600; }
.profile-counts a:hover { color: var(--c-text); text-decoration: underline; }
.section-note { font-size: 12px; color: var(--c-text-muted); margin-left: 10px; font-weight: 400; }

.person-grid, .playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 170px));
  gap: 18px 16px;
}
.person-card, .playlist-tile {
  cursor: pointer;
  border-radius: var(--radius-lg);
  padding: 10px;
  transition: background 0.15s;
  min-width: 0;
}
.person-card:hover, .playlist-tile:hover { background: var(--c-surface); }
.person-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  margin-bottom: 10px;
}
.person-avatar img, .playlist-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.playlist-tile img { height: auto; aspect-ratio: 1 / 1; border-radius: var(--radius-md, 8px); margin-bottom: 10px; background: var(--c-surface-hover); }
.playlist-tile { display: flex; flex-direction: column; align-self: start; }
.person-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-sub { font-size: 12px; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) {
  .person-grid, .playlist-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
}
.profile-artist { width: 110px; text-align: center; cursor: pointer; }

/* ===== TRACK "…" MENU ===== */
.track-more-btn { opacity: 0.6; }
.track-row:hover .track-more-btn, .track-more-btn:focus-visible { opacity: 1; }
.track-menu {
  position: fixed;
  z-index: 1000;
  width: 280px;
  max-height: min(440px, calc(100vh - 16px));
  overflow-y: auto;
  background: var(--c-sidebar);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 6px;
}
.track-menu-sheet {
  left: 8px !important;
  right: 8px;
  bottom: 8px;
  top: auto !important;
  width: auto;
  max-height: 70vh;
}
.track-menu-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; border-bottom: 1px solid var(--c-border); margin-bottom: 4px; }
.track-menu-head img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.track-menu-top { display: flex; align-items: center; gap: 6px; padding: 4px 6px 8px; font-size: 14px; }
.track-menu-top .icon-btn { font-size: 20px; width: 28px; height: 28px; }
.track-menu-search { margin: 0 4px 6px; width: calc(100% - 8px); padding: 8px 10px; font-size: 13px; }
.track-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: none;
  color: var(--c-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
}
.track-menu-item > span:first-child { width: 18px; text-align: center; color: var(--c-text-secondary); }
.track-menu-item:hover:not(:disabled), .track-menu-item:focus-visible { background: var(--c-surface); outline: none; }
.track-menu-item:disabled { cursor: default; opacity: 0.6; }
.track-menu-arrow { margin-left: auto; color: var(--c-text-muted); }
.track-menu-list { border-top: 1px solid var(--c-border); margin-top: 4px; padding-top: 4px; }
.playlist-pick img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--c-surface-hover); }
.playlist-pick-name { display: flex; flex-direction: column; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-pick-name small { font-size: 11px; color: var(--c-text-muted); }
.playlist-pick-check { color: var(--c-accent); font-weight: 700; }
.profile-artist .artist-avatar { width: 84px; height: 84px; margin: 0 auto 8px; }

@media (max-width: 768px) {
  .profile-banner-lg { height: 150px; }
  .profile-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 8px; margin-top: -52px; }
  .profile-hero-info, .profile-hero-actions { padding-top: 0; }
  .profile-hero-avatar { width: 104px; height: 104px; }
  .share-row { flex-direction: column; }
}

/* ===== UTILITIES ===== */
.text-muted { color: var(--c-text-muted); }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-accent { color: var(--c-accent); }
.mt-4 { margin-top: 16px; }
.mt-2 { margin-top: 8px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-full { width: 100%; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-text-muted);
}
.empty-state svg { margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

/* ===== SEARCH RESULTS ===== */
.search-results { margin-top: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --sidebar-w: 60px; }
  .sidebar-brand-text,
  .sidebar-link span,
  .sidebar-section-title,
  .sidebar-muted,
  .sidebar-username,
  .sidebar-security,
  .sidebar-playlists-list,
  .sidebar-section-header .sidebar-section-title { display: none; }
  .sidebar-link {
    justify-content: center;
    padding: 10px;
  }
  .sidebar-link svg { margin: 0; }
  .sidebar-add-btn { display: none; }
  .sidebar-user { padding: 10px; justify-content: center; }
  .sidebar-username { display: none; }
  .suggested-cards { grid-template-columns: 1fr 1fr; }
  .view-content { padding: 16px; }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  /* App Shell: Clean Flex Column */
  .app-shell {
    display: flex !important;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    position: relative;
  }

  /* Drawer Sidebar */
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-brand-text,
  .sidebar-link span,
  .sidebar-section-title,
  .sidebar-muted,
  .sidebar-username,
  .sidebar-security,
  .sidebar-playlists-list,
  .sidebar-section-header .sidebar-section-title {
    display: revert;
  }
  .sidebar-link {
    justify-content: flex-start;
    padding: 12px 20px;
    font-size: 14px;
  }
  .sidebar-add-btn {
    display: flex;
  }
  .sidebar-user {
    padding: 14px 20px;
    justify-content: flex-start;
  }

  /* Mobile Header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* In the installed iPhone app the page goes under the status bar: leave room for it */
    height: calc(52px + var(--safe-top));
    flex-shrink: 0;
    background: var(--c-bg-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--safe-top) 14px 0;
    position: relative;
    z-index: 80;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--c-text);
  }
  .mobile-brand-logo {
    width: 24px;
    height: 24px;
  }
  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Main Content Area */
  .main-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 0;
    position: relative;
  }

  /* Hide Desktop Topbar on Phone */
  .topbar {
    display: none;
  }

  /* View Content Scroll Padding */
  .view-content {
    padding: 16px;
    padding-bottom: calc(var(--bottom-nav-h) + var(--player-h) + var(--safe-bottom) + 24px);
  }

  /* Floating Mini Player on Mobile */
  .player-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 8px);
    height: 60px;
    border-radius: 12px;
    background: rgba(26, 26, 30, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 8px;
    overflow: hidden;
  }
  .player-mini-progress {
    display: block;
  }
  .player-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    user-select: none;
  }
  .player-left img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
  }
  .player-track-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .player-title {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player-artist {
    font-size: 11.5px;
    color: var(--c-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide Desktop Center & Right on Mobile */
  .player-center {
    display: none !important;
  }
  .player-right {
    display: none !important;
  }

  /* Show Mobile Quick Controls */
  .player-mobile-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .play-btn-mobile {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
  }
  .play-btn-mobile:active {
    transform: scale(0.92);
  }

  /* Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--bottom-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(16, 16, 20, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: space-around;
    z-index: 90;
  }
  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: var(--c-text-muted);
    font-size: 10.5px;
    font-weight: 500;
    transition: color var(--transition), transform 0.1s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-item:active {
    transform: scale(0.95);
  }
  .mobile-nav-item.active {
    color: var(--c-accent);
    font-weight: 700;
  }
  .mobile-nav-item svg {
    transition: transform 0.15s;
  }
  .mobile-nav-item.active svg {
    stroke: var(--c-accent);
    transform: translateY(-1px);
  }

  /* Mobile Modals (Bottom Sheets & iOS Auto-zoom fix) */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-card {
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    padding: 20px;
    border-bottom: none;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* Critical: prevents iOS Safari auto-zoom bug! */
    padding: 12px 14px;
  }
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
  }

  /* Grid & Card Tweaks for Touch Phones */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-card {
    min-height: 90px;
    padding: 16px;
  }
  .artist-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .artist-avatar {
    width: 80px;
    height: 80px;
  }
  .suggested-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .suggested-card {
    min-height: 140px;
    padding: 18px;
  }
  .featured-card {
    width: 240px;
    height: 160px;
  }
  .track-row {
    padding: 10px 8px;
    gap: 10px;
  }
  .track-row-cover {
    width: 44px;
    height: 44px;
  }
  .track-row-title {
    font-size: 14.5px;
  }
  .track-row-artist {
    font-size: 12.5px;
  }
  .plan-cards {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    flex-direction: column;
    gap: 12px;
  }

  /* Landing Page Phone Polish */
  .landing-nav {
    display: none;
  }
  .landing-header {
    padding: 10px 16px;
  }
  .landing-hero-section {
    margin: 40px auto 24px;
    padding: 0 16px;
  }
  .landing-hero-title {
    font-size: 30px;
    letter-spacing: -0.5px;
  }
  .landing-hero-sub {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .landing-hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .landing-hero-buttons .btn {
    width: 100%;
  }
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== LANDING PAGE (DESIGNS MATCHING BOUBOUW.COM) ===== */
.landing-wrapper {
  min-height: 100vh;
  overflow-y: auto;
  background: #0d0e12;
  color: #fff;
}
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 24px;
}
.landing-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.landing-logo-sm { width: 32px; height: 32px; }
.landing-nav { display: flex; gap: 24px; }
.landing-nav-link {
  font-size: 13.5px;
  color: var(--c-text-secondary);
  transition: color var(--transition);
}
.landing-nav-link:hover { color: #fff; }
.landing-nav-actions { display: flex; gap: 10px; }

.landing-hero-section {
  max-width: 900px;
  margin: 60px auto 40px;
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(47, 123, 255, 0.1);
  border: 1px solid rgba(47, 123, 255, 0.25);
  color: var(--c-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 8px var(--c-accent);
}
.landing-hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #b0b5c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing-hero-sub {
  font-size: 16px;
  color: var(--c-text-secondary);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.landing-hero-buttons { display: flex; gap: 14px; justify-content: center; }

.landing-showcase-container {
  width: 100%;
  max-width: 640px;
  margin-top: 40px;
}
.showcase-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 20px;
  text-align: left;
}
.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.showcase-tracks-grid { display: flex; flex-direction: column; gap: 8px; }

.landing-features-section {
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 20px;
}
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.landing-feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.landing-feature-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.landing-feature-item p { font-size: 13px; color: var(--c-text-muted); line-height: 1.5; }

.landing-pricing-section {
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 20px;
}
.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 24px;
  margin-top: 80px;
}
.landing-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}


/* =====================================================================
   LANDING PAGE (lp-*)
   ===================================================================== */
.landing-wrapper:has(.lp) { background: #050608; }
.lp {
  --lp-bg: #050608;
  --lp-panel: #0d1017;
  --lp-line: rgba(255, 255, 255, 0.08);
  --lp-text: #f5f7fb;
  --lp-muted: #8b93a7;
  --lp-blue: #3b82f6;
  --lp-blue-2: #7aa7ff;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}
.lp a { cursor: pointer; color: inherit; text-decoration: none; }
.lp button { font: inherit; cursor: pointer; }
.lp-accent { color: var(--lp-blue-2); }
.lp-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-blue);
  margin-bottom: 14px;
}
.lp-kicker-muted { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-muted); }
.lp-h2 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.lp-h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.lp-center { text-align: center; }
.lp-muted-h { color: #c9ced9; }
.lp-lead { color: #b5bccb; font-size: 15px; line-height: 1.6; max-width: 460px; }
.lp-lead-strong { color: var(--lp-text); font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 18px; }

/* buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-sm { padding: 10px 18px; font-size: 13px; }
.lp-btn-primary { background: var(--lp-blue); color: #fff; box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35); }
.lp-btn-primary:hover { background: #2563eb; }
.lp-btn-white { background: #fff; color: #000; border-radius: 999px; padding: 9px 18px; font-size: 13px; }
.lp-btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.lp-btn-outline:hover { border-color: #fff; }
.lp-link-btn { background: none; border: none; color: #fff; font-weight: 600; font-size: 14px; padding: 8px 12px; }
.lp-round {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: #fff; color: #000; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lp-btn:focus-visible, .lp-round:focus-visible, .lp-tab:focus-visible, .lp-link-btn:focus-visible { outline: 2px solid var(--lp-blue-2); outline-offset: 3px; }

/* header */
.lp-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; background: linear-gradient(to bottom, rgba(5, 6, 8, 0.75), rgba(5, 6, 8, 0)); }
.lp-header.scrolled { background: rgba(5, 6, 8, 0.82); backdrop-filter: blur(14px); border-color: var(--lp-line); }
.lp-header-inner { max-width: 1180px; margin: 0 auto; padding: calc(14px + var(--safe-top)) 24px 14px; display: flex; align-items: center; gap: 28px; }
.lp-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.lp-brand img { width: 26px; height: 26px; }
.lp-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.lp-nav-item { position: relative; }
.lp-nav-link { background: none; border: none; color: #d6dae3; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.lp-nav-link:hover, .lp-nav-item:focus-within .lp-nav-link { color: #fff; }
.lp-caret { font-size: 10px; opacity: 0.7; }
.lp-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #0c0f16; border: 1px solid var(--lp-line); border-radius: 14px; padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.18s;
}
.lp-nav-item:hover .lp-dropdown, .lp-nav-item:focus-within .lp-dropdown { opacity: 1; visibility: visible; transform: none; }
.lp-dropdown a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.lp-dropdown a:hover { background: rgba(255, 255, 255, 0.06); }
.lp-dropdown strong { font-size: 14px; }
.lp-dropdown span { font-size: 12px; color: var(--lp-muted); }
.lp-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* hero */
.lp-hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lp-wall-wrap { position: absolute; inset: -20%; perspective: 1400px; }
.lp-wall {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-content: start; align-items: start;
  transform: rotateX(28deg) rotateZ(-12deg) scale(1.05);
  animation: lp-drift 40s linear infinite alternate;
}
@keyframes lp-drift { from { translate: 0 0; } to { translate: -6% -10%; } }
.lp-tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.lp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-wall .lp-tile { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); filter: brightness(0.62) saturate(1.2); }
.lp-wall .lp-tile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), transparent 55%); }
.lp-wall .lp-tile:nth-child(5n) { background: repeating-linear-gradient(45deg, #22262f 0 6px, #1a1d24 6px 12px) !important; }
.lp-hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 48%, rgba(5, 6, 8, 0.78) 0%, rgba(5, 6, 8, 0.45) 60%, rgba(5, 6, 8, 0.15) 100%),
    linear-gradient(to bottom, rgba(5, 6, 8, 0.65) 0%, transparent 25%, transparent 60%, var(--lp-bg) 100%);
}
.lp-hero-content { position: relative; z-index: 2; text-align: center; padding: 0 20px; }
.lp-hero-title { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.04; font-weight: 700; letter-spacing: -0.045em; margin-bottom: 28px; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.lp-hero-bottom { position: absolute; bottom: 28px; left: 0; right: 0; z-index: 2; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lp-marquee { width: min(900px, 92vw); overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
.lp-marquee-track { display: flex; gap: 40px; width: max-content; animation: lp-marquee 30s linear infinite; }
.lp-marquee-track span { font-weight: 800; font-size: 18px; color: rgba(255, 255, 255, 0.55); letter-spacing: -0.01em; }
@keyframes lp-marquee { to { transform: translateX(-33.333%); } }

/* sections */
.lp-section { max-width: 1180px; margin: 0 auto; padding: 120px 24px; }
.lp-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.lp-reveal.in { opacity: 1; transform: none; }
.lp-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px 64px; align-items: center; }
.lp-split > .lp-dash { grid-column: 1 / -1; }
.lp-split-text .lp-h2 { margin-bottom: 22px; }
.lp-points { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--lp-line); padding-top: 18px; }
.lp-points li { position: relative; padding-left: 20px; color: #d6dae3; font-size: 14px; line-height: 1.5; }
.lp-points li::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--lp-blue); }

/* devices */
.lp-devices { position: relative; min-height: 380px; }
.lp-laptop { position: absolute; right: 0; top: 10px; width: 82%; }
.lp-laptop-screen { background: #0b0d13; border: 8px solid #1b1f29; border-bottom-width: 14px; border-radius: 14px 14px 0 0; padding: 16px; aspect-ratio: 16 / 10; overflow: hidden; }
.lp-laptop-base { height: 12px; background: linear-gradient(#2a2f3b, #14171e); border-radius: 0 0 14px 14px; margin: 0 -5%; }
.lp-screen-title { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.lp-screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-screen-grid .lp-tile { border-radius: 8px; }
.lp-phone { position: absolute; left: 0; top: 40px; width: 30%; min-width: 140px; aspect-ratio: 9 / 19; background: #0b0d13; border: 7px solid #1b1f29; border-radius: 28px; padding: 14px 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); z-index: 2; }
.lp-phone-screen { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.lp-phone-cover .lp-tile { border-radius: 12px; }
.lp-phone-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); }
.lp-phone-line.short { width: 60%; background: rgba(255, 255, 255, 0.12); }
.lp-phone-controls { margin-top: auto; display: flex; justify-content: space-around; align-items: center; }
.lp-phone-controls span { width: 10px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); }
.lp-phone-controls b { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.lp-previews { position: absolute; right: 0; bottom: -30px; width: 62%; display: flex; flex-direction: column; gap: 6px; background: rgba(13, 16, 23, 0.92); border: 1px solid var(--lp-line); border-radius: 14px; padding: 10px; backdrop-filter: blur(10px); z-index: 3; }
.lp-previews:empty { display: none; }
.lp-previews-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp-muted); padding: 2px 4px 4px; }
.lp-preview { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; border: none; background: none; color: #fff; text-align: left; }
.lp-preview:hover { background: rgba(255, 255, 255, 0.06); }
.lp-preview .lp-tile { width: 36px; border-radius: 6px; flex-shrink: 0; }
.lp-preview span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lp-preview strong, .lp-preview small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-preview strong { font-size: 13px; }
.lp-preview small { font-size: 11px; color: var(--lp-muted); }
.lp-preview b { font-size: 11px; color: var(--lp-blue-2); }

/* carousel */
.lp-carousel { padding-top: 60px; }
.lp-slides { position: relative; min-height: 380px; }
.lp-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; opacity: 0; visibility: hidden; transform: translateX(30px); transition: opacity 0.5s, transform 0.5s, visibility 0.5s; }
.lp-slide.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.lp-slide-text .lp-btn { margin-top: 22px; }
.lp-carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.lp-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lp-tab { background: none; border: none; color: var(--lp-muted); font-size: 13px; font-weight: 600; padding: 8px 10px; position: relative; }
.lp-tab.active { color: #fff; }
.lp-tab.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: #fff; border-radius: 2px; }

/* carousel visuals */
.lp-mock { background: var(--lp-panel); border: 1px solid var(--lp-line); border-radius: 18px; padding: 20px; min-height: 300px; position: relative; overflow: hidden; }
.lp-mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-content: center; }
.lp-mock-lock { display: flex; align-items: center; justify-content: center; }
.lp-mock-lock .lp-tile { width: 60%; filter: blur(6px) brightness(0.6); }
.lp-lock-badge { position: absolute; background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(245, 158, 11, 0.6); color: #fbbf24; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.lp-mock-list { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.lp-mock-row { display: grid; grid-template-columns: 52px 1fr 40px; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.lp-mock-row span, .lp-mock-person span, .lp-mock-profile span, .lp-mock-profile em, .lp-mock-row em { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); }
.lp-mock-row em { background: rgba(122, 167, 255, 0.5); width: 30px; }
.lp-mock-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-content: center; }
.lp-mock-person { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lp-mock-person .lp-tile { width: 76%; border-radius: 50%; }
.lp-mock-person span { width: 60%; }
.lp-mock-profile { padding: 0; }
.lp-mock-banner { height: 130px; background: linear-gradient(135deg, #8b5cf6, #3b82f6); }
.lp-mock-avatar { width: 96px; margin: -48px 0 0 24px; border-radius: 50%; overflow: hidden; border: 4px solid var(--lp-panel); }
.lp-mock-avatar .lp-tile { border-radius: 50%; }
.lp-mock-profile span { width: 40%; height: 14px; margin: 16px 24px 10px; }
.lp-mock-profile em { width: 60%; margin: 0 24px; background: rgba(255, 255, 255, 0.12); }

/* protection dashboard */
.lp-dash { background: linear-gradient(180deg, #111827, #0b0f18); border: 1px solid rgba(122, 167, 255, 0.18); border-radius: 18px; padding: 20px; }
.lp-dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; }
.lp-brand-sm { font-weight: 800; }
.lp-live { color: #4ade80; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.lp-dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.lp-dash-stats div { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--lp-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.lp-dash-stats small { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lp-muted); }
.lp-dash-stats strong { font-size: 24px; font-weight: 800; }
.lp-dash-wave { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding: 10px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; }
.lp-dash-wave span { flex: 1; height: var(--h); border-radius: 3px; background: linear-gradient(to top, var(--lp-blue), var(--lp-blue-2)); opacity: 0.8; animation: lp-wave 1.8s ease-in-out infinite alternate; }
.lp-dash-wave span:nth-child(3n) { animation-delay: -0.6s; }
.lp-dash-wave span:nth-child(3n + 1) { animation-delay: -1.2s; }
@keyframes lp-wave { to { transform: scaleY(0.55); } }
.lp-dash-wave span { transform-origin: bottom; }

/* artists */
.lp-artist-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 48px; }
.lp-artist { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #111; cursor: pointer; }
.lp-artist .lp-tile { position: absolute; inset: 0; border-radius: 0; transition: transform 0.4s; }
.lp-artist:hover .lp-tile { transform: scale(1.06); }
.lp-artist span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; font-weight: 700; font-size: 13px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-artist-empty, .lp-skeleton { background: #121419; cursor: default; }
.lp-skeleton { animation: lp-pulse 1.4s ease-in-out infinite; }
@keyframes lp-pulse { 50% { opacity: 0.5; } }

/* releases */
.lp-row-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; gap: 16px; }
.lp-see-all { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.lp-releases { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 18px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.lp-release { position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer; min-width: 0; }
.lp-release.lp-skeleton { aspect-ratio: 1; border-radius: 14px; }
.lp-release .lp-tile { border-radius: 14px; margin-bottom: 8px; }
.lp-release strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-release > span { font-size: 12px; color: var(--lp-muted); }
.lp-release-play { position: absolute; top: calc(50% - 46px); left: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; background: var(--lp-blue); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.8); transition: all 0.2s; font-size: 14px; }
.lp-release:hover .lp-release-play { opacity: 1; transform: none; }
.lp-chip { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.7); color: #fbbf24; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; }

/* offers */
.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; margin-top: 48px; }
.lp-plan { position: relative; background: var(--lp-panel); border: 1px solid var(--lp-line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.lp-plan-hi { border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 0 60px rgba(59, 130, 246, 0.15); }
.lp-plan h3 { font-size: 20px; font-weight: 800; }
.lp-price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.lp-price small { font-size: 13px; font-weight: 500; color: var(--lp-muted); }
.lp-plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 6px; }
.lp-plan li { font-size: 14px; color: #d6dae3; padding-left: 22px; position: relative; }
.lp-plan li::before { content: '✓'; position: absolute; left: 0; color: var(--lp-blue-2); font-weight: 800; }
.lp-plan-badge { position: absolute; top: -12px; right: 20px; background: var(--lp-blue); font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }

/* final call to action */
.lp-cta { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.35), transparent 70%); }
.lp-cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-cta-content { position: relative; z-index: 1; padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lp-cta-title { font-size: clamp(44px, 7vw, 92px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.lp-cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* footer */
.lp-footer { max-width: 1180px; margin: 0 auto; padding: 60px 24px 30px; border-top: 1px solid var(--lp-line); }
.lp-footer-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.lp-footer-brand p { color: var(--lp-muted); font-size: 13px; margin-top: 12px; max-width: 260px; line-height: 1.5; }
.lp-footer h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-muted); margin-bottom: 14px; }
.lp-footer-cols > div > a { display: block; font-size: 14px; color: #d6dae3; padding: 5px 0; }
.lp-footer-cols > div > a:hover { color: #fff; }
.lp-footer-bottom { margin-top: 48px; font-size: 12px; color: var(--lp-muted); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 960px) {
  .lp-nav { display: none; }
  .lp-split, .lp-slide { grid-template-columns: 1fr; }
  .lp-devices { min-height: 340px; margin-top: 20px; }
  .lp-artist-grid { grid-template-columns: repeat(4, 1fr); }
  .lp-footer-cols { grid-template-columns: 1fr 1fr; }
  .lp-slides { min-height: 620px; }
}
@media (max-width: 640px) {
  .lp-header-inner { padding: calc(12px + var(--safe-top)) 16px 12px; gap: 10px; }
  .lp-brand span { display: none; }
  .lp-btn-white { padding: 8px 14px; font-size: 12px; }
  .lp-link-btn { font-size: 13px; padding: 6px 8px; }
  .lp-section { padding: 80px 16px; }
  .lp-wall { grid-template-columns: repeat(7, 1fr); gap: 10px; }
  .lp-artist-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .lp-devices { min-height: 300px; }
  .lp-previews { width: 78%; }
  .lp-dash-stats { grid-template-columns: 1fr 1fr; }
  .lp-dash-stats div:last-child { grid-column: span 2; }
  .lp-carousel-nav .lp-round { display: none; }
  .lp-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-footer-cols { grid-template-columns: 1fr 1fr; }
  .lp-footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-wall, .lp-marquee-track, .lp-dash-wave span, .lp-skeleton { animation: none; }
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-slide { transition: none; }
}

.on-landing .mobile-bottom-nav, .on-landing .mobile-header, .on-landing .player-bar, .on-landing .mini-player { display: none !important; }

/* The page body never scrolls (app layout): the welcome page scrolls inside its own box */
.landing-wrapper { height: 100vh; height: 100dvh; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }


/* ===== Install the app (PWA) ===== */
.lp-install { display: inline-flex; align-items: center; gap: 8px; }
.lp-install-hero { display: none; margin: 12px auto 0; }
.app-installed .lp-install { display: none !important; }
.install-app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.install-app-head img { border-radius: 14px; flex-shrink: 0; }
.install-steps { margin: 0 0 20px; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; }
.install-steps svg { vertical-align: -3px; margin: 0 2px; color: var(--c-accent); }
.install-warn { background: color-mix(in srgb, var(--c-accent) 14%, transparent); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
/* On phones the button also shows under the main call to action at the top */
@media (max-width: 768px) {
  .lp-install-hero { display: flex; width: fit-content; }
}



/* ===== Seek bar: drag with the finger, dot + time bubble ===== */
.progress-bar-wrap { touch-action: none; transition: height 0.15s ease; -webkit-tap-highlight-color: transparent; }
/* Invisible larger zone so the bar is easy to grab with a finger */
.progress-bar-wrap::before { content: ''; position: absolute; left: -6px; right: -6px; top: -14px; bottom: -14px; }
.progress-bar-fill { position: relative; }
.seek-thumb {
  position: absolute; right: -7px; top: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
  transform: translateY(-50%) scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  pointer-events: none;
}
.progress-bar-wrap:hover .seek-thumb,
.full-player-progress .seek-thumb { transform: translateY(-50%) scale(1); }
.progress-bar-wrap.scrubbing { height: 8px; }
.progress-bar-wrap.scrubbing .progress-bar-fill { transition: none; background: var(--c-accent); }
.progress-bar-wrap.scrubbing .seek-thumb {
  transform: translateY(-50%) scale(1.5);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--c-accent) 30%, transparent);
}
.seek-bubble {
  position: absolute; bottom: calc(100% + 16px); left: 0;
  transform: translateX(-50%) translateY(6px) scale(0.8);
  opacity: 0; pointer-events: none;
  background: var(--c-accent); color: #fff;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 4px 9px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}
.progress-bar-wrap.scrubbing .seek-bubble { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.progress-bar-wrap.seek-pop .seek-thumb { animation: seek-pop 0.45s ease-out; }
@keyframes seek-pop {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 16px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .seek-thumb, .seek-bubble, .progress-bar-wrap { transition: none; }
  .progress-bar-wrap.seek-pop .seek-thumb { animation: none; }
}

/* Plain lyrics (no timing): readable block, nothing highlighted */
.lyrics-plain .lyric-static { cursor: default; opacity: 0.9; min-height: 1.2em; }


/* ===== Lyrics: search + tap-in-time sync (admin) ===== */
.lyrics-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.lyrics-label-row .form-label { margin-bottom: 0; }
.lyrics-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.lyrics-search-results { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; max-height: 220px; overflow-y: auto; }
.lyrics-result {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; width: 100%; padding: 10px 12px; border-radius: 10px;
  background: var(--c-surface); border: 1px solid transparent; color: var(--c-text); cursor: pointer;
}
.lyrics-result:hover { border-color: var(--c-accent); }
.lyrics-result small { color: var(--c-text-muted); display: block; margin-top: 2px; }
.lyrics-result .badge-synced { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c-accent) 20%, transparent); color: var(--c-accent); white-space: nowrap; }
.lyrics-result .badge-plain { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--c-surface-hover, #333); color: var(--c-text-muted); white-space: nowrap; }

.tapsync-card { max-width: 560px; }
.tapsync-help { margin-bottom: 14px; }
.tapsync-lines { position: relative; height: 210px; overflow: hidden; border-radius: 14px; background: var(--c-surface); margin-bottom: 14px;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.tapsync-track { position: absolute; left: 0; right: 0; top: 0; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.tapsync-line { padding: 8px 16px; font-size: 15px; color: var(--c-text-muted); display: flex; gap: 10px; align-items: baseline; transition: color 0.2s, font-size 0.2s; }
.tapsync-line time { font-size: 11px; font-variant-numeric: tabular-nums; min-width: 44px; color: var(--c-accent); opacity: 0.8; }
.tapsync-line.done { color: var(--c-text-secondary, #bbb); }
.tapsync-line.current { color: var(--c-text); font-size: 19px; font-weight: 700; }
.tapsync-status { display: flex; justify-content: space-between; font-size: 13px; color: var(--c-text-muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.tapsync-tap {
  width: 100%; padding: 22px 16px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--c-accent); color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--c-accent) 40%, transparent);
  transition: transform 0.08s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.tapsync-tap:active { transform: scale(0.97); }
.tapsync-tap:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
.tapsync-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tapsync-actions .btn { flex: 1; }


/* ===== Lyrics like Spotify (phone player) ===== */
/* The player scrolls: first the cover and controls, then the lyrics card */
.full-player-sheet { overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; }
.full-player-body { flex: none; min-height: calc(100dvh - 110px - var(--safe-top) - var(--safe-bottom)); }
.full-player-cover-wrap { position: relative; }
.fp-cover-lyric {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(6px);
  width: min(72vw, 300px); padding: 0 16px; box-sizing: border-box;
  font-size: 17px; font-weight: 800; line-height: 1.25; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6);
  opacity: 0; transition: opacity 0.25s ease, transform 0.3s ease; pointer-events: none;
}
.fp-cover-lyric.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.fp-lyrics-card {
  max-width: 440px; width: 100%; margin: 18px auto 8px; flex-shrink: 0;
  background: var(--lyrics-bg, color-mix(in srgb, var(--c-accent) 45%, #0b0b0d));
  border-radius: 18px; padding: 16px 18px 6px; transition: background 0.6s ease;
}
.fp-lyrics-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.fp-round-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.25); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.lyrics-scroll { position: relative; overflow-y: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lyrics-scroll::-webkit-scrollbar { display: none; }
.fp-lyrics-list { height: 300px; }
.lyrics-scroll .lyric-line {
  text-align: left; padding: 6px 0; font-size: 21px; font-weight: 800; line-height: 1.3;
  color: rgba(0, 0, 0, 0.55); cursor: pointer; transition: color 0.3s ease, transform 0.3s ease;
}
.lyrics-scroll .lyric-line.past { color: rgba(255, 255, 255, 0.6); }
.lyrics-scroll .lyric-line.active { color: #fff; font-size: 21px; }
.lyrics-scroll .lyric-line:hover { color: rgba(255, 255, 255, 0.85); }
.lyrics-scroll.lyrics-plain .lyric-line { color: #fff; cursor: default; }
.lyrics-scroll .lyrics-empty { color: rgba(255, 255, 255, 0.7); padding: 20px 0; }

.lyrics-full {
  position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column;
  background: var(--lyrics-bg, color-mix(in srgb, var(--c-accent) 45%, #0b0b0d));
  padding: calc(10px + var(--safe-top)) 22px calc(18px + var(--safe-bottom));
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease;
  color: #fff; visibility: hidden;
}
.lyrics-full.active { transform: translateY(0); visibility: visible; }
.lyrics-full-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lyrics-full-head .icon-btn { color: #fff; }
.lyrics-full-meta { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.lyrics-full-meta strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.lyrics-full-meta span { font-size: 13px; opacity: 0.75; }
.lyrics-full-list { flex: 1; padding: 10px 0 40vh; }
.lyrics-full-list .lyric-line { font-size: 26px; padding: 8px 0; }
.lyrics-full-list .lyric-line.active { font-size: 26px; }
.lyrics-full-foot { padding-top: 10px; }
.lyrics-full-foot .progress-bar-wrap { flex: none; height: 5px; background: rgba(255, 255, 255, 0.25); border-radius: 3px; }
.lyrics-full-foot .progress-bar-fill { background: #fff; border-radius: 3px; }
.lyrics-full-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12px; opacity: 0.9; font-variant-numeric: tabular-nums; }
.lyrics-full-play {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #000; display: inline-flex; align-items: center; justify-content: center;
}
@media (min-width: 769px) {
  .lyrics-full-list .lyric-line, .lyrics-full-list .lyric-line.active { font-size: 34px; }
  .lyrics-full { padding-left: max(22px, calc(50vw - 380px)); padding-right: max(22px, calc(50vw - 380px)); }
}
@media (prefers-reduced-motion: reduce) {
  .fp-cover-lyric, .lyrics-full, .lyrics-scroll .lyric-line { transition: none; }
}

/* ===== Page transitions ===== */
/* Each new page fades in and slides up a little, in a short cascade.
   CSS animations replay every time the page content is replaced. */
.view-content > * { animation: view-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.view-content > *:nth-child(2) { animation-delay: 0.06s; }
.view-content > *:nth-child(3) { animation-delay: 0.12s; }
.view-content > *:nth-child(4) { animation-delay: 0.18s; }
.view-content > *:nth-child(n+5) { animation-delay: 0.24s; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
/* Switching between the welcome page and the app: soft fade (opacity only, so fixed bars stay in place).
   "backwards" so nothing stays applied afterwards: a lasting opacity would trap the phone menu under its dark overlay. */
#app-shell, #landing-wrapper { animation: shell-in 0.3s ease backwards; }
@keyframes shell-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .view-content > *, #app-shell, #landing-wrapper { animation: none; }
}


/* ===== Full screen player: open / close animation ===== */
/* Always laid out (so it can slide), hidden below the screen until opened */
.full-player-sheet {
  display: flex;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.46s;
  will-change: transform;
}
.full-player-sheet.active {
  visibility: visible;
  transform: translateY(0);
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
}
/* The rest of the page fades in just after the cover */
.full-player-sheet .full-player-header,
.full-player-sheet .full-player-info,
.full-player-sheet .full-player-progress,
.full-player-sheet .full-player-controls,
.full-player-sheet .fp-lyrics-card {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.full-player-sheet.active .full-player-header,
.full-player-sheet.active .full-player-info,
.full-player-sheet.active .full-player-progress,
.full-player-sheet.active .full-player-controls,
.full-player-sheet.active .fp-lyrics-card {
  opacity: 1; transform: none;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.full-player-sheet.active .full-player-info { transition-delay: 0.12s; }
.full-player-sheet.active .full-player-progress { transition-delay: 0.16s; }
.full-player-sheet.active .full-player-controls { transition-delay: 0.2s; }
.full-player-sheet.active .fp-lyrics-card { transition-delay: 0.28s; }

/* Copy of the cover that flies between the small and the big player */
.cover-ghost {
  position: fixed; z-index: 2000; object-fit: cover; pointer-events: none;
  transform-origin: top left; border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
@media (prefers-reduced-motion: reduce) {
  .full-player-sheet, .full-player-sheet.active { transition: visibility 0s; }
  .full-player-sheet [class] { transition: none !important; }
}


/* ===== Phone player laid out like Spotify ===== */
/* Big square cover across the width, the current lyric line under it,
   then title, progress and controls spread down the screen. */
.full-player-body { justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.full-player-cover-wrap { padding: 8px 0 0; }
.full-player-cover-wrap img {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  max-width: min(100%, calc(100dvh - 430px - var(--safe-top) - var(--safe-bottom)));
  min-width: 220px;
  border-radius: 10px;
}
.fp-cover-lyric {
  position: static; transform: translateY(6px); width: auto; padding: 0 4px;
  min-height: 2.6em; display: flex; align-items: center;
  font-size: 18px; font-weight: 800; line-height: 1.3; color: #fff;
  text-shadow: none;
}
.fp-cover-lyric.show { transform: none; }
.full-player-info { margin-top: 0; }
.full-player-controls { margin-bottom: 8px; }


/* ===== Full screen player in the cover's colours (like Apple Music) ===== */
/* The colour comes from the cover (--cover-color, set by app.js) and fades to
   black towards the bottom so the white text stays readable. */
.full-player-sheet {
  background-color: var(--cover-color, #222638);
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.88) 100%);
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.46s, background-color 0.8s ease;
}
.full-player-sheet.active {
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s, background-color 0.8s ease;
}
.full-player-sheet .full-player-cover-wrap img { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }


/* ===== Sleep timer ===== */
.sleep-btn { position: relative; }
.sleep-btn.active { color: var(--c-accent); }
.sleep-left {
  position: absolute; top: -4px; right: -8px; padding: 1px 5px; border-radius: 8px;
  background: var(--c-accent); color: #fff; font-size: 9px; font-weight: 800; line-height: 1.4; white-space: nowrap;
}
.full-player-header-actions { display: flex; align-items: center; gap: 4px; }
.full-player-sheet .sleep-btn.active { color: #fff; }
.sleep-card { max-width: 380px; }
.sleep-status { color: var(--c-text-secondary); font-size: 14px; margin: 4px 0 14px; }
.sleep-options { display: flex; flex-direction: column; gap: 8px; }
.sleep-option {
  padding: 13px 16px; border-radius: 12px; border: 1px solid var(--c-border); background: var(--c-surface);
  color: var(--c-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: background 0.15s;
}
.sleep-option:hover { background: var(--c-surface-hover); }
.sleep-option.sleep-off { color: var(--c-danger); text-align: center; }

/* ===== Settings: crossfade length ===== */
.crossfade-range { width: 140px; accent-color: var(--c-accent); flex-shrink: 0; }

/* ===== Year recap ===== */
.suggested-card.gradient-recap {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 55%, #7c3aed 100%);
  grid-column: 1 / -1; min-height: 150px;
}
.recap-hero {
  border-radius: var(--radius-xl); padding: 28px; color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 55%, #7c3aed 100%);
  animation: recap-glow 8s ease-in-out infinite alternate; background-size: 160% 160%;
}
@keyframes recap-glow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.recap-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; opacity: 0.85; }
.recap-title { font-size: clamp(30px, 6vw, 52px); font-weight: 900; line-height: 1.05; margin: 6px 0 4px; }
.recap-note { opacity: 0.85; font-size: 14px; margin-top: 6px; }
.recap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.recap-stats div { background: rgba(0, 0, 0, 0.18); border-radius: 14px; padding: 14px; }
.recap-stats strong { display: block; font-size: 26px; font-weight: 900; }
.recap-stats span { font-size: 12px; opacity: 0.85; }
.recap-top-artist {
  display: flex; align-items: center; gap: 14px; background: rgba(0, 0, 0, 0.22);
  border-radius: 16px; padding: 12px; cursor: pointer; max-width: 460px;
}
.recap-top-artist img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.recap-top-artist span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 0.8; }
.recap-top-artist strong { display: block; font-size: 22px; font-weight: 900; }
.recap-top-artist em { font-style: normal; font-size: 13px; opacity: 0.85; }
.recap-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.recap-hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: rgba(0, 0, 0, 0.12); }
.recap-hero .btn-primary { background: #fff; color: #111; border-color: #fff; }
.recap-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.recap-artist {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  background: var(--c-surface); cursor: pointer;
}
.recap-artist img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.recap-artist strong { display: block; font-size: 14px; }
.recap-artist span:not(.recap-rank) { font-size: 12px; color: var(--c-text-muted); }
.recap-rank { font-size: 18px; font-weight: 900; min-width: 22px; text-align: center; color: var(--c-text-secondary); }
.recap-track { display: flex; align-items: center; gap: 6px; }
.recap-track .track-row { flex: 1; min-width: 0; }
.recap-plays { font-size: 12px; color: var(--c-text-muted); white-space: nowrap; min-width: 74px; text-align: right; }
@media (max-width: 768px) {
  .recap-hero { padding: 20px; }
  .recap-stats { grid-template-columns: repeat(2, 1fr); }
  .recap-plays { display: none; }
}
@media (prefers-reduced-motion: reduce) { .recap-hero { animation: none; } }

/* ===== Alerts (bell) ===== */
.notif-bell { position: relative; }
.notif-dot {
  position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
}
.notif-panel {
  position: fixed; z-index: 1500; max-height: min(70vh, 480px); overflow-y: auto;
  background: var(--c-sidebar); border: 1px solid var(--c-border); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); padding: 8px; animation: view-in 0.25s ease both;
}
.notif-head { font-weight: 800; font-size: 15px; padding: 8px 10px 10px; }
.notif-item {
  display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--c-text); font: inherit; text-align: left; cursor: pointer;
}
.notif-item:hover { background: var(--c-surface-hover); }
.notif-item.unread { background: color-mix(in srgb, var(--c-accent) 14%, transparent); }
.notif-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.notif-item strong { display: block; font-size: 13px; }
.notif-item em { display: block; font-style: normal; font-size: 13px; color: var(--c-text-secondary); }
.notif-item small { font-size: 11px; color: var(--c-text-muted); }
.notif-empty { padding: 10px; font-size: 13px; color: var(--c-text-muted); line-height: 1.5; }

/* ===== Shared playlists ===== */
.pl-people { display: flex; align-items: center; margin-top: 10px; }
.pl-people img, .pl-people span {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: -8px;
  border: 2px solid var(--c-bg); background: var(--c-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.pl-people em { font-style: normal; font-size: 12px; color: var(--c-text-secondary); margin-left: 16px; }
.pl-track { display: flex; align-items: center; gap: 8px; }
.pl-track .track-row { flex: 1; min-width: 0; }
.pl-added { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; }
@media (max-width: 768px) { .pl-added { display: none; } }
.invite-member { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--c-border); }
/* "hidden" must win over the display set by these classes */
.suggested-card[hidden], .notif-dot[hidden], .sleep-left[hidden], .sleep-option[hidden] { display: none; }


/* ===== Welcome steps after signing up (artists, profile, ready) ===== */
body.ob-open { overflow: hidden; }
.ob-overlay {
  position: fixed; inset: 0; z-index: 3000; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c-accent) 28%, var(--c-bg)) 0%, var(--c-bg) 60%);
  padding: calc(16px + var(--safe-top, 0px)) 16px 0;
  animation: ob-in 0.35s ease both;
}
.ob-overlay.closing { animation: ob-out 0.35s ease both; }
@keyframes ob-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ob-out { to { opacity: 0; transform: scale(1.02); } }
.ob-shell { max-width: 720px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.ob-step { animation: view-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ob-top { display: flex; align-items: center; justify-content: space-between; height: 40px; margin-bottom: 18px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--c-border); transition: width 0.3s, background 0.3s; }
.ob-dots span.on { width: 26px; background: var(--c-accent); }
.ob-dots span.done { background: var(--c-accent); opacity: 0.6; }
.ob-skip { background: none; border: 0; color: var(--c-text-secondary); font: inherit; font-weight: 600; cursor: pointer; padding: 8px; }
.ob-skip:hover { color: var(--c-text); }
.ob-title { font-size: clamp(26px, 5vw, 38px); font-weight: 900; line-height: 1.12; margin: 0 0 10px; }
.ob-sub { color: var(--c-text-secondary); font-size: 15px; line-height: 1.5; margin: 0 0 20px; max-width: 560px; }
.ob-search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border-radius: 23px;
  background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text-muted); margin-bottom: 20px;
}
.ob-search input { flex: 1; background: none; border: 0; outline: none; color: var(--c-text); font: inherit; font-size: 15px; }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px 12px; padding-bottom: 110px; }
.ob-empty { grid-column: 1 / -1; color: var(--c-text-muted); text-align: center; padding: 30px 0; }
.ob-artist { background: none; border: 0; color: var(--c-text); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; }
.ob-avatar {
  position: relative; width: 100%; max-width: 112px; aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, var(--c-accent) 35%, var(--c-surface));
  display: flex; align-items: center; justify-content: center; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 0 var(--c-accent);
}
.ob-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transition: filter 0.2s; }
.ob-avatar b { font-size: 36px; font-weight: 900; color: #fff; }
.ob-artist:hover .ob-avatar { transform: scale(1.04); }
.ob-artist.on .ob-avatar { transform: scale(0.94); box-shadow: 0 0 0 3px var(--c-accent); }
.ob-artist.on .ob-avatar img { filter: brightness(0.75); }
.ob-check {
  position: absolute; right: 2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-accent); color: #fff; font-style: normal; font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--c-bg);
  transform: scale(0); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ob-artist.on .ob-check { transform: scale(1); }
.ob-artist-name { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.25; max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
.ob-footer {
  position: sticky; bottom: 0; margin: auto -16px 0; padding: 14px 16px calc(14px + var(--safe-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, transparent, var(--c-bg) 35%);
  z-index: 2;
}
.ob-footer-center { justify-content: center; position: static; background: none; margin-top: 28px; padding-bottom: calc(28px + var(--safe-bottom, 0px)); }
.ob-count { color: var(--c-text-secondary); font-size: 14px; font-weight: 600; }
.ob-next { min-width: 150px; height: 46px; border-radius: 23px; font-size: 15px; font-weight: 800; }
.ob-next:disabled { opacity: 0.45; cursor: not-allowed; }

.ob-profile { position: relative; border-radius: 18px; overflow: hidden; background: var(--c-surface); margin-bottom: 20px; padding-bottom: 16px; text-align: center; }
.ob-banner { height: 110px; background: linear-gradient(135deg, var(--ob-accent), color-mix(in srgb, var(--ob-accent) 40%, #000)); transition: background 0.3s; }
.ob-photo {
  position: relative; width: 104px; height: 104px; margin: -52px auto 8px; border-radius: 50%; cursor: pointer;
  background: var(--c-surface-hover); border: 4px solid var(--c-surface); display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted);
}
.ob-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ob-photo-btn {
  position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ob-accent); display: flex; align-items: center; justify-content: center; font-size: 15px;
  border: 3px solid var(--c-surface);
}
.ob-profile-name { font-size: 20px; font-weight: 800; }
.ob-colors { margin-bottom: 8px; }
.ob-done { text-align: center; align-items: center; justify-content: flex-start; }
.ob-done .ob-top { width: 100%; }
.ob-done-photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 30px auto 20px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: var(--c-surface);
  box-shadow: 0 0 0 4px var(--ob-accent), 0 20px 60px color-mix(in srgb, var(--ob-accent) 45%, transparent);
  animation: ob-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ob-done-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes ob-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ob-done .ob-sub { margin-left: auto; margin-right: auto; }
.ob-chosen { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; }
.ob-chosen span { padding: 6px 12px; border-radius: 16px; background: var(--c-surface); font-size: 13px; font-weight: 700; }
@media (max-width: 480px) {
  .ob-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .ob-avatar b { font-size: 28px; }
  .ob-next { min-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .ob-overlay, .ob-step, .ob-done-photo { animation: none; }
}


/* ===== Admin: Telegram bot steps ===== */
.tg-step { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--c-border); }
.tg-step:first-of-type { border-top: 0; }
.tg-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--c-surface-hover); font-weight: 800; font-size: 13px;
}
.tg-step.done .tg-num { background: var(--c-success, #22c55e); color: #fff; }
.tg-step > div { flex: 1; min-width: 0; }


/* ===== Page numbers for long lists ===== */
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 22px 0 6px; }
.pager-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 19px; border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text); font: inherit; font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.pager-btn:hover:not(:disabled) { background: var(--c-surface-hover); }
.pager-btn.on { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.pager-btn:disabled { opacity: 0.35; cursor: default; }
.pager-gap { color: var(--c-text-muted); padding: 0 2px; }
.pager-info { text-align: center; font-size: 12px; color: var(--c-text-muted); margin: 4px 0 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.list-tools { display: flex; align-items: center; gap: 10px; }
.list-sort { width: auto; padding-right: 30px; }
.admin-track-search { margin-bottom: 12px; }

/* ===== Edit window: cover ===== */
.edit-cover { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.edit-cover img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--c-surface); flex-shrink: 0; }
.edit-cover label.btn { cursor: pointer; }


/* ===== Admin: albums ===== */
.topbar-admin[hidden] { display: none; }
.admin-album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.admin-album-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; border-radius: 10px;
  background: none; border: 0; color: inherit; cursor: pointer; min-width: 0;
}
.admin-album-card:hover { background: var(--c-surface-hover); }
.admin-album-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--c-surface); }
.admin-album-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-album-sub { font-size: 12px; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-album-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.admin-album-cover { position: relative; width: 200px; flex-shrink: 0; cursor: pointer; border-radius: 10px; overflow: hidden; }
.admin-album-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--c-surface); }
.admin-album-cover span {
  position: absolute; inset: auto 0 0 0; padding: 8px; text-align: center; font-size: 13px; font-weight: 700;
  background: rgba(0,0,0,.6); color: #fff;
}
.admin-album-cover.busy { opacity: .6; pointer-events: none; }
.admin-album-form { flex: 1; min-width: 240px; }
.track-row.album-track-row { grid-template-columns: 22px 40px 1fr auto; }
.admin-album-num { width: 22px; text-align: center; color: var(--c-text-muted); font-size: 13px; flex-shrink: 0; }
.album-up-list { display: flex; flex-direction: column; gap: 8px; max-height: 45vh; overflow-y: auto; }
.album-up-row { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 8px; background: var(--c-surface); }
.album-up-row.done { opacity: .6; }
.album-up-row.error { outline: 1px solid var(--c-danger); }
.album-up-row.busy { outline: 1px solid var(--c-accent); }
.album-up-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.album-up-file { grid-column: 1 / -1; font-size: 12px; color: var(--c-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-up-actions { display: flex; flex-shrink: 0; }
@media (max-width: 640px) {
  .admin-album-cover { width: 140px; }
  .album-up-fields { grid-template-columns: 1fr; }
  .admin-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 640px) {
  .track-row.album-track-row { grid-template-columns: 18px 44px 1fr; }
  .album-track-row .track-row-meta { grid-column: 2 / -1; justify-content: flex-start; }
}

/* ===== Admin: picture repair ===== */
.media-repair { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 20px; border-radius: var(--radius); border: 1px solid var(--c-accent); background: var(--c-surface); }
.media-repair[hidden] { display: none; }
.media-repair > div { flex: 1; min-width: 220px; }

/* ---- Player: title -> project page, artist -> artist page ---- */
.np-link { color: inherit; cursor: pointer; text-decoration: none; }
.np-link:hover { text-decoration: underline; color: var(--c-text); }

/* ---- Button waiting for the server (login, sign up) ---- */
.btn.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.btn-loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---- Project page (album, EP, single) ---- */
.album-header { display: flex; gap: 24px; align-items: flex-end; margin-bottom: 8px; }
.album-header-cover { width: 200px; height: 200px; object-fit: cover; border-radius: 8px; flex-shrink: 0; box-shadow: 0 8px 30px rgba(0,0,0,.35); background: var(--c-surface-hover); }
.album-header-info { min-width: 0; }
.album-header-title { font-size: 40px; font-weight: 800; line-height: 1.1; margin: 4px 0 10px; overflow-wrap: anywhere; }
.album-header-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--c-text-secondary); }
.album-header-meta img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; cursor: pointer; }
@media (max-width: 768px) {
  .album-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .album-header-cover { width: min(240px, 70vw); height: auto; aspect-ratio: 1 / 1; align-self: center; }
  .album-header-title { font-size: 26px; }
}

/* ---- Admin: artist photo from a file ---- */
.artist-photo-pick { display: flex; align-items: center; gap: 14px; }
.artist-photo-pick img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--c-surface-hover); flex-shrink: 0; }
.artist-photo-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.artist-photo-actions label { cursor: pointer; }

/* ---- Lyrics on computer: full screen like Apple Music ---- */
.lyrics-desk {
  position: fixed; inset: 0; z-index: 1150; display: grid; grid-template-columns: minmax(300px, 40%) 1fr;
  gap: 6vw; align-items: center; padding: 0 7vw; color: #fff; overflow: hidden;
  background: var(--lyrics-bg, #1a1a1a);
  opacity: 0; visibility: hidden; transform: scale(1.02);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.lyrics-desk.active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease; }
.ld-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ld-bg img { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover;
             filter: blur(90px) saturate(1.8) brightness(.75); transform: scale(1.1); opacity: 0; transition: opacity .8s; }
.ld-bg img.ready { opacity: 1; animation: ld-drift 40s ease-in-out infinite alternate; }
.ld-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
@keyframes ld-drift { from { transform: scale(1.1) rotate(0deg); } to { transform: scale(1.25) rotate(8deg); } }
.ld-close { position: absolute; top: 18px; left: 18px; background: none; border: 0; color: rgba(255,255,255,.8);
            cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ld-close:hover { color: #fff; background: rgba(255,255,255,.12); }
.ld-left { width: 100%; max-width: 420px; justify-self: end; }
.ld-cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.45);
            display: block; background: rgba(255,255,255,.08); }
.ld-info { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.ld-text { flex: 1; min-width: 0; }
.ld-title { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-artist { font-size: 15px; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-title .np-link:hover, .ld-artist .np-link:hover { color: #fff; }
.ld-btn { background: none; border: 0; color: rgba(255,255,255,.85); cursor: pointer; display: inline-flex; align-items: center;
          justify-content: center; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; transition: transform .15s, color .15s; }
.ld-btn:hover { color: #fff; transform: scale(1.08); }
.ld-btn.on, #ld-fav.on { color: var(--c-accent); }
.ld-big { width: 48px; height: 48px; }
.ld-play { width: 58px; height: 58px; color: #fff; }
.ld-progress { margin-top: 16px; height: 16px; display: flex; align-items: center; cursor: pointer; position: relative; }
.ld-progress::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
.ld-progress-fill { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.9); width: 0; }
.ld-progress:hover .ld-progress-fill { background: #fff; }
.ld-times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
.ld-controls { display: flex; align-items: center; justify-content: space-between; margin: 10px 4px 6px; }
.ld-volume { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); margin-top: 6px; }
.ld-vol-track { flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer; position: relative; }
.ld-vol-track::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
.ld-vol-fill { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.85); width: 80%; }
.ld-lyrics { height: 100vh; padding: 38vh 0 50vh; mask-image: linear-gradient(transparent 0, #000 22%, #000 70%, transparent 100%);
             -webkit-mask-image: linear-gradient(transparent 0, #000 22%, #000 70%, transparent 100%); }
.lyrics-scroll.ld-lyrics .lyric-line {
  text-align: left; font-size: clamp(24px, 2.6vw, 38px); font-weight: 800; line-height: 1.25; padding: 12px 10px;
  color: rgba(255,255,255,.38); transform-origin: left center; transition: color .35s, transform .35s, filter .35s;
  filter: blur(1px);
}
.lyrics-scroll.ld-lyrics .lyric-line.past { color: rgba(255,255,255,.38); }
.lyrics-scroll.ld-lyrics .lyric-line.active { color: #fff; font-size: clamp(24px, 2.6vw, 38px); transform: scale(1.04); filter: none; }
.lyrics-scroll.ld-lyrics .lyric-line:hover { color: rgba(255,255,255,.8); filter: none; background: rgba(255,255,255,.08); }
.lyrics-scroll.ld-lyrics.lyrics-plain .lyric-line { color: #fff; filter: none; }
.lyrics-scroll.ld-lyrics .lyrics-empty { font-size: 22px; font-weight: 700; color: rgba(255,255,255,.75); }
body.lyrics-desk-open { overflow: hidden; }
@media (max-width: 1000px) {
  .lyrics-desk { grid-template-columns: 1fr 1.2fr; gap: 4vw; padding: 0 4vw; }
}

/* ===== Artist banner ===== */
.artist-banner {
  position: relative; height: 240px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 25%, #000));
}
.artist-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* No banner yet: the artist photo, blurred, fills the space */
.artist-banner-blur { filter: blur(28px) brightness(0.65); transform: scale(1.25); }
.artist-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--c-bg) 70%, transparent)); pointer-events: none; }
.artist-banner-edit { position: absolute; top: 12px; right: 12px; z-index: 1; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.artist-hero { align-items: flex-start; margin-top: -70px; padding: 0 24px; position: relative; z-index: 1; }
.artist-hero-avatar { width: 140px; height: 140px; flex-shrink: 0; border: 4px solid var(--c-bg); border-radius: 50%; overflow: hidden; background: var(--c-surface); display: flex; align-items: center; justify-content: center; }
.artist-hero-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.artist-hero-info { min-width: 0; padding-top: 80px; }
.artist-banner-pick { height: 110px; border-radius: var(--radius); overflow: hidden; background: var(--c-surface); display: flex; align-items: center; justify-content: center; color: var(--c-text-muted); font-size: 13px; }
.artist-banner-pick img { width: 100%; height: 100%; object-fit: cover; }
.artist-photo-actions [hidden] { display: none; }
@media (max-width: 640px) {
  .artist-banner { height: 150px; border-radius: 0; margin: 0 -16px; }
  .artist-hero { flex-direction: column; align-items: flex-start; margin-top: -56px; padding: 0 4px; gap: 10px; }
  .artist-hero-avatar { width: 108px; height: 108px; }
  .artist-hero-info { padding-top: 0; }
}
