/* ═══════════════════════════════════════════════════════════════
   IFINDER — TELEGRAM MINI APP  |  styles.css (Optimized)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --track-accent-glow: rgba(255, 130, 40, 0.45);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; object-fit: cover; -webkit-user-drag: none; }

/* ─── FRAME (TMA-first) ─── */
.frame {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: 100dvh;
  background: #0A0B0E;
  overflow: hidden;
  border-radius: 36px;
}

@media (min-width: 441px) {
  .frame {
    height: 844px;
    max-height: 100dvh;
  }
}

@media (max-width: 440px) {
  body { align-items: flex-start; background: #0A0B0E; }
  .frame {
    max-width: 100%;
    border-radius: 0;
    padding-top: env(safe-area-inset-top, 0px);
  }
}

/* ─── SCREENS ─── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* ─── UNIVERSAL LIKE / HEART SVG STYLING ─── */
.like-btn {
  color: #8E929C;
}
.like-btn svg {
  fill: none;
  stroke: currentColor;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s ease, fill 0.15s ease;
}
.like-btn.is-liked {
  color: #FF4B72;
}
.like-btn.is-liked svg {
  fill: #FF4B72;
  stroke: #FF4B72;
}
.like-btn.pop svg {
  transform: scale(1.3);
}

/* ════════════════════════════════════════════════════════════════
   SCREEN 1 — HOME
   ════════════════════════════════════════════════════════════════ */

/* 1.1 TG HEADER */
.tg-header {
  flex-shrink: 0;
  height: 56px;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.btn-close-tg {
  font-size: 15px;
  font-weight: 500;
  color: #8E929C;
  white-space: nowrap;
}

.tg-title-block { text-align: center; }

.tg-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.tg-app-name {
  font-size: 16px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
}

.tg-verified {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.tg-subtitle {
  font-size: 11px;
  color: #8E929C;
  margin-top: 1px;
}

.btn-sound {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-size: 12px;
  font-weight: 600;
  color: #22C55E;
  white-space: nowrap;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.btn-sound.is-muted {
  opacity: 0.65;
  color: #8E929C;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-sound.is-muted .sound-wave {
  display: none;
}

/* SCROLLABLE AREA */
.home-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
}
.home-scroll::-webkit-scrollbar { display: none; }

/* 1.2 HERO ORB */
.hero-orb-container {
  height: 252px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-aura {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(255, 160, 40, 0.44) 0%,
    rgba(250, 85, 75, 0.34) 40%,
    rgba(225, 29, 72, 0.22) 64%,
    transparent 78%
  );
  filter: blur(52px);
  pointer-events: none;
  animation: auraBreathe 8s ease-in-out infinite;
  transition: transform 0.6s ease, filter 0.6s ease;
}

@keyframes auraBreathe {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50%       { transform: scale(1.08); opacity: 1; }
}

.orb-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 200, 110, 0.35);
  pointer-events: none;
  opacity: 0;
}
.hero-orb-container.is-playing .orb-pulse-1 {
  animation: rippleWave 3.2s ease-out infinite;
}
.hero-orb-container.is-playing .orb-pulse-2 {
  animation: rippleWave 3.2s ease-out infinite 1.6s;
}

@keyframes rippleWave {
  0% {
    width: 60px;
    height: 60px;
    opacity: 0.85;
    border-color: rgba(255, 215, 120, 0.7);
  }
  100% {
    width: 240px;
    height: 240px;
    opacity: 0;
    border-color: rgba(225, 29, 72, 0);
  }
}

.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: all 0.4s ease;
}

.orb-1 {
  width: 182px;
  height: 182px;
  background: radial-gradient(circle at 45% 35%, rgba(255, 175, 55, 0.24) 0%, rgba(244, 63, 94, 0.18) 65%, transparent 100%);
  border: 1.2px solid rgba(255, 195, 115, 0.45);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.20), inset 0 0 22px rgba(255, 140, 50, 0.12);
  animation: orbMorph1 20s ease-in-out infinite;
}

