/* ==========================================================================
   YukiMusic redesign layer (2026-10-16): player, search, profile,
   back buttons, new-release card, Lucide icon sizing.
   Loaded after style.css + liquid-glass.css. Rims are hairline inset
   shadows (see liquid-glass notes) — no borders, no outer glow on glass.
   ========================================================================== */
:root {
  --rim: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
  --rim-strong: inset 0 0 0 0.5px rgba(255, 255, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --surface-1: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --heart: #ff3b6b;
}

.lucide { flex-shrink: 0; display: block; }
.icon-slot { display: flex; align-items: center; justify-content: center; }
button { -webkit-tap-highlight-color: transparent; }
:is(button, [role="button"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.section-title span { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

/* --------------------------------------------------------------------------
   BACK BUTTON — floating glass circle, sticks while scrolling
   -------------------------------------------------------------------------- */
.back-fab {
  position: sticky;
  top: 8px;
  z-index: 30;
  width: 42px;
  height: 42px;
  margin: 0 0 -42px 0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(12, 14, 19, 0.42);
  -webkit-backdrop-filter: blur(7px) saturate(160%);
  backdrop-filter: blur(7px) saturate(160%);
  box-shadow: var(--rim-strong);
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background 0.2s ease;
}
.back-fab .lucide { margin-left: -2px; }
.back-fab:hover { background: rgba(30, 33, 40, 0.6); }
.back-fab:active { transform: scale(0.9); }
#albumView .back-fab { margin-bottom: 14px; }
/* Artist hero runs edge-to-edge under the transparent header.
   (The fab's own negative margin would collapse with the hero's, so the
   fab takes no space and the hero pulls up by the full content padding.) */
#artistView .back-fab { margin-bottom: 0; }
@media (max-width: 767px) {
  #artistView .hero-banner { margin-top: calc(-42px - 52px - var(--safe-top)); height: calc(380px + var(--safe-top)); }
}

/* --------------------------------------------------------------------------
   FULL PLAYER
   -------------------------------------------------------------------------- */
.full-player-modal {
  padding: calc(10px + var(--safe-top)) 22px calc(18px + var(--safe-bottom));
  touch-action: pan-y;
  will-change: transform;
}
.full-player-modal.open { animation: fpIn 0.42s cubic-bezier(0.32, 0.72, 0, 1) both; }
.full-player-modal.closing { animation: fpOut 0.26s cubic-bezier(0.4, 0, 1, 1) both; }
.full-player-modal.dragging { animation: none; transition: none; }
@keyframes fpIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fpOut { from { transform: var(--fp-from, translateY(0)); } to { transform: translateY(100%); } }

.full-player-radial-glow { opacity: 0.55; }
.full-player-modal::after {
  /* keep text legible over very bright covers */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.35) 100%);
}

.full-player-content { max-width: 440px; width: 100%; margin: 0 auto; }

.full-player-grabber {
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 auto 8px;
  flex-shrink: 0;
}

.full-player-header { margin-top: 0; gap: 10px; }
.full-player-header .chevron-down-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--rim);
  transition: transform 0.15s var(--ease-out), background 0.2s;
}
.full-player-header .chevron-down-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.16); }
.player-tab-btn { padding: 8px 16px; font-size: 12.5px; letter-spacing: 0.01em; position: relative; z-index: 1; }

/* Song / Lyrics / Queue use the same liquid lens as the bottom bar */
.full-player-header { position: relative; }
.player-tabs-pill { position: relative; touch-action: none; }
.app-viewport .player-tabs-pill .player-tab-btn.active,
.app-viewport .player-tabs-pill.lg-glass .player-tab-btn.active {
  background: none;
  box-shadow: none;
  color: var(--text-primary);
}
.player-tabs-pill .player-tab-btn.lens-over { color: var(--text-primary); }
.nav-lens.tabs-lens { transition: scale 0.45s var(--ease-bounce), opacity 0.25s ease, width 0.35s var(--ease-out); }

.player-main-view-container { margin: 18px 0 10px; min-height: 0; }

#playerViewArt { container-type: size; align-items: center; justify-content: center; }
.full-artwork-container {
  width: min(360px, 100cqw, 100cqh);
  height: auto;
  max-width: none;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  box-shadow: none;
  transform: scale(0.86);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.full-player-modal.is-playing .full-artwork-container { transform: scale(1); }
.full-artwork-container img#fullArtwork { border-radius: 20px; }

.player-bottom { flex-shrink: 0; }

.full-track-meta { gap: 14px; margin-bottom: 18px; }
.full-track-text { flex: 1; min-width: 0; }
.full-track-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.full-track-artist {
  font-size: 15px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.66);
}
.full-track-artist .dot-sep { margin: 0 6px; opacity: 0.5; }
.full-track-artist #fullAlbum { color: inherit; }

.like-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
}
.like-btn svg { fill: none; }
.like-btn.liked { color: var(--heart); transform: none; }
.like-btn.liked svg { fill: currentColor; animation: heartPop 0.42s var(--ease-bounce); }
.like-btn:active { transform: scale(0.88); }
@keyframes heartPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* Scrubber: fill driven by --progress, thumb appears on touch */
.scrubber-container { gap: 8px; margin-bottom: 14px; }
.scrubber-slider {
  --progress: 0%;
  height: 22px;
  margin: -8px 0;
  background: transparent;
  touch-action: none;
}
.scrubber-slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) var(--progress), rgba(255,255,255,0.18) var(--progress));
  transition: height 0.15s ease;
}
.scrubber-slider:active::-webkit-slider-runnable-track { height: 8px; }
.scrubber-slider::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transform: scale(0);
  transition: transform 0.15s var(--ease-out);
}
.scrubber-slider:active::-webkit-slider-thumb { transform: scale(1.15); margin-top: -3px; }
.scrubber-slider::-moz-range-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.18); }
.scrubber-slider::-moz-range-progress { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.92); }
.scrubber-slider::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: #fff; }
.time-stamps { font-size: 11.5px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.5); }

.full-controls { margin-bottom: 14px; padding: 0; }
.ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  transition: transform 0.15s var(--ease-out), color 0.2s, background 0.2s;
}
.ctrl-btn:active { transform: scale(0.86); }
.ctrl-btn.skip { width: 60px; height: 60px; color: #fff; }
.ctrl-btn.skip:active { background: rgba(255, 255, 255, 0.08); }
.ctrl-btn.secondary { color: rgba(255, 255, 255, 0.55); }
.ctrl-btn.secondary.active { color: var(--accent); }
.ctrl-btn.secondary.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}

