/* 13 features styles */
.site-toast-box {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 200000; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.site-toast {
  background: #1e1b2e; color: #fff; padding: 12px 20px; border-radius: 14px;
  font-size: 0.9rem; font-weight: 600; opacity: 0; transform: translateY(-10px);
  transition: .3s; box-shadow: 0 12px 30px rgba(0,0,0,.35);
  border: 1px solid rgba(168,85,247,.35); pointer-events: auto;
}
.site-toast.show { opacity: 1; transform: none; }
.site-toast.toast-ok { border-color: #34d399; }
.site-toast.toast-err { border-color: #f87171; }

.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: .25s; font-size: 0.95rem;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.is-fav { background: #e11d48; color: #fff; animation: heartPop .35s ease; }
@keyframes heartPop {
  0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); }
}

.scroll-top-btn {
  position: fixed; right: 18px; bottom: 100px; z-index: 9000;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent, #a855f7), var(--accent-2, #7c3aed));
  color: #fff; font-size: 1.1rem; opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: .3s;
  box-shadow: 0 8px 24px rgba(168,85,247,.4);
}
.scroll-top-btn.show { opacity: 1; pointer-events: auto; transform: none; }

.feature-tools {
  position: fixed; right: 18px; bottom: 160px; z-index: 9000;
  display: flex; flex-direction: column; gap: 8px;
}
.feature-tools button {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(168,85,247,.3);
  background: rgba(30,27,46,.9); color: var(--accent, #c084fc); cursor: pointer;
  font-size: 1rem; backdrop-filter: blur(10px); transition: .25s;
}
.feature-tools button:hover {
  background: var(--accent, #a855f7); color: #fff; transform: scale(1.08);
}

.recent-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 8px 0 16px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.recent-item {
  flex: 0 0 auto; width: 120px; text-align: center; scroll-snap-align: start;
  text-decoration: none; color: inherit;
}
.recent-item img {
  width: 120px; height: 120px; object-fit: cover; border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2); transition: .3s;
}
.recent-item:hover img { transform: scale(1.04); }
.recent-item span {
  display: block; margin-top: 8px; font-size: 0.78rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

#timeGreeting {
  font-size: 0.9rem; font-weight: 700; color: var(--accent, #a855f7);
  margin: 12px 0 4px;
}

#audioVis {
  width: 100%; height: 48px; border-radius: 12px; margin: 10px 0;
  background: rgba(168,85,247,.08);
}

/* Theater mode */
body.theater-mode .main-header,
body.theater-mode .bottom-nav,
body.theater-mode .feature-tools,
body.theater-mode .theme-fab-wrap,
body.theater-mode .stats-bar,
body.theater-mode .category-bar,
body.theater-mode .quick-actions,
body.theater-mode .artist-spotlight,
body.theater-mode .marquee-bar {
  opacity: 0.15; pointer-events: none; transition: .4s;
}
body.theater-mode .main-footer { opacity: 0.3; }
body.theater-mode .song-player-section,
body.theater-mode #mainPlayerBox {
  transform: scale(1.02);
  filter: drop-shadow(0 20px 40px rgba(168,85,247,.3));
}

html[data-mode="day"] .feature-tools button {
  background: rgba(255,255,255,.95); color: #7c3aed;
}
html[data-mode="day"] .site-toast {
  background: #fff; color: #1e1b2e;
}
