/* SOCI STUDIOS - MODERN GLASSMORPHIC DARK DESIGN SYSTEM */

:root {
  --bg-dark: #070A12;
  --bg-card: rgba(18, 26, 43, 0.65);
  --bg-card-hover: rgba(30, 43, 70, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(43, 114, 159, 0.4);

  --primary-steel: #2B729F;
  --primary-glow: #3B93CA;
  --accent-cyan: #00D2FF;
  --accent-neon: #00F0FF;
  
  --text-main: #F0F4F8;
  --text-muted: #8E9BAE;
  --text-dim: #5C697D;

  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles - Site-wide Non-selectable Text System */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Allow text selection ONLY in input fields and textareas for typing */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Remove Selection Highlight Background (no blue box when dragging/highlighting) */
::selection {
  background: transparent !important;
  color: inherit !important;
}

::-moz-selection {
  background: transparent !important;
  color: inherit !important;
}

/* Allow text selection and visible highlight EXCLUSIVELY in the Studio Writing lyrics panel */
.single-lyrics-panel,
.single-lyrics-panel textarea,
.single-lyrics-textarea,
#singleLyricsTextarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

.single-lyrics-panel ::selection,
.single-lyrics-panel textarea::selection,
.single-lyrics-textarea::selection,
#singleLyricsTextarea::selection {
  background: rgba(16, 185, 129, 0.45) !important;
  color: #FFFFFF !important;
}

.single-lyrics-panel ::-moz-selection,
.single-lyrics-panel textarea::-moz-selection,
.single-lyrics-textarea::-moz-selection,
#singleLyricsTextarea::-moz-selection {
  background: rgba(16, 185, 129, 0.45) !important;
  color: #FFFFFF !important;
}

html, body {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows & Grid */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.5;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(43, 114, 159, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  left: -100px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -150px;
  right: -150px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 210, 255, 0.5));
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-img {
  transform: scale(1.05) rotate(3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
}

.brand-sub.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--text-heading);
}

/* Soci Last Access Section in Gila Admin Analytics Modal */
.soci-access-section {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.soci-access-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.soci-access-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.soci-sort-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.2rem 0.3rem;
}

.soci-sort-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0.35rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-soci-sort {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-soci-sort:hover {
  color: #FFFFFF;
}

.btn-soci-sort.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  color: #00F0FF;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.soci-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.8rem;
}

.socio-access-card {
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.socio-access-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.socio-access-card.is-online {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.12);
}

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

.socio-access-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.socio-access-avatar-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.socio-access-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.socio-access-role {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  text-transform: uppercase;
}

.socio-access-role.admin {
  background: rgba(0, 242, 254, 0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.socio-access-time {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.socio-access-box-stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  padding: 0.45rem 0.6rem;
  margin-top: 0.1rem;
}

.socio-box-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
}

.socio-box-stat-label {
  color: var(--text-muted);
  font-weight: 500;
}

.socio-box-stat-val {
  color: #00F0FF;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.socio-box-stat-song {
  color: #FFFFFF;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  text-align: right;
}

.socio-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748B;
  display: inline-block;
}

.socio-status-dot.online {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

/* USER TRACKS MODAL BREAKDOWN */
.user-tracks-header {
  padding-bottom: 1.1rem;
}

.user-tracks-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.user-tracks-title-group h2 {
  font-size: 1.25rem;
  font-family: var(--font-title);
  color: #FFFFFF;
  margin: 0;
}

.user-tracks-title-group p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0 0;
}

.user-tracks-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.user-tracks-hero-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-tracks-hero-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.4);
  flex-shrink: 0;
}

.user-tracks-hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-tracks-hero-names {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.user-tracks-hero-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-tracks-hero-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.user-tracks-hero-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.user-tracks-hero-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.user-tracks-hero-stat-card {
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.user-tracks-hero-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-tracks-hero-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #00F0FF;
}

.user-tracks-hero-stat-value-track {
  font-size: 0.88rem;
  font-weight: 700;
  color: #F0F4F8;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-tracks-table-container {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.user-tracks-table-head {
  display: grid;
  grid-template-columns: 44px 1fr 140px 180px 50px;
  align-items: center;
  padding: 0.65rem 1rem;
  background: rgba(7, 10, 18, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-tracks-list-feed {
  display: flex;
  flex-direction: column;
}

.user-track-row {
  display: grid;
  grid-template-columns: 44px 1fr 140px 180px 50px;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.user-track-row:last-child {
  border-bottom: none;
}

.user-track-row:hover {
  background: rgba(139, 92, 246, 0.08);
}

.user-track-row.no-plays {
  opacity: 0.55;
}

.user-track-row.no-plays:hover {
  opacity: 0.85;
}

.user-track-cell-rank {
  display: flex;
  align-items: center;
}

.user-track-rank-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
}

.user-track-rank-badge.rank-1 {
  color: #F59E0B;
}

.user-track-rank-badge.rank-2 {
  color: #94A3B8;
}

.user-track-rank-badge.rank-3 {
  color: #D97706;
}

.user-track-cell-song {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.user-track-cover {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-track-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.user-track-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-track-artist {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-track-cell-plays {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.user-track-plays-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.user-track-plays-number.active {
  color: #00F0FF;
}

.user-track-plays-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.user-track-cell-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-right: 0.5rem;
}

.user-track-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.user-track-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B5CF6, #00F0FF);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.user-track-percent-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.user-track-cell-action {
  display: flex;
  justify-content: flex-end;
}

.user-track-play-btn {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.user-track-play-btn:hover {
  background: #8B5CF6;
  transform: scale(1.1);
}

/* User Listens Row and Access Card Clickable styles */
.user-listens-row {
  cursor: pointer;
}

.socio-access-card {
  cursor: pointer;
}

.app-version-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00F0FF;
  background: rgba(0, 240, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: inline-block;
  margin-top: 2px;
  width: fit-content;
}

.version-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: #00F0FF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
  margin-left: auto;
}

/* Header Badges & Actions */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status-wip {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-vault {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.header-user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

/* User Profile Dropdown Submenu */
.user-profile-menu-container {
  position: relative;
  display: inline-block;
}

.user-profile-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-profile-btn:hover,
.user-profile-btn.active {
  background: rgba(43, 114, 159, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
  color: #FFFFFF;
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-steel), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070A12;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-profile-name {
  font-weight: 700;
}

.chevron-down-icon {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.user-profile-btn.active .chevron-down-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2000;
  min-width: 210px;
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.dropdown-user-role {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dropdown-username {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.1rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 0.3rem 0;
}

.dropdown-item {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
}

.dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

/* Mini Switch Toggle for Gila Admin Mode */
.dropdown-item-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
}

.dropdown-item-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.switch-mini {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
}

.switch-mini input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-mini {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: .25s ease;
  border-radius: 20px;
}

.slider-mini:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
}

.switch-mini input:checked + .slider-mini {
  background-color: rgba(0, 240, 255, 0.35);
  border-color: #00f2fe;
}

.switch-mini input:checked + .slider-mini:before {
  transform: translateX(16px);
  background-color: #00f2fe;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.9);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-steel) 0%, #1D5377 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(43, 114, 159, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--primary-steel) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 114, 159, 0.5);
}

.btn-accent {
  background: linear-gradient(135deg, #00A6D6 0%, var(--accent-cyan) 100%);
  color: #070A12;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
}

.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 210, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-glass);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-steel);
}

.btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-large {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.glow-btn {
  position: relative;
  overflow: hidden;
}

.glow-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(30deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.glow-btn:hover::after {
  transform: rotate(30deg) translate(100%, 100%);
}

/* Views Management */
.main-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem 8rem 1.5rem;
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
  display: block;
}

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

/* 1. HERO & WORK IN PROGRESS SECTION */
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  max-width: 850px;
  margin: 0 auto;
}

.hero-logo-badge {
  position: relative;
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 0 35px rgba(0, 210, 255, 0.65));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.wip-banner-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.wip-banner-main .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #FBBF24;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #FFFFFF 20%, #A0CBE8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.35rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 3rem;
}

.hero-description strong {
  color: var(--text-main);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-action-box {
  background: rgba(18, 26, 43, 0.8);
  border: 1px solid var(--border-glow);
  padding: 2rem;
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-top: 2.5rem;
}

.access-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.lock-icon {
  font-size: 1.2rem;
}

/* 2. PRIVATE VAULT & MUSIC PLAYER SECTION */
.vault-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.welcome-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.welcome-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  flex: 1;
  min-width: 260px;
}

.search-input-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
}

.btn-studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.95rem;
  border-radius: var(--radius-md, 10px);
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.42);
  color: #34D399;
  font-family: var(--font-body, inherit);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
  margin-left: auto;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-studio * {
  pointer-events: none;
}

.btn-studio:hover {
  background: rgba(34, 197, 94, 0.32);
  border-color: #4ADE80;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.btn-studio:active {
  transform: translateY(1px) scale(0.98);
}

.btn-studio.hidden {
  display: none !important;
}

.btn-toggle-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md, 10px);
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22D3EE;
  font-family: var(--font-body, inherit);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  margin-left: auto;
  flex-shrink: 0;
}

.btn-toggle-view:hover {
  background: rgba(6, 182, 212, 0.28);
  border-color: #67E8F9;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.45);
  transform: translateY(-1px);
}

.btn-toggle-view:active {
  transform: translateY(1px) scale(0.98);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.pill-btn.active {
  background: rgba(43, 114, 159, 0.25);
  color: var(--accent-cyan);
  border-color: var(--primary-steel);
}

/* Track Cards Grid */
.tracks-section {
  margin-bottom: 2rem;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-title-wrapper h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

/* First Login Password Banner */
.first-login-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.4s ease;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #FBBF24;
}

.banner-icon {
  font-size: 1.2rem;
}

/* Simplified Track Card Design (Cover, Title, Duration only) */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.track-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  background: var(--bg-card-hover);
}

.track-card.playing {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.3);
}

.track-cover-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #0A0F1D;
  margin-bottom: 0.85rem;
}

.track-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.track-card:hover .track-cover-image {
  transform: scale(1.05);
}

.track-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  cursor: pointer;
}

.track-card:hover .track-play-overlay {
  opacity: 1;
}

.play-overlay-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #070A12;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
  transition: transform var(--transition-fast);
}

.track-play-overlay:hover .play-overlay-icon {
  transform: scale(1.1);
}

.card-delete-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-delete-badge:hover {
  background: #EF4444;
  color: #FFF;
  transform: scale(1.1);
}

.card-edit-badge {
  position: absolute;
  top: 8px;
  right: 42px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-edit-badge:hover {
  background: #0284C7;
  color: #FFF;
  transform: scale(1.1);
}

.track-simple-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.track-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.track-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  min-height: 1.15rem;
  display: block;
}

.track-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-top: 0.35rem;
  width: 100%;
}

.track-duration {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.remix-placeholder {
  width: 28px;
  height: 28px;
}

.track-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.track-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.format-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-top: 0.3rem;
  width: fit-content;
}

.format-flac {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.format-wav {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.format-mp3 {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.track-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.uploader-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-icon-delete {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.btn-icon-delete:hover {
  color: var(--danger);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-glass);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 3. MODALS SYSTEM */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999 !important;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  animation: modalOverlayFadeIn 0.35s ease forwards;
}

.modal-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal-overlay.closing {
  animation: modalOverlayFadeOut 0.35s ease forwards !important;
  pointer-events: none !important;
}

.modal-card,
.lyrics-modal-card {
  background: #0F172A;
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 88dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  animation: modalSlideUpToCenter 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.5);
  border-radius: 4px;
}
.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.8);
}

.modal-overlay.closing .modal-card,
.modal-overlay.closing .lyrics-modal-card {
  animation: modalSlideDownFromCenter 0.35s cubic-bezier(0.7, 0, 0.84, 0) forwards !important;
}

@keyframes modalOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalOverlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modalSlideUpToCenter {
  0% {
    transform: translateY(100vh) scale(0.92);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes modalSlideDownFromCenter {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) scale(0.92);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-card {
    border-radius: 20px !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    margin: auto !important;
    width: 96vw !important;
    max-width: 520px !important;
    padding: 1.5rem 1.15rem !important;
  }

  .modal-card-large {
    max-width: 640px !important;
  }

  .modal-card-xlarge,
  .admin-users-modal-card {
    max-width: 96vw !important;
  }

  #lyricsModal .lyrics-modal-card {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: calc(1.2rem + env(safe-area-inset-top, 28px)) 1rem 2rem 0.85rem !important;
  }

  #btnCloseLyricsModal {
    top: calc(1.1rem + env(safe-area-inset-top, 18px)) !important;
    right: 1.25rem !important;
    width: 42px !important;
    height: 42px !important;
  }

  .lyrics-modal-header {
    padding-right: 3.2rem;
    gap: 0.85rem;
  }

  .lyrics-track-cover {
    width: 46px;
    height: 46px;
  }

  .lyrics-track-meta h3 {
    font-size: 1.15rem;
  }

  .lyrics-scroll-box {
    padding: 140px 0.5rem 190px 0.15rem;
    gap: 1.2rem;
  }

  .lyric-line,
  .lyric-line.future,
  .lyric-line.past,
  .lyric-line.active {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
    padding: 0.45rem 0.6rem !important;
    display: inline-block !important;
    width: fit-content !important;
    max-width: calc(100% / var(--lyrics-active-scale, 1.20) - 16px) !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}

.modal-card-large {
  max-width: 580px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-fast);
  z-index: 30;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close:hover,
.modal-close:active {
  background: rgba(239, 68, 68, 0.25);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.08);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 0 18px rgba(0, 210, 255, 0.5));
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab.active {
  background: var(--primary-steel);
  color: #FFFFFF;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group select {
  background: rgba(7, 10, 18, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 550px) {
  .form-row { grid-template-columns: 1fr; }
}

.demo-credentials-box {
  background: rgba(43, 114, 159, 0.12);
  border: 1px solid var(--border-glow);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.demo-title {
  font-weight: 700;
  color: var(--accent-cyan);
}

.demo-credentials-box code {
  color: var(--text-main);
  font-family: monospace;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* File Dropzone */
.file-dropzone {
  background: rgba(7, 10, 18, 0.6);
  border: 2px dashed var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.05);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 0.9rem;
  color: var(--text-main);
  display: block;
}

.dropzone-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}

/* 4. FLOATING AUDIO PLAYER BAR */
.mobile-player-header {
  display: none;
}

.audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100005 !important;
  background: var(--player-bg, rgba(9, 13, 22, 0.45));
  backdrop-filter: blur(24px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.75) !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, background 0.5s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ==========================================================================
   VIDEO ACTIVE THEME FOR AUDIO PLAYER BAR (TRANSLUCENT GLASS)
   ========================================================================== */
.audio-player-bar.video-theme-active {
  z-index: 1000000 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  background: var(--player-palette-bg, linear-gradient(180deg, rgba(7, 10, 18, 0.90) 0%, rgba(9, 13, 22, 0.98) 100%)) !important;
  backdrop-filter: blur(28px) brightness(0.9) !important;
  -webkit-backdrop-filter: blur(28px) brightness(0.9) !important;
  border-top: 2px solid var(--player-border, rgba(139, 92, 246, 0.65)) !important;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.85), 0 -2px 25px var(--player-glow, rgba(139, 92, 246, 0.4)) !important;
}

