/* Cherry Day v2 - Luxury & Comfort Music Stylesheet */
/* Clean, Airy, Eye-Soothing, Ergonomic UI (Pink #F84971, Rose #FFF0F3, Pure White, Soft Charcoal) */

.music-screen {
  background: var(--bg-app, #FAFAFC);
  color: var(--text-main, #181820);
  min-height: 100%;
  padding: 16px 16px 96px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-family, system-ui, -apple-system, sans-serif);
  animation: fadeIn 0.25s ease-out;
}

/* =========================================================================
   1. HEADER SECTION (Minimalist & Calming)
   ========================================================================= */
.music-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
}

.music-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-header-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--primary-soft, #FFF0F3);
  border: 1px solid var(--primary-soft-border, #FFE4E8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--primary, #F84971);
  box-shadow: 0 2px 8px rgba(248, 73, 113, 0.1);
}

.music-header-texts h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main, #181820);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.music-header-texts p {
  font-size: 11px;
  color: var(--text-secondary, #6B7280);
  margin: 2px 0 0 0;
}

.music-fav-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-soft, #FFF0F3);
  border: 1px solid var(--primary-soft-border, #FFE4E8);
  color: var(--primary, #F84971);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(248, 73, 113, 0.06);
}

/* =========================================================================
   2. MASTER SEGMENTED CONTROL TABS (Sleek iOS Style - No Clutter)
   ========================================================================= */
.music-master-tabs-bar {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 3px rgba(125, 110, 102, 0.05);
}

.music-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  white-space: nowrap;
}

.music-tab-btn:hover {
  color: var(--text-main);
}

.music-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(125, 110, 102, 0.1);
}

.tab-badge-pill {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 800;
}

.music-tab-btn.active .tab-badge-pill {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-soft-border);
}

/* =========================================================================
   3. UNIFIED CALM SEARCH BAR (Clean, Spacious, No Loud Red Buttons)
   ========================================================================= */
.music-search-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.music-search-bar {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2px 12px;
  box-shadow: 0 2px 8px rgba(125, 110, 102, 0.04);
  transition: all 0.25s ease;
  height: 46px;
}

.music-search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow-sm);
}

.music-search-icon {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.music-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.music-search-input::placeholder {
  color: var(--text-muted);
  font-size: 12.5px;
}

.btn-search-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-search-clear:hover {
  color: var(--text-main);
}

.search-live-indicator {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Quick Search Suggestions Pills */
.music-search-quick-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.music-search-quick-row::-webkit-scrollbar {
  display: none;
}

.search-quick-pill {
  white-space: nowrap;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(125, 110, 102, 0.04);
}

.search-quick-pill:hover,
.search-quick-pill.active {
  background: var(--primary-soft);
  border-color: var(--primary-soft-border);
  color: var(--primary);
}

/* =========================================================================
   4. REDESIGNED LUXURY AUDIO PLAYER CARD (Clean, Balanced & Ergonomic)
   ========================================================================= */
.audio-first-player-card {
  background: #FFFFFF;
  border: 1px solid var(--primary-soft-border);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: 0 8px 30px var(--primary-glow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s ease;
}

.audio-player-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-player-cover-box {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(125, 110, 102, 0.15);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.audio-player-meta {
  flex: 1;
  min-width: 0;
}

.audio-player-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-player-artist {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 3px 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-player-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.audio-status-pill.playing {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.audio-status-pill.ready {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-soft-border);
}

.audio-meta-pill {
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}

.btn-player-fav-heart {
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-border);
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}

.btn-player-fav-heart:hover {
  transform: scale(1.1);
}

/* Audio Seek Progress Bar */
.audio-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0;
  direction: ltr !important;
}

.audio-progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  direction: ltr !important;
}

.audio-progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.audio-progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(125, 110, 102, 0.2);
  pointer-events: none;
}

.audio-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  direction: ltr !important;
}

/* Audio Controls Row */
.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.controls-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-audio-ctrl {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-audio-ctrl:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-soft-border);
  transform: scale(1.05);
}

.btn-audio-play-main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  box-shadow: var(--primary-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-audio-play-main:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 26px rgba(201, 24, 74, 0.4);
}

.btn-toggle-video-view {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toggle-video-view:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft-border);
  color: var(--primary);
}

.btn-toggle-video-view.active {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
}

.audio-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 5px 8px;
  border-radius: 10px;
}

.volume-icon {
  font-size: 12px;
  color: var(--text-secondary);
}

.audio-volume-slider {
  width: 55px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Collapsible YouTube Video Box */
.audio-embedded-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 8px;
  animation: fadeIn 0.3s ease-out;
}