.play-pause-circle {
  width: 76px;
  height: 76px;
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.55);
}
.play-pause-circle svg { width: 30px; height: 30px; }
.play-pause-circle:active { transform: scale(0.9); }
.buffer-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.95);
  border-right-color: rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.full-player-modal.is-buffering .buffer-ring { opacity: 1; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-actions-row {
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
}
.player-action {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.15s var(--ease-out);
}
.player-action:active { transform: scale(0.88); background: rgba(255, 255, 255, 0.08); }
.player-action.downloaded, .player-action.active { color: var(--accent); }
.player-action.downloading { color: #fff; }
.player-action .download-progress-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; }

/* lyrics / queue get the artwork's space, so the controls never move */
.full-player-modal[data-sub="lyrics"] .full-track-meta,
.full-player-modal[data-sub="queue"] .full-track-meta { margin-bottom: 12px; }
.queue-header-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 14px 0 6px;
}
.queue-header-label:first-child { margin-top: 0; }
.queue-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 13px;
}

/* mini player loading shimmer */
.mini-player.is-buffering .mini-player-progress-bar { overflow: hidden; }
.mini-player.is-buffering .mini-player-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: miniShimmer 1s ease-in-out infinite;
}
@keyframes miniShimmer { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

@media (max-height: 700px) {
  .player-main-view-container { margin: 10px 0 6px; }
  .full-track-meta { margin-bottom: 10px; }
  .play-pause-circle { width: 66px; height: 66px; }
  .ctrl-btn.skip { width: 52px; height: 52px; }
  .full-controls { margin-bottom: 6px; }
}

/* ---- Player v2 (2026-10-16): living cover backdrop, glass action bar ---- */
.fp-backdrop {
  position: absolute;
  inset: -25%;
  z-index: 0;
  background: center / cover no-repeat;
  filter: blur(60px) saturate(1.7) brightness(0.62);
  transform: scale(1.15);
  opacity: 0.9;
  transition: background-image 0.6s ease;
  animation: fpDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes fpDrift {
  0% { transform: scale(1.15) translate(0, 0) rotate(0deg); }
  50% { transform: scale(1.3) translate(-4%, 3%) rotate(6deg); }
  100% { transform: scale(1.2) translate(4%, -2%) rotate(-4deg); }
}
.full-player-modal .full-player-radial-glow { opacity: 0.25; }
.full-player-modal::after {
  background:
    radial-gradient(120% 70% at 50% 35%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.6) 100%);
}

.full-artwork-container,
.full-artwork-container img#fullArtwork { border-radius: 24px; }
.full-artwork-container {
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.85), 0 18px 70px -30px var(--theme-glow, rgba(0,245,212,0.45));
  transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.5s ease;
}
.full-player-modal:not(.is-playing) .full-artwork-container { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8); }
.full-artwork-container img#fullArtwork { box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.18); }

.fp-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.full-track-title { font-size: 26px; -webkit-mask-image: none; }
.full-track-title #fullTitle { display: inline-block; }
.full-track-title.marquee { text-overflow: clip; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.full-track-title.marquee #fullTitle { animation: fpMarquee var(--marquee-time, 8s) ease-in-out 1.5s infinite alternate; }
@keyframes fpMarquee { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(var(--marquee-dist)); } }

.scrubber-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, #fff var(--progress), rgba(255,255,255,0.2) var(--progress));
}
.scrubber-slider:active::-webkit-slider-runnable-track { height: 10px; }
.scrubber-slider::-webkit-slider-thumb { margin-top: -4px; }
.time-stamps { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6); }

.ctrl-btn.skip svg { width: 34px; height: 34px; }
.play-pause-circle {
  width: 80px;
  height: 80px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.07), 0 16px 40px -8px var(--theme-glow, rgba(0,0,0,0.6));
  transition: transform 0.15s var(--ease-out), box-shadow 0.4s ease;
}
.full-player-modal.is-playing .play-pause-circle { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.09), 0 16px 44px -6px var(--theme-glow, rgba(0,0,0,0.6)); }

.player-actions-row {
  padding: 4px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
}
.player-action { flex: 1; height: 44px; border-radius: 18px; color: rgba(255, 255, 255, 0.78); }
.player-action:active { background: rgba(255, 255, 255, 0.1); }

/* --------------------------------------------------------------------------
   SEARCH
   -------------------------------------------------------------------------- */
.page-heading {
  font-family: var(--font-main);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
}
.search-hero { margin-bottom: 4px; }
#searchView .search-input-wrap { position: relative; margin: 0 0 12px; }
#searchView .search-input {
  height: 52px;
  padding: 0 46px 0 48px;
  border: none;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--rim);
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s;
}
#searchView .search-input::placeholder { color: rgba(255, 255, 255, 0.42); }
#searchView .search-input:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  fill: none !important;
  stroke: currentColor !important;
}
#searchView .search-input:focus ~ .search-input-icon,
#searchView .search-input-wrap:focus-within .search-input-icon { color: var(--accent); }
.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  align-items: center;
  justify-content: center;
}

.search-tabs-scroll { gap: 8px; padding: 2px 0 4px; margin-bottom: 4px; }
.search-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--surface-1);
  box-shadow: var(--rim);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
#searchView .search-tab-pill.active { background: #fff !important; color: #000 !important; box-shadow: none; }

.recent-list { display: flex; flex-direction: column; margin-bottom: 6px; }
.recent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 4px;
  border: none;
  background: none;
  color: var(--text-primary);
  font: 500 15px var(--font-main);
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
}
.recent-row > .lucide:first-child { color: var(--text-muted); }
.recent-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-row .recent-fill { color: var(--text-muted); }
.recent-row:active { background: var(--surface-1); }

.genre-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.genre-card {
  position: relative;
  height: 100px;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: linear-gradient(135deg, var(--g1), var(--g2)) !important;
  color: #fff;
  font: 800 17px var(--font-main);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.2), inset 0 -30px 40px -20px rgba(0,0,0,0.3);
  transition: transform 0.18s var(--ease-out);
}
.genre-card span { position: relative; z-index: 1; }
.genre-card .lucide {
  position: absolute;
  right: -6px;
  bottom: -8px;
  width: 64px;
  height: 64px;
  opacity: 0.38;
  transform: rotate(-14deg);
}
.genre-card:active { transform: scale(0.96); }
.search-section { margin-top: 6px; }
#searchResultsState { margin-top: 4px; }

/* --------------------------------------------------------------------------
   PROFILE
   -------------------------------------------------------------------------- */