.audio-player-bar.autohide-active,
.audio-player-bar.video-theme-active.autohide-active {
  transform: translateY(115%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.audio-player-bar,
.audio-player-bar .player-track-title,
.audio-player-bar .player-track-artist,
.audio-player-bar .track-cover-wrapper,
.audio-player-bar .progress-bar-container,
.audio-player-bar .progress-bar-fill,
.audio-player-bar .progress-bar-fill::after,
.audio-player-bar .time-label,
.audio-player-bar .play-main-btn,
.audio-player-bar .ctrl-btn,
.audio-player-bar .btn-player-action-pill,
.audio-player-bar .visualizer-wrapper,
.audio-player-bar .volume-slider::-webkit-slider-thumb {
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease !important;
}

.audio-player-bar.video-theme-active .player-track-title,
.audio-player-bar .player-track-title {
  color: #FFFFFF !important;
}

.audio-player-bar.video-theme-active .player-track-artist {
  color: var(--player-accent, #FFFFFF) !important;
}

.audio-player-bar.video-theme-active .track-cover-wrapper {
  border-color: var(--player-border, rgba(255, 255, 255, 0.3)) !important;
  box-shadow: 0 0 16px var(--player-glow, rgba(255, 255, 255, 0.2)) !important;
}

.audio-player-bar.video-theme-active .progress-bar-container {
  background: rgba(255, 255, 255, 0.15) !important;
}

.audio-player-bar.video-theme-active .progress-bar-fill {
  background: linear-gradient(90deg, var(--player-accent, #FFFFFF) 0%, var(--player-glow, rgba(255, 255, 255, 0.7)) 100%) !important;
  box-shadow: 0 0 14px var(--player-glow, rgba(255, 255, 255, 0.5)) !important;
}

.audio-player-bar.video-theme-active .progress-bar-fill::after {
  background: #FFFFFF !important;
  border: 2px solid var(--player-accent, #FFFFFF) !important;
  box-shadow: 0 0 12px var(--player-glow, rgba(255, 255, 255, 0.8)) !important;
}

.audio-player-bar.video-theme-active .time-label {
  color: rgba(255, 255, 255, 0.7) !important;
}

.audio-player-bar.video-theme-active .play-main-btn {
  background: linear-gradient(135deg, var(--player-accent, #555555) 0%, var(--player-glow, #888888) 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--player-border, rgba(255, 255, 255, 0.4)) !important;
  box-shadow: 0 0 20px var(--player-glow, rgba(255, 255, 255, 0.3)) !important;
}

.audio-player-bar.video-theme-active .play-main-btn.is-playing,
.audio-player-bar.video-theme-active .play-main-btn:has(#playIcon.hidden) {
  background: linear-gradient(135deg, var(--player-accent, #FFFFFF) 0%, var(--player-glow, #EEEEEE) 100%) !important;
  color: #070A12 !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 25px var(--player-glow, rgba(255, 255, 255, 0.6)) !important;
}

.audio-player-bar.video-theme-active .ctrl-btn:hover,
.audio-player-bar.video-theme-active .ctrl-btn.active {
  color: var(--player-accent, #FFFFFF) !important;
  background: var(--player-bg-pill, rgba(255, 255, 255, 0.18)) !important;
  border-color: var(--player-border, rgba(255, 255, 255, 0.35)) !important;
}

.audio-player-bar.video-theme-active .btn-player-action-pill {
  background: var(--player-bg-pill, rgba(255, 255, 255, 0.12)) !important;
  border-color: var(--player-border, rgba(255, 255, 255, 0.25)) !important;
  color: #FFFFFF !important;
}

.audio-player-bar.video-theme-active .btn-player-action-pill:hover {
  background: var(--player-bg-hover, rgba(255, 255, 255, 0.28)) !important;
  border-color: var(--player-border, rgba(255, 255, 255, 0.5)) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px var(--player-glow, rgba(255, 255, 255, 0.35)) !important;
}

.audio-player-bar.video-theme-active .visualizer-wrapper {
  background: rgba(10, 10, 14, 0.6) !important;
  border-color: var(--player-border, rgba(255, 255, 255, 0.3)) !important;
  box-shadow: 0 0 14px var(--player-glow, rgba(255, 255, 255, 0.2)) !important;
}

.audio-player-bar.video-theme-active .volume-slider::-webkit-slider-thumb {
  background: var(--player-accent, #FFFFFF) !important;
  box-shadow: 0 0 10px var(--player-glow, rgba(255, 255, 255, 0.7)) !important;
}

.audio-player-bar.hidden {
  display: none !important;
}

.player-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  grid-template-areas: 
    "info controls tools"
    "info seekbar tools";
  align-items: center;
  gap: 0.35rem 1.5rem;
  width: 100%;
}

/* Player Track Info & Marquee */
.player-track-info {
  grid-area: info;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 320px;
  overflow: hidden;
}

.track-cover-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #0A0F1D;
  border: 1px solid var(--border-glass);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.track-cover-wrapper:hover {
  transform: none;
}

.player-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.track-cover-wrapper:hover .player-cover-img {
  transform: scale(1.15);
}

.track-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.player-track-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.player-track-title.marquee-active {
  animation: marqueeScroll 12s linear infinite;
  display: inline-block;
  padding-right: 2rem;
  overflow: visible;
  text-overflow: clip;
}

.player-track-title.marquee-active:hover {
  animation-play-state: paused;
}

.player-track-artist {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Control Buttons (Desktop Center Top) */
.control-buttons {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.ctrl-btn.active {
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.play-main-btn {
  background: linear-gradient(135deg, #00D2FF 0%, #00F0FF 100%) !important;
  color: #070A12 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.8), 0 0 12px rgba(0, 240, 255, 0.5) !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* PLAYING STATE */
body:not(.lyrics-modal-open) .audio-player-bar:not(.lyrics-active):not(.video-theme-active) .play-main-btn.is-playing,
body:not(.lyrics-modal-open) .audio-player-bar:not(.lyrics-active):not(.video-theme-active) .play-main-btn:has(#playIcon.hidden) {
  background: linear-gradient(135deg, #00D2FF 0%, #00F0FF 100%) !important;
  color: #070A12 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.8), 0 0 12px rgba(0, 240, 255, 0.5) !important;
}

.play-main-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* Seekbar Timeline (Desktop Center Bottom) */
.seekbar-wrapper {
  grid-area: seekbar;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.time-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  min-width: 36px;
  font-family: monospace;
  text-align: center;
}

.progress-bar-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: visible;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.progress-bar-container::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  right: 0;
  z-index: 10;
}

.progress-bar-container:hover {
  background: rgba(255, 255, 255, 0.24);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00F0FF 0%, #0088FF 100%);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
  border-radius: var(--radius-full);
  position: relative;
  pointer-events: none;
  will-change: width;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border: 2px solid #00F0FF;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.9);
  pointer-events: none;
  transition: transform 0.15s ease;
}

.progress-bar-container:hover .progress-bar-fill::after {
  transform: translateY(-50%) scale(1.2);
}

/* Right Tools (Canvas Visualizer & Volume) */
.player-right-tools {
  grid-area: tools;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  width: auto;
  justify-content: flex-end;
  flex-shrink: 0;
}


.visualizer-wrapper {
  width: 100px;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(5, 10, 20, 0.75);
  border: 1px solid var(--border-glow);
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
}

#audioCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

/* Mobile & Tablet Comprehensive Responsiveness */

@media (max-width: 900px) {
  .hero-title { font-size: 2.75rem; }
  .player-track-info { width: 200px; max-width: 200px; }
}

@media (max-width: 768px) {
  .app-header {
    padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
  }

  .header-container {
    padding: 0.65rem 1rem;
  }

  .logo-img {
    width: 52px;
    height: 52px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .main-content {
    padding: max(1.75rem, calc(env(safe-area-inset-top, 0px) + 0.5rem)) 1rem 9rem 1rem;
  }

  .hero-container {
    padding: 1.5rem 0.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .wip-banner-main {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    letter-spacing: 0.1em;
  }

  .hero-action-box {
    padding: 1.25rem;
    margin-top: 1.75rem;
  }

  .btn-large {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .track-play-overlay {
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.25);
  }

  .track-card.playing .track-play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
  }

  .controls-bar {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .search-input-wrapper {
    min-width: 100%;
  }

  /* Mobile Audio Player Bar & Expandable Screen */
  .mobile-player-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
  }

  .mobile-player-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 64px);
    height: 1px;
    background: var(--border-glass);
  }

  .btn-minimize-player-tr {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 210, 255, 0.2);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    z-index: 9999;
  }

  .btn-minimize-player-tr:hover,
  .btn-minimize-player-tr:active {
    background: var(--accent-cyan);
    color: #070A12;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.8);
  }

  .mobile-header-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
  }

  /* Compact Mini Player Bar (Timeline 100% on TOP) */
  .audio-player-bar {
    padding: 0.5rem 0.85rem 0.65rem 0.85rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .player-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: 
      "seekbar seekbar seekbar"
      "info controls actions";
    gap: 0.45rem 0.5rem;
    align-items: center;
    width: 100%;
  }

  .seekbar-wrapper {
    grid-area: seekbar;
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .time-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-main);
  }

  .player-track-info {
    grid-area: info;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .track-cover-wrapper {
    width: 40px;
    height: 40px;
  }

  .control-buttons {
    grid-area: controls;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 auto;
  }

  #btnShuffle, #btnLoop {
    display: none;
  }

  .ctrl-btn {
    width: 34px;
    height: 34px;
  }

  .play-main-btn {
    width: 38px;
    height: 38px;
  }

  .player-right-tools {
    display: none !important;
  }

  .desktop-player-actions {
    display: none !important;
  }

  /* EXPANDED FULL-SCREEN PLAYER ON MOBILE (TAP MINI PLAYER TO ENLARGE) */
  .audio-player-bar.expanded {
    position: fixed;
    inset: 0;
    z-index: 2500;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #0D1629 0%, #05070D 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 2rem 1.25rem;
    overflow-y: auto;
    cursor: default;
    animation: mobilePlayerExpand 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .audio-player-bar.collapsing {
    animation: mobilePlayerCollapse 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  @keyframes mobilePlayerExpand {
    0% {
      transform: translateY(100%);
      opacity: 0.3;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes mobilePlayerCollapse {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
    100% {
      transform: translateY(100%);
      opacity: 0;
    }
  }

  .audio-player-bar.expanded .mobile-player-header {
    display: flex !important;
  }

  .audio-player-bar.expanded .player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    flex: 1;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
  }

  .audio-player-bar.expanded .player-track-info {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .audio-player-bar.expanded .track-cover-wrapper {
    width: 240px;
    height: 240px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(43, 114, 159, 0.4);
    border: 1px solid var(--border-glow);
  }

  .audio-player-bar.expanded .track-details {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 88vw;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
  }

  .audio-player-bar.expanded .player-track-title {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
  }

  .audio-player-bar.expanded .player-track-title.marquee-active {
    display: inline-block;
    animation: marqueeScroll 12s linear infinite;
    padding-right: 3rem;
  }

  .audio-player-bar.expanded .player-track-artist {
    font-size: 0.95rem;
    color: var(--text-muted);
  }

  .audio-player-bar.expanded .seekbar-wrapper {
    width: 100%;
    gap: 0.85rem;
  }

  .audio-player-bar.expanded .progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
  }

  .audio-player-bar.expanded .time-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
  }

  .audio-player-bar.expanded .control-buttons {
    gap: 1.25rem;
  }

  .audio-player-bar.expanded #btnShuffle,
  .audio-player-bar.expanded #btnLoop {
    display: flex !important;
  }

  .audio-player-bar.expanded #btnOpenCurrentTrackComments {
    display: none !important;
  }

  .audio-player-bar.expanded .ctrl-btn {
    width: 44px;
    height: 44px;
  }

  .audio-player-bar.expanded .play-main-btn {
    width: 62px;
    height: 62px;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
  }

  .audio-player-bar.expanded .player-right-tools {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  .volume-container {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Prevent iOS Safari / Android auto-zoom on form input focus */
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="search"],
  input[type="file"],
  select,
  textarea {
    font-size: 16px !important;
  }

  button, input, select, .pill-btn, .ctrl-btn, .modal-close {
    touch-action: manipulation;
  }

  /* Safe area padding for notch & home bar on mobile */
  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .audio-player-bar {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  }

  .modal-overlay {
    padding: 1rem;
    align-items: center;
    justify-content: center;
  }

  .modal-card {
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75);
    margin: auto;
  }

  /* Spotify-style drag down pill bar */
  .swipe-handle-bar {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-full);
    margin: 0 auto;
    transition: background var(--transition-fast);
  }

  .audio-player-bar.expanded .swipe-handle-bar {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .track-card {
    padding: 0.75rem;
  }

  .track-title {
    font-size: 0.9rem;
  }

  .track-artist {
    font-size: 0.75rem;
  }

  .modal-card {
    padding: 1.25rem 1rem;
  }
}

/* Vault Header Actions */
.vault-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Analytics Stats Grid */
.analytics-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 550px) {
  .analytics-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.stat-card {
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid var(--border-glass);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

/* Analytics Filter Bar */
.analytics-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.analytics-user-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Analytics Timeline Feed */
.analytics-timeline-wrapper {
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  max-height: none !important;
  overflow-y: visible !important;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
}

.analytics-feed {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.analytics-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  gap: 0.75rem;
}

.analytics-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.analytics-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  overflow: hidden;
}

.analytics-user-badge {
  font-weight: 700;
  color: #FFF;
  background: var(--primary-steel);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.analytics-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.analytics-track {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-action {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.analytics-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: monospace;
  white-space: nowrap;
  flex-shrink: 0;
}

#analyticsModal .modal-card,
.modal-card-xlarge {
  max-width: 780px;
  padding-top: calc(3.5rem + env(safe-area-inset-top, 30px)) !important;
}

#btnCloseAnalyticsModal {
  position: absolute !important;
  top: calc(1.4rem + env(safe-area-inset-top, 20px)) !important;
  right: 1.5rem !important;
  z-index: 100 !important;
}

/* Analytics Tabs Navigation */
.analytics-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--border-glass);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.analytics-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.analytics-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.analytics-tab-btn.active {
  background: var(--primary-steel);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(43, 114, 159, 0.3);
}

.analytics-view-section {
  display: block;
}

.analytics-view-section.hidden {
  display: none !important;
}

/* Song Analytics Cards Feed */
.song-analytics-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: none !important;
  overflow: visible !important;
  margin-bottom: 1.25rem;
  box-sizing: border-box !important;
}

.song-analytics-feed::-webkit-scrollbar,
.analytics-timeline-wrapper::-webkit-scrollbar,
#analyticsModal .modal-card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.song-analytics-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.song-analytics-card.clickable-card {
  cursor: pointer;
}

.song-analytics-card.clickable-card:hover {
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.15);
  transform: translateY(-2px);
}

.btn-song-analytics-detail {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-song-analytics-detail:hover {
  background: rgba(0, 242, 254, 0.22);
  transform: scale(1.04);
}

/* Selected Song Detail View */
.selected-song-detail-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.selected-song-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.selected-song-badge {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Activity Log Table for Selected Song */
.song-events-log-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.song-events-log-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.song-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 280px;
  overflow-y: auto;
}

.song-event-item {
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.song-event-item:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}

.song-event-socio {
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 90px;
}

.song-event-action {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.song-event-time {
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.song-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.song-card-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.song-card-cover {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #0A0F1D;
  border: 1px solid var(--border-glass);
}

.song-card-meta {
  display: flex;
  flex-direction: column;
}

.song-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.song-card-artist {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.song-card-stats-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.song-stat-badge {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--accent-cyan);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Socio Breakdown Chips Grid */
.socio-breakdown-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.socio-breakdown-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.socio-breakdown-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.socio-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-main);
}

.socio-chip.has-listens {
  background: rgba(43, 114, 159, 0.2);
  border-color: rgba(43, 114, 159, 0.4);
}

.socio-chip-count {
  font-weight: 800;
  color: var(--accent-cyan);
}

/* Timeline Heatmap Section */
.heatmap-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(7, 10, 18, 0.5);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.heatmap-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-low { background: #1E3A8A; }
.legend-med { background: #06B6D4; }
.legend-high { background: #EF4444; }

.heatmap-bar-container {
  display: flex;
  height: 38px;
  gap: 2px;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  position: relative;
}

.heatmap-bucket {
  flex: 1;
  border-radius: 2px;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  min-height: 8px;
}

.heatmap-bucket:hover {
  filter: brightness(1.3);
  transform: scaleY(1.15);
  z-index: 10;
}

/* Tooltip on bucket hover */
.heatmap-bucket::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #090E1A;
  color: #FFF;
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid var(--border-glow);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 100;
}

.heatmap-bucket:hover::after {
  opacity: 1;
}

.heatmap-timestamps {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: monospace;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* --- COMMENTS & THREADED DISCUSSIONS STYLES --- */

/* Track Card Comments Badge */
.track-card-comments-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.track-card-comments-btn:hover {
  background: rgba(43, 114, 159, 0.2);
  border-color: var(--accent-cyan);
  color: var(--text-main);
}

/* Comments Modal Header */
.comments-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  padding-right: 3.5rem !important; /* Safety gap for top-right close button */
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.comments-track-cover {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #0A0F1D;
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.comments-track-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.comments-track-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.comments-track-artist {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.track-comments-count-badge {
  display: inline-block;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--accent-cyan);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.2rem;
  width: fit-content;
}

/* Reply Indicator Banner */
.reply-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(43, 114, 159, 0.18);
  border: 1px solid var(--border-glow);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

.btn-cancel-reply {
  background: transparent;
  border: none;
  color: #F87171;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-cancel-reply:hover {
  text-decoration: underline;
}

/* Comment Form & Input Bar */
.comment-input-form {
  margin-bottom: 1.25rem;
}

.comment-textarea-wrapper {
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color var(--transition-fast);
}

.comment-textarea-wrapper:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

.comment-textarea-wrapper textarea {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 52px;
}

.comment-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
}

.quick-emoji-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-emoji-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.quick-emoji-btn:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.12);
}

/* Comments Feed Container */
.comments-feed-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.3rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.comments-feed-container::-webkit-scrollbar {
  display: none;
}

/* Threaded Comment Card */
.comment-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  transition: border-color var(--transition-fast);
}

.comment-card.is-reply {
  margin-left: 1.5rem;
  border-left: 2px solid var(--primary-steel);
  background: rgba(10, 15, 29, 0.5);
}

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

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-author-badge {
  font-weight: 700;
  font-size: 0.82rem;
  color: #FFFFFF;
  background: var(--primary-steel);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.comment-author-badge.is-admin {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.comment-timestamp {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: monospace;
}

.comment-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Comment Footer Actions (Reactions & Reply & Delete) */
.comment-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.comment-reactions-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.reaction-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.reaction-pill:hover,
.reaction-pill.user-reacted {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.35);
  color: var(--accent-cyan);
}

.comment-right-btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-comment-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-fast);
}

.btn-comment-action:hover {
  color: var(--accent-cyan);
}

.btn-comment-delete:hover {
  color: #F87171;
}

/* Audio Player Comments Button & Badge */
.btn-player-comments {
  position: relative;
}

.player-comments-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent-cyan);
  color: #070A12;
  font-size: 0.65rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 210, 255, 0.6);
}

/* Desktop Player Action Buttons (Comments & Lyrics) */
.desktop-player-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 1rem;
}

.btn-player-action-pill,
.btn-desktop-action {
  background: rgba(18, 26, 43, 0.75);
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-player-action-pill:hover,
.btn-desktop-action:hover {
  background: rgba(0, 210, 255, 0.22);
  border-color: rgba(0, 240, 255, 0.6);
  color: #FFFFFF;
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.45);
  transform: translateY(-2px) scale(1.03);
}

.btn-player-action-pill:active,
.btn-desktop-action:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 768px) {
  .desktop-player-actions {
    display: none !important;
  }
}

/* Dedicated Mobile Fullscreen Action Row (Comments & Lyrics) */
.mobile-expanded-actions-row {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-player-bar.expanded .mobile-expanded-actions-row {
  display: flex !important;
}

.btn-expanded-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.6rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-expanded-action:hover,
.btn-expanded-action:active {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.35);
}

/* Helper Utilities */
.hidden { display: none !important; }

/* ==========================================================================
   SPOTIFY-STYLE FULL SCREEN SYNCHRONIZED LYRICS ENGINE
   ========================================================================== */
#lyricsModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  background: #070B14 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 9999999 !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

#lyricsModal.modal-overlay {
  background: #070B14 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@keyframes lyricsSlideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes lyricsSlideDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(40px);
    opacity: 0;
  }
}

@keyframes lyricsModalClose {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(40px);
    opacity: 0;
  }
}

/* Fade out background video blur, track color glow band, and lyrics backdrop synchronously when closing lyrics */
body.lyrics-modal-closing .desktop-bg-video-blur,
body.lyrics-modal-closing .video-palette-glow-band {
  opacity: 0 !important;
  transition: opacity 0.35s ease-out !important;
}

#lyricsModal.modal-overlay.closing,
#lyricsModal.closing {
  animation: lyricsModalClose 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  visibility: visible !important;
  pointer-events: none !important;
}

#lyricsModal.closing .lyrics-modal-backdrop-bg {
  opacity: 0 !important;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Hide sharp unblurred video in Lyrics Mode */
body.lyrics-modal-open #desktopBgVideo {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#lyricsModal .lyrics-modal-card {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: calc(1.5rem + env(safe-area-inset-top, 24px)) 2rem 115px 1.25rem !important;
  background: #070B14 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#lyricsModal.closing .lyrics-modal-card {
  animation: lyricsModalClose 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  visibility: visible !important;
}