.theater-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-helper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #12131C;
  color: #FFFFFF;
  font-size: 11px;
}

.btn-open-yt-app {
  color: #F84971;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================================
   5. CATEGORY FILTER CHIPS
   ========================================================================= */
.catalog-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.catalog-section-header h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.catalog-count-pill {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 999px;
}

/* =========================================================================
   6. CLEAN HORIZONTAL SONG CARDS (Spotify/Apple Music Standard)
   ========================================================================= */
.music-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.music-track-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(125, 110, 102, 0.04);
  transition: all 0.22s ease;
}

.music-track-card:hover {
  border-color: var(--primary-soft-border);
  box-shadow: 0 4px 14px var(--primary-glow-sm);
}

.music-track-card.selected {
  border-color: var(--primary);
  background: #FFFAF9;
  box-shadow: 0 4px 16px var(--primary-glow-sm);
}

.track-card-thumb-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--text-main);
}

.track-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-thumb-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 24, 24, 0.35);
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-thumb-play-overlay:hover {
  background: rgba(201, 24, 74, 0.75);
}

.track-duration-pill {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(35, 24, 24, 0.72);
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.is-rtl .track-duration-pill {
  right: auto;
  left: 3px;
}

.track-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.track-title-text {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-card-listen-online {
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-border);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-card-listen-online:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-card-download-mp3 {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-card-download-mp3:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-soft-border);
}

.btn-card-heart {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s;
}

.btn-card-heart:hover {
  transform: scale(1.15);
}

/* =========================================================================
   7. DOWNLOADS & OFFLINE TAB STYLES (Refined)
   ========================================================================= */
.downloads-notice-card {
  background: var(--tri-banner-gradient);
  border: 1px solid var(--primary-soft-border);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.downloads-notice-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.downloads-notice-texts h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 2px 0;
}

.downloads-notice-texts p {
  font-size: 10.5px;
  color: var(--text-body);
  margin: 0;
  line-height: 1.4;
}

.offline-storage-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(125, 110, 102, 0.04);
}

.storage-banner-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.storage-banner-texts h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.storage-banner-texts p {
  font-size: 10px;
  color: var(--text-secondary);
  margin: 0;
}

.storage-metrics-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-body);
  display: flex;
  gap: 5px;
  align-items: center;
}

/* Empty State */
.music-empty-state {
  background: #FFFFFF;
  border: 1.5px dashed var(--border-subtle);
  border-radius: 20px;
  padding: 30px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-icon-wrap {
  font-size: 38px;
}

.music-empty-state h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.music-empty-state p {
  font-size: 11.5px;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.4;
  margin: 0;
}

.btn-switch-to-downloads {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  border: none;
  cursor: pointer;
  box-shadow: var(--primary-glow-sm);
}

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

@keyframes slideUpFs {
  from { transform: translateY(100%); opacity: 0.8; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes rotateDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================================================
   12. GLOBAL BOTTOM MINI-PLAYER (Across All Screens)
   ========================================================================= */
.has-mini-player #main-content {
  padding-bottom: 148px !important;
}

.global-mini-player {
  position: absolute;
  bottom: 74px;
  left: 12px;
  right: 12px;
  z-index: 120;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232, 221, 209, 0.95);
  border-radius: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(35, 24, 24, 0.12), 0 2px 8px rgba(201, 24, 74, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeIn 0.2s ease-out;
}

.global-mini-player:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(35, 24, 24, 0.16);
}

.mini-player-thumb-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.mini-player-thumb {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mini-player-thumb.rotating {
  animation: rotateDisc 14s linear infinite;
  border-radius: 50%;
}

.mini-live-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary, #C9184A);
  border: 2px solid #FAF6F0;
  box-shadow: 0 0 6px rgba(201, 24, 74, 0.6);
}

.mini-player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-player-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main, #231818);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.mini-player-artist {
  font-size: 11px;
  color: var(--text-secondary, #7D6E66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mini-player-btn {
  background: var(--bg-subtle, #F4ECE4);
  border: 1px solid var(--border-subtle, #E8DDD1);
  color: var(--text-main, #231818);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-player-btn:active {
  transform: scale(0.92);
}

.mini-player-btn-play {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient, linear-gradient(135deg, #D90429, #C9184A));
  color: #FFFFFF;
  border: none;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(201, 24, 74, 0.35);
}

.mini-player-btn-next {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

/* =========================================================================
   13. DEDICATED FULL-SCREEN NOW PLAYING PAGE (Dark Charcoal-Green & Peach)
   ========================================================================= */
.fullscreen-player-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: radial-gradient(circle at 50% 16%, #1E352E 0%, #13221E 60%, #0A1412 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  animation: slideUpFs 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-player-modal::-webkit-scrollbar {
  display: none;
}

.fs-player-inner-shell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 16px 20px 24px 20px;
  box-sizing: border-box;
  position: relative;
}

/* Top Bar */
.fs-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.btn-fs-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFE6A7;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fs-top:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.15);
}

.fs-top-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.fs-top-subtitle {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #A0AEC0;
  text-transform: uppercase;
}

.fs-top-source-badge {
  font-size: 11px;
  font-weight: 700;
  color: #FFE6A7;
  background: rgba(255, 230, 167, 0.12);
  padding: 2px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 230, 167, 0.2);
}

/* Center Stage Artwork */
.fs-center-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
  flex-shrink: 0;
}

.fs-artwork-container {
  position: relative;
  width: 250px;
  height: 250px;
}

.fs-artwork-aura {
  position: absolute;
  inset: -15px;
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  opacity: 0.35;
  border-radius: 40px;
  z-index: 1;
}

.fs-album-artwork {
  position: relative;
  z-index: 2;
  width: 250px;
  height: 250px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 230, 167, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.fs-album-artwork.playing-aura {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(244, 162, 97, 0.28);
}

.fs-video-stage-wrap {
  width: 100%;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fs-theater-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Track Metadata Row */
.fs-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  gap: 12px;
}

.fs-text-wrap {
  flex: 1;
  min-width: 0;
}

.fs-song-title {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.fs-artist-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #94A3B8;
  margin: 4px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-fs-fav-heart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-fs-fav-heart.active {
  background: rgba(201, 24, 74, 0.25);
  border-color: rgba(201, 24, 74, 0.5);
  box-shadow: 0 0 16px rgba(201, 24, 74, 0.4);
}

/* Interactive Progress Module */
.fs-progress-module {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 0;
  direction: ltr !important;
}

.fs-progress-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  cursor: pointer;
  touch-action: none;
  direction: ltr !important;
}

.fs-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #FFE6A7 0%, #F4A261 100%);
  border-radius: 9999px;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(244, 162, 97, 0.5);
}

.fs-progress-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFE6A7;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 230, 167, 0.8);
  pointer-events: none;
}

