/* ============================================
   PINOY-OKE: CULTURAL MUSIC LAB
   Design System & Global Styles
   Brand: Royal Blue #002366 · Gold #FFD700 · Magenta #FF00FF
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Palette */
  --royal-blue: #002366;
  --royal-blue-light: #003399;
  --royal-blue-dark: #001a4d;
  --gold: #FFD700;
  --gold-light: #FFE44D;
  --gold-dark: #C7A600;
  --magenta: #FF00FF;
  --magenta-light: #FF66FF;
  --magenta-dark: #CC00CC;

  /* Neutrals */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f33;
  --bg-card-hover: #232940;
  --bg-elevated: #242a3f;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a4b8;
  --text-muted: #6b7085;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #002366 0%, #0d1b4a 40%, #1a0a2e 100%);
  --gradient-magenta: linear-gradient(135deg, #FF00FF, #cc00cc);
  --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-blue: linear-gradient(135deg, #002366, #003399);
  --gradient-card: linear-gradient(145deg, rgba(26, 31, 51, 0.8), rgba(10, 14, 26, 0.9));
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-magenta: 0 0 20px rgba(255, 0, 255, 0.3);
  --shadow-glow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --shadow-glow-blue: 0 0 20px rgba(0, 35, 102, 0.4);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --nav-height: 72px;
  --header-height: 56px;
  --max-width: 480px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── High Contrast Mode ── */
[data-high-contrast="true"] {
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #dddddd;
  --gold: #FFFF00;
  --magenta: #FF44FF;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 0, 255, 0.3);
  border-radius: var(--radius-full);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--gold-light); }

/* ── App Layout ── */
#app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  background: var(--bg-primary);
}

/* ── Header ── */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--gold), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-logo-icon {
  font-size: 1.4rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.header-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* ── Main Content ── */
.main-content {
  padding-top: var(--header-height);
  padding-bottom: calc(var(--nav-height) + 16px);
  min-height: 100dvh;
}

/* ── Screen Container ── */
.screen {
  display: none;
  padding: var(--space-md);
  animation: screenFadeIn 0.3s ease;
}

.screen.active {
  display: block;
}

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

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-xs) var(--space-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  min-width: 52px;
}

.nav-item .nav-icon {
  font-size: 1.3rem;
  transition: transform var(--transition-normal);
}

.nav-item.active {
  color: var(--magenta);
}

.nav-item.active .nav-icon {
  transform: scale(1.15);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gradient-magenta);
  border-radius: 0 0 3px 3px;
}

.nav-item:hover {
  color: var(--text-secondary);
}

/* ── Cards ── */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-magenta);
  color: white;
  box-shadow: var(--shadow-glow-magenta);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--royal-blue-dark);
  box-shadow: var(--shadow-glow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--magenta);
  border: 1px solid var(--magenta);
}
.btn-outline:hover {
  background: rgba(255, 0, 255, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ── Form Elements ── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-field {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 0, 255, 0.15);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--magenta);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }

.search-bar .search-icon {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Chips / Tags ── */
.chip-row {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-xs) 0;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.chip.active {
  background: var(--gradient-magenta);
  color: white;
  border-color: transparent;
}

.chip:hover:not(.active) {
  border-color: var(--magenta);
  color: var(--text-primary);
}

/* ── Section Headers ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.section-link {
  font-size: 0.85rem;
  color: var(--magenta);
  font-weight: 500;
}

/* ── Song Card ── */
.song-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.song-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.song-card:hover {
  border-color: var(--border-light);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.song-card .song-art {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.song-card .song-info {
  flex: 1;
  min-width: 0;
}

.song-card .song-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-card .song-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.song-card .song-action {
  color: var(--magenta);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Toggle Switch ── */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-normal);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--magenta);
  border-color: var(--magenta);
}

.toggle-switch input:checked + .toggle-slider::before {
  left: calc(100% - 21px);
  background: white;
}

/* ── Modal / Overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: var(--max-width);
  max-height: 85vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-lg);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
}

/* ── Floating Pulse Animation ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 255, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 0, 255, 0.6); }
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-magenta {
  background: rgba(255, 0, 255, 0.15);
  color: var(--magenta-light);
  border: 1px solid rgba(255, 0, 255, 0.3);
}

.badge-blue {
  background: rgba(0, 35, 102, 0.3);
  color: #66aaff;
  border: 1px solid rgba(0, 35, 102, 0.5);
}

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.6;
}

.empty-state .empty-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.empty-state .empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 280px;
}

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-magenta { color: var(--magenta); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Large Lyrics Mode ── */
[data-large-lyrics="true"] {
  --font-size-lyrics: 1.6rem;
}

/* ── Responsive tweaks for wider screens ── */
@media (min-width: 481px) {
  #app {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
  }
}