.lyrics-modal-backdrop-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #070B14;
  overflow: hidden;
  pointer-events: none;
}

.lyrics-modal-backdrop-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.45) 0%, rgba(7, 11, 20, 0.25) 50%, rgba(7, 11, 20, 0.65) 100%);
  z-index: 3;
  pointer-events: none;
}

.lyrics-bg-cover {
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  filter: blur(20px) brightness(0.65) saturate(1.3);
  -webkit-filter: blur(20px) brightness(0.65) saturate(1.3);
  transform: scale(1.12);
  transition: opacity 0.5s ease;
  opacity: 1;
}

.lyrics-bg-video {
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  pointer-events: none;
  filter: blur(20px) brightness(0.65) saturate(1.3);
  -webkit-filter: blur(20px) brightness(0.65) saturate(1.3);
  transform: scale(1.12);
  transition: opacity 0.5s ease;
  opacity: 1;
}

@media (max-width: 768px) {
  .lyrics-bg-video {
    object-fit: cover !important;
  }
}

#lyricsModal .lyrics-modal-header,
#lyricsModal .admin-timing-bar,
#lyricsModal .lyrics-view-container,
#lyricsModal .lyrics-edit-container {
  position: relative;
  z-index: 2;
}

#btnCloseLyricsModal {
  position: absolute !important;
  top: calc(1.2rem + env(safe-area-inset-top, 20px)) !important;
  right: 2.2rem !important;
  z-index: 100 !important;
  width: 48px !important;
  height: 48px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  pointer-events: auto !important;
}

#btnCloseLyricsModal:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #F87171 !important;
  transform: scale(1.08) !important;
}

.lyrics-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  padding-right: 4.5rem; /* Space for top-right close button */
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.lyrics-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lyrics-track-cover {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #0A0F1D;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.lyrics-track-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.lyrics-track-artist {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lyrics-view-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border-radius: 0;
  margin-top: 0.5rem;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 58%, rgba(0, 0, 0, 0.35) 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 58%, rgba(0, 0, 0, 0.35) 82%, transparent 100%);
}

.lyrics-view-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.88) 0%, rgba(9, 13, 22, 0.35) 60%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 10;
}

.lyrics-scroll-box {
  flex: 1;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden !important;
  padding: 60px 1rem 120px 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1.5rem;
  scrollbar-width: none;
  position: relative;
  width: 100%;
  box-sizing: border-box !important;
}

.lyrics-scroll-box::-webkit-scrollbar {
  display: none;
}

/* Single Floating Gliding Highlight Box around active lyric line (Removed per user request) */
.lyrics-highlight-pill,
#lyricsHighlightPill {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.lyric-line {
  position: relative;
  z-index: 2;
  font-size: 1.85rem !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  padding: 0.6rem 0.85rem !important;
  margin: 0 !important;
  border-radius: 14px;
  cursor: pointer;
  display: inline-block !important;
  width: fit-content !important;
  max-width: calc(100% - 32px) !important;
  box-sizing: border-box !important;
  user-select: none;
  text-align: left;
  letter-spacing: normal !important;
  will-change: opacity, color, transform;
  transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.lyric-line:hover {
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.9);
}

/* 1. Future Unsung Lyrics (Not played yet - Darker Palette Color) */
.lyric-line.future,
.lyric-line:not(.active):not(.past) {
  color: var(--lyrics-palette-dark, rgba(255, 255, 255, 0.25)) !important;
  opacity: var(--lyrics-future-opacity, 0.25) !important;
  text-shadow: none !important;
  transform: scale(1) !important;
}

/* 2. Past Lyrics (Already played - Configured Active/Passed Color) */
.lyric-line.past {
  color: var(--lyrics-passed-color, #FFFFFF) !important;
  opacity: var(--lyrics-passed-opacity, 0.92) !important;
  text-shadow: none !important;
  transform: scale(1) !important;
}

/* 3. Active Highlight Line (Configured Active Color + Scaled + Glowing) */
.lyric-line.active {
  color: var(--lyrics-active-color, #FFFFFF) !important;
  opacity: 1 !important;
  transform: scale(var(--lyrics-active-scale, 1.20)) !important;
  transform-origin: left center !important;
  text-shadow: 0 0 30px var(--lyrics-active-glow, rgba(0, 242, 254, 0.85)), 0 0 12px rgba(255, 255, 255, 0.9);
}

/* --- ADMIN LYRICS ANIMATION CONFIG BAR --- */
.admin-lyrics-config-bar {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md, 12px);
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 25;
}

.config-bar-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: #C084FC;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.25rem;
}

.config-bar-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.config-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted, #94A3B8);
}

.config-group label {
  white-space: nowrap;
}

.config-group input[type="range"] {
  width: 75px;
  accent-color: var(--accent-cyan, #06B6D4);
  cursor: pointer;
}

.config-group select {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  outline: none;
}

/* Floating Resume Sync Button (When user manually scrolls) */
.btn-resume-sync {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--lyrics-highlight-bg, rgba(0, 242, 254, 0.2));
  border: 1px solid var(--lyrics-highlight-border, rgba(0, 242, 254, 0.45));
  color: #FFFFFF;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--lyrics-theme-glow, rgba(0, 242, 254, 0.35));
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.btn-resume-sync:hover {
  background: var(--lyrics-highlight-bg, rgba(0, 242, 254, 0.38));
  border-color: var(--lyrics-accent-color, #00f2fe);
  box-shadow: 0 0 25px var(--lyrics-theme-glow, rgba(0, 242, 254, 0.55));
  transform: translateX(-50%) scale(1.06);
}

.lyric-line.is-section-header {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--lyrics-accent-color, var(--accent-cyan));
  opacity: 0.85;
  margin-top: 1rem;
  padding: 0.25rem 0;
  cursor: default;
  transform: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.lyric-line.is-section-header.active {
  opacity: 1;
  color: #FFFFFF;
  text-shadow: 0 0 20px var(--lyrics-active-glow, #00f2fe);
}

/* GILA ADMIN TIMING SYNC BAR */
.admin-timing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  z-index: 25;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
}

.admin-timing-bar.hidden {
  display: none !important;
}

.timing-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.timing-value {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #A78BFA;
  background: rgba(139, 92, 246, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.5);
  min-width: 60px;
  text-align: center;
}

.timing-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-timing-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn-timing-step:hover {
  background: rgba(139, 92, 246, 0.35);
  border-color: rgba(139, 92, 246, 0.65);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn-timing-step:active {
  transform: translateY(0);
}

.lyrics-edit-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-lang-toggle-single {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-muted, rgba(255, 255, 255, 0.85));
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  z-index: 30;
  pointer-events: auto;
}

.btn-lang-toggle-single:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-lang-toggle-single.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(6, 182, 212, 0.95));
  border-color: rgba(6, 182, 212, 0.7);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5);
}