.fs-time-indicators {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: #A0AEC0;
  padding: 0 2px;
  direction: ltr !important;
}

/* Primary Playback Controls */
.fs-primary-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
}

.btn-fs-ctrl {
  background: transparent;
  border: none;
  color: #A0AEC0;
  font-size: 21px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-fs-ctrl:active {
  transform: scale(0.88);
}

.btn-fs-ctrl.active {
  color: #FFE6A7;
  text-shadow: 0 0 10px rgba(255, 230, 167, 0.6);
}

.btn-fs-skip {
  color: #FFFFFF;
  font-size: 26px;
}

.btn-fs-play-hero {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE6A7 0%, #F4A261 100%);
  color: #101B18;
  font-size: 24px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(244, 162, 97, 0.45);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-fs-play-hero:active {
  transform: scale(0.92);
  box-shadow: 0 4px 14px rgba(244, 162, 97, 0.3);
}

/* Bottom Auxiliary Actions */
.fs-bottom-aux-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-fs-aux {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-fs-aux.active {
  background: rgba(255, 230, 167, 0.15);
  border-color: rgba(255, 230, 167, 0.3);
  color: #FFE6A7;
}

.fs-queue-count-badge {
  background: #F4A261;
  color: #101B18;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 2px;
}

/* Drawers: Queue & Audio Settings */
.fs-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111D1A;
  border-top: 1px solid rgba(255, 230, 167, 0.2);
  border-radius: 24px 24px 0 0;
  padding: 18px 18px 24px 18px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  z-index: 50;
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70%;
}

.fs-drawer.open {
  transform: translateY(0);
}

.fs-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fs-drawer-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: #FFE6A7;
  margin: 0;
}

.fs-drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-drawer-clear {
  background: transparent;
  border: none;
  color: #A0AEC0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Queue List */
.fs-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  max-height: 280px;
}

.queue-track-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.queue-track-item.active {
  background: rgba(255, 230, 167, 0.12);
  border: 1px solid rgba(255, 230, 167, 0.25);
}

.queue-num {
  font-size: 11px;
  font-weight: 700;
  color: #A0AEC0;
  width: 16px;
  text-align: center;
}

.queue-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.queue-texts {
  flex: 1;
  min-width: 0;
}

.queue-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-artist {
  font-size: 10.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-queue-remove {
  background: transparent;
  border: none;
  color: #718096;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

.queue-empty-msg {
  text-align: center;
  padding: 24px 0;
  color: #A0AEC0;
  font-size: 12px;
}

/* Settings Drawer */
.fs-settings-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fs-setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #E2E8F0;
}

.fs-slider-input {
  width: 100%;
  accent-color: #F4A261;
}

.fs-speed-chips-row {
  display: flex;
  gap: 6px;
}

.speed-chip {
  flex: 1;
  padding: 7px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.speed-chip.active {
  background: #FFE6A7;
  color: #101B18;
  border-color: #FFE6A7;
}

/* 3-Dot Action Sheet */
.fs-action-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.fs-action-sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.fs-action-sheet-body {
  background: #152420;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fs-action-sheet-overlay.open .fs-action-sheet-body {
  transform: translateY(0);
}

.fs-action-sheet-track-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fs-action-sheet-track-preview img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.sheet-preview-texts h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.sheet-preview-texts p {
  font-size: 11px;
  color: #94A3B8;
  margin: 3px 0 0 0;
}

.fs-action-sheet-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-sheet-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.fs-sheet-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sheet-btn-cancel {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.08);
  justify-content: center;
}

/* =========================================================================
   14. PLAYLIST PICKER MODAL
   ========================================================================= */
.music-context-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.music-picker-card {
  width: 100%;
  max-width: 360px;
  background: #FAF6F0;
  border: 1px solid #E8DDD1;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.picker-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #231818;
  margin: 0;
}

.btn-picker-close {
  background: #F4ECE4;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: #7D6E66;
}

.picker-target-song {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFF0F3;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #FBC4D0;
}

.picker-target-song img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.picker-target-song strong {
  display: block;
  font-size: 12px;
  color: #231818;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-target-song p {
  font-size: 10px;
  color: #7D6E66;
  margin: 2px 0 0 0;
}

.picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.picker-playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid #E8DDD1;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease;
}

.picker-playlist-item:hover {
  border-color: #C9184A;
}

.picker-playlist-item img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.pl-item-info {
  flex: 1;
  min-width: 0;
}

.pl-item-info strong {
  display: block;
  font-size: 12.5px;
  color: #231818;
}

.pl-item-info span {
  font-size: 10.5px;
  color: #7D6E66;
}

.pl-add-icon {
  font-size: 16px;
  color: #C9184A;
  font-weight: 700;
}

.picker-new-row {
  display: flex;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid #E8DDD1;
}

.picker-new-row input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #E8DDD1;
  background: #FFFFFF;
  font-size: 12px;
  outline: none;
}