/* ── Hero specific ── */
.hero-section {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 50% 20%, rgba(0, 35, 102, 0.1) 0%, transparent 50%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-mic {
  font-size: 4rem;
  display: block;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.4));
  animation: float 3s ease-in-out infinite;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold) 0%, var(--magenta) 50%, var(--gold) 100%);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  position: relative;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto var(--space-lg);
  position: relative;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  position: relative;
}

/* ── Tab bar for sub-navigation ── */
.tab-bar {
  display: flex;
  gap: var(--space-xs);
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.tab-item {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-item.active {
  background: var(--magenta);
  color: white;
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-magenta);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

/* ── Venue Queue ── */
.queue-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.queue-item.now-singing {
  border-color: var(--magenta);
  background: rgba(255, 0, 255, 0.05);
}

.queue-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.queue-item.now-singing .queue-number {
  background: var(--magenta);
  color: white;
}

/* ── Settings List ── */
.settings-group {
  margin-bottom: var(--space-lg);
}

.settings-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xs);
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.settings-item:hover {
  background: var(--bg-card-hover);
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.settings-item-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.settings-item-text .settings-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.settings-item-text .settings-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--magenta);
  background: rgba(255, 0, 255, 0.03);
}

.upload-zone .upload-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.upload-zone .upload-text {
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.upload-zone .upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Karaoke Player ── */
.player-container {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-height) - var(--nav-height) - 16px);
  position: relative;
}

.lyrics-display {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) 0;
  scroll-behavior: smooth;
}

.lyric-line {
  padding: var(--space-sm) 0;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-normal);
  font-family: var(--font-display);
}

.lyric-line.active {
  color: var(--gold);
  font-size: 1.5rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.lyric-line .chord {
  color: var(--magenta);
  font-size: 0.85em;
  font-weight: 700;
}

.player-controls {
  padding: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.player-controls .controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: var(--space-sm);
}

.control-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.control-btn.play-pause {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-magenta);
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-magenta);
}

.control-btn.play-pause:hover {
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

/* ── Artist Profile Card ── */
.artist-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.artist-card:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
}

.artist-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.artist-info {
  flex: 1;
}

.artist-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.artist-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── QR Display ── */
/* ═══════════ PREMIUM VENUE MODE UI ═══════════ */
.qr-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  margin: var(--space-lg) 0;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.qr-display::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.1) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.qr-display > * {
  z-index: 1;
}

.qr-display canvas,
.qr-display img {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 0 4px var(--gold); }
  100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 0 4px var(--gold); }
}

.qr-label {
  color: var(--gold);
  font-weight: 800;
  margin-top: var(--space-md);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.venue-empty-state {
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.venue-empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-sm);
  animation: float 4s ease-in-out infinite;
}

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

.btn-pulse {
  animation: btn-pulse 2s infinite;
}

@keyframes btn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}