.lyrics-edit-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.btn-lyrics-edit-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lyrics-edit-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-lyrics-edit-tab.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--accent-violet);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.lyrics-edit-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  line-height: 1.45;
}

.lyrics-textarea {
  background: rgba(7, 10, 18, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 240px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.lyrics-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.lyrics-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.track-card-lyrics-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.track-card-lyrics-btn:hover {
  background: rgba(0, 210, 255, 0.18);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
}

/* Lyrics Formatting (Italics, Bold, Backing Vocals) */
.lyric-line em,
.lyric-line i {
  font-style: italic;
  color: inherit;
  opacity: 0.92;
}

.lyric-line strong,
.lyric-line b {
  font-weight: 800;
  color: inherit;
}

.lyric-line .lyric-backing {
  font-style: italic;
  opacity: 0.72;
  font-size: 0.94em;
  display: inline-block;
  margin-left: 0.2rem;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE TUNING FOR SYNCED LYRICS ENGINE
   ========================================================================== */
@media (max-width: 768px) {
  /* Suppress mobile expanded player modal & expanded player bar when in text/lyrics mode */
  body.lyrics-modal-open .mobile-expanded-player-modal:not(.active),
  body.lyrics-modal-open .audio-player-bar.expanded {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(100%) !important;
  }

  /* Ensure sharp video is hidden on mobile lyrics */
  body.lyrics-modal-open #desktopBgVideo {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #lyricsModal,
  #analyticsModal {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    touch-action: auto !important;
  }

  #lyricsModal .lyrics-modal-card {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: calc(1rem + env(safe-area-inset-top, 16px)) 1rem 1.25rem 0.85rem !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #analyticsModal .modal-card {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: calc(3.8rem + env(safe-area-inset-top, 32px)) 1.25rem 1.25rem 1.25rem !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #analyticsModal .analytics-view-section {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
  }

  #analyticsModal .song-analytics-feed {
    flex: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  .lyrics-modal-header {
    padding-bottom: 0.65rem;
    margin-bottom: 0.35rem;
  }

  .lyrics-track-cover {
    width: 44px;
    height: 44px;
  }

  .lyrics-track-meta h3 {
    font-size: 1rem;
  }

  .lyrics-track-artist {
    font-size: 0.78rem;
  }

  .lyrics-view-container {
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 58%, rgba(0, 0, 0, 0.35) 82%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 58%, rgba(0, 0, 0, 0.35) 82%, transparent 100%) !important;
  }

  .lyrics-view-container::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 110px !important;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.88) 0%, rgba(9, 13, 22, 0.35) 55%, transparent 100%) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    pointer-events: none !important;
    z-index: 10 !important;
  }

  .lyrics-scroll-box {
    padding: 130px 1rem 190px 1rem;
    gap: 1.25rem;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .lyric-line {
    font-size: 1.35rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    padding: 0.45rem 0.65rem !important;
    max-width: calc(100% / var(--lyrics-active-scale, 1.20) - 16px) !important;
    width: fit-content !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, filter 0.35s ease, color 0.35s ease !important;
    will-change: transform, opacity, filter;
    text-align: left !important;
    margin: 0 !important;
    transform-origin: left center !important;
  }

  .lyric-line.future,
  .lyric-line:not(.active):not(.past) {
    color: var(--lyrics-palette-dark, rgba(255, 255, 255, 0.25)) !important;
    opacity: var(--lyrics-future-opacity, 0.25) !important;
    filter: none !important;
    transform: scale(1) !important;
  }

  .lyric-line.past {
    color: var(--lyrics-passed-color, #FFFFFF) !important;
    opacity: var(--lyrics-passed-opacity, 0.92) !important;
    filter: none !important;
    transform: scale(1) !important;
  }

  .lyric-line.active {
    font-size: 1.58rem !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    color: var(--lyrics-active-color, #FFFFFF) !important;
    opacity: 1 !important;
    filter: none !important;
    transform: scale(var(--lyrics-active-scale, 1.20)) !important;
    transform-origin: left center !important;
    text-shadow: 0 0 35px var(--lyrics-active-glow, rgba(0, 242, 254, 1)), 0 0 18px var(--lyrics-theme-glow, rgba(0, 210, 255, 0.8)), 0 0 8px rgba(255, 255, 255, 0.9) !important;
  }

  .lyrics-highlight-pill {
    border-radius: 18px !important;
    border: 1.5px solid var(--lyrics-highlight-border, rgba(0, 242, 254, 0.6)) !important;
    box-shadow: 0 0 35px var(--lyrics-theme-glow, rgba(0, 210, 255, 0.35)), inset 0 0 18px var(--lyrics-theme-glow, rgba(0, 210, 255, 0.15)) !important;
  }

  .btn-resume-sync {
    bottom: 0.85rem;
    padding: 0.4rem 0.95rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .lyrics-scroll-box {
    padding: 110px 0.25rem 170px 0.15rem;
    gap: 1.1rem;
  }

  .lyric-line {
    font-size: 1.25rem !important;
    padding: 0.45rem 0.7rem !important;
    max-width: calc(100% - 20px) !important;
  }

  .lyric-line.active {
    font-size: 1.42rem !important;
  }
}

/* STANDALONE MOBILE FULL-SCREEN SLIDE-UP PLAYER OVERLAY */
.mobile-expanded-player-modal {
  --mobile-palette-primary: var(--accent-cyan);
  --mobile-palette-glow: rgba(6, 182, 212, 0.6);
  --mobile-palette-border: rgba(6, 182, 212, 0.4);
  --mobile-palette-shadow: rgba(6, 182, 212, 0.5);
  --mobile-palette-rgb: 6, 182, 212;
  position: fixed;
  inset: 0;
  z-index: 2500000 !important;
  background: #070A12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(2.5rem, calc(env(safe-area-inset-top, 0px) + 1.25rem)) 1.5rem max(2rem, env(safe-area-inset-bottom, 20px)) 1.5rem;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.4s ease,
              visibility 0.5s ease;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mobile-expanded-player-modal.active {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
}

.mobile-expanded-player-modal.closing {
  display: flex !important;
  transform: translateY(100%) !important;
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: none !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
}

.mobile-expanded-player-modal.restoring-from-lyrics {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  display: flex !important;
  animation: restoreExpandedPlayerFromLyrics 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes restoreExpandedPlayerFromLyrics {
  0% {
    opacity: 0.6;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.mobile-exp-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.btn-minimize-mobile-player {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--mobile-palette-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.mobile-exp-header-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--mobile-palette-primary) !important;
  text-shadow: 0 0 12px var(--mobile-palette-glow) !important;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.mobile-exp-cover-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-exp-cover-img {
  width: 250px;
  height: 250px;
  max-width: 72vw;
  max-height: 72vw;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px var(--mobile-palette-shadow, rgba(139, 92, 246, 0.45));
  border: 2px solid var(--mobile-palette-border, rgba(139, 92, 246, 0.6)) !important;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
  cursor: pointer;
}

.mobile-exp-cover-img:active {
  transform: scale(0.96);
}

.mobile-exp-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-exp-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
}

.mobile-exp-artist {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.mobile-exp-seekbar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

#mobileExpProgressBarContainer {
  width: 100% !important;
  height: 8px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-full) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  position: relative !important;
  overflow: visible !important;
  cursor: pointer !important;
}

#mobileExpProgressBarFill {
  height: 100% !important;
  background-color: var(--mobile-palette-primary, #8B5CF6) !important;
  background: var(--mobile-palette-primary, #8B5CF6) !important;
  box-shadow: 0 0 14px var(--mobile-palette-glow, rgba(139, 92, 246, 0.8)) !important;
  border-radius: var(--radius-full) !important;
  min-width: 6px;
  position: relative !important;
  z-index: 2 !important;
}

#mobileExpProgressBarFill::after {
  content: '' !important;
  position: absolute !important;
  right: -6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  background: #FFFFFF !important;
  border: 2.5px solid var(--mobile-palette-primary, #8B5CF6) !important;
  box-shadow: 0 0 14px var(--mobile-palette-glow, rgba(139, 92, 246, 0.8)) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

.mobile-exp-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: monospace;
}

.mobile-exp-controls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.mobile-exp-play-btn {
  background: var(--mobile-palette-primary, #8B5CF6) !important;
  color: #070A12 !important;
  border: 1.5px solid var(--mobile-palette-border, rgba(255, 255, 255, 0.6)) !important;
  box-shadow: 0 0 25px var(--mobile-palette-glow), 0 0 12px var(--mobile-palette-shadow) !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transform: scale(1) !important;
  transition: transform 0.15s ease, background-color 0.3s ease, box-shadow 0.3s ease !important;
}

.mobile-exp-play-btn.is-playing,
.mobile-exp-play-btn:has(#mobileExpPlayIcon.hidden) {
  background: var(--mobile-palette-primary, #8B5CF6) !important;
  color: #070A12 !important;
  border: 2px solid var(--mobile-palette-border, #FFFFFF) !important;
  box-shadow: 0 0 32px var(--mobile-palette-glow), 0 0 16px var(--mobile-palette-shadow) !important;
  transform: scale(1) !important;
}

.mobile-exp-play-btn:active {
  transform: scale(0.92) !important;
}

.btn-pulse-active {
  animation: playBtnPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes playBtnPop {
  0% { transform: scale(1); }
  35% { transform: scale(0.86); }
  70% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.mobile-exp-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.btn-exp-action-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

/* Background Video & Autohide for Standalone Mobile Fullscreen Player */
.mobile-expanded-player-modal.has-video {
  background: #000000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mobile-exp-bg-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
  pointer-events: none !important;
  opacity: 0;
  visibility: hidden;
  filter: blur(20px);
  -webkit-filter: blur(20px);
  transform: scale(1.1) translateZ(0);
  -webkit-transform: scale(1.1) translateZ(0);
  will-change: filter, transform, opacity;
  transition: opacity 0.5s ease, filter 0.5s ease, -webkit-filter 0.5s ease, transform 0.5s ease, -webkit-transform 0.5s ease, visibility 0.5s ease;
}

.mobile-expanded-player-modal.has-video .mobile-exp-bg-video {
  opacity: 1 !important;
  visibility: visible !important;
  filter: blur(20px) brightness(0.65) saturate(1.3) !important;
  -webkit-filter: blur(20px) brightness(0.65) saturate(1.3) !important;
  transform: scale(1.1) translateZ(0) !important;
  -webkit-transform: scale(1.1) translateZ(0) !important;
}

.mobile-expanded-player-modal.has-video.autohide-active .mobile-exp-bg-video {
  opacity: 1 !important;
  visibility: visible !important;
  filter: blur(0px) !important;
  -webkit-filter: blur(0px) !important;
  transform: scale(1) translateZ(0) !important;
  -webkit-transform: scale(1) translateZ(0) !important;
}

/* Solid Primary Palette Background Screen for Tracks Without Video */
.mobile-exp-solid-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background-color: var(--mobile-palette-primary);
  background-image: radial-gradient(circle at 50% 35%, var(--mobile-palette-primary) 0%, rgba(var(--mobile-palette-rgb), 0.70) 50%, #070A12 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease, background-color 0.5s ease, background-image 0.5s ease;
  pointer-events: none !important;
}

.mobile-expanded-player-modal.has-video .mobile-exp-solid-bg {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Ambient Cover Background for Tracks Without Video */
.mobile-exp-cover-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: blur(40px) brightness(0.70) saturate(1.4);
  -webkit-filter: blur(40px) brightness(0.70) saturate(1.4);
  transform: scale(1.25) translateZ(0);
  -webkit-transform: scale(1.25) translateZ(0);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none !important;
}

.mobile-expanded-player-modal.has-cover-bg:not(.has-video) .mobile-exp-cover-bg {
  opacity: 0.85 !important;
  visibility: visible !important;
}

.mobile-expanded-player-modal.has-video .mobile-exp-cover-bg {
  opacity: 0 !important;
  visibility: hidden !important;
}

.mobile-expanded-player-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.60) 0%, rgba(7, 10, 18, 0.25) 50%, rgba(7, 10, 18, 0.80) 100%);
  z-index: 3 !important;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.mobile-exp-top-bar,
.mobile-exp-cover-container,
.mobile-exp-meta,
.mobile-exp-seekbar,
.mobile-exp-controls,
.mobile-exp-bottom-actions {
  position: relative;
  z-index: 4 !important;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-expanded-player-modal.autohide-active .mobile-exp-top-bar,
.mobile-expanded-player-modal.autohide-active .mobile-exp-cover-container,
.mobile-expanded-player-modal.autohide-active .mobile-exp-meta,
.mobile-expanded-player-modal.autohide-active .mobile-exp-seekbar,
.mobile-expanded-player-modal.autohide-active .mobile-exp-controls,
.mobile-expanded-player-modal.autohide-active .mobile-exp-bottom-actions {
  opacity: 0;
  pointer-events: none;
}

.mobile-expanded-player-modal.autohide-active::before {
  opacity: 0 !important;
}

/* ==========================================================================
   LYRICS MODE FOREGROUND PLAYER BAR (ONLY IN LYRICS MODE)
   ========================================================================== */
body.lyrics-modal-open .audio-player-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000000 !important;
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

#lyricsModal .lyrics-modal-card {
  padding-bottom: 105px !important;
}

@media (min-width: 769px) {
  .mobile-expanded-player-modal {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 3rem;
  }

  .mobile-exp-cover-container {
    width: 320px !important;
    height: 320px !important;
    max-width: 320px !important;
    max-height: 320px !important;
    margin: 1.5rem auto !important;
  }

  .mobile-exp-cover-img {
    width: 320px !important;
    height: 320px !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65) !important;
  }

  .mobile-exp-meta {
    text-align: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }

  .mobile-exp-title {
    font-size: 1.85rem !important;
  }

  .mobile-exp-artist {
    font-size: 1.1rem !important;
  }

  .mobile-exp-seekbar {
    max-width: 600px !important;
    width: 100% !important;
    margin: 1.25rem auto !important;
  }

  .mobile-exp-controls {
    max-width: 480px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .mobile-exp-bottom-actions {
    max-width: 400px !important;
    margin: 1rem auto 0 auto !important;
  }

  /* Dynamic Foregrounding Stacking: Desktop BG Video vs Lyrics Modal */
  body.video-foreground-active .desktop-bg-video-blur {
    z-index: 99798 !important;
  }
  body.video-foreground-active #videoPaletteGlowBand {
    z-index: 99799 !important;
  }
  body.video-foreground-active #desktopBgVideo {
    z-index: 99800 !important;
    pointer-events: auto !important;
    object-fit: cover !important;
  }

  #lyricsModal {
    z-index: 9999999 !important;
  }

  /* Centered header on desktop */
  .lyrics-modal-header {
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;
    padding-right: 0 !important;
  }

  .lyrics-header-left {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }

  .lyrics-track-cover {
    width: 64px !important;
    height: 64px !important;
  }

  .lyrics-track-meta {
    align-items: center !important;
    text-align: center !important;
  }

  .lyrics-track-meta h3 {
    font-size: 1.5rem !important;
    text-align: center !important;
  }

  .lyrics-header-actions {
    position: absolute !important;
    right: 5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .lyrics-view-container {
    mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 54%, rgba(0, 0, 0, 0.28) 78%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 54%, rgba(0, 0, 0, 0.28) 78%, transparent 100%) !important;
  }

  .lyrics-view-container::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 150px !important;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.90) 0%, rgba(9, 13, 22, 0.35) 60%, transparent 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    pointer-events: none !important;
    z-index: 10 !important;
  }

  /* Centered and GIGANTIC lyrics text container on desktop */
  .lyrics-scroll-box {
    align-items: center !important;
    text-align: center !important;
    padding: 80px 2rem 140px 2rem !important;
    gap: 2.8rem !important;
  }

  .lyric-line {
    font-size: 2.2rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.8rem !important;
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 88% !important;
    filter: none !important;
    opacity: 0.55 !important;
    transform: scale(0.96) !important;
    transform-origin: center center !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, filter 0.35s ease, color 0.35s ease !important;
    will-change: transform, opacity, filter;
  }

  .lyric-line.future,
  .lyric-line:not(.active):not(.past) {
    color: var(--lyrics-palette-dark, rgba(255, 255, 255, 0.25)) !important;
    opacity: var(--lyrics-future-opacity, 0.25) !important;
    filter: none !important;
    transform: scale(1) !important;
  }

  .lyric-line.past {
    color: var(--lyrics-passed-color, #FFFFFF) !important;
    opacity: var(--lyrics-passed-opacity, 0.92) !important;
    filter: none !important;
    transform: scale(1) !important;
  }

  /* GIGANTIC ACTIVE LYRIC LINE - GPU ACCELERATED CINEMA FOCUS */
  .lyric-line.active {
    font-size: 2.4rem !important;
    transform: scale(var(--lyrics-active-scale, 1.20)) !important;
    transform-origin: center center !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    color: var(--lyrics-active-color, #FFFFFF) !important;
    opacity: 1 !important;
    filter: none !important;
    padding: 0.75rem 1.8rem !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 0 50px var(--lyrics-active-glow, rgba(0, 242, 254, 1)), 0 0 25px var(--lyrics-theme-glow, rgba(0, 210, 255, 0.8)), 0 0 10px rgba(255, 255, 255, 0.9) !important;
  }

  .lyrics-highlight-pill {
    border-radius: 22px !important;
    border: 2px solid var(--lyrics-highlight-border, rgba(0, 242, 254, 0.65)) !important;
    box-shadow: 0 0 45px var(--lyrics-theme-glow, rgba(0, 210, 255, 0.4)), inset 0 0 25px var(--lyrics-theme-glow, rgba(0, 210, 255, 0.2)) !important;
    transition: transform 0.42s cubic-bezier(0.2, 0.95, 0.35, 1),
                width 0.42s cubic-bezier(0.2, 0.95, 0.35, 1),
                height 0.42s cubic-bezier(0.2, 0.95, 0.35, 1),
                opacity 0.25s ease !important;
  }

  .lyric-line.is-section-header {
    font-size: 1.25rem !important;
    text-align: center !important;
    margin-top: 2rem !important;
    filter: none !important;
  }

  .lyrics-edit-container {
    max-width: 850px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
}

/* --- REMIXES SYSTEM STYLES --- */
.remix-parent-target-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.remix-parent-cover {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.remix-parent-meta {
  display: flex;
  flex-direction: column;
}

.remix-parent-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  font-weight: 700;
}

.remix-parent-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.15rem;
}

/* Card Remix Admin Action Button */
.btn-card-add-remix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.45rem 0.85rem;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--accent-cyan);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 0.6rem;
}

.btn-card-add-remix:hover {
  background: rgba(0, 210, 255, 0.22);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.3);
}

/* Remix Toggle Arrow Button (Purple circular icon on the right) */
.btn-toggle-remixes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #A78BFA;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-toggle-remixes:hover {
  background: rgba(139, 92, 246, 0.35);
  border-color: #C4B5FD;
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.45);
}

.btn-toggle-remixes.expanded {
  background: #8B5CF6;
  border-color: #A78BFA;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.65);
}

.remix-arrow-icon {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  display: inline-block;
  line-height: 1;
  color: #A78BFA;
}

.btn-toggle-remixes:hover .remix-arrow-icon,
.btn-toggle-remixes.expanded .remix-arrow-icon {
  color: #FFFFFF;
}

.btn-toggle-remixes.expanded .remix-arrow-icon {
  transform: rotate(180deg);
}

/* Remix Container Grid & Tag */
.track-remixes-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 1rem 0.6rem;
  margin-top: 0.75rem;
  animation: fadeInDown 0.25s ease-out;
}