.profile-cover {
  position: relative;
  margin: calc(-52px - var(--safe-top)) -20px 8px;
  padding: calc(56px + var(--safe-top)) 20px 6px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .profile-cover { margin: -20px -32px 8px; padding: 24px 32px 6px; }
}
.profile-cover-blur {
  position: absolute;
  inset: -40px;
  background: center/cover no-repeat;
  filter: blur(48px) saturate(150%);
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
}
.profile-header { position: relative; padding: 14px 0 8px; }
.profile-avatar-lg {
  width: 108px;
  height: 108px;
  border: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 18px 40px -10px rgba(0, 0, 0, 0.7);
  margin-bottom: 14px;
}
.profile-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.profile-handle { font-size: 14px; color: rgba(255, 255, 255, 0.55); margin-top: 2px; }
.profile-bio { font-size: 14px; color: var(--text-secondary); margin: 10px auto 0; max-width: 320px; line-height: 1.45; }
.profile-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: var(--rim);
  color: var(--text-primary);
  font: 600 13.5px var(--font-main);
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), background 0.2s;
}
.pill-btn.primary { background: #fff; color: #000; box-shadow: none; }
.pill-btn:active { transform: scale(0.95); }

#profileView .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
#profileView .stat-card {
  border: none;
  border-radius: 18px;
  padding: 14px 14px 13px;
  gap: 2px;
  background: var(--surface-1);
  box-shadow: var(--rim);
}
.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  margin-bottom: 10px;
}
#profileView .stat-value {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#profileView .stat-label { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.profile-section { margin-top: 8px; }
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  margin-top: 28px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 59, 92, 0.1);
  box-shadow: inset 0 0 0 0.5px rgba(255, 59, 92, 0.3);
  color: #ff4d6a;
  font: 700 15px var(--font-main);
  cursor: pointer;
}
.logout-btn:active { background: rgba(255, 59, 92, 0.18); }

/* --------------------------------------------------------------------------
   NEW RELEASE CARD (artist page)
   -------------------------------------------------------------------------- */
#artistNewReleaseSection > .section-title { display: none; }
#artistNewReleaseSection { margin-top: 4px; }
.release-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  background: #101218;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
  transition: transform 0.2s var(--ease-out);
}
.release-card:active { transform: scale(0.98); }
.release-card-bg {
  position: absolute;
  inset: -30%;
  z-index: -2;
  background: center/cover no-repeat;
  filter: blur(36px) saturate(180%);
  opacity: 0.7;
}
.release-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(8, 9, 12, 0.35) 0%, rgba(8, 9, 12, 0.7) 100%);
}
.release-card-cover {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(255, 255, 255, 0.15);
}
.release-card-body { flex: 1; min-width: 0; }
.release-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}
.release-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: releasePulse 2s ease-out infinite;
}
@keyframes releasePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  100% { box-shadow: 0 0 0 8px transparent; }
}
.release-card-title {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.release-card-meta { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.release-card-play {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s var(--ease-out);
}
.release-card-play .lucide-play { margin-left: 2px; }
.release-card-play:active { transform: scale(0.9); }


/* --------------------------------------------------------------------------
   TAB BAR ICONS — matched outline/filled pairs, filled when active
   -------------------------------------------------------------------------- */
.tab-ico { position: relative; width: 24px; height: 24px; display: block; flex-shrink: 0; }
.tab-ico svg {
  position: absolute;
  inset: 0;
  width: 24px !important;
  height: 24px !important;
  transition: opacity 0.22s ease, transform 0.35s var(--ease-bounce);
}
.tab-ico .ico-on { opacity: 0; transform: scale(0.82); }
.nav-item.active .tab-ico .ico-on { opacity: 1; transform: scale(1); }
.nav-item.active .tab-ico .ico-off { opacity: 0; transform: scale(1.1); }
.bottom-nav-container .nav-item { color: rgba(255, 255, 255, 0.5); font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em; gap: 3px; }
.bottom-nav-container .nav-item.active { color: #fff; }
.bottom-nav-container .nav-item.active .tab-ico { color: var(--accent); }
.bottom-nav-container .nav-item:active .tab-ico { transform: scale(0.88); }
.tab-ico { transition: transform 0.2s var(--ease-out); }
.bottom-nav-container .nav-item.lens-over .tab-ico { transform: scale(1.1); }
.bottom-nav-container .nav-item svg, .bottom-nav-container .nav-item.lens-over svg { transform: none; }
.bottom-nav-container .nav-item.active .tab-ico .ico-on { transform: scale(1); }
.bottom-nav-container .nav-item:not(.active) .tab-ico .ico-on { transform: scale(0.82); }

/* --------------------------------------------------------------------------
   SIGN IN WITH YUKICHAT + PROFILE PHOTO UPLOAD
   -------------------------------------------------------------------------- */
.yc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #4a95ff, #2f6ff0);
  color: #fff;
  font: 700 15.5px var(--font-main);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 24px -10px rgba(47, 111, 240, 0.8);
  transition: transform 0.15s var(--ease-out);
}
.yc-btn img { width: 24px; height: 24px; border-radius: 7px; }
.yc-btn:active { transform: scale(0.97); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 0.5px; background: rgba(255,255,255,0.14); }

button.profile-avatar-lg { padding: 0; cursor: pointer; position: relative; display: block; background-size: cover; background-position: center; }
.avatar-picker-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 3px var(--bg-main);
}
.profile-avatar-lg.uploading, .avatar-picker-preview.uploading { opacity: 0.55; animation: avatarPulse 1s ease-in-out infinite alternate; }
@keyframes avatarPulse { to { opacity: 0.9; } }

.avatar-picker { display: flex; align-items: center; gap: 16px; padding: 4px 0 6px; }
.avatar-picker-preview {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--surface-2) center/cover no-repeat;
  box-shadow: var(--rim);
  cursor: pointer;
}
.avatar-picker-preview .avatar-picker-badge { width: 26px; height: 26px; right: -2px; bottom: -2px; }
.avatar-picker-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.avatar-picker-hint { font-size: 12px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   ANDROID APP UPDATE POPUP
   -------------------------------------------------------------------------- */
.update-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}
.update-backdrop.open { background: rgba(0, 0, 0, 0.55); }
.update-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 22px 20px calc(18px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: #12141b;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}
.update-backdrop.open .update-sheet { transform: translateY(0); }
.update-hero { display: flex; align-items: center; gap: 14px; }
.update-logo { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(0,0,0,0.8), inset 0 0 0 0.5px rgba(255,255,255,0.2); }
.update-eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.update-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.update-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.update-summary { margin: 16px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.update-head { display: flex; justify-content: space-between; margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.update-head span { color: var(--text-muted); font-weight: 600; }
.update-list { display: flex; flex-direction: column; gap: 8px; }
.update-sec { border-radius: 16px; background: var(--surface-1); box-shadow: var(--rim); overflow: hidden; }
.update-sec summary { display: flex; align-items: center; gap: 10px; padding: 13px 14px; list-style: none; cursor: pointer; font-weight: 700; font-size: 14.5px; }
.update-sec summary::-webkit-details-marker { display: none; }
.update-emoji { font-size: 17px; }
.update-sec-title { flex: 1; }
.update-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface-2); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.update-chev { color: var(--text-muted); transition: transform 0.25s var(--ease-out); }
.update-sec[open] .update-chev { transform: rotate(180deg); }
.update-sec ul { margin: 0; padding: 0 16px 14px 42px; display: grid; gap: 7px; font-size: 14px; color: var(--text-secondary); line-height: 1.4; }
.update-progress { margin-top: 18px; }
.update-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; position: relative; }
.update-bar-fill { height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width 0.25s ease; }
.update-bar.indeterminate .update-bar-fill { width: 35%; animation: updIndet 1.1s ease-in-out infinite; }
@keyframes updIndet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.update-progress-label { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.update-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.update-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border: none; border-radius: 16px; background: var(--surface-1); box-shadow: var(--rim); color: var(--text-primary); font: 700 15.5px var(--font-main); cursor: pointer; }
.update-btn.primary { background: #fff; color: #000; box-shadow: none; }
.update-btn:active { transform: scale(0.98); }

.app-version-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 28px;
  padding: 14px 16px;
  border: none;
  border-radius: 16px;
  background: var(--surface-1);
  box-shadow: var(--rim);
  color: var(--text-primary);
  font: 500 14px var(--font-main);
  text-align: left;
  cursor: pointer;
}
.app-version-row[hidden] { display: none; }
.app-version-row span { flex: 1; display: flex; flex-direction: column; }
.app-version-row small { color: var(--text-muted); font-size: 12.5px; }
.app-version-row em { font-style: normal; color: var(--accent); font-weight: 700; font-size: 13px; }
.app-version-row + .logout-btn { margin-top: 10px; }

/* --------------------------------------------------------------------------
   2026-10-16 pass 2 — collections, library, settings, notifications
   -------------------------------------------------------------------------- */
.flex-spacer { flex: 1; }
.round-btn {
  width: 42px; height: 42px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: var(--surface-2); box-shadow: var(--rim);
  color: var(--text-primary); cursor: pointer;
  transition: transform .15s var(--ease-out), background .2s;
}
.round-btn:active { transform: scale(.9); }
.text-btn { border: none; background: none; color: var(--accent); font: 600 13px var(--font-main); cursor: pointer; padding: 8px 0; }

/* Play / shuffle row under artist + album + library headers */
.collection-actions { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; }
.play-all-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 24px 0 18px;
  border: none; border-radius: 999px;
  background: var(--accent); color: #04110f;
  font: 800 15px var(--font-main); cursor: pointer;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
  transition: transform .15s var(--ease-out), filter .2s;
}
.play-all-btn:active { transform: scale(.95); }
.collection-actions .pill-btn { height: 48px; padding: 0 18px; }