/* ── Stat Cards ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  max-width: calc(var(--max-width) - 32px);
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  z-index: 300;
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: #22c55e; }
.toast.error { border-color: #ef4444; }

/* ─── Duet Mode ─── */
.duet-tag { 
  font-size: 0.6em; 
  text-transform: uppercase; 
  margin-right: 8px; 
  font-weight: 800; 
  padding: 2px 6px;
  border-radius: 4px;
}
.duet-tag.male { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.duet-tag.female { background: rgba(255, 0, 255, 0.2); color: var(--magenta); }
.duet-tag.both { background: rgba(255, 215, 0, 0.2); color: var(--gold); }

.lyric-line.duet-m.active { color: #93c5fd; text-shadow: 0 0 10px rgba(59, 130, 246, 0.6); }
.lyric-line.duet-f.active { color: #f9a8d4; text-shadow: 0 0 10px rgba(255, 0, 255, 0.6); }
.lyric-line.duet-both.active { color: #fef08a; text-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }

/* ─── Screen Pulse Visualizer ─── */
.pulse-screen::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 60px 20px rgba(255, 0, 255, 0.8);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  animation: rhythm-pulse 0.4s ease-out;
}
@keyframes rhythm-pulse {
  0% { opacity: 0; }
  10% { opacity: 1; }
  100% { opacity: 0; }
}

/* ─── Hyper-Contrast ARIA Colors ─── */
[data-high-contrast="true"] {
  --bg-primary: #000000 !important;
  --bg-secondary: #000000 !important;
  --bg-card: #111111 !important;
  --text-primary: #FFFF00 !important;
  --text-secondary: #FFFF00 !important;
  --text-muted: #CCCCCC !important;
  --magenta: #FFFF00 !important;
  --gold: #FFFF00 !important;
  --border-color: #FFFF00 !important;
}
[data-high-contrast="true"] .lyric-line.active {
  color: #FFFF00 !important;
  text-shadow: none !important;
  font-weight: 900 !important;
}
[data-high-contrast="true"] .lyric-line {
  color: #888888 !important;
}

/* =============================================
   GLOBAL MINI PLAYER
   ============================================= */
.global-mini-player {
  position: fixed;
  bottom: 80px; /* Above bottom nav */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: rgba(0, 35, 102, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 0, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  z-index: 9998;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4), 0 0 10px rgba(255,0,255,0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* ═══════════ INTERACTIVE PARTY: VIBE CHECK ═══════════ */
.floating-emoji {
  position: fixed;
  bottom: -50px;
  font-size: 2.5rem;
  z-index: 9999;
  pointer-events: none;
  animation: float-up 3s ease-out forwards;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(-50px) scale(1.2) rotate(-10deg);
  }
  50% {
    transform: translateY(-400px) scale(1) rotate(10deg);
  }
  100% {
    transform: translateY(-800px) scale(0.8) rotate(-20deg);
    opacity: 0;
  }
}

.btn-hype {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  border-radius: 35px;
  background: linear-gradient(135deg, #ff00ff, #ff3b30);
  color: white;
  font-size: 2rem;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.1s;
}

.btn-hype:active {
  transform: scale(0.9);
}

.btn-hype.cooldown {
  opacity: 0.5;
  filter: grayscale(100%);
  pointer-events: none;
}


.global-mini-player.hidden {
  transform: translateX(-50%) translateY(150%);
  opacity: 0;
  pointer-events: none;
}

.mini-player-info {
  flex: 1;
  overflow: hidden;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: 12px;
}

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

.mini-player-controls .control-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ═══════════ ROULETTE MODE ═══════════ */
#rouletteAlert {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  animation: flash-in 0.3s ease-out;
}

#rouletteAlert.hidden {
  display: none;
}

#rouletteAlertText {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
  animation: pulse-scale 0.5s infinite alternate;
}

@keyframes flash-in {
  0% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse-scale {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Lyric Colors for Roulette */
.lyric-line.roulette-a .lyric-text {
  color: #00e5ff;
}
.lyric-line.roulette-a.active .lyric-text {
  text-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff;
}

.lyric-line.roulette-b .lyric-text {
  color: #ff00ff;
}
.lyric-line.roulette-b.active .lyric-text {
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}

.lyric-line.roulette-all .lyric-text {
  color: var(--gold);
}
.lyric-line.roulette-all.active .lyric-text {
  text-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold);
}