.track-card.remix-full-card {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  background: rgba(30, 41, 59, 0.75);
}

.remix-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(139, 92, 246, 0.9);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 2;
}

/* --- COMPACT INLINE REMIX CARD AT BOTTOM OF ORIGINAL TRACK CARD --- */
.track-remixes-footer {
  width: 100%;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.remix-mini-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.6rem;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.remix-mini-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.remix-mini-card.playing {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.14);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
}

.remix-mini-cover-wrapper {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: #000;
  flex-shrink: 0;
}

.remix-mini-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.remix-mini-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 13, 22, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.remix-mini-card:hover .remix-mini-play-overlay,
.remix-mini-card.playing .remix-mini-play-overlay {
  opacity: 1;
  background: rgba(6, 182, 212, 0.75);
}

.remix-mini-play-icon {
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remix-mini-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.remix-mini-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.12rem;
}

.remix-mini-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #C4B5FD;
  background: rgba(139, 92, 246, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.remix-mini-duration {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.remix-mini-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.remix-mini-artist {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.card-delete-badge-mini {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 0.2rem;
  flex-shrink: 0;
}

.card-delete-badge-mini:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.card-edit-badge-mini {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 0.2rem;
  flex-shrink: 0;
}

.card-edit-badge-mini:hover {
  background: #0284C7;
  color: #FFFFFF;
}

/* --- 3-LAYER AMBIENT VIDEO STACK (BEHIND MAIN VIDEO) --- */
.desktop-bg-video-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 848;
  pointer-events: none;
  opacity: 0;
  filter: blur(40px) brightness(0.95) saturate(1.3);
  transform: scale(1.15);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-bg-video-blur.active {
  opacity: 1;
}

.video-palette-glow-band {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 849;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.8s ease;
  background: radial-gradient(circle at center, rgba(var(--video-palette-rgb, 139, 92, 246), 0.15) 0%, rgba(var(--video-palette-rgb, 139, 92, 246), 0.6) 100%);
}

.video-palette-glow-band.active {
  opacity: 1;
}

/* --- DESKTOP FULLSCREEN VIDEO OVERLAY ENGINE --- */
body.desktop-video-fullscreen-active {
  overflow: hidden !important;
}

.desktop-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  filter: blur(25px);
  -webkit-filter: blur(25px);
  transform: scale(1.08);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-bg-video.active {
  opacity: 1 !important;
  z-index: 99900 !important;
  pointer-events: auto !important;
  cursor: pointer;
  filter: blur(25px) brightness(0.75) saturate(1.2);
  -webkit-filter: blur(25px) brightness(0.75) saturate(1.2);
  transform: scale(1.08);
}

body.video-autohide-active .desktop-bg-video.active {
  filter: blur(0px) brightness(1.0) saturate(1.0) !important;
  -webkit-filter: blur(0px) brightness(1.0) saturate(1.0) !important;
  transform: scale(1) !important;
}

body.video-autohide-active .desktop-bg-video-blur {
  opacity: 0 !important;
}

.desktop-bg-video-blur.active {
  z-index: 99899 !important;
}

.video-palette-glow-band.active {
  z-index: 99898 !important;
}

body.desktop-video-fullscreen-active #audioPlayerBar {
  z-index: 100000 !important;
}

body.video-autohide-active #audioPlayerBar {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
  transition: opacity 0.5s ease, transform 0.5s ease !important;
}

body.desktop-video-fullscreen-active #btnMinimizeVideo {
  z-index: 100005 !important;
}

@media (max-width: 768px) {
  .desktop-bg-video {
    object-fit: cover !important;
    background-color: transparent !important;
  }

  .video-palette-glow-band {
    background: linear-gradient(
      180deg,
      rgba(var(--video-palette-rgb, 139, 92, 246), 0.85) 0%,
      rgba(var(--video-palette-rgb, 139, 92, 246), 0.4) 25%,
      transparent 50%,
      rgba(var(--video-palette-rgb, 139, 92, 246), 0.4) 75%,
      rgba(var(--video-palette-rgb, 139, 92, 246), 0.85) 100%
    );
  }
}

/* --- TOP-RIGHT FLOATING MINIMIZE VIDEO BUTTON --- */
.btn-minimize-video {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100006 !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease;
  outline: none;
  pointer-events: auto;
}

.btn-minimize-video:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transform: scale(1.08);
}

.btn-minimize-video:active {
  transform: scale(0.95);
}

.btn-minimize-video.hidden {
  display: none !important;
}

body.lyrics-modal-open .btn-minimize-video,
body.lyrics-modal-open #btnMinimizeVideo {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.btn-minimize-video.autohide-active {
  opacity: 0 !important;
  transform: translateY(-15px) scale(0.9) !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .btn-minimize-video {
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* --- ADMIN USER MANAGEMENT STYLES --- */
.admin-users-modal-card {
  max-width: 920px;
}

.admin-create-user-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.admin-section-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-create-user-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.user-count-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.4);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

/* Modal Body Scrollable (The ONLY scrollable container inside modals) */
.modal-body-scrollable {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-right: 0.35rem;
  margin-right: -0.35rem;
}

/* Custom Sleek Scrollbar for Modal Body & sub-components */
.modal-body-scrollable::-webkit-scrollbar,
.comments-feed-container::-webkit-scrollbar,
.lyrics-scroll-box::-webkit-scrollbar {
  width: 7px;
}

.modal-body-scrollable::-webkit-scrollbar-track,
.comments-feed-container::-webkit-scrollbar-track,
.lyrics-scroll-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.modal-body-scrollable::-webkit-scrollbar-thumb,
.comments-feed-container::-webkit-scrollbar-thumb,
.lyrics-scroll-box::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body-scrollable::-webkit-scrollbar-thumb:hover,
.comments-feed-container::-webkit-scrollbar-thumb:hover,
.lyrics-scroll-box::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.75);
}

.admin-users-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: none !important;
  overflow-y: visible !important;
  padding-right: 0;
}

.admin-user-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-user-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.admin-user-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 0.85rem;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-username-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.admin-user-role-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.admin-user-role-badge.role-admin {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.admin-user-role-badge.role-user {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.admin-full-access-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.btn-danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.admin-user-tracks-control {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.user-track-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-track-toggle-row .control-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.allow-all-status-text {
  font-size: 0.85rem;
  color: #a78bfa;
  font-weight: 500;
}

.user-track-checkboxes-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: opacity 0.2s ease;
}

.user-track-checkboxes-container.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.checkboxes-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.tracks-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.track-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.track-checkbox-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.track-checkbox-item input[type="checkbox"] {
  accent-color: #8b5cf6;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.track-checkbox-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-notice-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.btn-hdr-admin {
  border-color: rgba(139, 92, 246, 0.5);
  color: #c084fc;
}

.btn-hdr-retro {
  background: rgba(255, 184, 0, 0.12) !important;
  border-color: rgba(255, 184, 0, 0.5) !important;
  color: #FFB800 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.2);
  transition: all 0.2s ease;
}

.btn-hdr-retro:hover {
  background: rgba(255, 184, 0, 0.28) !important;
  border-color: #FFB800 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
  transform: translateY(-1px);
}

/* --- TELEMETRY ANALYTICS CLICKABLE CARDS STYLES --- */
.song-analytics-card.clickable-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 12px);
  padding: 0.9rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0.75rem;
}

.song-analytics-card.clickable-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.15);
  background: rgba(15, 23, 42, 0.85);
}

.song-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.song-card-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 220px;
}

.song-card-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.song-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.song-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
}

.song-card-artist {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.song-card-stats-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.song-stat-badge {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.song-stat-badge.badge-top-listener {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.3);
}

.btn-song-analytics-detail {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #C084FC;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-song-analytics-detail:hover {
  background: rgba(139, 92, 246, 0.4);
  color: #FFFFFF;
  border-color: #A78BFA;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.analytics-songs-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}

.analytics-songs-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ==========================================================================
   MINIMALIST DARK SPLASHSCREEN OVERLAY (Instant Dark Boot Engine)
   ========================================================================== */
.vault-preloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #070A12;
  background-image: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.18) 0%, rgba(6, 182, 212, 0.10) 45%, #070A12 85%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
  box-sizing: border-box;
}

.vault-preloader-overlay.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.minimal-splash-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 380px;
  width: 100%;
  animation: splashCardEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes splashCardEnter {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.minimal-logo-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.minimal-splash-logo {
  width: auto;
  max-width: 130px;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  border-radius: 0 !important; /* Entire unclipped logo */
  filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.5)) drop-shadow(0 0 45px rgba(139, 92, 246, 0.35));
  animation: splashLogoPulse 2.4s infinite ease-in-out;
}

@keyframes splashLogoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 22px rgba(6, 182, 212, 0.45)) drop-shadow(0 0 35px rgba(139, 92, 246, 0.3));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 32px rgba(6, 182, 212, 0.75)) drop-shadow(0 0 55px rgba(139, 92, 246, 0.5));
  }
}