.orb-2 {
  width: 154px;
  height: 154px;
  background: radial-gradient(circle at 55% 40%, rgba(255, 190, 75, 0.26) 0%, rgba(225, 29, 72, 0.20) 75%, transparent 100%);
  border: 1.2px solid rgba(255, 195, 110, 0.40);
  box-shadow: inset 0 0 16px rgba(255, 170, 60, 0.14);
  animation: orbMorph2 16s ease-in-out infinite;
}

.orb-3 {
  width: 126px;
  height: 126px;
  background: radial-gradient(circle at 48% 45%, rgba(255, 205, 90, 0.28) 0%, rgba(225, 35, 75, 0.18) 80%, transparent 100%);
  border: 1.2px solid rgba(255, 215, 135, 0.36);
  box-shadow: inset 0 0 14px rgba(255, 195, 90, 0.16);
  animation: orbMorph1 12s ease-in-out infinite reverse;
}

.orb-4 {
  width: 98px;
  height: 98px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 215, 100, 0.34) 0%, rgba(235, 60, 85, 0.18) 100%);
  border: 1.2px solid rgba(255, 225, 150, 0.32);
  box-shadow: 0 0 32px rgba(255, 160, 30, 0.28), inset 0 0 12px rgba(255, 220, 120, 0.22);
  animation: orbMorph2 9s ease-in-out infinite;
}

