/* ==========================================================================
   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 { color: var(--accent); }
.player-action.downloading { color: #fff; }
.player-action .download-progress-ring { position: absolute; inset: 3px; width: 38px; height: 38px; }
.full-player-modal[data-sub="lyrics"] .player-action[aria-label="Lyrics"],
.full-player-modal[data-sub="queue"] .player-action[aria-label="Queue"] { color: #fff; background: rgba(255,255,255,0.12); }

/* 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; }
}

/* --------------------------------------------------------------------------
   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); }

/* verified badge */
.verified-icon { color: #fff; fill: #1d9bf0; }

/* --------------------------------------------------------------------------
   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; }