.minimal-splash-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #FFFFFF;
  margin: 0 0 0.4rem 0;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFFFFF 0%, #06B6D4 50%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.minimal-splash-subtitle {
  font-size: 0.78rem;
  color: rgba(240, 244, 248, 0.65);
  margin: 0 0 2rem 0;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.minimal-splash-line-loader {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.minimal-splash-line-progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #06B6D4 0%, #8B5CF6 100%);
  border-radius: 999px;
  animation: splashLineAnim 1.4s infinite ease-in-out;
  transform-origin: left center;
}

@keyframes splashLineAnim {
  0% {
    transform: translateX(-100%) scaleX(0.2);
  }
  50% {
    transform: translateX(0%) scaleX(0.7);
  }
  100% {
    transform: translateX(100%) scaleX(0.2);
  }
}
  font-weight: 800;
  letter-spacing: 2px;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFFFFF 0%, #A7F3D0 50%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preloader-subtitle {
  font-size: 0.88rem;
  color: #94A3B8;
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.preloader-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #06B6D4 0%, #8B5CF6 50%, #10B981 100%);
  border-radius: 9999px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
}

.preloader-meta-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.preloader-detail-text {
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.preloader-percent-badge {
  font-weight: 700;
  color: #06B6D4;
  font-family: monospace;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

/* VAULT INTRO GATE BOX & ENTRA NEL VAULT BUTTON */
.vault-gate-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.25rem;
}

.vault-gate-hint {
  font-size: 0.88rem;
  color: #94A3B8;
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.btn-enter-vault {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 290px;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  border: none;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.45), 0 0 20px rgba(6, 182, 212, 0.35);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-enter-vault:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.65), 0 0 30px rgba(6, 182, 212, 0.55);
  background: linear-gradient(135deg, #9767FF 0%, #22D3EE 100%);
}

.btn-enter-vault:active {
  transform: translateY(1px) scale(0.97);
}

.vault-progress-box {
  width: 100%;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   SPOTIFY-STYLE LIST VIEW (page-index-list)
   ========================================================================== */
.page-index-list .tracks-section {
  padding-bottom: 140px !important;
  margin-bottom: 2rem;
}

.page-index-list .tracks-grid {
  display: block !important;
}

.spotify-list-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.75rem 1rem 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spotify-list-table {
  width: 100%;
  border-collapse: collapse;
  color: #F0F4F8;
  font-size: 0.92rem;
  table-layout: auto;
}

.spotify-list-table td.col-reorder {
  width: 40px;
  white-space: nowrap;
}

.spotify-list-table td.col-title {
  width: 100%;
}

.spotify-list-table td.col-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding-right: 2.5rem;
}

.list-action-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: nowrap;
  padding-right: 1.25rem;
}

/* Dedicated Remix Toggle Pill Button */
.list-btn-toggle-remixes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22D3EE;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  margin-right: 1.25rem;
}

.spotify-list-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.spotify-list-row:hover {
  background-color: rgba(6, 182, 212, 0.08);
}

.spotify-list-row.playing {
  background-color: rgba(6, 182, 212, 0.16);
}

.spotify-list-row.playing td {
  color: #22D3EE;
}

.spotify-list-row td {
  padding: 0.95rem 1.25rem;
  vertical-align: middle;
}

.list-track-info-cell {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.list-track-text-group {
  flex: 1;
}

.list-track-artist-subtext {
  display: block;
  font-size: 0.88rem;
  color: #94A3B8;
  margin-top: 3px;
  font-weight: 500;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.list-track-cover-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

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

.list-track-play-overlay {
  display: none !important;
}

.list-track-title-text {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 2px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.list-track-artist-text {
  font-size: 0.82rem;
  color: #94A3B8;
}

.list-remix-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(139, 92, 246, 0.35));
  color: #E2E8F0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.list-action-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

/* Dedicated Remix Toggle Pill Button */
.list-btn-toggle-remixes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22D3EE;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.list-btn-toggle-remixes:hover {
  background: rgba(6, 182, 212, 0.28);
  border-color: #67E8F9;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.45);
  transform: translateY(-1px);
}

.list-btn-toggle-remixes.expanded {
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
  border-color: #67E8F9;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.65);
}

.list-btn-toggle-remixes .remix-arrow-icon {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  display: inline-block;
  color: inherit;
}

.list-btn-toggle-remixes.expanded .remix-arrow-icon {
  transform: rotate(180deg);
}

/* Dedicated List Admin Action Buttons */
.list-btn-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.list-btn-icon-action:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  color: #FFFFFF;
  transform: scale(1.05);
}

.list-btn-icon-action.delete-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #EF4444;
}