/* Artist hero text */
#artistView .hero-banner { margin-bottom: 8px; }
#artistView .hero-banner-overlay { padding-bottom: 14px; gap: 2px; }
.artist-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font: 700 11px var(--font-main); letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}
.artist-eyebrow svg {
  width: 16px; height: 16px; padding: 2px; border-radius: 50%;
  background: var(--accent); color: #04110f; box-sizing: border-box;
}
#artistView .artist-hero-name { font-size: clamp(30px, 10vw, 46px); line-height: 1.02; letter-spacing: -.03em; margin: 4px 0 2px; }
.artist-listeners { font-size: 13px; color: var(--text-secondary); font-weight: 600; min-height: 17px; }

/* Album hero */
.album-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 14px; }
.album-cover-wrap { position: relative; width: min(62vw, 230px); aspect-ratio: 1; margin-bottom: 18px; }
.album-cover-wrap #albumCoverImg {
  width: 100%; height: 100%; object-fit: cover; border-radius: 18px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9), var(--rim);
}
.album-title { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.album-artist { font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 6px; }
.album-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 8px; font-size: 12.5px; color: var(--text-muted); margin-top: 8px; font-weight: 600; }
.album-meta svg { vertical-align: -2px; margin-right: 4px; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: inline-block; }
.album-row { padding: 10px 8px; }
.track-num { width: 26px; flex-shrink: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--text-muted); position: relative; }
.track-num .equalizer-bars { display: none; position: static; background: none; justify-content: center; }
.album-row.playing .track-num span, .album-row.active .track-num span { display: none; }
.album-row.playing .track-num .equalizer-bars, .album-row.active .track-num .equalizer-bars { display: flex; }
.album-row.active .track-name { color: var(--accent); }
.track-dur { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* Empty states */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 24px; color: var(--text-muted); }
.empty-state svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--surface-1); box-shadow: var(--rim); color: var(--text-secondary); margin-bottom: 6px; box-sizing: border-box; }
.empty-state b { color: var(--text-primary); font-size: 15px; }
.empty-state span { font-size: 13px; max-width: 260px; }