@keyframes orbMorph1 {
  0%, 100% { border-radius: 43% 57% 51% 49% / 54% 41% 59% 46%; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  33% { border-radius: 56% 44% 62% 38% / 42% 58% 42% 58%; transform: translate(-50%, -50%) rotate(120deg) scale(1.03); }
  66% { border-radius: 48% 52% 43% 57% / 57% 45% 55% 43%; transform: translate(-50%, -50%) rotate(240deg) scale(0.98); }
}

@keyframes orbMorph2 {
  0%, 100% { border-radius: 56% 44% 48% 52% / 48% 52% 46% 54%; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  33% { border-radius: 44% 56% 58% 42% / 60% 40% 60% 40%; transform: translate(-50%, -50%) rotate(-120deg) scale(0.97); }
  66% { border-radius: 52% 48% 40% 60% / 45% 55% 45% 55%; transform: translate(-50%, -50%) rotate(-240deg) scale(1.02); }
}

.hero-orb-container.is-playing .orb-aura { animation: auraPulsePlay 2.4s ease-in-out infinite; }
.hero-orb-container.is-playing .orb-1 { animation-duration: 12s; }
.hero-orb-container.is-playing .orb-2 { animation-duration: 10s; }
.hero-orb-container.is-playing .orb-3 { animation-duration: 8s; }
.hero-orb-container.is-playing .orb-4 { animation-duration: 6s; }

@keyframes auraPulsePlay {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%       { transform: scale(1.12); opacity: 1; filter: blur(56px); }
}

.orb-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.orb-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #FFF;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 220, 180, 0.18) 45%, rgba(40, 24, 20, 0.35) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 160, 40, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.6), inset 0 -1px 2px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.orb-play-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.3) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

.orb-play-btn:active {
  transform: scale(0.93);
}

.orb-play-btn svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.orb-title {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7), 0 0 28px rgba(255, 150, 30, 0.4);
}

.orb-subtitle {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.1px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* 1.3 NOW PLAYING */
.now-playing-card {
  margin: 0 16px 14px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(20, 22, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.now-playing-card:active {
  opacity: 0.85;
  transform: scale(0.99);
}

.np-cover {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.np-info {
  margin-left: 12px;
  flex: 1;
  min-width: 0;
}

.np-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #22C55E;
  margin-bottom: 2px;
}
.np-label-mood { color: #8E929C; font-weight: 500; text-transform: none; }

.np-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-artist {
  font-size: 12px;
  color: #8E929C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
  color: #8E929C;
}

/* 1.4 MOOD PILLS */
.mood-pills-row {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mood-pills-row::-webkit-scrollbar { display: none; }

.mood-pill {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #FFF;
  background: #14151B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.mood-pill--active {
  background: #22C55E;
  color: #000;
  font-weight: 700;
  border-color: #22C55E;
}

/* 1.5 SOCIAL BANNER */
.social-banner {
  margin: 0 16px 20px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #171822;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.social-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #171822;
  flex-shrink: 0;
  position: relative;
}
.av1 {
  background: #332d42 url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=120&q=80') center/cover no-repeat;
  z-index: 2;
}
.av2 {
  background: #252e3b url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=120&q=80') center/cover no-repeat;
  margin-left: -10px;
  z-index: 1;
}

.online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #171822;
}

.social-info {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
}

.social-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
  white-space: nowrap;
}

.social-badge {
  font-size: 10px;
  font-weight: 700;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.social-sub {
  font-size: 11px;
  color: #8E929C;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-air {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: #FFF;
  flex-shrink: 0;
  margin-left: 10px;
  transition: background 0.15s;
}
.btn-air:active { background: rgba(255, 255, 255, 0.14); }

/* 1.6 CHART */
.chart-header {
  padding: 0 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.chart-title { font-size: 18px; font-weight: 800; color: #FFF; }
.chart-updated { font-size: 12px; color: #8E929C; }

.seg-control {
  margin: 0 16px 12px;
  padding: 4px;
  border-radius: 999px;
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.seg-tab {
  padding: 8px 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #8E929C;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.seg-tab--active {
  background: #262830;
  color: #FFF;
  font-weight: 600;
}

/* TRACK CARD */
.track-card {
  margin: 0 16px 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #14151B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}
.track-card:active {
  transform: scale(0.985);
  background: #191B22;
}

.track-pos {
  font-size: 14px;
  font-weight: 700;
  color: #22C55E;
  width: 22px;
  flex-shrink: 0;
}
.track-pos--secondary { color: #8E929C; }

.track-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
}

.track-info {
  margin-left: 12px;
  flex: 1;
  min-width: 0;
}

.track-name {
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist {
  font-size: 12px;
  color: #8E929C;
  margin: 2px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #6B707B;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: #8E929C;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 50%;
  color: inherit;
  transition: opacity 0.15s;
}
.icon-btn:active { opacity: 0.6; }

.offline-badge {
  font-size: 10px;
  font-weight: 600;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.play-btn-green {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #22C55E;
  color: #000;
  transition: transform 0.15s;
}
.play-btn-green:active { transform: scale(0.92); }

/* 1.7 MINI-PLAYER */
.mini-player {
  position: absolute;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  height: 62px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(22, 24, 30, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 20;
  cursor: pointer;
}

.mini-player__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 2px;
  background: linear-gradient(90deg, #38BDF8 0%, #C084FC 60%, #22C55E 100%);
  z-index: 2;
  transition: width 0.15s linear;
}

.mini-player__inner {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 100%;
}

.mini-cover-wrap {
  position: relative;
  flex-shrink: 0;
}

.mini-cover {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

/* EQUALIZER */
.equalizer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 9px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
}
.eq-bar {
  display: block;
  width: 3px;
  background: #22C55E;
  border-radius: 2px;
  animation: eqPulse 0.8s ease-in-out infinite;
}
.eq-bar:nth-child(1) { height: 14px; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 20px; animation-delay: 0.15s; }
.eq-bar:nth-child(3) { height: 10px; animation-delay: 0.3s; }

@keyframes eqPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.35); }
}

.mini-text {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
}
.mini-track {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-artist {
  font-size: 11px;
  color: #8E929C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.mini-offline { margin-right: 8px; }
.mini-heart { margin-right: 8px; }
.mini-play { width: 38px; height: 38px; flex-shrink: 0; }

/* 1.8 TAB BAR */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #0A0B0E;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 20;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: #8E929C;
  padding-bottom: 4px;
  transition: color 0.15s;
}
.tab-item .tab-heart-icon {
  fill: none;
  stroke: currentColor;
}
.tab-item--active {
  color: #22C55E;
}
.tab-item[data-tab="favorites"].tab-item--active {
  color: #FF4B72;
}
.tab-item[data-tab="favorites"].tab-item--active .tab-heart-icon {
  fill: #FF4B72;
  stroke: #FF4B72;
}

.tab-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tab-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22C55E;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.tab-item[data-tab="favorites"] .tab-badge {
  background: #FF4B72;
  color: #FFF;
}

/* ════════════════════════════════════════════════════════════════
   SCREEN 2 — FULLSCREEN PLAYER
   ════════════════════════════════════════════════════════════════ */
.screen-player {
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  background: #0A0B0E;
  z-index: 30;
}
.screen-player.is-open {
  transform: translateY(0);
}

/* MULTI-LAYER BG */
.player-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.player-bg__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity;
  pointer-events: none;
  overflow: hidden;
}
.player-bg__layer.is-active {
  opacity: 1;
}

.player-bg__blurred-img {
  position: absolute;
  inset: -35px;
  background-image: url('../assets/covers/724938871255187631.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: blur(20px);
  transform: scale(1.12);
  opacity: 0.9;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.lyrics-blur-strong .player-bg__blurred-img {
  filter: blur(38px);
  opacity: 0.75;
}

.player-bg__img {
  position: absolute;
  inset: 0;
  background-image: url('../assets/covers/724938871255187631.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.55;
  mix-blend-mode: luminosity;
  transition: opacity 0.4s ease;
}
.lyrics-blur-strong .player-bg__img {
  opacity: 0.15;
}

.player-bg__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 14, 0.90) 0%,
    rgba(10, 11, 14, 0.45) 28%,
    rgba(10, 11, 14, 0.30) 48%,
    rgba(10, 11, 14, 0.85) 75%,
    #0A0B0E 100%
  );
  z-index: 2;
  pointer-events: none;
}

.screen-player > *:not(.player-bg) { position: relative; z-index: 1; }

/* 2.2 PLAYER HEADER */
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 12px;
}

.player-round-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #FFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.player-round-btn:active {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(0.94);
}

.player-header-center { text-align: center; flex: 1; padding: 0 8px; }

.player-playing-from {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #8E929C;
}

.player-wave-label {
  font-size: 13px;
  font-weight: 700;
  color: #22C55E;
  margin-top: 2px;
}

/* 2.3 CENTER AREA & AUDIO-REACTIVE COVER */
.player-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  min-height: 0;
}

.player-cover-wrap {
  position: relative;
  width: 276px;
  height: 276px;
  max-width: calc(100% - 40px);
  max-height: 38vh;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75), 0 0 24px var(--track-accent-glow, rgba(255, 120, 40, 0.35));
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.player-cover-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 58%,
    rgba(0, 0, 0, 0.20) 100%
  );
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 4;
}

.player-cover-wrap.is-music-reactive.is-playing::after {
  opacity: 0.82;
}

.cover-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92) translateX(0) rotateY(0deg);
  transition:
    opacity 0.58s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.58s ease;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.cover-card.is-active {
  opacity: 1;
  transform: scale(1) translateX(0) rotateY(0deg);
  filter: blur(0px);
  pointer-events: auto;
  z-index: 2;
}

.cover-card.is-outgoing-next {
  opacity: 0;
  transform: scale(0.88) translateX(-36px) rotateY(-14deg);
  filter: blur(8px) brightness(0.85);
  z-index: 1;
}
.cover-card.is-incoming-next {
  opacity: 0;
  transform: scale(1.10) translateX(36px) rotateY(14deg);
  filter: blur(8px);
  z-index: 3;
  transition: none !important;
}
.cover-card.is-outgoing-prev {
  opacity: 0;
  transform: scale(0.88) translateX(36px) rotateY(14deg);
  filter: blur(8px) brightness(0.85);
  z-index: 1;
}
.cover-card.is-incoming-prev {
  opacity: 0;
  transform: scale(1.10) translateX(-36px) rotateY(-14deg);
  filter: blur(8px);
  z-index: 3;
  transition: none !important;
}

.player-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-sheen-sweep {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(255, 255, 255, 0.15) 44%,
    rgba(255, 255, 255, 0.45) 49%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.25) 53%,
    transparent 64%
  );
  transform: translateX(-150%) rotate(24deg);
  pointer-events: none;
  opacity: 0;
  z-index: 6;
}

.cover-sheen-sweep.is-sweeping {
  animation: lightSweep 0.68s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

@keyframes lightSweep {
  0%   { opacity: 0; transform: translateX(-140%) rotate(24deg); }
  25%  { opacity: 0.95; }
  100% { opacity: 0; transform: translateX(140%) rotate(24deg); }
}

.player-track-text {
  flex: 1;
  min-width: 0;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.player-track-text.is-slide-out-next,
.player-track-text.is-slide-in-prev {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
}
.player-track-text.is-slide-in-next,
.player-track-text.is-slide-out-prev {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
}

/* STATE B — LYRICS */
.player-lyrics-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  animation: fadeInLyrics 0.35s ease;
}
.player-lyrics-wrap.is-active { display: flex; }
.player-cover-wrap.is-hidden { display: none; }

@keyframes fadeInLyrics {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lyrics-badge {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}

.lyrics-lines {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 24px;
  width: 100%;
}

.lyrics-line {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.4;
  transition: all 0.25s ease;
  cursor: pointer;
}
.lyrics-line--active {
  font-size: 22px;
  font-weight: 800;
  color: #22C55E;
  line-height: 1.35;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}
.lyrics-line--mid { color: rgba(255, 255, 255, 0.55); }
.lyrics-line--fade { font-size: 16px; color: rgba(255, 255, 255, 0.35); }

/* 2.4 TRACK INFO + VENUES */
.player-track-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  margin-bottom: 16px;
  gap: 10px;
}

.player-track-name {
  font-size: 20px;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track-artist {
  font-size: 14px;
  font-weight: 500;
  color: #8E929C;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-venues {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: #FFF;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.12s;
}
.btn-venues:active {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(0.96);
}

/* 2.5 PROGRESS BAR */
.player-progress-wrap {
  padding: 0 22px;
  margin-bottom: 6px;
}

.progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}
.progress-track:hover { height: 6px; }

.progress-fill {
  height: 100%;
  width: 22%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38BDF8 0%, #22C55E 100%);
  position: relative;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 22%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 14px #22C55E, 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: grab;
  transition: transform 0.1s ease;
}
.progress-thumb:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.2);
}

.progress-times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.time-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #8E929C;
  font-variant-numeric: tabular-nums;
}