.list-btn-add-remix {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #06B6D4;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.list-btn-add-remix:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: #22D3EE;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* Sub-row for expanded remixes in list mode */
.list-remixes-subrow {
  background: rgba(10, 15, 30, 0.75);
}

.list-remixes-subrow td {
  padding: 0.75rem 1rem 0.75rem 3.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.list-remix-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.4rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.list-remix-item-row:last-child {
  margin-bottom: 0;
}

.list-remix-item-row:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.list-remix-item-row.playing {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
}

@media (max-width: 768px) {
  .page-index-list .tracks-section {
    padding-bottom: 160px !important;
  }

  /* Make list container fixed to mobile width (no horizontal scrollbar / box scrolling) */
  .spotify-list-container {
    overflow-x: hidden !important;
    padding: 0.4rem 0.2rem !important;
    border-radius: 12px !important;
  }

  .spotify-list-table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  .spotify-list-table th, 
  .spotify-list-row td {
    padding: 0.7rem 0.3rem !important;
  }

  /* Hide redundant separate Artist column on Mobile */
  .spotify-list-table th.col-artist,
  .spotify-list-row td.col-artist {
    display: none !important;
  }

  /* Display Artist subtext under track title on Mobile */
  .list-track-artist-subtext {
    display: block !important;
    font-size: 0.82rem !important;
    color: #94A3B8 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-weight: 500 !important;
  }

  .spotify-list-table th.col-num,
  .spotify-list-row td.col-num {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    font-size: 0.78rem !important;
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
    text-align: center !important;
  }

  .spotify-list-table th.col-title,
  .spotify-list-row td.col-title {
    width: 100% !important;
  }

  .list-track-info-cell {
    gap: 0.75rem !important;
    overflow: visible !important;
  }

  .list-track-text-group {
    flex: 1 !important;
    overflow: visible !important;
  }

  .list-track-cover-wrapper {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
  }

  .list-track-title-text {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .spotify-list-table th.col-duration,
  .spotify-list-row td.col-duration {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    font-size: 0.72rem !important;
    padding-left: 0.1rem !important;
    padding-right: 0.1rem !important;
    text-align: right !important;
  }

  .spotify-list-table th.col-actions,
  .spotify-list-row td.col-actions {
    width: auto !important;
    min-width: 0 !important;
    padding-right: 1.25rem !important;
    text-align: right !important;
  }

  .list-action-btns {
    gap: 0.4rem !important;
    padding-right: 0.75rem !important;
    justify-content: flex-end !important;
  }

  .list-btn-toggle-remixes {
    margin-right: 0.75rem !important;
    padding: 0.28rem 0.55rem !important;
    font-size: 0.74rem !important;
  }

  .list-btn-add-remix {
    padding: 0.2rem 0.35rem !important;
    font-size: 0.7rem !important;
  }

  .list-remixes-subrow td {
    padding: 0.4rem 0.2rem 0.4rem 0.5rem !important;
  }

  .list-remix-item-row {
    padding: 0.35rem 0.4rem !important;
    gap: 0.35rem !important;
  }
}

/* ==========================================================================
   REORDER TRACKS CONTROLS (GILA ADMIN MODE)
   ========================================================================== */
.list-reorder-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.drag-handle {
  cursor: grab;
  color: #64748B;
  font-size: 0.95rem;
  padding: 2px 3px;
  border-radius: 4px;
  transition: all 0.2s ease;
  user-select: none;
}

.drag-handle:hover {
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.15);
}

.drag-handle:active {
  cursor: grabbing;
}

.reorder-arrows {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.btn-move-up,
.btn-move-down {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  border-radius: 3px;
  width: 18px;
  height: 14px;
  font-size: 0.55rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-move-up:hover:not(:disabled),
.btn-move-down:hover:not(:disabled) {
  background: rgba(6, 182, 212, 0.25);
  border-color: #06B6D4;
  color: #FFFFFF;
  transform: scale(1.15);
}

.btn-move-up:disabled,
.btn-move-down:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* Drag & Drop Visual Feedback */
.spotify-list-row.dragging {
  opacity: 0.45;
  background: rgba(6, 182, 212, 0.2) !important;
  outline: 1px dashed #06B6D4 !important;
}

.spotify-list-row.drag-over {
  border-top: 2px solid #06B6D4 !important;
  background: rgba(6, 182, 212, 0.15) !important;
}

/* Reorder Badge & Drag & Drop for Grid Track Cards (Home Page) */
.card-reorder-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 20px;
  padding: 2px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-drag-handle {
  cursor: grab;
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 0 2px;
  user-select: none;
}

.card-drag-handle:hover {
  color: #06B6D4;
}

.card-drag-handle:active {
  cursor: grabbing;
}

.card-btn-prev,
.card-btn-next {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F0F4F8;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.card-btn-prev:hover:not(:disabled),
.card-btn-next:hover:not(:disabled) {
  background: #06B6D4;
  border-color: #A5F3FC;
  color: #070A12;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.card-btn-prev:disabled,
.card-btn-next:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.track-card.dragging {
  opacity: 0.45;
  transform: scale(0.95);
  border: 2px dashed #06B6D4 !important;
}

.track-card.drag-over {
  border: 2px solid #06B6D4 !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5) !important;
}

/* --- ADMIN USER MANAGEMENT TOOLBAR, FILTERS & BULK ACTIONS --- */
.admin-user-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.admin-user-search-wrapper {
  flex: 1;
  min-width: 220px;
}

.admin-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
}

.filter-chip.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06B6D4;
  color: #00F0FF;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.admin-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  animation: fadeIn 0.25s ease;
}

.bulk-selection-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bulk-count-badge {
  background: rgba(6, 182, 212, 0.25);
  color: #A5F3FC;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.bulk-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-micro {
  padding: 0.25rem 0.6rem !important;
  font-size: 0.75rem !important;
  border-radius: 6px !important;
}

.admin-user-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-user-card-top-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-status-dot.active-recent {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.user-status-dot.inactive {
  background: #F59E0B;
}

.user-status-dot.disabled {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.user-status-dot.never {
  background: #64748B;
}

.tier-select-wrapper {
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tier-select-label {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 600;
}

.tier-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F1F5F9;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-toggle-btn.full {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #34D399;
}

.tier-toggle-btn.custom {
  background: rgba(245, 158, 11, 0.2);
  border-color: #F59E0B;
  color: #FBBF24;
}








/* --- ADMIN LISTENER CLASSES & TAB NAVIGATION --- */
.admin-tab-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.admin-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-color: var(--accent-violet, #8B5CF6);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.admin-tab-section {
  display: block;
}

.admin-tab-section.hidden {
  display: none !important;
}

/* Color Picker Swatches */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-picker-input {
  -webkit-appearance: none;
  appearance: none;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

.color-picker-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-input::-webkit-color-swatch {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.color-swatches {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.color-swatch-opt {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-swatch-opt:hover {
  transform: scale(1.15);
}

.color-swatch-opt.active {
  border-color: #FFFFFF;
  box-shadow: 0 0 8px currentColor;
  transform: scale(1.15);
}

/* Listener Class Card in Admin Grid */
.admin-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.admin-class-card {
  position: relative;
  border-radius: 14px;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.25s ease;
}

.admin-class-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.class-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.class-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.class-color-tag {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.class-card-desc {
  font-size: 0.82rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.35;
}

.class-card-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #CBD5E1;
}

.class-stat-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.class-tracks-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.class-tracks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 0.5rem;
}

.user-class-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

.btn-manage-user-classes {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #C4B5FD;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-manage-user-classes:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #FFFFFF;
}

.classes-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.class-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease;
}

.class-checkbox-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* User Access Summary Box (Simplified UI) */
.user-access-summary-box {
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}

.user-assigned-classes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.classes-badge-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.class-override-hint {
  font-size: 0.74rem;
  color: #818CF8;
  margin: 0.4rem 0 0 0;
  font-weight: 500;
  line-height: 1.3;
}

/* ==========================================================================
   WRITING STUDIO SECTION STYLES (INTEGRATED SPA MODE)
   ========================================================================== */
#studioView {
  width: 100%;
}

.studio-container {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 1.25rem;
  padding: 1.25rem 0;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
}

.sidebar-panel {
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: calc(100vh - 140px);
  position: sticky;
  top: 90px;
}

.panel-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title-bar h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.song-search-box {
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.song-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #F0F4F8;
  font-size: 0.85rem;
  width: 100%;
}

.songs-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-right: 0.2rem;
}

.song-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.song-card-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateX(2px);
}

.song-card-item.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.song-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.btn-delete-song {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.btn-delete-song:hover {
  color: #EF4444;
}

.editor-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.beat-card-panel {
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.beat-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.beat-header-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.beat-header-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.beat-mode-tabs {
  display: flex;
  background: rgba(7, 10, 18, 0.6);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.beat-tab-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.beat-tab-btn.active {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.youtube-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.youtube-input-wrapper {
  flex: 1;
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.youtube-input-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: #F0F4F8;
  font-size: 0.88rem;
  width: 100%;
}

.beat-search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 0.75rem;
  padding-right: 0.3rem;
}

.beat-search-card {
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.beat-search-card:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.beat-card-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.beat-card-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beat-card-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.beat-card-title-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F0F4F8;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.beat-card-channel-text {
  font-size: 0.72rem;
  color: #94A3B8;
}

.btn-select-beat-card {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  margin-top: auto;
}

.btn-select-beat-card:hover {
  background: rgba(16, 185, 129, 0.4);
  color: #FFF;
}

.youtube-embed-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.youtube-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.beat-timestamps-bar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  margin-top: 0.5rem;
}

.timestamps-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #34D399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.beat-timestamps-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.timestamp-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.timestamp-btn:hover {
  background: rgba(16, 185, 129, 0.35);
  border-color: #34D399;
  color: #FFF;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.song-title-card {
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.title-input-large {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #F0F4F8;
  flex: 1;
  min-width: 200px;
}
.title-input-large::placeholder {
  color: rgba(240, 244, 248, 0.3);
}

.lyrics-stats-badge {
  font-size: 0.82rem;
  color: #94A3B8;
  background: rgba(7, 10, 18, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.single-lyrics-panel {
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.single-lyrics-textarea {
  background: rgba(7, 10, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem;
  color: #F0F4F8;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
  min-height: 420px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}
.single-lyrics-textarea:focus {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
}
.single-lyrics-textarea::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.tools-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: calc(100vh - 140px);
  position: sticky;
  top: 90px;
}

.notes-card {
  flex: 1;
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notes-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.notes-textarea {
  flex: 1;
  background: rgba(7, 10, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.75rem;
  color: #F0F4F8;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: none;
  outline: none;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-action * {
  pointer-events: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F0F4F8;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-studio-green {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34D399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}
.btn-studio-green:hover {
  background: rgba(16, 185, 129, 0.35);
  border-color: #34D399;
  color: #FFF;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .studio-container {
    grid-template-columns: 1fr;
  }
  .sidebar-panel, .tools-sidebar {
    height: auto;
    position: static;
  }
}

/* Studio Top Navigation Bar */
.studio-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.btn-back-vault {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #F0F4F8 !important;
  font-weight: 700 !important;
}

.btn-back-vault:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #FFF !important;
}

/* ==========================================================================
   WRITING STUDIO - DEDICATED MOBILE RESPONSIVE ENGINE (@media max-width: 768px)
   ========================================================================== */
.studio-top-nav-pills {
  display: none;
}

@media (max-width: 768px) {
  #studioView {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .studio-top-bar {
    position: sticky;
    top: 0;
    z-index: 80;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
  }

  .studio-top-nav-pills {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.45rem;
  }

  .studio-nav-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  .studio-nav-pill.active {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34D399;
  }

  .btn-back-vault {
    min-height: 44px;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  .studio-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.25rem 0;
  }

  /* Prevent iOS Safari 16px auto-zoom on input focus */
  .title-input-large {
    font-size: 1.25rem !important;
  }

  .single-lyrics-textarea {
    font-size: 16px !important; /* Mandatory iOS 16px standard to avoid auto-zoom */
    min-height: 360px;
    padding: 0.85rem;
    line-height: 1.6;
    border-radius: 12px;
  }

  .notes-textarea {
    font-size: 16px !important;
    min-height: 180px;
  }

  .song-search-box input,
  .youtube-input-wrapper input {
    font-size: 16px !important;
  }

  /* Compact Touch Buttons for Mobile */
  .btn-action,
  .beat-tab-btn,
  .timestamp-btn,
  .btn-select-beat-card {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  .beat-search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 0.55rem;
    max-height: 340px;
  }

  .beat-card-title-text {
    font-size: 0.75rem;
  }

  .song-card-item {
    padding: 0.75rem 0.85rem;
    min-height: 48px;
  }

  .song-title-card {
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .sidebar-panel,
  .beat-card-panel,
  .single-lyrics-panel,
  .notes-card {
    padding: 0.95rem;
    border-radius: 14px;
  }
}

/* Studio Hub Directory & Two-Level View Styles */
.studio-subview.hidden {
  display: none !important;
}

.studio-hub-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 0;
}

.studio-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hub-title-box h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #F0F4F8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hub-title-box p {
  font-size: 0.88rem;
  color: #94A3B8;
  margin-top: 0.2rem;
}

.btn-large-hub {
  padding: 0.75rem 1.35rem !important;
  font-size: 0.95rem !important;
  border-radius: 12px !important;
}

.songs-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.song-hub-card {
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.song-hub-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hub-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.hub-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #F0F4F8;
  line-height: 1.3;
}

.hub-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hub-meta-badge {
  font-size: 0.76rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: rgba(7, 10, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  font-weight: 600;
}

.hub-meta-badge.green {
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.12);
}

.hub-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-open-song-hub {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34D399;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-open-song-hub:hover {
  background: rgba(16, 185, 129, 0.35);
  color: #FFF;
}

.studio-editor-single-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Studio Workspace Top Row: Beat Panel + Tags Panel */
.studio-top-workspace-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.25rem;
  align-items: start;
}

.studio-status-tags-panel {
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tags-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tags-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tags-panel-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #F0F4F8;
  margin: 0;
}

.tags-panel-hint {
  font-size: 0.72rem;
  color: var(--text-muted, #94A3B8);
}

.tags-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tags-group-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94A3B8;
}

.tags-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tags-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.tag-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: rgba(7, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.tag-row-item:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
}

.tag-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #E2E8F0;
}

.tag-part-item .tag-label {
  font-size: 0.8rem;
}

/* Solo Colore nei Tag: nessun testo stampato all'interno */
.tag-color-pill {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.tag-color-pill:hover {
  transform: scale(1.12);
}

/* 🔴 Rosso: Da fare */
.tag-color-pill[data-status="todo"],
.legend-dot.status-todo,
.hub-color-dot.status-todo {
  background-color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.85) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6) !important;
}

/* 🟡 Giallo: Work in progress */
.tag-color-pill[data-status="wip"],
.legend-dot.status-wip,
.hub-color-dot.status-wip {
  background-color: #F59E0B !important;
  border-color: rgba(245, 158, 11, 0.85) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6) !important;
}

/* 🟢 Verde: Fatto */
.tag-color-pill[data-status="done"],
.legend-dot.status-done,
.hub-color-dot.status-done {
  background-color: #10B981 !important;
  border-color: rgba(16, 185, 129, 0.85) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6) !important;
}

.tags-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #94A3B8;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* --- Card Esterna Hub: Tag di Stato Visibili (Senza Scritte, Solo Colori) --- */
.hub-tags-summary {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
  background: rgba(7, 10, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.hub-tags-macro-row,
.hub-tags-parts-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hub-tags-sublabel {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 54px;
}

.hub-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.hub-color-dot:hover {
  transform: scale(1.2);
}

.hub-macro-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hub-part-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hub-part-code {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94A3B8;
}

/* Separazione Mobile: solo su dispositivi mobili */
@media (max-width: 900px) {
  .studio-top-workspace-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .studio-status-tags-panel {
    width: 100%;
  }
}

/* --- CANZONI NASCOSTE GILA ADMIN STYLES --- */
.btn-hdr-hidden-tracks {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #F87171 !important;
  display: inline-flex;
  align-items: center !important;
  gap: 0.4rem !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-hdr-hidden-tracks.hidden {
  display: none !important;
}

.btn-hdr-hidden-tracks:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #FFF !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

.badge-count-hidden {
  background: #EF4444 !important;
  color: #FFF !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  padding: 0.1rem 0.4rem !important;
  border-radius: 10px !important;
  line-height: 1 !important;
}

.btn-icon-hide {
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #F87171 !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-icon-hide:hover {
  background: rgba(239, 68, 68, 0.4) !important;
  color: #FFF !important;
  transform: scale(1.1) !important;
}

.list-hide-btn {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #F87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.list-hide-btn:hover {
  background: rgba(239, 68, 68, 0.4) !important;
  color: #FFF !important;
}

.hidden-track-card {
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  background: rgba(18, 12, 22, 0.7) !important;
}

/* --- STUDIO DELETE SONG BUTTON STYLES --- */
.btn-delete-song {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #F87171 !important;
  border-radius: 8px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  z-index: 10 !important;
}

.btn-delete-song:hover {
  background: rgba(239, 68, 68, 0.35) !important;
  color: #FFF !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

.btn-action.btn-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #F87171 !important;
}

.btn-action.btn-danger:hover {
  background: rgba(239, 68, 68, 0.35) !important;
  color: #FFF !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

/* --- STUDIO HIDE SONG FROM POMO (GILA ADMIN EXCLUSIVE) --- */
.btn-hide-song {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #94A3B8 !important;
  border-radius: 8px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  z-index: 10 !important;
}

.btn-hide-song:hover {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #FBBF24 !important;
  transform: scale(1.08) !important;
}

.btn-hide-song.is-hidden-pomo {
  background: rgba(245, 158, 11, 0.25) !important;
  border: 1px solid rgba(245, 158, 11, 0.6) !important;
  color: #FBBF24 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3) !important;
}

.btn-hide-song.is-hidden-pomo:hover {
  background: rgba(245, 158, 11, 0.4) !important;
  color: #FFF !important;
  transform: scale(1.08) !important;
}

.btn-action.btn-studio-hide {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #E2E8F0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.btn-action.btn-studio-hide:hover {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #FBBF24 !important;
}

.btn-action.btn-studio-hide.is-hidden-pomo {
  background: rgba(245, 158, 11, 0.25) !important;
  border: 1px solid rgba(245, 158, 11, 0.6) !important;
  color: #FBBF24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

.btn-action.btn-studio-hide.is-hidden-pomo:hover {
  background: rgba(245, 158, 11, 0.4) !important;
  color: #FFF !important;
}

.song-hub-card.is-hidden-pomo {
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  background: rgba(26, 20, 16, 0.7) !important;
}

.hub-meta-badge.badge-hidden-pomo {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #FBBF24 !important;
  font-weight: 700 !important;
}

/* --- STUDIO SONG SECTIONS & MANUAL MARKERS ENGINE --- */
.studio-sections-container {
  margin-top: 1rem;
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.studio-sections-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.studio-sections-title-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.studio-sections-badge-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #F1F5F9;
}

.studio-sections-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted, #94A3B8);
}

.studio-sections-chips-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
}

.section-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F1F5F9;
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.section-chip:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34D399;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.section-chip.active-section-chip {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: #10B981 !important;
  color: #FFF !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4) !important;
}

.chip-play-icon {
  font-size: 0.65rem;
  color: #10B981;
  transition: transform 0.15s ease;
}

.section-chip:hover .chip-play-icon {
  transform: scale(1.2);
}

.chip-label {
  font-weight: 700;
}

.chip-time {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: #94A3B8;
  font-family: monospace;
}

.section-chip.active-section-chip .chip-time {
  color: #D1FAE5;
  background: rgba(0, 0, 0, 0.4);
}

.chip-btn-delete {
  font-size: 1rem;
  line-height: 1;
  color: #94A3B8;
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  margin-left: 0.2rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn-delete:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.25);
}

/* Quick Add Form */
.studio-add-section-form {
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: fadeInDown 0.2s ease;
}

.section-presets-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.presets-label {
  font-size: 0.75rem;
  color: #94A3B8;
  margin-right: 0.2rem;
}

.btn-preset-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  border-radius: 12px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset-chip:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10B981;
  color: #FFF;
}

.section-inputs-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.section-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-input-group.flex-2 {
  flex: 2;
  min-width: 140px;
}

.section-input-group.flex-1 {
  flex: 1;
  min-width: 90px;
}

.section-input-group label {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
}

.section-input-group input {
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  color: #FFF;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.section-input-group input:focus {
  border-color: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.section-form-buttons {
  display: flex;
  gap: 0.4rem;
}

.btn-small-action {
  padding: 0.45rem 0.85rem !important;
  font-size: 0.8rem !important;
}

.no-sections-hint {
  font-size: 0.8rem;
  color: var(--text-muted, #94A3B8);
  font-style: italic;
  padding: 0.35rem 0;
}

/* --- USER GENDER PILL BUTTON (BENTORNATO / BENTORNATA) --- */
.btn-user-gender-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-user-gender-toggle:hover {
  transform: scale(1.05);
}

.btn-user-gender-toggle.gender-male {
  background: rgba(6, 182, 212, 0.15) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  color: #06B6D4 !important;
}

.btn-user-gender-toggle.gender-female {
  background: rgba(236, 72, 153, 0.15) !important;
  border-color: rgba(236, 72, 153, 0.4) !important;
  color: #F472B6 !important;
}

/* ==========================================================================
   PERSONAL AREA MODAL & PROFILE STYLES (TEMPLATE TEST GILA)
   ========================================================================== */
.modal-card-personal {
  max-width: 580px;
  width: 95%;
  background: rgba(13, 17, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(139, 92, 246, 0.12);
}

.personal-area-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(6, 182, 212, 0.12) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 1.75rem 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.personal-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.personal-avatar-container {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(139, 92, 246, 0.6);
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.3);
  transition: border-color 0.3s ease;
}

.personal-avatar-container:hover {
  border-color: rgba(6, 182, 212, 0.8);
}

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

.personal-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
  color: #C4B5FD;
}

.btn-avatar-camera {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8B5CF6;
  border: 2px solid #0D111C;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-avatar-camera:hover {
  background: #7C3AED;
  transform: scale(1.1);
}

.personal-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.personal-user-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.personal-username {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.3px;
}

.personal-role-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.personal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted, #94A3B8);
  margin: 0;
}

.personal-avatar-actions-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.btn-personal-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F0F4F8;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-personal-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-personal-action.btn-personal-danger {
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-personal-action.btn-personal-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.personal-area-body {
  padding: 1.5rem 1.75rem 2rem 1.75rem;
  max-height: 70vh;
  overflow-y: auto;
}

.personal-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.personal-stat-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.personal-stat-card:hover {
  transform: translateY(-2px);
}

.personal-stat-card.card-glow-violet {
  border-color: rgba(139, 92, 246, 0.25);
}
.personal-stat-card.card-glow-violet:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.personal-stat-card.card-glow-cyan {
  border-color: rgba(6, 182, 212, 0.25);
}
.personal-stat-card.card-glow-cyan:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.personal-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.personal-stat-icon-wrap.icon-violet {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
}

.personal-stat-icon-wrap.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #06B6D4;
}

.personal-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.personal-stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted, #94A3B8);
}

.personal-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
}

.personal-stat-hint {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.65);
}

.personal-top-track-section {
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
}

.personal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
}

.personal-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.personal-section-title-wrap h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.personal-top-track-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.personal-top-track-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: rgba(7, 10, 18, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  cursor: pointer;
}

.personal-top-track-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.personal-top-cover {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.8);
}

.personal-top-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.personal-top-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.personal-top-artist {
  font-size: 0.8rem;
  color: var(--text-muted, #94A3B8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.personal-top-stats-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.74rem;
  margin-top: 0.15rem;
}

.personal-top-plays-tag {
  color: #FBBF24;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.personal-top-duration-tag {
  color: rgba(148, 163, 184, 0.7);
}

.personal-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-violet, #8B5CF6);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

.personal-top-track-card:hover .personal-play-btn {
  transform: scale(1.1);
  background: #7C3AED;
}

.personal-empty-track {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted, #94A3B8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.personal-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

/* Header Avatar Circle Image Support */
.user-hdr-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Account Actions & Settings in Personal Area */
.personal-account-actions-section {
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
}

.personal-admin-controls-group {
  background: rgba(7, 10, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.personal-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.personal-setting-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.personal-setting-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
}

.personal-setting-desc {
  font-size: 0.75rem;
  color: var(--text-muted, #94A3B8);
}

.personal-account-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.btn-personal-account-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F0F4F8;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-personal-account-action:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-personal-account-action.btn-personal-logout {
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
}

.btn-personal-account-action.btn-personal-logout:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #FF8080;
}

/* ==========================================================================
   MOBILE RESPONSIVE RULES FOR PERSONAL AREA MODAL
   ========================================================================== */
@media (max-width: 768px) {
  .modal-card-personal {
    max-width: 95%;
    border-radius: 16px;
  }

  .personal-area-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    gap: 1rem;
  }

  .personal-user-badge-row {
    justify-content: center;
  }

  .personal-avatar-actions-row {
    justify-content: center;
  }

  .personal-area-body {
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
  }

  .personal-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .personal-stat-card {
    padding: 0.95rem;
  }

  .personal-top-track-section {
    padding: 1rem;
  }

  .personal-account-buttons-grid {
    grid-template-columns: 1fr;
  }

  .soci-access-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .user-tracks-table-head {
    display: none;
  }

  .user-track-row {
    grid-template-columns: 28px 1fr 34px;
    grid-template-rows: auto auto;
    gap: 0.45rem 0.5rem;
    padding: 0.65rem 0.75rem;
  }

  .user-track-cell-rank {
    grid-column: 1;
    grid-row: 1;
  }

  .user-track-cell-song {
    grid-column: 2;
    grid-row: 1;
  }

  .user-track-cell-action {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .user-track-cell-plays {
    grid-column: 1 / 3;
    grid-row: 2;
    padding-left: 34px;
  }

  .user-track-cell-bar {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-self: end;
    width: 130px;
    padding-right: 0;
  }

  .user-tracks-hero-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem;
    gap: 0.85rem;
  }

  .user-tracks-hero-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .user-tracks-hero-stat-card:last-child {
    grid-column: 1 / -1;
  }

  .user-tracks-hero-stat-value-track {
    max-width: 100%;
  }
}

/* ==========================================================================
   COOLPIX RETRO STUDIO - VINTAGE ANALOG & VHS CONVERTER DESIGN SYSTEM
   ========================================================================== */
.retro-studio-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
}

.retro-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.retro-badge-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.retro-pill-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.retro-pill-cam {
  background: rgba(255, 184, 0, 0.15);
  color: #FFB800;
  border: 1px solid rgba(255, 184, 0, 0.4);
}

.retro-pill-admin {
  background: rgba(0, 240, 255, 0.15);
  color: #00F0FF;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.retro-pill-engine {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.retro-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 0.25rem;
}

.retro-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 650px;
  line-height: 1.45;
}

.retro-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Mode Switcher: Coolpix vs GoPro */
.retro-mode-switch-box {
  display: inline-flex;
  align-items: center;
  background: rgba(10, 15, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-retro-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 24px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.btn-retro-mode:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn-retro-mode.active[data-mode="coolpix"] {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.25) 0%, rgba(255, 138, 0, 0.15) 100%);
  border-color: rgba(255, 184, 0, 0.5);
  color: #FFB800;
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.25);
}

.btn-retro-mode.active[data-mode="gopro"] {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(59, 130, 246, 0.18) 100%);
  border-color: rgba(6, 182, 212, 0.55);
  color: #00F0FF;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.3);
}

.btn-retro-mode .mode-icon {
  font-size: 1rem;
}

.btn-retro-mode .mode-text {
  letter-spacing: 0.02em;
}

.retro-workspace-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.retro-card {
  background: rgba(13, 18, 30, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.retro-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.retro-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.retro-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB800, #F59E0B);
  color: #070A12;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.retro-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.retro-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.retro-dropzone {
  position: relative;
  border: 2px dashed rgba(255, 184, 0, 0.35);
  border-radius: 12px;
  background: rgba(255, 184, 0, 0.02);
  padding: 1.75rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

.retro-dropzone:hover,
.retro-dropzone.dragover {
  border-color: #FFB800;
  background: rgba(255, 184, 0, 0.08);
  box-shadow: 0 0 25px rgba(255, 184, 0, 0.18);
}

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

.retro-drop-icon {
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.retro-drop-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.retro-drop-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.retro-drop-browse {
  color: #FFB800;
  text-decoration: underline;
  font-weight: 600;
}

.retro-format-pills {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.retro-format-pills span {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.retro-upload-progress {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem;
}

.retro-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.retro-progress-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.retro-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FFB800, #00F0FF);
  transition: width 0.2s ease;
}

.retro-glow-bar {
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
}

.retro-options-wrapper {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.retro-options-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.retro-options-tabs-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.retro-subtab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retro-subtab-btn:hover {
  color: #FFFFFF;
}

.retro-subtab-btn.active {
  background: rgba(255, 184, 0, 0.2);
  color: #FFB800;
  border: 1px solid rgba(255, 184, 0, 0.45);
}

.retro-options-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.02em;
}

.retro-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.retro-option-select-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.retro-select-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #F1F5F9;
  font-size: 0.78rem;
  padding: 0.42rem 0.6rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retro-select-input:focus {
  border-color: #FFB800;
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.3);
}

.retro-datestamp-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.retro-year-input {
  width: 90px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 184, 0, 0.4);
  border-radius: 6px;
  color: #FFB800;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.42rem 0.5rem;
  text-align: center;
  outline: none;
}

.retro-options-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.retro-option-mini-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.retro-mini-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #E2E8F0;
}

.retro-select-mini {
  font-size: 0.74rem;
  padding: 0.35rem 0.5rem;
}

.retro-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.retro-toggle-row:last-child {
  border-bottom: none;
}

.retro-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.retro-toggle-info strong {
  font-size: 0.82rem;
  color: #FFFFFF;
}

.retro-toggle-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.retro-toggle-input {
  width: 18px;
  height: 18px;
  accent-color: #FFB800;
  cursor: pointer;
}

.retro-queue-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.retro-queue-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.retro-queue-title-wrap h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.retro-count-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.retro-count-highlight {
  background: rgba(0, 240, 255, 0.15);
  color: #00F0FF;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.retro-queue-items-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.retro-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.retro-queue-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 184, 0, 0.25);
}

.retro-queue-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
  flex-grow: 1;
}

.retro-queue-thumb-box {
  width: 52px;
  height: 42px;
  border-radius: 5px;
  overflow: hidden;
  background: #060913;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.retro-queue-thumb-box:hover {
  border-color: #FFB800;
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.35);
}

.retro-queue-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.retro-queue-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.retro-queue-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
  flex-grow: 1;
}