/* Library */
.lib-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.lib-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 12px; border: none; border-radius: 18px; text-align: left;
  background: var(--surface-1); box-shadow: var(--rim); color: var(--text-primary);
  font-family: var(--font-main); cursor: pointer; transition: background .2s, transform .15s var(--ease-out);
}
.lib-tile:active { transform: scale(.96); }
.lib-tile.active { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.lib-tile b { font-size: 14px; margin-top: 10px; }
.lib-tile small { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.lib-tile-ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.lib-tile-ico.liked { background: linear-gradient(135deg, #f472b6, #8b5cf6); }
.lib-tile-ico.history { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.lib-tile-ico.offline { background: linear-gradient(135deg, #00F5D4, #059669); color: #04110f; }
.lib-pane { display: none; }
.lib-pane.active { display: block; animation: paneIn .25s var(--ease-out); }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } }

/* Page header with back button */
.page-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.page-head .page-heading { margin: 0; flex: 1; font-size: 26px; }

/* Settings */
.set-group-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 22px 4px 8px; }
.set-group { border-radius: 18px; background: var(--surface-1); box-shadow: var(--rim); overflow: hidden; }
.set-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: none; background: none; text-align: left;
  color: var(--text-primary); font-family: var(--font-main); cursor: pointer; min-height: 60px;
}
.set-row + .set-row { box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, .08); }
.set-row:active { background: rgba(255, 255, 255, .04); }
.set-row > svg { color: var(--text-muted); flex-shrink: 0; }
.set-ico { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-text b { font-size: 14.5px; font-weight: 600; }
.set-text small { font-size: 12px; color: var(--text-muted); }
.set-em { font-style: normal; font-size: 12px; color: var(--accent); font-weight: 600; }
.set-select {
  appearance: none; -webkit-appearance: none; border: none; border-radius: 10px;
  background: var(--surface-2); color: var(--text-primary); font: 600 13px var(--font-main);
  padding: 8px 12px; box-shadow: var(--rim);
}
.switch {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; margin: 0;
  width: 46px; height: 28px; border-radius: 999px; position: relative; cursor: pointer;
  background: rgba(255, 255, 255, .16); transition: background .2s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .22s var(--ease-out);
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
#settingsView .logout-btn { margin-top: 24px; }

/* Profile: settings entry + guest/user button sets */
#profileView { position: relative; }
.profile-gear { position: absolute; top: 50px; right: 0; z-index: 5; }
@media (min-width: 768px) { .profile-gear { top: 0; } }
.settings-link {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 22px; padding: 14px;
  border: none; border-radius: 18px; background: var(--surface-1); box-shadow: var(--rim);
  color: var(--text-primary); font-family: var(--font-main); text-align: left; cursor: pointer;
}
.settings-link > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.settings-link b { font-size: 15px; }
.settings-link small { font-size: 12px; color: var(--text-muted); }
.settings-link > svg { color: var(--text-muted); }
.profile-actions.guest .user-only, .profile-actions:not(.guest) .guest-only { display: none; }

/* Notifications */
.notif-btn { position: relative; }
.notif-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 2px var(--bg-main); }
.notif-dot[hidden] { display: none; }
.notif-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; margin-bottom: 8px;
  border: none; border-radius: 16px; background: var(--surface-1); box-shadow: var(--rim);
  color: var(--text-primary); font-family: var(--font-main); text-align: left; cursor: pointer;
}
.notif-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.notif-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-text small { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.notif-text b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-text span { font-size: 12.5px; color: var(--text-secondary); }
.notif-item:not(.unread) { opacity: .72; }
.notif-unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Reduce motion setting */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (max-width: 767px) { .header-actions .hdr-search { display: none; } }

/* Pit board drawer header */
.pit-board-drawer.expanded .drawer-handle-bar { height: auto; padding: 8px 20px 12px; }
.pit-board-drawer.expanded .drawer-header-title {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: 10px; text-transform: none; letter-spacing: 0; color: var(--text-primary);
}
.drawer-head-text { display: flex; flex-direction: column; gap: 2px; }
.drawer-head-text b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.drawer-head-text small { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.drawer-close { width: 36px; height: 36px; }
.muted-note { color: var(--text-muted); font-size: 13px; padding: 14px 4px; }
.skeleton-row { height: 56px; margin-bottom: 8px; animation: skel 1.2s ease-in-out infinite alternate; }
@keyframes skel { from { opacity: .45; } to { opacity: 1; } }
.horizontal-carousel .skeleton-row { width: 140px; height: 180px; flex-shrink: 0; margin: 0; }

/* Home hero: liquid airflow canvas (f1-flow.js) replaces the SVG aero lines */
.f1-hero-stage { background: radial-gradient(120% 80% at 50% 40%, color-mix(in srgb, var(--theme-main, #00F5D4) 35%, #060709), #060709 75%); }
.f1-flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.f1-hero-stage .f1-car-img { filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.75)); }
.f1-hero-stage.playing .f1-car-img { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.7)); }

/* ==========================================================================
   DESKTOP (2026-10-16): player bar, full player, sidebar, header
   Phones: the new wrappers vanish (display: contents) and desk-only parts hide.
   ========================================================================== */
.mini-left, .mini-center { display: contents; }
.desk-only { display: none !important; }

@media (min-width: 768px) {
  .desk-only { display: flex !important; }

  /* ---- Bottom player bar ---- */
  .app-viewport .mini-player,
  .app-viewport .mini-player.lg-glass,
  .app-viewport .main-wrapper #miniPlayer.mini-player {
    position: absolute; left: 0; right: 0; bottom: 0; top: auto; transform: none;
    width: auto; max-width: none; height: 88px; margin: 0; padding: 0 24px;
    display: grid !important; grid-template-columns: minmax(220px, 1fr) minmax(380px, 620px) minmax(220px, 1fr);
    align-items: center; gap: 24px;
    border: none; border-radius: 0;
    background: rgba(9, 10, 13, 0.92) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important; backdrop-filter: blur(20px) saturate(160%) !important;
    box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12) !important;
    cursor: default; z-index: 120;
  }
  .mini-player .mini-player-progress-bar { display: none; }
  .mini-left { display: flex; align-items: center; gap: 14px; min-width: 0; cursor: pointer; }
  .mini-left .mini-thumb { width: 56px; height: 56px; border-radius: 10px; }
  .mini-left .mini-title { font-size: 14.5px; }
  .mini-left .mini-artist { font-size: 12.5px; }
  .mini-center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
  .mini-center .mini-controls { gap: 14px; }
  .mini-player .mini-btn {
    width: 36px; height: 36px; border-radius: 50%; border: none; background: none;
    color: rgba(255, 255, 255, 0.72); display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: color .15s, transform .15s var(--ease-out), background .15s;
  }
  .mini-player .mini-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
  .mini-player .mini-btn:active { transform: scale(.9); }
  .mini-player .mini-btn.active { color: var(--accent); }
  .mini-player .mini-btn.liked { color: #ff4d6d; }
  .mini-player #miniPlayBtn { width: 40px; height: 40px; background: #fff; color: #000; }
  .mini-player #miniPlayBtn:hover { transform: scale(1.06); background: #fff; }
  .desk-progress { width: 100%; align-items: center; gap: 10px; font-size: 11.5px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.55); }
  .desk-progress span { width: 38px; text-align: center; flex-shrink: 0; }
  .mini-right { justify-content: flex-end; align-items: center; gap: 6px; }
  .desk-range {
    --progress: 0%; -webkit-appearance: none; appearance: none; flex: 1; height: 14px; background: transparent; cursor: pointer; margin: 0;
  }
  .desk-range::-webkit-slider-runnable-track {
    height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) var(--progress), rgba(255, 255, 255, 0.16) var(--progress));
  }
  .desk-range:hover::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) var(--progress), rgba(255, 255, 255, 0.2) var(--progress)); }
  .desk-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
  .desk-range:hover::-webkit-slider-thumb { opacity: 1; }
  .desk-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
  .desk-range::-moz-range-progress { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.85); }
  .desk-range::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: #fff; }
  .desk-volume { flex: 0 0 96px; }
  .content-area { padding-bottom: 120px; }
  .drawer-content { padding-bottom: 120px !important; }
  .f1-hero-stage { padding-bottom: 88px; }

  /* ---- Sidebar ---- */
  .desktop-sidebar { width: 240px; padding: 22px 14px 16px; background: #08090c; border-right: none; box-shadow: inset -0.5px 0 0 rgba(255, 255, 255, 0.08); }
  .sidebar-nav { gap: 2px; overflow-y: auto; scrollbar-width: none; }
  .sidebar-nav .nav-item { height: 42px; padding: 0 12px; gap: 12px; border: none !important; border-radius: 12px; font-size: 14px; }
  .sidebar-nav .nav-item.active { background: rgba(255, 255, 255, 0.08); color: #fff; }
  .sidebar-nav .nav-item.active .tab-ico { color: var(--accent); }
  .sidebar-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin: 20px 12px 6px; }
  .sidebar-nav .nav-item.sub { height: 40px; font-size: 13.5px; }
  .side-ico { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
  .side-ico.liked { background: linear-gradient(135deg, #f472b6, #8b5cf6); }
  .side-ico.history { background: linear-gradient(135deg, #38bdf8, #6366f1); }
  .side-ico.offline { background: linear-gradient(135deg, #00F5D4, #059669); color: #04110f; }
  .sidebar-spacer { flex: 1; min-height: 16px; }
  .sidebar-nav .notif-btn { position: relative; }
  .sidebar-nav .notif-dot { top: 0; right: -2px; }
  .sidebar-footer { border-top: none; box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.08); padding-bottom: 88px; }

  /* ---- Header: history arrows + search field ---- */
  .app-header { padding: 14px 32px 8px; }
  .app-header .header-top { justify-content: space-between; }
  .desk-history { align-items: center; gap: 8px; flex: 1; }
  .desk-search {
    display: flex; align-items: center; gap: 10px; height: 40px; width: min(420px, 100%); margin-left: 8px; padding: 0 12px 0 14px;
    border: none; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
    color: var(--text-muted); font: 500 13.5px var(--font-main); cursor: text; text-align: left;
  }
  .desk-search:hover { background: rgba(255, 255, 255, 0.1); }
  .desk-search span { flex: 1; }
  .desk-search kbd { font: 600 11px var(--font-main); padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }
  .header-actions .hdr-search { display: none; }
  .view-panel .back-fab { display: none; }

  /* ---- Artist header: tall, cropped on the face ---- */
  #artistView .hero-banner { height: 360px; margin-top: 0; }
  #artistView .hero-banner img { object-position: center 32%; }

  /* ---- Full player: whole window, artwork left, controls right ---- */
  .app-viewport .full-player-modal {
    inset: 0; top: 0; left: 0; width: auto; max-width: none; height: auto; max-height: none;
    transform: none; border: none; border-radius: 0; box-shadow: none; padding: 28px 48px 40px; z-index: 300;
  }
  .full-player-modal.open { animation: fpDeskIn .32s var(--ease-out) both; }
  .full-player-modal.closing { animation: fpDeskOut .22s ease-in both; }
  @keyframes fpDeskIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
  @keyframes fpDeskOut { from { opacity: 1; } to { opacity: 0; transform: scale(1.02); } }
  .full-player-grabber { display: none; }
  .full-player-content {
    max-width: 1180px; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-rows: auto minmax(0, 1fr); column-gap: 64px; align-items: center;
  }
  .full-player-header { grid-column: 1 / -1; }
  .player-main-view-container { grid-column: 1; grid-row: 2; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
  .player-main-view-container .player-subview.active { width: 100%; height: 100%; }
  #playerViewArt { container-type: size; }
  .full-artwork-container { width: min(560px, 100cqw, 100cqh); }
  .player-bottom { grid-column: 2; grid-row: 2; align-self: center; }
  .full-track-title { font-size: 30px; }
  .full-player-modal .chevron-down-btn { cursor: pointer; }
}

/* ==========================================================================
   DRIVERS (2026-10-16): team theme, profile card, garage selector
   ========================================================================== */
body { background: radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--team-tint, #060709) 100%, transparent), #060709 70%) fixed, #060709; }
.theme-shift, .theme-shift * { transition: color .5s ease, background-color .5s ease, border-color .5s ease, box-shadow .5s ease !important; }

.driver-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%;
  margin: 18px 0 6px; padding: 14px 16px; min-height: 96px; border: none; border-radius: 20px; text-align: left; cursor: pointer;
  color: #fff; font-family: var(--font-main);
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 34%, #0c0e13) 0%, #0d0f14 62%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
  transition: transform .15s var(--ease-out);
}
.driver-card:active { transform: scale(.98); }
.driver-card-num { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); font: 800 92px/1 var(--font-display); color: rgba(255, 255, 255, 0.06); pointer-events: none; }
.driver-card-carwrap { position: relative; width: 116px; height: 52px; flex-shrink: 0; }
.driver-card-car { position: absolute; left: 50%; top: 50%; height: 116px; width: auto; max-width: none; transform: translate(-50%, -50%) rotate(90deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.driver-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; position: relative; }
.driver-card-text small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.driver-card-text b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.driver-card-text span { font-size: 12.5px; color: var(--text-secondary); }
.driver-card-cta { display: flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); position: relative; }

/* ---- Garage ---- */
.garage {
  --g-accent: #00F5D4; --g-second: #1E41FF; --g-tint: #06131f;
  position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; overflow: hidden;
  background: #050608; color: #fff; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.garage.open { opacity: 1; pointer-events: auto; }
.garage-glow {
  position: absolute; inset: 0; pointer-events: none; transition: background .6s ease;
  background:
    radial-gradient(60% 45% at 50% 42%, color-mix(in srgb, var(--g-accent) 38%, transparent), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, color-mix(in srgb, var(--g-second) 30%, transparent), transparent 70%),
    linear-gradient(180deg, var(--g-tint), #050608 75%);
}
.garage-num {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); pointer-events: none;
  font: 800 min(62vw, 420px)/1 var(--font-display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--g-accent) 45%, transparent); opacity: .5;
  transition: -webkit-text-stroke-color .5s ease;
}
.garage-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(14px + var(--safe-top)) 16px 0; }
.garage-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.garage-track {
  position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; align-items: center;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc(50% - min(29vw, 140px));
}
.garage-track::-webkit-scrollbar { display: none; }
.garage-slide {
  --k: 1; flex: 0 0 min(58vw, 280px); height: 100%; display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; cursor: pointer;
  transform: scale(calc(1 - var(--k) * .28)) translateY(calc(var(--k) * 18px));
  opacity: calc(1 - var(--k) * .62); filter: saturate(calc(1 - var(--k) * .6));
  transition: transform .12s linear;
}
.garage-slide img { height: min(56vh, 520px); max-width: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .75)); user-select: none; -webkit-user-drag: none; }
.garage-slide.centre img { animation: garageIdle 2.6s ease-in-out infinite alternate; }
@keyframes garageIdle { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.garage-slide.rev img { animation: garageRev .55s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes garageRev { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-34px) scale(1.03); } 60% { transform: translateY(6px); } 100% { transform: translateY(0); } }
.garage-arrow { position: absolute; top: 42%; z-index: 3; width: 48px; height: 48px; border: none; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); }
.garage-arrow.left { left: max(24px, calc(50% - 360px)); }
.garage-arrow.right { right: max(24px, calc(50% - 360px)); }
@media (hover: hover) and (min-width: 768px) { .garage-arrow { display: flex; } }
.garage-info { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 20px calc(24px + var(--safe-bottom)); }
.garage-dots { display: flex; gap: 6px; margin-bottom: 8px; }
.garage-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: width .3s var(--ease-out), background .3s; }
.garage-dots i.on { width: 22px; background: var(--g-accent); }
.garage-team { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g-accent); transition: color .4s; }
.garage-driver { font: 800 clamp(30px, 9vw, 46px)/1.05 var(--font-display); letter-spacing: -.02em; }
.garage-driver span { font-family: var(--font-main); font-weight: 500; opacity: .75; }
.garage-swatches { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; }
.garage-swatches i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.garage-swatches em { font-style: normal; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .6); margin-left: 4px; letter-spacing: .04em; }
.garage-select {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 240px; height: 54px; padding: 0 28px;
  border: none; border-radius: 999px; cursor: pointer; font: 800 16px var(--font-main);
  background: var(--g-accent); color: #08090c; box-shadow: 0 12px 34px -10px var(--g-accent);
  transition: transform .15s var(--ease-out), background .4s, box-shadow .4s;
}
.garage-select:active { transform: scale(.96); }
.garage-select.chosen { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g-accent) 60%, transparent); }
.driver-card-text b, .driver-card-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row[hidden], [hidden].settings-link { display: none !important; }