.picker-new-row button {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================================
   15. PLAYLISTS & FAVORITES TABS IN MUSIC SCREEN
   ========================================================================= */
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.playlist-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.playlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.playlist-card-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.playlist-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-play-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(201, 24, 74, 0.4);
}

.playlist-card-body {
  padding: 10px 12px;
}

.playlist-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-card-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin: 0;
}

/* Local Import Banner */
.local-import-card {
  background: linear-gradient(135deg, #FFF0F3 0%, #FAF5EE 100%);
  border: 1.5px dashed var(--primary-soft-border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.import-texts h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 3px 0;
}

.import-texts p {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0;
}

.btn-trigger-file-import {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--primary-glow-sm);
  white-space: nowrap;
}

/* Load More Pagination Button */
.btn-catalog-load-more {
  width: 100%;
  padding: 11px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  transition: all 0.15s ease;
}

.btn-catalog-load-more:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft-border);
}

/* Recent Searches Row */
.music-recent-searches-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.music-recent-searches-row::-webkit-scrollbar {
  display: none;
}

.recent-searches-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.recent-search-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.recent-search-pill:hover {
  border-color: var(--primary-soft-border);
  color: var(--primary);
}

/* Comprehensive Category Scroll Row */
.music-categories-scroll-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 2px;
}

.music-categories-scroll-row::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.cat-chip:hover {
  border-color: var(--primary-soft-border);
  color: var(--primary);
}

.cat-chip.active {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(201, 24, 74, 0.28);
}

/* Expand & Fullscreen Indicators on Player Card */
.tap-expand-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #FFFFFF;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-fullscreen-pill {
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-border);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
}

/* Favorites & Playlists View Headers */
.section-subtext {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 3px 0 0 0;
}

.btn-play-all-favs, .btn-new-playlist {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  padding: 7px 13px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--primary-glow-sm);
  white-space: nowrap;
}

.track-source-badges {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

.source-tag-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.tag-online {
  background: #EBF8FF;
  color: #3182CE;
  border: 1px solid #BEE3F8;
}

.tag-offline {
  background: #F0FFF4;
  color: #2F855A;
  border: 1px solid #C6F6D5;
}