.retro-queue-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.retro-queue-item-name:hover {
  color: #FFB800;
}

.retro-queue-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.retro-queue-item-size {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.retro-queue-item-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
}

.retro-queue-item-badge.photo {
  background: rgba(255, 184, 0, 0.15);
  color: #FFB800;
}

.retro-queue-item-badge.video {
  background: rgba(0, 240, 255, 0.15);
  color: #00F0FF;
}

.retro-queue-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-retro-queue-view {
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.3);
  color: #FFB800;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-retro-queue-view:hover {
  background: rgba(255, 184, 0, 0.25);
  color: #FFF;
}

.btn-retro-rotate-item {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #06B6D4;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-retro-rotate-item:hover {
  background: rgba(6, 182, 212, 0.28);
  border-color: #06B6D4;
  color: #FFF;
  transform: scale(1.1);
}

.btn-retro-rotate-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-retro-del-item {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.2rem 0.35rem;
  transition: transform 0.2s;
}

.btn-retro-del-item:hover {
  transform: scale(1.2);
}

.retro-cta-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.retro-live-progress-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.retro-live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.retro-live-status-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.retro-spin-gear {
  display: inline-block;
  animation: spinGear 3s linear infinite;
}

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

.retro-live-text {
  font-size: 0.8rem;
  color: #00F0FF;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.retro-live-pct {
  font-size: 0.95rem;
  color: #FFB800;
  font-weight: 800;
}

.retro-terminal-logs {
  background: #040711;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.6rem;
  max-height: 120px;
  overflow-y: auto;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.72rem;
  color: #A78BFA;
  line-height: 1.4;
}

.retro-results-card {
  min-height: 580px;
}

.retro-results-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.retro-filter-bar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.retro-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retro-filter-btn:hover {
  border-color: rgba(255, 184, 0, 0.3);
  color: #FFFFFF;
}

.retro-filter-btn.active {
  background: rgba(255, 184, 0, 0.15);
  color: #FFB800;
  border-color: rgba(255, 184, 0, 0.45);
}

.retro-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  max-height: 700px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.retro-result-card {
  background: rgba(7, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.retro-result-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 0, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.retro-media-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #060913;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.retro-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.retro-result-card:hover .retro-thumb-img {
  transform: scale(1.04);
}

.retro-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.retro-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.retro-card-badge.vintage {
  background: rgba(245, 158, 11, 0.88);
  color: #070A12;
}

.retro-card-badge.polaroid {
  background: rgba(245, 245, 240, 0.95);
  color: #070A12;
}

.retro-card-badge.film35 {
  background: rgba(217, 119, 6, 0.92);
  color: #070A12;
  border: 1px solid rgba(251, 191, 36, 0.6);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.retro-card-badge.vhs {
  background: rgba(6, 182, 212, 0.9);
  color: #070A12;
}

.retro-result-info {
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
  justify-content: space-between;
}

.retro-result-filename {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.retro-result-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-retro-thumb-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #EF4444;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.btn-retro-thumb-del:hover {
  background: rgba(239, 68, 68, 0.95);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.retro-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.retro-result-actions-primary {
  display: flex;
  gap: 0.35rem;
  width: 100%;
}

.retro-actions-icon-group {
  display: flex;
  gap: 0.3rem;
  width: 100%;
}

.retro-actions-icon-group .btn-retro-action {
  padding: 0.35rem 0.25rem;
  font-size: 0.8rem;
}

.btn-retro-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-retro-action:hover {
  background: rgba(255, 184, 0, 0.2);
  border-color: rgba(255, 184, 0, 0.4);
  color: #FFB800;
}

.btn-retro-action.btn-del {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-retro-action.btn-del:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #FFFFFF;
}

/* Modal Lightbox Preview */
.retro-preview-modal-card {
  max-width: 1080px;
  width: 95vw;
  height: 90vh !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 1.25rem 1.25rem 1rem !important;
  box-sizing: border-box;
}

.retro-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.retro-preview-title-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
}

.retro-preview-title-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 0.15rem;
}

.retro-preview-title-box h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.retro-preview-subinfo {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.retro-preview-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-retro-action.btn-preview {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.3);
  color: #00F0FF;
}

.btn-retro-action.btn-preview:hover {
  background: rgba(0, 240, 255, 0.25);
  color: #FFFFFF;
}

.retro-pill-badge.retro-pill-vintage {
  background: rgba(255, 184, 0, 0.2);
  color: #FFB800;
  border: 1px solid rgba(255, 184, 0, 0.35);
}

.retro-pill-badge.retro-pill-polaroid {
  background: rgba(236, 72, 153, 0.2);
  color: #F472B6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.retro-preview-body-container {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: #04060c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden !important;
  position: relative;
  box-sizing: border-box;
}

.retro-preview-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto;
  height: auto;
  object-fit: contain !important;
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  transition: opacity 0.2s ease;
  display: block;
  margin: auto;
}

.retro-preview-video {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto;
  height: auto;
  border-radius: 6px;
  background: #000;
  object-fit: contain !important;
  display: block;
  margin: auto;
}

/* Split-Screen Slider "Prima / Dopo" */
.retro-split-slider-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  user-select: none;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.85);
  margin: auto;
}

.retro-split-img-base {
  display: block;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto;
  height: auto;
  object-fit: contain !important;
  pointer-events: none;
}

.retro-split-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  clip-path: polygon(0 0, var(--split-pos, 50%) 0, var(--split-pos, 50%) 100%, 0 100%);
}

.retro-split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pos, 50%);
  width: 3px;
  background: #FFB800;
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.8);
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 5;
}

.retro-split-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0F172A;
  border: 2px solid #FFB800;
  color: #FFB800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.retro-split-label {
  position: absolute;
  bottom: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 6;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.retro-split-label.label-left {
  left: 12px;
  background: rgba(6, 182, 212, 0.85);
  color: #050811;
}

.retro-split-label.label-right {
  right: 12px;
  background: rgba(245, 158, 11, 0.9);
  color: #050811;
}

.retro-split-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: ew-resize;
  z-index: 10;
}

/* Toast feedback for clipboard */
.retro-toast-notify {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #10B981;
  color: #10B981;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  z-index: 99999999;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.retro-toast-notify.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Mobile Layout */
@media (max-width: 900px) {
  .retro-workspace-grid {
    grid-template-columns: 1fr;
  }
  .retro-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .retro-top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .retro-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .retro-queue-item-name {
    max-width: 150px;
  }
  .retro-preview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .retro-preview-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

/* ==========================================================================
   18. PROSSIME USCITE / BRANI IN LAVORAZIONE (IN-GRID WORK IN PROGRESS)
   ========================================================================== */

.track-card.track-card-wip {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px dashed rgba(139, 92, 246, 0.45);
  position: relative;
  transition: all var(--transition-fast);
}

.track-card.track-card-wip:hover {
  border-style: solid;
  border-color: rgba(6, 182, 212, 0.65);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
}

.track-card-wip .track-cover-image.blurred {
  filter: blur(16px);
  transform: scale(1.1);
}

.track-wip-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
  gap: 0.3rem;
  padding: 0.5rem;
  text-align: center;
  z-index: 2;
}

.track-wip-overlay .wip-coming-soon-text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(15, 23, 42, 0.65);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.track-wip-overlay .wip-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
}

.track-wip-overlay .wip-text {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.track-wip-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #E2E8F0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.card-wip-admin-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 15;
}

.card-wip-admin-badges button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.card-wip-admin-badges button:hover {
  background: #8B5CF6;
  border-color: #8B5CF6;
  transform: scale(1.1);
}

.card-wip-admin-badges button.btn-wip-delete:hover {
  background: #EF4444;
  border-color: #EF4444;
}

.track-title-spoiler {
  font-family: monospace;
  letter-spacing: 2px;
  color: #06B6D4 !important;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
  cursor: pointer;
  user-select: none;
}

.track-title-spoiler.revealed {
  font-family: inherit;
  letter-spacing: normal;
  color: #A78BFA !important;
}

.track-wip-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.btn-wip-toggle-vis {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wip-toggle-vis.published {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ADE80;
}

.btn-wip-toggle-vis.draft {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

.track-wip-notes {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #94A3B8;
  font-style: italic;
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid #8B5CF6;
  padding: 0.2rem 0.45rem;
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