/* ==========================================================================
   CHARTS (Explore)
   ========================================================================== */
.chart-countries { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 16px; padding: 0 20px 2px; }
.chart-countries::-webkit-scrollbar { display: none; }
.chart-countries .chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; }
.chip-flag { font-size: 15px; line-height: 1; }
.chart-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; min-height: 168px;
  padding: 18px; border-radius: 22px; margin-bottom: 6px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 28%, #0d0f14), #0d0f14 70%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}
.chart-hero-skel { height: 132px; border-radius: 16px; background: var(--surface-1); animation: skel 1.2s ease-in-out infinite alternate; flex: 1; }
.chart-hero-covers { position: relative; width: 112px; height: 124px; flex-shrink: 0; }
.chart-hero-covers img {
  position: absolute; width: 92px; height: 92px; border-radius: 12px; object-fit: cover;
  left: calc(var(--i) * 10px); top: calc(var(--i) * 15px); z-index: calc(3 - var(--i));
  transform: rotate(calc(-6deg + var(--i) * 6deg)); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .8);
  filter: brightness(calc(1 - var(--i) * .15));
}
.chart-hero-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chart-hero-text small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.chart-hero-text b { font: 800 34px/1.05 var(--font-display); letter-spacing: -.02em; }
.chart-hero-text > span { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-hero-text .collection-actions { margin: 10px 0 0; }
.chart-hero-text .play-all-btn, .chart-hero-text .pill-btn { height: 40px; }
.chart-hero-text .play-all-btn { padding: 0 18px 0 14px; font-size: 14px; }
.section-title > span#chartUpdated { color: var(--text-muted); font-weight: 600; cursor: default; }
.chart-row { gap: 12px; padding: 8px 6px; }
.chart-rank { width: 34px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.chart-rank b { font: 800 17px/1 var(--font-main); font-variant-numeric: tabular-nums; }
.chart-row:nth-child(-n+3) .chart-rank b { color: var(--accent); font-size: 20px; }
.chart-move { display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; line-height: 1; min-height: 11px; }
.chart-move.up { color: #34d399; }
.chart-move.down { color: #fb7185; }
.chart-move.flat { color: var(--text-muted); }
.chart-move.new { color: #04110f; background: var(--accent); padding: 2px 4px; border-radius: 4px; font-size: 8.5px; letter-spacing: .04em; }
.chart-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.chart-row.active .track-name { color: var(--accent); }
.chart-more { width: 34px; height: 34px; flex-shrink: 0; border: none; background: none; color: var(--text-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chart-more:hover { color: #fff; background: var(--surface-1); }
@media (min-width: 768px) {
  .chart-countries { margin: 0 0 18px; padding: 0 0 2px; flex-wrap: wrap; overflow: visible; }
  .chart-hero { padding: 24px 28px; min-height: 200px; }
  .chart-hero-covers { width: 150px; height: 160px; }
  .chart-hero-covers img { width: 124px; height: 124px; }
  .chart-hero-text b { font-size: 46px; }
}

/* ---------- YukiChat link: friends row, week card ---------- */
#friendsSection[hidden], .context-btn[hidden] { display: none !important; }
.week-card-link { margin-top: 12px; }
.friend-card {
  flex: 0 0 132px; display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer;
  transition: transform .3s var(--ease-out);
}
.friend-card:active { transform: scale(.95); }
.friend-cover { position: relative; display: block; width: 132px; height: 132px; margin-bottom: 6px; }
.friend-cover > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.friend-av {
  position: absolute; right: -4px; bottom: -4px; width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; box-shadow: 0 0 0 3px var(--bg-main);
}
.friend-card.live .friend-av { box-shadow: 0 0 0 3px var(--bg-main), 0 0 0 5px var(--accent); }
.friend-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-track { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-when { font-size: 11.5px; color: var(--text-muted); opacity: .8; }
.friend-card.live .friend-when { color: var(--accent); opacity: 1; font-weight: 600; }
.friend-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; flex: none; }
.friend-eq b { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); animation: friend-eq .9s ease-in-out infinite; }
.friend-eq b:nth-child(2) { animation-delay: -.3s; }
.friend-eq b:nth-child(3) { animation-delay: -.6s; }
@keyframes friend-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.friend-eq b { transform-origin: bottom; }
.reduce-motion .friend-eq b { animation: none; }

.stats-card-backdrop {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.72);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.stats-card-backdrop.active { opacity: 1; pointer-events: auto; }
.stats-card-sheet { display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 100%; }
.stats-card-sheet img {
  max-height: calc(100vh - 200px); max-width: 100%; aspect-ratio: 9 / 16; border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.94); transition: transform .3s var(--ease-out);
}
.stats-card-backdrop.active img { transform: none; }
.stats-card-frame { position: relative; display: grid; place-items: center; }
.stats-card-frame img:not([src]) { visibility: hidden; height: calc(100vh - 200px); width: auto; }
.stats-card-loading {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border-radius: 22px; color: rgba(255,255,255,.8); font-size: 14px;
  background: linear-gradient(110deg, rgba(255,255,255,.05) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 70%) 0 0 / 250% 100%, var(--team-tint, #111);
  animation: scShimmer 1.3s linear infinite;
}
.stats-card-backdrop.loading .stats-card-loading { display: flex; }
.stats-card-backdrop.loading .stats-card-actions { opacity: .4; pointer-events: none; }
.stats-card-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation: scSpin .8s linear infinite; }
@keyframes scShimmer { to { background-position: -250% 0, 0 0; } }
@keyframes scSpin { to { transform: rotate(360deg); } }
.week-card-link:active { transform: scale(.97); opacity: .8; }
.stats-card-actions { display: flex; gap: 10px; }
.friends-live-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: #ff4d5e !important; cursor: default;
}
.friends-live-tag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: friends-live 1.6s ease-in-out infinite; }
@keyframes friends-live { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,77,94,.6); } 50% { opacity: .55; box-shadow: 0 0 0 5px rgba(255,77,94,0); } }
.reduce-motion .friends-live-tag i { animation: none; }
#friendsSection { margin-bottom: 14px; }
.friend-prog { position: absolute; left: 10px; right: 46px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.friend-prog i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; transition: width 1s linear; }

/* ===== Track context sheet (long-press). No backdrop-filter: blurring the live hero every frame made it lag. ===== */
.context-sheet-backdrop {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.context-sheet-backdrop.active { opacity: 1; pointer-events: auto; }
.context-sheet {
  width: 100%; max-width: 440px;
  background: #16181e;
  border-radius: 22px 22px 0 0;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
  padding: 8px 12px calc(12px + var(--safe-bottom));
  display: flex; flex-direction: column;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform;
  touch-action: none;
}
.context-sheet-backdrop.active .context-sheet { transform: translate3d(0, 0, 0); }
.context-sheet.dragging { transition: none; }
.context-grip { width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); margin: 2px auto 12px; flex-shrink: 0; }
.context-track-preview { display: flex; align-items: center; gap: 12px; padding: 0 6px 14px; }
.context-track-preview img:first-child { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; display: block; }
.context-track-info { flex: 1; min-width: 0; }
.context-track-title, .context-track-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.context-track-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.context-track-artist { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }

.context-btn {
  display: flex; align-items: center; gap: 14px;
  border: none; background: none; color: var(--text-primary);
  font-family: var(--font-main); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease, transform 0.12s ease;
}
.context-btn svg { flex-shrink: 0; }
.context-actions-primary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 8px; }
.context-btn.primary {
  flex-direction: column; justify-content: center; gap: 7px;
  height: 74px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px; font-weight: 600;
}
.context-btn.primary svg { color: var(--accent); }
.context-btn.primary:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.1); }
.context-actions-secondary { display: flex; flex-direction: column; }
.context-btn.secondary {
  height: 50px; padding: 0 12px; border-radius: 12px;
  font-size: 15px; font-weight: 500; text-align: left;
}
.context-btn.secondary svg { color: var(--text-secondary); }
.context-btn.secondary:active { background: rgba(255, 255, 255, 0.07); }
.context-btn.danger, .context-btn.danger svg { color: #ff6b6b; }
@media (hover: hover) {
  .context-btn.primary:hover { background: rgba(255, 255, 255, 0.1); }
  .context-btn.secondary:hover { background: rgba(255, 255, 255, 0.06); }
}
@media (min-width: 768px) {
  .context-sheet-backdrop { align-items: center; }
  .context-sheet { border-radius: 22px; padding-bottom: 12px; transform: translate3d(0, 16px, 0) scale(0.98); opacity: 0; transition: transform 0.2s ease, opacity 0.2s ease; }
  .context-sheet-backdrop.active .context-sheet { transform: none; opacity: 1; }
  .context-grip { visibility: hidden; height: 0; margin-bottom: 8px; }
}
/* Long-press feedback on the row being held; no native text-selection callout */
[data-track-id] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.track-pressing { transform: scale(0.97); transition: transform 0.35s ease; }

/* Autoplay section in the queue */
.queue-auto-label {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 4px 8px; color: var(--text-secondary);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ===== Search "All": top result + mixed songs/artists/albums ===== */
.top-result {
  position: relative; display: block;
  padding: 18px; margin-bottom: 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.top-result:active { transform: scale(0.985); background: rgba(255, 255, 255, 0.09); }
.top-result img { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; display: block; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.top-result img.round { border-radius: 50%; }
.top-result-name { margin-top: 16px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; padding-right: 64px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.top-result-meta { margin-top: 6px; font-size: 13px; color: var(--text-secondary); }
.top-result-play {
  position: absolute; right: 18px; bottom: 18px;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  display: grid; place-items: center;
  background: var(--accent); color: #000; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.top-result-play:active { transform: scale(0.94); }
.mix-row .track-thumb.round, .mix-row .track-thumb.round img { border-radius: 50%; }
.mix-row .mix-chev { margin-left: auto; color: var(--text-muted); flex-shrink: 0; }
@media (hover: hover) { .top-result:hover { background: rgba(255, 255, 255, 0.09); } }

/* Easter-egg overlays (Clark, submarine, scooter, F1 driver) poke out above the artwork: don't clip them on the Song tab */
.player-main-view-container:has(#playerViewArt.active) { overflow: visible; }

/* Artist removed from the platform (backend banned.py → {"blocked": true}) */
#artistView.artist-blocked .collection-actions,
#artistView.artist-blocked .section-title,
#artistView.artist-blocked .track-list,
#artistView.artist-blocked .horizontal-carousel,
#artistView.artist-blocked #artistNewReleaseSection { display: none !important; }
#artistView.artist-blocked .hero-banner img { filter: grayscale(1) blur(2px); opacity: .5; }
#artistView.artist-blocked .artist-eyebrow svg { color: #ff5a6a; background: none; }
.artist-blocked-note { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin: 8px 0 24px; padding: 28px 22px; border-radius: 20px; background: var(--surface-1); box-shadow: var(--rim); }
.artist-blocked-ico { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ff5a6a; background: rgba(255, 90, 106, .12); margin-bottom: 4px; }
.artist-blocked-note b { font-size: 16px; color: var(--text-primary); }
.artist-blocked-note small { font-size: 13px; line-height: 1.45; color: var(--text-secondary); max-width: 300px; }
[data-theme="light"] .artist-blocked-note { background: #fff; box-shadow: var(--rim), var(--card-shadow); }

.stats-card-nav { display: flex; align-items: center; justify-content: center; gap: 10px; }
.stats-card-nav b { min-width: 110px; text-align: center; font-size: 15px; }
.stats-card-nav .icon-btn:disabled { opacity: .3; pointer-events: none; }
.stats-card-backdrop.loading .stats-card-nav { opacity: .4; pointer-events: none; }

.stats-period { display: flex; align-items: center; gap: 8px; margin: 18px 0 12px; }
.stats-period-label { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.stats-period-label b { font-size: 15px; }
.stats-period-label small { font-size: 12px; opacity: .6; min-height: 14px; }
.stats-period .icon-btn:disabled { opacity: .3; pointer-events: none; }

/* Auth / profile modals: centered card on desktop instead of full-width stretch */
@media (min-width: 768px) {
  .auth-modal {
    position: fixed;
    inset: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 36px 32px 28px;
    border-radius: 28px;
    background: rgba(18, 20, 26, 0.92);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 100vmax rgba(4, 5, 8, 0.72), 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    animation: authCardIn 0.28s var(--ease-out, ease-out);
  }
  .auth-title { font-size: 26px; text-align: center; }
  .auth-sub { text-align: center; }
}
@keyframes authCardIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