/* 2.6 CONTROLS */
.player-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px 20px;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  color: #FFFFFF;
  transition: opacity 0.15s, transform 0.1s, color 0.2s;
}
.ctrl-btn:active {
  opacity: 0.6;
  transform: scale(0.92);
}

.ctrl-btn--secondary {
  position: relative;
  color: #8E929C;
}
.ctrl-btn--secondary.is-active {
  color: #22C55E;
}

.ctrl-active-dot {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}
.ctrl-btn--secondary.is-active .ctrl-active-dot {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.play-btn-main {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #22C55E;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.45);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s;
}
.play-btn-main:active { transform: scale(0.92); }

/* 2.7 BOTTOM ACTION BAR */
.player-action-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 16px max(20px, calc(env(safe-area-inset-bottom, 0px) + 14px));
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: #8E929C;
  padding: 4px 0;
  transition: opacity 0.15s, transform 0.1s, color 0.15s;
}
.action-btn:active {
  opacity: 0.6;
  transform: scale(0.94);
}
.action-btn span { font-weight: 600; }
.action-btn.is-cached,
.action-btn.is-active {
  color: #22C55E;
}

/* TOAST NOTIFICATION */
.toast {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  background: rgba(22, 24, 30, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFF;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  white-space: nowrap;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════════════════════════════════
   SCREEN 3 & 5 — BOTTOM SHEETS
   ════════════════════════════════════════════════════════════════ */
.bs-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s ease;
}
.bs-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.bs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.bs-overlay.is-open .bs-backdrop { opacity: 1; }

.bs-container {
  position: relative;
  z-index: 1;
  background: #121318;
  border-radius: 28px 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 18px max(28px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  max-height: 85%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.bs-container::-webkit-scrollbar { display: none; }
.bs-overlay.is-open .bs-container { transform: translateY(0); }

.bs-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 14px;
}

.bs-track-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
}

.bs-cover {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.bs-track-info { flex: 1; min-width: 0; }
.bs-track-name {
  font-size: 15px;
  font-weight: 700;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-track-artist {
  font-size: 13px;
  color: #8E929C;
  margin-top: 2px;
}

.bs-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8E929C;
  transition: background 0.15s;
}
.bs-close-btn:active { background: rgba(255, 255, 255, 0.14); }

.bs-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.bs-action-card {
  background: #1A1C23;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: background 0.15s;
}
.bs-action-card:active { background: #1e2028; }

.bs-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bs-action-icon--green { background: rgba(34, 197, 94, 0.15); color: #22C55E; }
.bs-action-icon--blue  { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }

.bs-action-title { font-size: 13px; font-weight: 700; color: #FFF; }
.bs-action-sub   { font-size: 11px; color: #8E929C; margin-top: 2px; }

.bs-venues-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #8E929C;
  margin-bottom: 10px;
}

.bs-venues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bs-venue-card {
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  transition: opacity 0.15s;
}
.bs-venue-card:active { opacity: 0.75; }

.bs-venue-yandex     { background: rgba(250, 204, 21, 0.08); border: 1px solid rgba(250, 204, 21, 0.22); }
.bs-venue-spotify    { background: rgba(30, 215, 96, 0.08);  border: 1px solid rgba(30, 215, 96, 0.22); }
.bs-venue-apple      { background: rgba(250, 45, 72, 0.08);  border: 1px solid rgba(250, 45, 72, 0.22); }
.bs-venue-soundcloud { background: rgba(255, 85, 0, 0.08);   border: 1px solid rgba(255, 85, 0, 0.22); }

.bs-venue-icon-raw {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.bs-venue-text { flex: 1; margin: 0 10px; min-width: 0; }
.bs-venue-name { font-size: 14px; font-weight: 700; color: #FFF; }
.bs-venue-sub  { font-size: 12px; margin-top: 2px; }
.bs-venue-sub--ym { color: #EAB308; }
.bs-venue-sub--sp { color: #22C55E; }
.bs-venue-sub--am { color: #FB7185; }
.bs-venue-sub--sc { color: #FB923C; }

.bs-chevron { flex-shrink: 0; color: #8E929C; }

/* SETTINGS SHEET */
.bs-container--settings {
  max-height: 90%;
  padding-bottom: max(32px, calc(env(safe-area-inset-bottom, 0px) + 24px));
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.settings-sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  letter-spacing: -0.3px;
}

.settings-sheet-sub {
  font-size: 12px;
  color: #8E929C;
  margin-top: 2px;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 14px 16px;
}

.settings-block-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.settings-block-title { font-size: 14px; font-weight: 600; color: #FFF; }

.settings-badge-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.settings-vol-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-vol-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.settings-vol-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.12);
}

.settings-vol-slider-wrap {
  flex: 1;
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.settings-vol-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  position: relative;
}

.settings-vol-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #22C55E);
  border-radius: 99px;
  transition: width 0.05s ease-out;
}

.settings-vol-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 10px rgba(34, 197, 94, 0.55);
  transition: left 0.05s ease-out;
}

.settings-vol-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.settings-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 13px 15px;
}

.settings-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-icon--cyan   { background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.25); }
.settings-icon--purple { background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.25); }
.settings-icon--amber  { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.25); }
.settings-icon--green  { background: rgba(34, 197, 94, 0.12);  border: 1px solid rgba(34, 197, 94, 0.25); }

.settings-card-body { flex: 1; min-width: 0; }
.settings-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.settings-card-name { font-size: 14px; font-weight: 600; color: #FFF; }
.settings-card-desc { font-size: 11.5px; color: #8E929C; line-height: 1.35; }

.settings-hq-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* TMA SWITCH */
.tma-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 27px;
  flex-shrink: 0;
  cursor: pointer;
}
.tma-switch input { opacity: 0; width: 0; height: 0; }
.tma-switch-slider {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.tma-switch-slider::before {
  position: absolute;
  content: "";
  height: 21px;
  width: 21px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.tma-switch input:checked + .tma-switch-slider {
  background-color: #22C55E;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
}
.tma-switch input:checked + .tma-switch-slider::before {
  transform: translateX(19px);
}

/* ════════════════════════════════════════════════════════════════
   FAVORITES (РАЗДЕЛ «ИЗБРАННОЕ»)
   ════════════════════════════════════════════════════════════════ */
.favorites-scroll {
  padding-top: 16px;
  animation: favFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes favFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fav-hero-card {
  margin: 0 16px 20px;
  padding: 20px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 75, 114, 0.16) 0%, rgba(138, 58, 255, 0.12) 60%, rgba(20, 21, 27, 0.8) 100%);
  border: 1px solid rgba(255, 75, 114, 0.22);
  box-shadow: 0 12px 32px -8px rgba(255, 75, 114, 0.18);
}

.fav-hero-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.fav-hero-cover {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FF4B72, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 75, 114, 0.4);
  flex-shrink: 0;
}
.fav-hero-heart {
  fill: #FFF;
  stroke: #FFF;
}

.fav-hero-details { flex: 1; min-width: 0; }
.fav-hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #FF7597;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.fav-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 6px;
  line-height: 1.15;
}
.fav-hero-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8E929C;
  font-weight: 500;
}
.fav-dot { color: #6B707B; }

.fav-hero-actions { display: flex; gap: 10px; }

.fav-btn-play {
  flex: 1.2;
  height: 44px;
  border-radius: 22px;
  background: #22C55E;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.fav-btn-play:active { transform: scale(0.97); filter: brightness(0.92); }

.fav-btn-shuffle {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, background 0.15s ease;
}
.fav-btn-shuffle:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.14); }

.fav-section-header {
  margin: 0 20px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fav-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #6B707B;
  text-transform: uppercase;
}
.fav-section-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #8E929C;
}

.fav-tracks-container { display: flex; flex-direction: column; }

.fav-track-item {
  margin: 0 16px 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #14151B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.fav-track-item:active {
  transform: scale(0.985);
  background: #1A1C24;
}
.fav-track-item.is-playing {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, #14151B 100%);
}

.fav-track-pos {
  width: 22px;
  font-size: 14px;
  font-weight: 700;
  color: #8E929C;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.fav-track-item.is-playing .fav-track-pos { color: #22C55E; }

.playing-equalizer-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  width: 16px;
  height: 16px;
}
.playing-equalizer-bars span {
  width: 2.5px;
  background: #22C55E;
  border-radius: 2px;
  animation: eqBounce 0.75s ease-in-out infinite alternate;
}
.playing-equalizer-bars span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.playing-equalizer-bars span:nth-child(2) { height: 16px; animation-delay: 0.35s; }
.playing-equalizer-bars span:nth-child(3) { height: 8px; animation-delay: 0.2s; }

@keyframes eqBounce {
  0%   { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

.track-name--active { color: #22C55E !important; }

/* EMPTY STATE */
.fav-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.fav-empty-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 75, 114, 0.08);
  border: 1px dashed rgba(255, 75, 114, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.fav-empty-heart {
  fill: none;
  stroke: #FF4B72;
}
.fav-empty-title { font-size: 18px; font-weight: 700; color: #FFF; margin-bottom: 8px; }
.fav-empty-desc  { font-size: 13px; line-height: 1.5; color: #8E929C; max-width: 280px; margin-bottom: 24px; }
.fav-empty-btn {
  height: 42px;
  padding: 0 22px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.fav-empty-btn:active {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(0.97);
}

/* Внутренняя картинка получает собственную микро-физику */
.player-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}
.cover-card.is-active .player-cover-img {
  will-change: transform, filter;
  transition: transform 0.08s linear, filter 0.12s linear;
}

/* Ударная фантомная волна (Ghost Pulse) на мощных битах */
.player-cover-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--track-accent-glow, rgba(255, 130, 40, 0.7));
  opacity: calc(var(--shockwave-opacity, 0));
  transform: scale(var(--shockwave-scale, 1));
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: screen;
}

/* Живой голографический блик от 3D-наклона */
.player-cover-wrap::after {
  background: linear-gradient(
    calc(135deg + var(--sheen-angle, 0deg)),
    rgba(255, 255, 255, calc(0.18 + var(--highs-spark, 0) * 0.25)) 0%,
    rgba(255, 255, 255, 0.05) 35%,
    transparent 60%,
    rgba(0, 0, 0, 0.25) 100%
  );
}