  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  :root {
    --bg: #0a0a0a; --bg2: #141414; --bg3: #1e1e1e; --bg4: #2a2a2a;
    --accent: #ffffff; --accent2: #cccccc;
    --text: #ffffff; --text2: #cccccc; --text3: #666666;
    --radius: 12px; --player-h: 64px; --nav-h: 68px;
    --border: none;
  }
  html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
  #app { height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }

  .header { padding: 14px 20px 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); }
  .header-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; font-weight: 400; letter-spacing: 8px; color: #fff; text-align: center; text-transform: uppercase; }
  .avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: #1e1e1e; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 14px; color: #fff; }
  .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .search-wrap { padding: 12px 16px; flex-shrink: 0; }
  .search-box { background: #1c1c1c; border-radius: 14px; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: none; transition: background 0.2s; }
  .search-box:focus-within { background: #242424; }
  .search-box input { background: none; border: none; outline: none; color: #fff; font-family: 'Inter', sans-serif; font-size: 14px; width: 100%; font-weight: 500; }
  .search-box input::placeholder { color: #555; }
  #clear-btn { display: none; cursor: pointer; color: #666; background: none; border: none; }
  #clear-btn.visible { display: flex; }

  .tabs { display: flex; gap: 8px; padding: 0 16px 12px; flex-shrink: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all 0.15s; border: none; color: var(--text3); background: rgba(255,255,255,0.06); letter-spacing: 0.3px; }
  .tab.active { background: #fff; color: #000; }

  .content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 0 0; padding-bottom: calc(var(--player-h) + var(--nav-h) + 8px); scrollbar-width: none; }
  .content::-webkit-scrollbar { display: none; }

  .section { display: none; }
  .section.active { display: block; }
  .section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #555; margin-bottom: 12px; margin-top: 4px; padding: 0 16px; }

  .track-list { display: flex; flex-direction: column; gap: 1px; }
  .track-item { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-radius: 10px; cursor: pointer; transition: background 0.15s; animation: fadeIn 0.2s ease; position: relative; }
  .track-item:active { background: var(--bg3); }
  .track-item.playing { background: rgba(255,255,255,0.06); }
  .track-item.playing::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: #fff; border-radius: 0 3px 3px 0; }
  .track-item.playing .track-name { color: #fff; font-weight: 700; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

  /* ── ВОЛНА ── */
  .wave-section { cursor: pointer; position: relative; margin: 0 16px 8px; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
  .wave-label { font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.4); text-transform: uppercase; font-weight: 600; position: absolute; top: 16px; left: 0; right: 0; text-align: center; z-index: 2; pointer-events: none; }
  .wave-title { font-family: "Bebas Neue", sans-serif; font-size: 26px; letter-spacing: 4px; color: #fff; position: absolute; top: 30px; left: 0; right: 0; text-align: center; z-index: 2; pointer-events: none; }
  .wave-canvas-wrap { position: relative; width: 100%; height: 200px; display: block; }
  #waveCanvas { width: 100%; height: 200px; display: block; border-radius: 20px; }
  .wave-status { font-size: 10px; color: rgba(255,255,255,0.35); letter-spacing: 1px; text-transform: uppercase; position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; z-index: 2; pointer-events: none; }
  .wave-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3; }
  .wave-play-btn-inner { width: 54px; height: 54px; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.35); border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: opacity 0.4s, transform 0.3s; }
  .wave-play-btn-inner.hidden { opacity: 0; transform: scale(0.8); pointer-events: none; }

  /* ── СЕКЦИИ ГЛАВНОЙ ── */
  .home-section { padding: 16px 16px 8px; }
  .home-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .home-section-title { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
  .home-section-more { font-size: 11px; color: #666; cursor: pointer; border: none; background: none; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }

  /* ── ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ ── */
  .h-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; padding-left: 0; }
  .h-scroll::-webkit-scrollbar { display: none; }
  .h-card { width: 130px; flex-shrink: 0; cursor: pointer; transition: transform 0.15s; }
  .h-card:active { transform: scale(0.96); }
  .h-card-cover { width: 130px; height: 130px; border-radius: 12px; overflow: hidden; background: var(--bg3); margin-bottom: 8px; position: relative; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
  .h-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .h-card-name { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .h-card-artist { font-size: 11px; color: #666; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Кнопка Play поверх карточки */
  .h-card-play { position: absolute; bottom: 8px; right: 8px; width: 36px; height: 36px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; box-shadow: 0 4px 14px rgba(0,0,0,0.55); pointer-events: none; }
  .h-card-play svg { color: #000; margin-left: 2px; }
  .h-card:active .h-card-play { opacity: 1; transform: translateY(0); }
  /* Артист в поиске — круглая фото, центрированный текст */
  .h-card.artist-type .h-card-cover { border-radius: 50%; }
  .h-card.artist-type .h-card-name { text-align: center; }
  .h-card.artist-type .h-card-artist { text-align: center; }

  /* ── ПЛЕЙЛИСТЫ ── */
  .playlist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .playlist-card { background: var(--bg2); padding: 14px; cursor: pointer; position: relative; overflow: hidden; min-height: 80px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 14px; }
  .playlist-card:active { opacity: 0.8; }
  .playlist-name { font-size: 14px; font-weight: 700; color: #fff; }
  .playlist-count { font-size: 11px; color: #555; margin-top: 2px; }
  .playlist-add { background: rgba(255,255,255,0.04); border: 1.5px dashed rgba(255,255,255,0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-height: 80px; cursor: pointer; }
  .playlist-add svg { color: #444; }
  .playlist-add span { font-size: 11px; color: #444; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }

  .dl-badge { width: 18px; height: 18px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .dl-badge svg { display: block; }
  .track-item.playing .dl-badge { background: #333; }

  .cover { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; position: relative; overflow: hidden; background: var(--bg3); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
  .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cover-placeholder { width: 100%; height: 100%; background: var(--bg3); }
  .playing-indicator { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; border-radius: 10px; }
  .track-item.playing .playing-indicator { display: flex; }
  .bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
  .bar { width: 3px; background: #fff; border-radius: 2px; animation: bounce 0.6s ease infinite alternate; }
  .bar:nth-child(2) { animation-delay: 0.2s; }
  .bar:nth-child(3) { animation-delay: 0.1s; }
  @keyframes bounce { from { height: 4px; } to { height: 14px; } }

  .track-info { flex: 1; min-width: 0; }
  .track-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .track-meta { font-size: 12px; color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .track-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .track-dur { font-size: 12px; color: #444; }
  .fav-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; background: none; border: none; color: #444; transition: transform 0.15s; }
  .fav-btn:active { transform: scale(0.85); }
  .fav-btn.active { color: #fff; }

  .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; gap: 12px; color: #444; text-align: center; }
  .empty svg { opacity: 0.2; }
  .empty p { font-size: 14px; line-height: 1.6; color: #555; }

  /* ── MINI PLAYER ── */
  .player { position: fixed; bottom: calc(var(--nav-h) + 6px); left: 8px; right: 8px; height: var(--player-h); background: rgba(28,28,28,0.98); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 14px; padding: 0; display: none; flex-direction: column; gap: 0; z-index: 100; cursor: pointer; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.55); }
  .player.visible { display: flex; }
  .player.keyboard-hidden { display: none !important; }
  .player-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; flex: 1; }
  .player-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
  .player-bottom { display: flex; align-items: center; gap: 0; padding: 0; }
  .progress-bar { flex: 1; height: 2px; background: rgba(255,255,255,0.15); cursor: pointer; position: relative; }
  .progress-bar::before { content: ''; position: absolute; inset: -10px 0; }
  .progress-fill { height: 100%; background: #fff; width: 0%; transition: width 0.3s linear; pointer-events: none; }
  .time-label { display: none; }
  .player-cover { width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0; overflow: hidden; background: #222; pointer-events: none; }
  .player-cover img { width: 100%; height: 100%; object-fit: cover; }
  .player-info { flex: 1; min-width: 0; pointer-events: none; }
  .player-name { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .player-artist { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 1px; }
  .ctrl { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: none; border: none; color: #fff; cursor: pointer; transition: transform 0.15s, opacity 0.15s; }
  .ctrl:active { transform: scale(0.85); opacity: 0.6; }
  .ctrl.play-btn { width: 38px; height: 38px; background: rgba(255,255,255,0.1); color: #fff; }
  .ctrl.play-btn:active { opacity: 0.5; background: rgba(255,255,255,0.15); }

  /* ── FULLSCREEN PLAYER ── */
  .fs-player {
    position: fixed; inset: 0; z-index: 200;
    background: #0d0d0d;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  }
  .fs-player.open { transform: translateY(0); }

  .fs-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; flex-shrink: 0; }
  .fs-down { background: rgba(255,255,255,0.08); border: none; color: #fff; cursor: pointer; padding: 8px; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
  .fs-down:active { background: rgba(255,255,255,0.15); }
  .fs-title { font-size: 12px; font-weight: 700; color: #555; letter-spacing: 2px; text-transform: uppercase; }
  .fs-menu { background: rgba(255,255,255,0.08); border: none; color: #fff; cursor: pointer; padding: 8px; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
  .fs-menu:active { background: rgba(255,255,255,0.15); }

  .fs-cover-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 32px; min-height: 0; }
  .fs-cover { width: 100%; max-width: 290px; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--bg3); box-shadow: 0 20px 60px rgba(0,0,0,0.6); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
  .fs-cover.playing { transform: scale(1.02); }
  .fs-cover.paused { transform: scale(0.93); }
  .fs-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .fs-info { padding: 0 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .fs-track-info { min-width: 0; flex: 1; }
  .fs-name { font-size: 22px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.3px; }
  .fs-artist { font-size: 14px; color: #888; margin-top: 5px; font-weight: 500; }
  .fs-fav { background: none; border: none; color: #444; cursor: pointer; padding: 8px; flex-shrink: 0; transition: transform 0.15s; }
  .fs-fav:active { transform: scale(0.85); }
  .fs-fav.active { color: #fff; }

  .fs-progress { padding: 20px 28px 8px; flex-shrink: 0; }
  .fs-bar { height: 4px; background: rgba(255,255,255,0.12); border-radius: 4px; cursor: pointer; position: relative; }
  .fs-bar::before { content: ''; position: absolute; inset: -14px 0; }
  .fs-bar-fill { height: 100%; background: #fff; border-radius: 4px; width: 0%; transition: width 0.3s linear; pointer-events: none; }
  .fs-times { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: #666; font-weight: 500; }

  .fs-controls { display: flex; align-items: center; justify-content: space-between; padding: 4px 24px 8px; flex-shrink: 0; }
  .fs-ctrl { background: none; border: none; color: #666; cursor: pointer; padding: 10px; border-radius: 50%; transition: transform 0.15s, color 0.15s; }
  .fs-ctrl:active { transform: scale(0.85); color: #fff; }
  .fs-play { width: 68px; height: 68px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 24px rgba(255,255,255,0.12); }
  .fs-play:active { transform: scale(0.9); box-shadow: 0 2px 12px rgba(255,255,255,0.08); }
  .fs-play svg { color: #000; }

  .fs-actions { display: flex; align-items: center; justify-content: space-around; padding: 8px 28px 20px; flex-shrink: 0; }
  .fs-action { background: none; border: none; color: #555; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; padding: 10px 14px; border-radius: 12px; transition: color 0.15s, background 0.15s; }
  .fs-action:active { color: #fff; background: rgba(255,255,255,0.06); }
  .fs-action.highlight { color: #fff; }
  .fs-action.downloaded { color: #fff; }
  .dl-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: #fff; width: 0%; transition: width 0.3s; }
  .dl-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #333; border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h); background: rgba(10,10,10,0.97); display: flex; align-items: center; z-index: 100; padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; color: #555; padding: 8px 0; background: none; border: none; transition: color 0.2s; position: relative; }
  .nav-item.active { color: #fff; }
  .nav-item.active::after { content: ''; position: absolute; bottom: 10px; width: 4px; height: 4px; background: #fff; border-radius: 50%; }
  .nav-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.2px; }

  /* ── ПОИСК ВНУТРИ СЕКЦИИ (дублирующий блок, унаследован из search-box выше) ── */

  /* ── ТАБЫ ИЗБРАННОГО ── */
  .fav-tabs { display: flex; gap: 0; margin-bottom: 14px; margin-top: 4px; padding: 0 4px; }
  .fav-tab { flex: 1; padding: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; background: none; border: none; cursor: pointer; color: #444; transition: all 0.15s; letter-spacing: 0.5px; }
  .fav-tab.active { color: #fff; border-bottom: 2px solid #fff; }

  /* ── СБОРНИКИ ── */
  .mix-card { width: 150px; flex-shrink: 0; cursor: pointer; }
  .mix-card:active { opacity: 0.8; }
  .mix-cover { width: 150px; height: 150px; overflow: hidden; border-radius: 16px; background: #1a1a1a; margin-bottom: 8px; position: relative; display: flex; align-items: center; justify-content: center; }
  .mix-cover-grad { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 55%); border-radius: 16px; }
  .mix-cover-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.1; }
  .mix-cover-sub { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 2px; font-weight: 600; }

  /* ── РЕКОМЕНДОВАННЫЕ АЛЬБОМЫ ── */
  .rec-album-card { width: 140px; flex-shrink: 0; cursor: pointer; transition: transform 0.15s; }
  .rec-album-card:active { transform: scale(0.96); }
  .rec-album-cover { width: 140px; height: 140px; overflow: hidden; border-radius: 14px; background: var(--bg3); margin-bottom: 8px; position: relative; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
  .rec-album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .rec-album-cover .card-play-btn { position: absolute; bottom: 8px; right: 8px; width: 36px; height: 36px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; box-shadow: 0 4px 14px rgba(0,0,0,0.55); }
  .rec-album-card:active .card-play-btn { opacity: 1; transform: translateY(0); }
  .rec-album-name { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rec-album-artist { font-size: 11px; color: #666; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* wave-gif styles above */

  .toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--bg3); color: #fff; padding: 10px 20px; border-radius: 20px; font-size: 12px; letter-spacing: 0.5px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.3s; z-index: 999; pointer-events: none; border: var(--border); }
  .toast.show { opacity: 1; }

  /* ── СТРАНИЦА АРТИСТА ── */
  .artist-page {
    position: fixed; inset: 0; z-index: 150;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex; flex-direction: column; overflow: hidden;
  }
  .artist-page.open { transform: translateX(0); }

  .artist-header { position: relative; flex-shrink: 0; min-height: 280px; overflow: hidden; background: var(--artist-color, #111); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 20px 20px; }
  .artist-header-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .artist-header-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 40%, var(--bg) 100%); }
  .artist-back { position: absolute; top: 16px; left: 16px; width: 36px; height: 36px; background: rgba(0,0,0,0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 50%; z-index: 5; transition: background 0.15s; }
  .artist-back:active { background: rgba(0,0,0,0.7); }
  .artist-header-info { position: relative; z-index: 2; width: 100%; }
  .artist-header-name { font-family: 'Bebas Neue', sans-serif; font-size: 42px; letter-spacing: 2px; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.8); line-height: 1; }
  .artist-header-meta { font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; font-weight: 600; }

  .artist-body { flex: 1; overflow-y: auto; scrollbar-width: none; background: var(--bg); padding-bottom: calc(var(--player-h) + var(--nav-h) + 20px); }
  .artist-body::-webkit-scrollbar { display: none; }

  .artist-actions { display: flex; align-items: center; gap: 12px; padding: 16px 16px 8px; }
  .artist-play-btn { width: 48px; height: 48px; background: #fff; border: none; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.15s; flex-shrink: 0; }
  .artist-play-btn:active { transform: scale(0.92); }
  .artist-shuffle-btn { background: none; border: none; color: #555; cursor: pointer; padding: 8px; }
  .artist-shuffle-btn.active { color: #fff; }

  .artist-section { padding: 0 16px; margin-top: 16px; }
  .artist-section-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }

  /* Топ треки артиста — нумерованный список */
  .artist-track { display: flex; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer; transition: background 0.1s; border-radius: 10px; }
  .artist-track:active { background: rgba(255,255,255,0.05); }
  .artist-track-num { width: 24px; text-align: center; font-size: 14px; color: #555; flex-shrink: 0; font-weight: 500; }
  .artist-track-cover { width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0; overflow: hidden; background: var(--bg3); box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
  .artist-track-cover img { width: 100%; height: 100%; object-fit: cover; }
  .artist-track-info { flex: 1; min-width: 0; }
  .artist-track-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .artist-track-meta { font-size: 12px; color: #555; margin-top: 2px; }
  .artist-track-dur { font-size: 12px; color: #444; flex-shrink: 0; }
  .artist-track.playing .artist-track-num { color: #fff; font-weight: 700; }
  .artist-track.playing .artist-track-name { color: #fff; font-weight: 700; }
  .artist-track.playing .artist-track-cover { box-shadow: 0 2px 12px rgba(255,255,255,0.15); }
  .artist-tracks-more { background: none; border: none; color: #aaa; font-size: 13px; font-weight: 700; cursor: pointer; padding: 12px 0; letter-spacing: 0.5px; text-transform: uppercase; font-size: 11px; }

  /* Табы музыки */
  .artist-music-tabs { display: flex; gap: 8px; padding: 0 16px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
  .artist-music-tabs::-webkit-scrollbar { display: none; }
  .artist-music-tab { padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; border: none; color: #aaa; background: rgba(255,255,255,0.06); transition: all 0.15s; }
  .artist-music-tab.active { background: #fff; color: #000; }
  .artist-music-content { padding: 12px 16px 0; }
  .artist-music-grid { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .artist-music-grid::-webkit-scrollbar { display: none; }

  /* ── СТРАНИЦА АЛЬБОМА ── */
  .album-page { position: fixed; inset: 0; z-index: 160; background: var(--bg); transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1); display: flex; flex-direction: column; overflow: hidden; }
  .album-page.open { transform: translateX(0); }
  .album-header { position: relative; display: flex; flex-direction: column; align-items: center; padding: 40px 20px 14px; flex-shrink: 0; background: linear-gradient(to bottom, var(--album-color, #1a1a1a) 0%, var(--bg) 100%); }
  .album-header-cover { width: 200px; height: 200px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--bg3); box-shadow: 0 12px 40px rgba(0,0,0,0.7); }
  .album-header-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .album-header-info { width: 100%; text-align: center; margin-top: 14px; }
  .album-header-back { position: absolute; top: 10px; left: 12px; width: 32px; height: 32px; background: rgba(0,0,0,0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 50%; z-index: 5; transition: background 0.15s; }
  .album-header-back:active { background: rgba(0,0,0,0.7); }
  .album-header-title { font-size: 18px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .album-header-artist { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 3px; cursor: pointer; font-weight: 600; }
  .album-header-meta { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; }
  .album-actions { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; flex-shrink: 0; }
  .album-actions-left { display: flex; align-items: center; gap: 16px; }
  .album-action-btn { background: none; border: none; color: #aaa; cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; transition: color 0.15s; }
  .album-action-btn:active { color: #fff; }
  .album-action-btn.active { color: #fff; }
  .album-actions-right { display: flex; align-items: center; gap: 10px; }
  .album-shuffle-sm { background: none; border: none; color: #aaa; cursor: pointer; padding: 4px; }
  .album-shuffle-sm:active { color: #fff; }
  .album-play-circle { width: 48px; height: 48px; background: #fff; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.15s; }
  .album-play-circle:active { transform: scale(0.92); }
  .album-tracks-list { flex: 1; overflow-y: auto; scrollbar-width: none; padding-bottom: calc(var(--player-h) + var(--nav-h) + 16px); }
  .album-tracks-list::-webkit-scrollbar { display: none; }
  .album-track-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; transition: background 0.1s; border-radius: 8px; position: relative; }
  .album-track-item:active { background: var(--bg2); }
  .album-track-num { width: 22px; text-align: center; font-size: 13px; color: #555; flex-shrink: 0; font-weight: 600; }
  .album-track-item.playing { background: rgba(255,255,255,0.06); }
  .album-track-item.playing::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: #fff; border-radius: 0 3px 3px 0; }
  .album-track-item.playing .album-track-num { color: #fff; font-weight: 700; }
  .album-track-item.playing .track-name { color: #fff; font-weight: 700; }
  .album-track-item.playing .track-meta { color: #666; }

  /* ── ВОЛНА ── */
  .wave-layer-badge { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 2px 6px; font-weight: 700; flex-shrink: 0; border-radius: 4px; }
  .wave-layer-badge.album { background: #333; color: #fff; }
  .wave-layer-badge.discovery { background: #1e1e1e; color: #666; }

  /* ── СЕКЦИЯ АРТИСТА В ВОЛНЕ ── */


  /* ── ОНБОРДИНГ ── */
  .onboarding {
    position: fixed; inset: 0; z-index: 500;
    background: var(--bg);
    display: none; flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .onboarding::-webkit-scrollbar { display: none; }
  .onboarding.active { display: flex; }
  .onboarding.hidden { display: none; }
  .ob-header { padding: 20px 20px 0; flex-shrink: 0; }
  .ob-step { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #444; margin-bottom: 8px; }
  .ob-title { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 2px; color: #fff; line-height: 1.1; }
  .ob-sub { font-size: 13px; color: #555; margin-top: 6px; font-weight: 500; }
  .ob-search { margin: 14px 20px 0; position: relative; z-index: 200; }
  .ob-search input { width: 100%; background: var(--bg2); border: none; border-radius: 14px; padding: 11px 16px 11px 40px; color: #fff; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; outline: none; }
  .ob-search input::placeholder { color: #444; }
  .ob-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #444; pointer-events: none; }
  .ob-search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #1e1e1e; border: none; border-radius: 14px; z-index: 200; max-height: 220px; overflow-y: auto; scrollbar-width: none; box-shadow: 0 12px 40px rgba(0,0,0,0.7); }
  .ob-search-results::-webkit-scrollbar { display: none; }
  .ob-search-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background 0.1s; }
  .ob-search-result-item:active { background: var(--bg3); }
  .ob-search-result-item:first-child { border-radius: 14px 14px 0 0; }
  .ob-search-result-item:last-child { border-radius: 0 0 14px 14px; }
  .ob-search-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #444; }
  .ob-search-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ob-result-cover { width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); overflow: hidden; flex-shrink: 0; }
  .ob-result-cover img { width: 100%; height: 100%; object-fit: cover; }
  .ob-result-name { font-size: 13px; font-weight: 700; color: #fff; }
  .ob-result-genre { font-size: 11px; color: #555; }
  .ob-grid-wrap { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 14px 20px 0; position: relative; z-index: 1; }
  .ob-grid-wrap::-webkit-scrollbar { display: none; }
  .ob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 100px; }
  .ob-artist-card { cursor: pointer; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--bg3); transition: transform 0.15s; min-height: 110px; }
  /* Фолбэк для старых iOS Safari (<15.4) которые не поддерживают aspect-ratio */
  @supports not (aspect-ratio: 1) {
    .ob-artist-card { height: 32vw; max-height: 140px; }
  }
  .ob-artist-card:active { transform: scale(0.95); }
  .ob-artist-card.selected::after { content: ''; position: absolute; inset: 0; border: 2.5px solid #fff; border-radius: 14px; pointer-events: none; }
  .ob-artist-card.selected .ob-card-check { opacity: 1; }
  .ob-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ob-card-grad { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 8px 8px; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%); }
  .ob-card-name { font-size: 11px; font-weight: 700; color: #fff; text-align: center; line-height: 1.2; }
  .ob-card-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; flex-shrink: 0; }
  .ob-card-check svg { color: #000; }
  .ob-footer { position: sticky; bottom: 0; left: 0; right: 0; padding: 12px 20px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 60%, transparent); margin-top: auto; }
  .ob-btn { width: 100%; padding: 16px; background: #fff; border: none; border-radius: 16px; font-size: 16px; font-weight: 700; color: #000; cursor: pointer; transition: opacity 0.15s, transform 0.15s; opacity: 0.3; }
  .ob-btn.active { opacity: 1; }
  .ob-btn:active { opacity: 0.85; transform: scale(0.98); }
  .ob-selected-count { font-size: 12px; color: #555; text-align: center; margin-top: 8px; font-weight: 600; }

  /* ── КНОПКА СБРОСА ── */
  .reset-modal { position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
  .reset-modal.open { opacity: 1; pointer-events: all; }
  .reset-sheet { width: 100%; background: #1a1a1a; border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.32,0.72,0,1); }
  .reset-modal.open .reset-sheet { transform: translateY(0); }
  .reset-handle { width: 36px; height: 4px; background: #333; border-radius: 2px; margin: 0 auto 20px; }
  .reset-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
  .reset-sub { font-size: 13px; color: #555; margin-bottom: 20px; }
  .reset-btn { width: 100%; padding: 14px; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; border: none; margin-bottom: 10px; }
  .reset-btn-danger { background: #ff3b30; color: #fff; }
  .reset-btn-cancel { background: #2a2a2a; color: #fff; }

  /* ── ОНБОРДИНГ ── */
  .ob-suggestion-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 2px; margin-left: 0; animation: fadeIn 0.3s ease; }
  .ob-suggestion-row::-webkit-scrollbar { display: none; }
  .ob-suggestion-chip { display: flex; align-items: center; gap: 6px; background: var(--bg3); border: none; border-radius: 20px; padding: 5px 10px 5px 5px; cursor: pointer; flex-shrink: 0; transition: all 0.15s; }
  .ob-suggestion-chip:active { opacity: 0.7; }
  .ob-suggestion-chip.selected { background: #fff; border-color: #fff; }
  .ob-suggestion-chip.selected .ob-chip-name { color: #000; }
  .ob-chip-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--bg4); overflow: hidden; flex-shrink: 0; }
  .ob-chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .ob-chip-name { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
  .ob-chip-plus { font-size: 14px; color: #555; margin-left: 2px; }
  .ob-suggestion-chip.selected .ob-chip-plus { color: #000; }

/* ── СОЦИАЛЬНЫЙ МОДУЛЬ ── */
.social-tabs { display:flex; padding:0 4px; flex-shrink:0; }
.social-tab { flex:1; padding:10px; font-size:12px; font-weight:700; text-transform:uppercase; background:none; border:none; cursor:pointer; color:#444; letter-spacing:1px; transition:color 0.15s; position:relative; }
.social-tab.active { color:#fff; }
.social-tab.active::after { content:''; position:absolute; bottom:0; left:20%; right:20%; height:2px; background:#fff; border-radius:2px; }
.social-content { overflow-y:auto; scrollbar-width:none; }
.social-content::-webkit-scrollbar { display:none; }

.friend-item { display:flex; align-items:center; gap:12px; padding:10px 16px; cursor:pointer; transition:background 0.1s; }
.friend-item:active { background:var(--bg2); }
.friend-avatar { width:44px; height:44px; border-radius:50%; background:var(--bg3); overflow:hidden; flex-shrink:0; position:relative; }
.friend-avatar img { width:100%; height:100%; object-fit:cover; }
.friend-avatar-letter { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-family:'Bebas Neue',sans-serif; font-size:18px; color:#555; }
.friend-online { position:absolute; bottom:1px; right:1px; width:10px; height:10px; background:#1db954; border:2px solid var(--bg); border-radius:50%; }
.friend-info { flex:1; min-width:0; }
.friend-name { font-size:14px; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.friend-status { font-size:11px; color:#555; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.friend-status.listening { color:#1db954; }
.friend-accept-btn { background:#fff; color:#000; border:none; padding:6px 14px; border-radius:20px; font-size:12px; font-weight:700; cursor:pointer; flex-shrink:0; }
.friend-accept-btn:disabled { opacity:0.5; }
.friend-decline-btn { background:none; border:none; color:#444; cursor:pointer; padding:8px; flex-shrink:0; }

/* Профиль друга */
.friend-profile { position:fixed; inset:0; z-index:170; background:var(--bg); transform:translateX(100%); transition:transform 0.32s cubic-bezier(0.32,0.72,0,1); display:flex; flex-direction:column; overflow:hidden; }
.friend-profile.open { transform:translateX(0); }
.friend-profile-header { position:relative; display:flex; flex-direction:column; align-items:center; padding:48px 20px 16px; background:var(--bg2); }
.friend-profile-back { position:absolute; top:12px; left:12px; width:32px; height:32px; background:rgba(255,255,255,0.1); border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#fff; border-radius:50%; }
.friend-profile-avatar { width:80px; height:80px; border-radius:50%; overflow:hidden; background:var(--bg3); }
.friend-profile-avatar img { width:100%; height:100%; object-fit:cover; }
.friend-profile-name { font-size:18px; font-weight:700; color:#fff; margin-top:10px; }
.friend-profile-username { font-size:12px; color:#555; margin-top:2px; }
.friend-profile-actions { display:flex; gap:10px; margin-top:14px; }
.friend-profile-body { flex:1; overflow-y:auto; scrollbar-width:none; padding-bottom:100px; }
.friend-profile-body::-webkit-scrollbar { display:none; }
.fp-btn { padding:8px 20px; border-radius:20px; font-size:12px; font-weight:700; cursor:pointer; border:none; }
.fp-btn-primary { background:#fff; color:#000; }
.fp-btn-danger { background:transparent; color:#ff3b30; border:1px solid #ff3b30; }
.fp-section { padding:16px; }
.fp-section-title { font-size:15px; font-weight:700; color:#fff; margin-bottom:10px; }
.fp-now-playing { display:flex; align-items:center; gap:12px; background:var(--bg3); border-radius:12px; padding:12px; }
.fp-np-cover { width:44px; height:44px; border-radius:8px; overflow:hidden; background:var(--bg3); flex-shrink:0; }
.fp-np-cover img { width:100%; height:100%; object-fit:cover; }
.fp-np-info { flex:1; min-width:0; }
.fp-np-name { font-size:13px; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fp-np-artist { font-size:11px; color:#555; margin-top:2px; }
.fp-np-eq { display:flex; align-items:flex-end; gap:2px; height:16px; flex-shrink:0; }
.fp-np-eq span { width:3px; background:#1db954; border-radius:2px; animation:bounce 0.6s ease infinite alternate; }
.fp-np-eq span:nth-child(2) { animation-delay:0.2s; }
.fp-np-eq span:nth-child(3) { animation-delay:0.1s; }
@keyframes bounce { from { height:4px; } to { height:14px; } }

/* Share Modal */
.share-modal { position:fixed; inset:0; z-index:500; background:rgba(0,0,0,0.7); backdrop-filter:blur(4px); display:flex; align-items:flex-end; opacity:0; pointer-events:none; transition:opacity 0.25s; }
.share-modal.open { opacity:1; pointer-events:all; }
.share-sheet { width:100%; max-height:70vh; background:#1a1a1a; border-radius:20px 20px 0 0; padding:16px 20px calc(20px + env(safe-area-inset-bottom)); transform:translateY(100%); transition:transform 0.3s cubic-bezier(0.32,0.72,0,1); }
.share-modal.open .share-sheet { transform:translateY(0); }
.share-friend-list { display:flex; flex-direction:column; gap:2px; max-height:50vh; overflow-y:auto; scrollbar-width:none; }
.share-friend-list::-webkit-scrollbar { display:none; }
.share-send-btn { font-size:12px; font-weight:700; color:#000; background:#fff; padding:6px 14px; border-radius:20px; flex-shrink:0; border:none; cursor:pointer; }
.share-send-btn.sent { background:var(--bg3); color:#1db954; }

/* Inbox треки */
.inbox-card { display:flex; align-items:center; gap:12px; padding:10px 16px; cursor:pointer; }
.inbox-card:active { opacity:0.7; }
.inbox-cover-wrap { width:46px; height:46px; position:relative; flex-shrink:0; }
.inbox-cover { width:46px; height:46px; border-radius:10px; overflow:hidden; background:var(--bg3); }
.inbox-cover img { width:100%; height:100%; object-fit:cover; }
.inbox-sender { position:absolute; bottom:-2px; right:-2px; width:20px; height:20px; border-radius:50%; overflow:hidden; background:var(--bg3); border:2px solid var(--bg); }
.inbox-sender img { width:100%; height:100%; object-fit:cover; }

/* ── BROWSE (жанры в поиске) ── */
.browse-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.browse-card { aspect-ratio: 16/9; border-radius:16px; padding:16px; cursor:pointer; position:relative; overflow:hidden; display:flex; align-items:flex-start; justify-content:flex-start; transition:transform 0.15s; box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
.browse-card:active { transform:scale(0.96); }
.browse-card-title { font-size:16px; font-weight:800; color:#fff; position:relative; z-index:2; letter-spacing:-0.3px; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.browse-card-deco { position:absolute; right:-10px; bottom:-10px; width:80px; height:80px; border-radius:12px; transform:rotate(22deg); opacity:0.85; display:flex; align-items:center; justify-content:center; font-size:38px; box-shadow:0 4px 16px rgba(0,0,0,0.3); }

/* Search suggestions */
.search-sugg-item { display:flex; align-items:center; gap:12px; padding:10px 0; cursor:pointer; }
.search-sugg-item:active { opacity:0.6; }
.search-sugg-icon { width:36px; height:36px; border-radius:50%; background:var(--bg3); flex-shrink:0; overflow:hidden; display:flex; align-items:center; justify-content:center; color:#555; }
.search-sugg-icon img { width:100%; height:100%; object-fit:cover; }
.search-sugg-info { flex:1; min-width:0; }
.search-sugg-name { font-size:14px; font-weight:500; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.search-sugg-type { font-size:11px; color:#555; margin-top:1px; }

/* ══════════════════════════════════════════
   РЕДИЗАЙН v2 — Spotify-like
   ══════════════════════════════════════════ */

/* ── HEADER С ПРИВЕТСТВИЕМ ── */
.header { padding: 12px 16px 10px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); gap: 12px; }
.header-greeting { flex: 1; min-width: 0; }
.header-greeting-sub { font-size: 11px; color: #555; font-weight: 500; letter-spacing: 0.2px; }
.header-greeting-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-title { display: none; } /* скрываем старый LIBAUD текст */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-bell { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s; }
.header-bell:active { background: rgba(255,255,255,0.16); }
.header-bell .notif-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: #ff3b30; border-radius: 50%; border: 2px solid #0a0a0a; }

/* ── БЫСТРЫЕ ДЕЙСТВИЯ ── */
.quick-actions { display: flex; gap: 0; padding: 16px 0 8px; overflow-x: auto; scrollbar-width: none; }
.quick-actions::-webkit-scrollbar { display: none; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 14px; cursor: pointer; flex-shrink: 0; transition: opacity 0.15s; }
.quick-action:active { opacity: 0.6; }
.quick-action-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--bg3); display: flex; align-items: center; justify-content: center; position: relative; transition: transform 0.15s; }
.quick-action:active .quick-action-icon { transform: scale(0.92); }
.quick-action-icon.liked { background: linear-gradient(135deg,#2d1b69,#6b21a8); }
.quick-action-icon.downloaded { background: linear-gradient(135deg,#0d2137,#1565c0); }
.quick-action-icon.recent { background: linear-gradient(135deg,#1a2e1a,#2e7d32); }
.quick-action-icon.playlists { background: linear-gradient(135deg,#2a1a0a,#e65100); }
.quick-action-icon.recs { background: linear-gradient(135deg,#1a1020,#6a0f9e); }
.quick-action-label { font-size: 11px; font-weight: 600; color: #888; text-align: center; letter-spacing: -0.1px; white-space: nowrap; }
.quick-action-count { font-size: 9px; color: #555; font-weight: 500; }

/* ── НЕДАВНО ПРОСЛУШАНО ── */
.recently-played-item { width: 110px; flex-shrink: 0; cursor: pointer; transition: transform 0.15s; }
.recently-played-item:active { transform: scale(0.95); }
.recently-played-cover { width: 110px; height: 110px; border-radius: 12px; overflow: hidden; background: var(--bg3); margin-bottom: 6px; position: relative; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.recently-played-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recently-played-name { font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recently-played-meta { font-size: 10px; color: #555; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── МЕДИАТЕКА С ВКЛАДКАМИ ── */
.lib-header { padding: 14px 16px 10px; display: flex; align-items: center; justify-content: space-between; }
.lib-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.lib-settings-btn { width: 32px; height: 32px; background: none; border: none; color: #555; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lib-tabs { display: flex; gap: 8px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: none; }
.lib-tabs::-webkit-scrollbar { display: none; }
.lib-tab { padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; border: none; color: #888; background: rgba(255,255,255,0.07); transition: all 0.15s; }
.lib-tab.active { background: #fff; color: #000; }
.lib-content { display: none; }
.lib-content.active { display: block; }

/* ── КНОПКА ПОДПИСКИ НА АРТИСТА ── */
.artist-follow-btn {
  height: 34px; padding: 0 20px;
  border-radius: 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.15s; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: none; color: #fff;
}
.artist-follow-btn.following {
  background: rgba(255,255,255,0.12);
  border-color: transparent; color: #aaa;
}
.artist-follow-btn:active { opacity: 0.7; transform: scale(0.95); }

/* ── ОНБОРДИНГ v2 — 3 ШАГА ── */
.ob-steps-bar { display: flex; gap: 4px; padding: 0 20px; margin-bottom: 20px; }
.ob-step-dot { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.15); transition: background 0.3s; }
.ob-step-dot.done { background: #fff; }
.ob-step-screen { display: none; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.ob-step-screen.active { display: flex; }

/* Welcome экран */
.ob-welcome-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 28px; }
.ob-welcome-ring { width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle at 50% 70%, rgba(255,255,255,0.15) 0%, transparent 70%); border: 1.5px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 32px; position: relative; animation: ob-pulse 3s ease-in-out infinite; }
@keyframes ob-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.05); } 50% { box-shadow: 0 0 0 20px rgba(255,255,255,0.0); } }
.ob-welcome-ring::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); }
.ob-welcome-ring-icon { font-size: 56px; }
.ob-welcome-title { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.5px; text-align: center; line-height: 1.1; margin-bottom: 10px; }
.ob-welcome-sub { font-size: 14px; color: #666; text-align: center; line-height: 1.5; margin-bottom: 32px; }
.ob-features { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.ob-feature { display: flex; align-items: center; gap: 14px; }
.ob-feature-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ob-feature-text { flex: 1; }
.ob-feature-title { font-size: 14px; font-weight: 700; color: #fff; }
.ob-feature-desc { font-size: 12px; color: #555; margin-top: 2px; }

/* Шаг с жанрами */
.ob-genres-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px; flex: 1; overflow-y: auto; scrollbar-width: none; padding-bottom: 100px; }
.ob-genres-grid::-webkit-scrollbar { display: none; }
.genre-chip { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--bg3); border: 1.5px solid transparent; cursor: pointer; transition: all 0.15s; position: relative; }
.genre-chip:active { transform: scale(0.96); }
.genre-chip.selected { background: rgba(255,255,255,0.1); border-color: #fff; }
.genre-chip-icon { font-size: 18px; flex-shrink: 0; }
.genre-chip-name { font-size: 13px; font-weight: 700; color: #fff; flex: 1; }
.genre-chip-check { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; flex-shrink: 0; }
.genre-chip.selected .genre-chip-check { opacity: 1; }

/* ── ПОИСК v2 — ПОПУЛЯРНЫЕ ЗАПРОСЫ ── */
.search-popular { padding: 0 16px 14px; }
.search-popular-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.search-popular-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-popular-chip { padding: 7px 14px; border-radius: 20px; background: var(--bg3); border: none; color: #ccc; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.search-popular-chip:active { background: var(--bg4); color: #fff; }

/* ── ПОИСК v2 — КАТЕГОРИИ ── */
.search-cats { padding: 0 16px 16px; }
.search-cats-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.search-cats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.search-cat-card { border-radius: 16px; padding: 18px 14px; cursor: pointer; position: relative; overflow: hidden; min-height: 72px; display: flex; align-items: flex-end; transition: transform 0.15s; }
.search-cat-card:active { transform: scale(0.97); }
.search-cat-label { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.2px; position: relative; z-index: 2; }
.search-cat-emoji { position: absolute; right: 10px; top: 10px; font-size: 32px; opacity: 0.7; }

/* ── ИСТОРИЯ ПОИСКА ── */
.search-history { padding: 0 16px 16px; }
.search-history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.search-history-title { font-size: 16px; font-weight: 700; color: #fff; }
.search-history-clear { font-size: 12px; font-weight: 600; color: #555; background: none; border: none; cursor: pointer; }
.search-history-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.search-history-item:active { opacity: 0.7; }
.search-history-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #555; }
.search-history-text { flex: 1; font-size: 14px; color: #ccc; font-weight: 500; }
.search-history-rm { background: none; border: none; color: #444; cursor: pointer; padding: 6px; }

/* ── ПЛЕЕР v2 — КНОПКА СЛОВА ── */
.fs-lyrics-btn { background: rgba(255,255,255,0.08); border: none; color: #fff; border-radius: 20px; padding: 8px 18px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background 0.15s; letter-spacing: 0.3px; }
.fs-lyrics-btn:active { background: rgba(255,255,255,0.15); }

/* ── STAT BAR В МЕДИАТЕКЕ ── */
.lib-stat { font-size: 12px; color: #555; font-weight: 500; padding: 0 16px 12px; }

/* Исполнители в медиатеке */
.lib-artists-list { padding: 0 16px; display: flex; flex-direction: column; gap: 2px; }
.lib-artist-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.lib-artist-item:active { opacity: 0.7; }
.lib-artist-ava { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--bg3); flex-shrink: 0; }
.lib-artist-ava img { width: 100%; height: 100%; object-fit: cover; }
.lib-artist-name { font-size: 14px; font-weight: 600; color: #fff; flex: 1; }
.lib-artist-unfollow { background: none; border: 1px solid #333; color: #666; border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 600; cursor: pointer; }

/* ── ОБНОВЛЁННЫЕ NAV ИКОНКИ ── */
.nav-item svg { transition: transform 0.2s; }
.nav-item.active svg { transform: scale(1.08); }

/* ═══════════════════════════════════════════════════
   PREMIUM REDESIGN v3 — Cinematic Dark System
   Cinematic · Glassmorphism · Ambient Glow · Ultra Polish
   ═══════════════════════════════════════════════════ */

/* ── UPDATED DESIGN TOKENS ── */
:root {
  --bg:  #050505;
  --bg2: #0b0b0b;
  --bg3: #141414;
  --bg4: #1a1a1a;
  --bg5: #212121;
  --glass-1: rgba(255,255,255,0.03);
  --glass-2: rgba(255,255,255,0.06);
  --glass-3: rgba(255,255,255,0.10);
  --border-dim:  rgba(255,255,255,0.06);
  --border-mid:  rgba(255,255,255,0.10);
  --border-hi:   rgba(255,255,255,0.20);
  --glow-sm: rgba(255,255,255,0.08);
  --glow-md: rgba(255,255,255,0.14);
  --glow-lg: rgba(255,255,255,0.22);
  --text: #ffffff;
  --text2: #b4b4b4;
  --text3: #6e6e6e;
  --text4: #3e3e3e;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 20px;
  --player-h: 68px;
  --nav-h: 72px;
}

/* ── BASE ── */
html, body { background: var(--bg); }
#app { background: var(--bg); }

/* ── PREMIUM SCROLLBAR HIDE ── */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* ──────────────────────────────────────────
   HEADER
   ────────────────────────────────────────── */
.header {
  padding: 12px 16px 10px;
  background: rgba(5,5,5,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  gap: 12px;
}
.header-greeting-sub {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
  letter-spacing: 0.2px;
}
.header-greeting-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.avatar {
  position: static;
  transform: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg4);
  border: 1.5px solid var(--border-mid);
  flex-shrink: 0;
}
.header-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-2);
  border: 1px solid var(--border-dim);
  color: var(--text2);
  transition: background 0.2s var(--ease-spring), border-color 0.2s;
}
.header-bell:active {
  background: var(--glass-3);
  border-color: var(--border-mid);
}

/* ──────────────────────────────────────────
   LIBAUD FM HERO CARD — Premium
   ────────────────────────────────────────── */
.wave-section {
  margin: 12px 16px 4px;
  border-radius: 28px;
  background: linear-gradient(145deg, #121212 0%, #0a0a0a 60%, #0f0f0f 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.75),
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 0 0.5px rgba(0,0,0,0.8);
  overflow: hidden;
}
.wave-label {
  font-size: 9px;
  letter-spacing: 3.5px;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
  top: 18px;
}
.wave-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 5px;
  top: 32px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wave-status {
  font-size: 9px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 1.5px;
  bottom: 16px;
}
.wave-play-btn-inner {
  width: 58px;
  height: 58px;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 30px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}
.wave-play-btn-inner:not(.hidden):hover,
.wave-section:active .wave-play-btn-inner {
  transform: scale(0.94);
  box-shadow: 0 0 20px rgba(255,255,255,0.06);
}

/* Pulse rings on play button */
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.9); opacity: 0; }
}
.wave-play-btn::before,
.wave-play-btn::after {
  content: '';
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  animation: ring-pulse 2.5s ease-out infinite;
  pointer-events: none;
}
.wave-play-btn::after { animation-delay: 1.25s; }

/* ──────────────────────────────────────────
   QUICK ACTIONS — Premium Glass
   ────────────────────────────────────────── */
.quick-actions { padding: 18px 0 10px; }
.quick-action { padding: 0 12px; }
.quick-action-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
}
.quick-action:active .quick-action-icon {
  transform: scale(0.91);
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}
.quick-action-label { font-size: 10.5px; color: var(--text3); letter-spacing: -0.1px; }
.quick-action-count { font-size: 9px; color: var(--text4); }

/* ──────────────────────────────────────────
   H-CARDS — Album / Artist Carousels
   ────────────────────────────────────────── */
.h-card { width: 126px; }
.h-card-cover {
  width: 126px;
  height: 126px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.h-card:active .h-card-cover {
  transform: scale(0.94);
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}
.h-card-name { font-size: 12px; font-weight: 700; letter-spacing: -0.1px; }
.h-card-artist { font-size: 11px; color: var(--text3); }

/* Artist type — circular */
.h-card.artist-type .h-card-cover {
  border-radius: 50%;
  border: 1.5px solid var(--border-dim);
}

/* ──────────────────────────────────────────
   HOME SECTIONS
   ────────────────────────────────────────── */
.home-section { padding: 14px 16px 6px; }
.home-section-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ──────────────────────────────────────────
   TRACK ROWS — Refined
   ────────────────────────────────────────── */
.track-item {
  padding: 10px 16px;
  border-radius: 14px;
  transition: background 0.18s var(--ease-spring);
}
.track-item:active { background: rgba(255,255,255,0.05); }
.track-item.playing {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
}
.track-item.playing::before {
  top: 10px;
  bottom: 10px;
  width: 2.5px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.4) 100%);
  border-radius: 0 2px 2px 0;
}
.track-name { font-weight: 600; letter-spacing: -0.1px; }
.track-meta { color: var(--text3); font-size: 11.5px; }
.track-dur { color: var(--text4); font-size: 11.5px; }
.cover {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}
.fav-btn { color: var(--text4); }
.fav-btn.active { color: #fff; }

/* ──────────────────────────────────────────
   SEARCH
   ────────────────────────────────────────── */
.search-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  transition: background 0.2s, border-color 0.2s;
}
.search-box:focus-within {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-mid);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.search-box input::placeholder { color: var(--text4); }
.search-box svg { color: var(--text3); }

/* ──────────────────────────────────────────
   MINI PLAYER — Floating Glassmorphism Dock
   ────────────────────────────────────────── */
.player {
  bottom: calc(var(--nav-h) + 10px);
  left: 10px;
  right: 10px;
  height: var(--player-h);
  background: rgba(18,18,18,0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  box-shadow:
    0 -2px 0 rgba(255,255,255,0.04) inset,
    0 12px 40px rgba(0,0,0,0.7),
    0 2px 8px rgba(0,0,0,0.5);
  overflow: hidden;
}
.player-top { padding: 8px 14px; gap: 12px; }
.player-cover {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}
.player-name { font-size: 13px; font-weight: 700; letter-spacing: -0.1px; }
.player-artist { font-size: 11px; color: rgba(255,255,255,0.45); }
.ctrl { width: 36px; height: 36px; color: var(--text2); }
.ctrl.play-btn {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  color: #000;
  box-shadow: 0 2px 12px rgba(255,255,255,0.15);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
}
.ctrl.play-btn:active {
  transform: scale(0.88);
  box-shadow: 0 1px 6px rgba(255,255,255,0.08);
}
.progress-bar { background: rgba(255,255,255,0.08); }
.progress-fill {
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.6));
  transition: width 0.2s linear;
}

/* ──────────────────────────────────────────
   FULLSCREEN PLAYER — Cinematic Premium
   ────────────────────────────────────────── */
.fs-player {
  background: #050505;
  transition: transform 0.45s var(--ease-out);
}

/* Ambient background layer (color set by JS) */
.fs-player::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fs-ambient, radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,255,255,0.03) 0%, transparent 70%));
  pointer-events: none;
  z-index: 0;
  transition: background 1.5s ease;
}
.fs-player > * { position: relative; z-index: 1; }

.fs-header {
  padding: 18px 20px 10px;
}
.fs-down, .fs-menu {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-dim);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s var(--ease-bounce);
}
.fs-down:active, .fs-menu:active {
  transform: scale(0.88);
  background: rgba(255,255,255,0.12);
}
.fs-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* Album artwork */
.fs-cover-wrap { padding: 12px 28px; }
.fs-cover {
  max-width: 300px;
  border-radius: 24px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.85),
    0 0 60px rgba(255,255,255,0.04),
    0 1px 0 rgba(255,255,255,0.08) inset;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s;
}
.fs-cover.playing {
  transform: scale(1.0);
  box-shadow:
    0 36px 90px rgba(0,0,0,0.9),
    0 0 80px var(--fs-glow, rgba(255,255,255,0.06));
}
.fs-cover.paused {
  transform: scale(0.91);
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
}

/* Breathing animation for playing state */
@keyframes album-breathe {
  0%, 100% { transform: scale(1.0) translateY(0); }
  50%       { transform: scale(1.015) translateY(-4px); }
}
.fs-cover.playing { animation: album-breathe 5s ease-in-out infinite; }
.fs-cover.paused  { animation: none; }

/* Track info */
.fs-info { padding: 4px 28px; }
.fs-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.fs-artist {
  font-size: 15px;
  color: var(--text3);
  font-weight: 500;
  margin-top: 4px;
}
.fs-fav { color: var(--text4); transition: transform 0.2s var(--ease-bounce), color 0.15s; }
.fs-fav:active { transform: scale(0.80); }
.fs-fav.active { color: #fff; }

/* Progress */
.fs-progress { padding: 18px 28px 6px; }
.fs-bar {
  height: 3px;
  background: rgba(255,255,255,0.10);
  border-radius: 3px;
}
.fs-bar-fill {
  height: 3px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
  transition: width 0.25s linear;
}
.fs-times { font-size: 11px; color: var(--text3); margin-top: 10px; font-weight: 600; }

/* Controls */
.fs-controls { padding: 8px 20px 4px; }
.fs-ctrl {
  color: var(--text3);
  padding: 10px;
  border-radius: 50%;
  transition: transform 0.18s var(--ease-bounce), color 0.15s;
}
.fs-ctrl:active { transform: scale(0.82); color: #fff; }
.fs-play {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 6px 32px rgba(255,255,255,0.20),
    0 2px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
}
.fs-play:active {
  transform: scale(0.88);
  box-shadow: 0 3px 16px rgba(255,255,255,0.10);
}

/* Action row */
.fs-actions { padding: 10px 20px 16px; }
.fs-action {
  color: var(--text3);
  border-radius: 16px;
  font-size: 9.5px;
  letter-spacing: 0.6px;
  gap: 7px;
  padding: 10px 12px;
  transition: color 0.2s, background 0.2s;
}
.fs-action:active { color: #fff; background: rgba(255,255,255,0.07); }
.fs-action.highlight, .fs-action.downloaded { color: #fff; }

/* ──────────────────────────────────────────
   NAV BAR — Ultra Clean
   ────────────────────────────────────────── */
.nav {
  height: var(--nav-h);
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.nav-item { color: var(--text4); gap: 4px; }
.nav-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.1px; }
.nav-item.active { color: #fff; }
.nav-item.active::after {
  width: 4px;
  height: 4px;
  bottom: 8px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}
.nav-item svg { transition: transform 0.25s var(--ease-spring), opacity 0.2s; }
.nav-item:active svg { transform: scale(0.84); }
.nav-item.active svg { transform: scale(1.06); }

/* ──────────────────────────────────────────
   ARTIST PAGE — Cinematic
   ────────────────────────────────────────── */
.artist-page {
  background: var(--bg);
  transition: transform 0.4s var(--ease-out);
}
.artist-header { min-height: 300px; }
.artist-header-gradient {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(5,5,5,0.92) 80%,
    var(--bg) 100%
  );
}
.artist-header-name {
  font-size: 46px;
  letter-spacing: 1px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.9);
  line-height: 0.95;
}
.artist-header-meta { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.5px; }
.artist-back {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s, transform 0.2s var(--ease-bounce);
}
.artist-back:active { background: rgba(0,0,0,0.8); transform: scale(0.90); }

.artist-actions { padding: 16px 18px 10px; gap: 14px; }
.artist-play-btn {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(255,255,255,0.18);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
}
.artist-play-btn:active {
  transform: scale(0.88);
  box-shadow: 0 3px 12px rgba(255,255,255,0.08);
}
.artist-shuffle-btn {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: background 0.2s, transform 0.2s var(--ease-bounce);
}
.artist-shuffle-btn:active {
  transform: scale(0.88);
  background: rgba(255,255,255,0.12);
}

/* Artist track rows */
.artist-track { border-radius: 12px; padding: 10px 6px; }
.artist-track:active { background: rgba(255,255,255,0.05); }
.artist-track-num { color: var(--text3); font-size: 14px; }
.artist-track-cover {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}
.artist-track.playing .artist-track-cover {
  box-shadow: 0 3px 16px rgba(255,255,255,0.12);
}
.artist-music-tab {
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 100px;
  padding: 8px 18px;
  transition: all 0.2s var(--ease-spring);
}
.artist-music-tab.active {
  background: #fff;
  color: #000;
  box-shadow: 0 3px 12px rgba(255,255,255,0.14);
}

/* ──────────────────────────────────────────
   ALBUM PAGE
   ────────────────────────────────────────── */
.album-page { transition: transform 0.4s var(--ease-out); }
.album-header-cover {
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.75), 0 2px 0 rgba(255,255,255,0.06) inset;
}
.album-play-circle {
  width: 52px;
  height: 52px;
  box-shadow: 0 6px 24px rgba(255,255,255,0.16);
  transition: transform 0.2s var(--ease-bounce);
}
.album-play-circle:active { transform: scale(0.88); }

/* ──────────────────────────────────────────
   ONBOARDING — Premium Dark
   ────────────────────────────────────────── */
.onboarding { background: var(--bg); }
.ob-title {
  font-size: 30px;
  letter-spacing: 1.5px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ob-sub { color: var(--text3); font-size: 13px; font-weight: 500; margin-top: 8px; }
.ob-search input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 12px 16px 12px 42px;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.ob-search input:focus {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-mid);
  outline: none;
}
.ob-search input::placeholder { color: var(--text4); }
.ob-search-results {
  background: var(--bg4);
  border: 1px solid var(--border-dim);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.8);
}
.ob-search-result-item:first-child { border-radius: 18px 18px 0 0; }
.ob-search-result-item:last-child { border-radius: 0 0 18px 18px; }
.ob-search-result-item:active { background: rgba(255,255,255,0.06); }

.ob-artist-card { border-radius: 18px; }
.ob-artist-card:active { transform: scale(0.93); }
.ob-artist-card.selected::after {
  border: 2px solid #fff;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}
.ob-card-check {
  width: 22px;
  height: 22px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.ob-btn {
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 24px rgba(255,255,255,0.15);
  transition: opacity 0.25s var(--ease-spring), transform 0.2s var(--ease-bounce), box-shadow 0.2s;
}
.ob-btn.active {
  opacity: 1;
  box-shadow: 0 6px 28px rgba(255,255,255,0.20);
}
.ob-btn:active { transform: scale(0.96); }
.ob-selected-count { color: var(--text3); font-size: 12px; font-weight: 600; margin-top: 10px; }

/* Welcome screen glow ring */
.ob-welcome-ring {
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at 50% 70%, rgba(255,255,255,0.08) 0%, transparent 70%);
  box-shadow:
    0 0 60px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
@keyframes ob-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.1);
  }
  50% {
    box-shadow: 0 0 40px 12px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.1);
  }
}
.ob-welcome-ring { animation: ob-pulse 3.5s ease-in-out infinite; }

.ob-welcome-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
}
.ob-welcome-sub { color: var(--text3); }
.ob-feature-icon {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dim);
}
.ob-feature-title { color: #fff; font-weight: 700; }
.ob-feature-desc { color: var(--text3); }

/* Genre chips */
.genre-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dim);
  border-radius: 18px;
  padding: 14px 16px;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text2);
  transition: all 0.2s var(--ease-spring);
}
.genre-chip:active { transform: scale(0.94); }
.genre-chip.selected {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.75);
  color: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.06);
}
.genre-chip-check {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ──────────────────────────────────────────
   MODALS & SHEETS — Premium
   ────────────────────────────────────────── */
.reset-modal { background: rgba(0,0,0,0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.reset-sheet {
  background: var(--bg4);
  border-radius: 28px 28px 0 0;
  border-top: 1px solid var(--border-dim);
}
.reset-handle { background: rgba(255,255,255,0.15); width: 40px; height: 4px; }
.reset-btn-cancel { background: rgba(255,255,255,0.07); border: 1px solid var(--border-dim); }

.share-modal { background: rgba(0,0,0,0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.share-sheet {
  background: var(--bg4);
  border-radius: 28px 28px 0 0;
  border-top: 1px solid var(--border-dim);
}

/* Toast */
.toast {
  background: rgba(30,30,30,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dim);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  padding: 10px 22px;
}

/* ──────────────────────────────────────────
   LIBRARY TABS — Enhanced
   ────────────────────────────────────────── */
.lib-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.lib-tab {
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dim);
  transition: all 0.2s var(--ease-spring);
}
.lib-tab.active {
  background: #fff;
  color: #000;
  border-color: transparent;
  box-shadow: 0 3px 14px rgba(255,255,255,0.14);
}
.lib-content.active { animation: fadeIn 0.25s var(--ease-spring); }

/* ──────────────────────────────────────────
   SOCIAL / FRIENDS
   ────────────────────────────────────────── */
.social-tab { font-size: 11.5px; letter-spacing: 0.5px; }
.social-tab.active { color: #fff; }
.social-tab.active::after {
  height: 2px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}
.friend-item { border-radius: 14px; margin: 0 8px; }
.friend-item:active { background: rgba(255,255,255,0.04); }
.friend-name { font-weight: 700; letter-spacing: -0.1px; }
.friend-status.listening { color: rgba(255,255,255,0.55); }

/* Friend profile */
.friend-profile-header { background: var(--bg3); border-bottom: 1px solid var(--border-dim); }
.friend-profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
}

/* ──────────────────────────────────────────
   BROWSE GRID — Search Categories
   ────────────────────────────────────────── */
.browse-card {
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.browse-card:active {
  transform: scale(0.95);
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}
.browse-card-title { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }

/* Search popular chips */
.search-popular-chip {
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-dim);
  color: var(--text2);
  transition: all 0.18s var(--ease-spring);
}
.search-popular-chip:active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: scale(0.95);
}

/* Search category cards */
.search-cat-card {
  border-radius: 20px;
  min-height: 80px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  transition: transform 0.2s var(--ease-spring);
}
.search-cat-card:active { transform: scale(0.95); }
.search-cat-label { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }

/* ──────────────────────────────────────────
   GLOBAL ANIMATIONS
   ────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50%       { box-shadow: 0 0 24px 4px rgba(255,255,255,0.08); }
}

/* Staggered fade-in for sections */
.section.active { animation: fadeIn 0.3s var(--ease-spring); }
.h-card { animation: fadeInScale 0.25s var(--ease-spring) both; }

/* Playing bars enhanced */
@keyframes bounce {
  from { height: 3px; }
  to   { height: 16px; }
}
.bar {
  width: 2.5px;
  background: #fff;
  border-radius: 2px;
  animation: bounce 0.7s ease-in-out infinite alternate;
}
.bar:nth-child(1) { animation-duration: 0.7s; }
.bar:nth-child(2) { animation-duration: 0.55s; animation-delay: 0.1s; }
.bar:nth-child(3) { animation-duration: 0.65s; animation-delay: 0.2s; }

/* Section-level entrance animations */
.track-item { animation: none; }
.track-item:nth-child(1) { animation: fadeIn 0.2s var(--ease-spring) 0ms both; }
.track-item:nth-child(2) { animation: fadeIn 0.2s var(--ease-spring) 30ms both; }
.track-item:nth-child(3) { animation: fadeIn 0.2s var(--ease-spring) 60ms both; }
.track-item:nth-child(4) { animation: fadeIn 0.2s var(--ease-spring) 90ms both; }
.track-item:nth-child(5) { animation: fadeIn 0.2s var(--ease-spring) 120ms both; }
.track-item:nth-child(n+6) { animation: fadeIn 0.2s var(--ease-spring) 150ms both; }

/* ──────────────────────────────────────────
   EMPTY STATES
   ────────────────────────────────────────── */
.empty { padding: 60px 24px; color: var(--text4); }
.empty svg { opacity: 0.15; }
.empty p { color: var(--text3); font-size: 14px; line-height: 1.7; font-weight: 500; }

/* ──────────────────────────────────────────
   MISC QUALITY POLISH
   ────────────────────────────────────────── */
/* Better section labels */
.section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text4);
}

/* Playlist cards */
.playlist-card {
  border-radius: 18px;
  background: var(--bg4);
  border: 1px solid var(--border-dim);
  transition: transform 0.2s var(--ease-spring);
}
.playlist-card:active { transform: scale(0.96); opacity: 1; }
.playlist-name { font-weight: 800; letter-spacing: -0.2px; }
.playlist-add {
  border-radius: 18px;
  border: 1.5px dashed rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

/* Obs-steps bar dots enhanced */
.ob-step-dot {
  flex: 1;
  height: 3px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  transition: background 0.35s var(--ease-spring), flex 0.35s var(--ease-spring);
}
.ob-step-dot.done {
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* Rec album cards */
.rec-album-card { width: 136px; }
.rec-album-cover {
  width: 136px;
  height: 136px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
}

/* Fix: hide old header title (replaced by greeting) */
.header-title { display: none !important; }
