/* ==========================================================================
   AIZU MUSIC — Atmospheric Obsidian Luxe Design System
   Engineered for Ultra-Responsive High-Fidelity Audio Streaming
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-space: #07080c;
  --bg-surface: #0f111a;
  --bg-surface-elevated: #161824;
  --bg-card: rgba(22, 24, 36, 0.75);
  --bg-glass: rgba(13, 15, 23, 0.88);
  --bg-glass-heavy: rgba(10, 12, 18, 0.94);
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(0, 229, 117, 0.6);

  /* Vivid Accents */
  --accent-emerald: #00e575;
  --accent-emerald-glow: rgba(0, 229, 117, 0.35);
  --accent-cyan: #00f2fe;
  --accent-amber: #ff6b35;
  --accent-amber-glow: rgba(255, 107, 53, 0.35);
  --accent-purple: #7928ca;
  --accent-danger: #ff3366;
  --accent-gradient: linear-gradient(135deg, #00e575 0%, #00f2fe 100%);
  --accent-gradient-warm: linear-gradient(135deg, #ff6b35 0%, #ff8f66 100%);

  /* Text & Typography */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 24px var(--accent-emerald-glow);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Dimensions */
  --sidebar-width: 260px;
  --topbar-height: 70px;
  --player-height: 90px;
  --mobile-nav-height: 64px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s var(--ease-smooth);
  --transition-slow: 0.4s var(--ease-smooth);
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-space);
}

/* Ambient Radial Glow in Background */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: radial-gradient(circle at 50% -20%, rgba(0, 229, 117, 0.12) 0%, rgba(0, 242, 254, 0.05) 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.8s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Layout Wrapper */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   DESKTOP SIDEBAR
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
  z-index: 40;
  user-select: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07080c;
  position: relative;
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
}

.brand-icon {
  width: 20px;
  height: 20px;
}

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

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.brand-highlight {
  color: var(--accent-emerald);
}

.brand-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 8px 12px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: left;
  width: 100%;
  position: relative;
}

.nav-item svg {
  width: 19px;
  height: 19px;
  transition: transform var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item:hover svg {
  transform: scale(1.1);
}

.nav-item.active {
  color: var(--accent-emerald);
  background: rgba(0, 229, 117, 0.08);
  border-color: rgba(0, 229, 117, 0.2);
  box-shadow: inset 0 0 12px rgba(0, 229, 117, 0.05);
}

.nav-counter {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.badge-dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Mini Now Playing in Sidebar */
.sidebar-now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 12px;
}

.mini-cover-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.mini-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-eq {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.mini-eq span {
  width: 3px;
  height: 12px;
  background: var(--accent-emerald);
  border-radius: 2px;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}
.mini-eq span:nth-child(2) { animation-delay: 0.2s; height: 16px; }
.mini-eq span:nth-child(3) { animation-delay: 0.4s; height: 10px; }

@keyframes eq-bounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.mini-meta {
  overflow: hidden;
  flex: 1;
}

.mini-title {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.mini-artist {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Telemetry Footer */
.sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-indicator.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.storage-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   MAIN CONTENT WRAPPER & TOPBAR
   ========================================================================== */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: calc(var(--player-height) + 40px);
}

/* Top Ambient App Bar */
.app-topbar {
  height: var(--topbar-height);
  position: sticky;
  top: 0;
  background: rgba(7, 8, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 30;
}

.search-container {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  width: 360px;
  gap: 10px;
  transition: var(--transition-normal);
  position: relative;
}

.search-container:focus-within {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 16px rgba(0, 229, 117, 0.15);
  background: var(--bg-surface);
  width: 420px;
}

.search-icon {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}

.search-container input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  width: 100%;
}

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

.search-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
}
.search-clear-btn:hover { color: var(--text-primary); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* User SSO Badge */
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-normal);
}

.user-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07080c;
}
.user-avatar-placeholder svg { width: 14px; height: 14px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: inherit;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--accent-gradient);
  color: #07080c;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 117, 0.45);
}

.btn-ghost {
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-medium);
}

.btn-sm {
  font-size: 0.78rem;
  padding: 5px 12px;
}

/* ==========================================================================
   VIEWPORT CONTENT & VIEWS
   ========================================================================== */
.content-viewport {
  padding: 32px;
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Spotlight Hero Banner (Home View) */
.hero-spotlight {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  background: linear-gradient(135deg, rgba(22, 24, 36, 0.9), rgba(15, 17, 26, 0.95));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  min-height: 280px;
  padding: 36px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.25);
  transform: scale(1.1);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.hero-artwork {
  width: 190px;
  height: 190px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(0, 229, 117, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
  border: 1px solid rgba(0, 229, 117, 0.2);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

.hero-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

/* Metric Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-pill {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-normal);
}

.stat-pill:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }

.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Filter / Sort Bar in Section */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip:hover { color: var(--text-primary); border-color: var(--border-medium); }
.filter-chip.active {
  background: rgba(0, 229, 117, 0.12);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

/* ==========================================================================
   CARDS & GRIDS (ALBUMS, ARTISTS, PLAYLISTS)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.music-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.music-card:hover {
  transform: translateY(-4px);
  background: var(--bg-surface-elevated);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card-artwork-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  background: var(--bg-surface-elevated);
}

.card-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.music-card:hover .card-artwork {
  transform: scale(1.06);
}

.card-hover-play {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07080c;
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  transition: var(--transition-normal);
}

.card-hover-play svg { width: 18px; height: 18px; margin-left: 2px; }

.music-card:hover .card-hover-play {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

/* Artist Avatar Card (Round) */
.artist-card .card-artwork-wrap {
  border-radius: 50%;
}
.artist-card .card-title {
  text-align: center;
}
.artist-card .card-desc {
  text-align: center;
}

/* Add New Card (Playlist) */
.card-add-new {
  border: 2px dashed var(--border-medium);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
}
.card-add-new:hover {
  border-color: var(--accent-emerald);
  background: rgba(0, 229, 117, 0.03);
}
.card-add-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.card-add-icon svg { width: 24px; height: 24px; }

/* ==========================================================================
   TRACKLIST TABLE / ROWS (SONGS)
   ========================================================================== */
.track-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.track-row {
  display: grid;
  grid-template-columns: 40px 52px 1fr 140px 80px 48px;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.track-row:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
}

.track-row.playing {
  background: rgba(0, 229, 117, 0.08);
  border-color: rgba(0, 229, 117, 0.2);
}

.track-num-col {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.track-row:hover .track-num-text { display: none; }
.track-play-hover-icon {
  display: none;
  width: 16px;
  height: 16px;
  color: var(--accent-emerald);
  margin: 0 auto;
}
.track-row:hover .track-play-hover-icon { display: block; }

.track-eq-anim {
  display: none;
  width: 16px;
  height: 16px;
  gap: 2px;
  align-items: center;
  justify-content: center;
}
.track-eq-anim span {
  width: 2px;
  height: 12px;
  background: var(--accent-emerald);
  border-radius: 1px;
  animation: eq-bounce 0.6s infinite alternate;
}
.track-row.playing .track-num-text { display: none; }
.track-row.playing .track-eq-anim { display: flex; }

.track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-surface-elevated);
}

.track-main-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.track-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row.playing .track-name {
  color: var(--accent-emerald);
}

.track-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-album-col {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration-col {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}

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

.track-opt-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-full);
}
.track-opt-btn:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.08); }
.track-opt-btn svg { width: 16px; height: 16px; }

/* Detail Hero Header (for Album / Artist / Playlist Detail) */
.detail-hero {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-cover {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-type-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.detail-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.detail-stats {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

/* ==========================================================================
   DOWNLOADER & UPLOADER PANEL
   ========================================================================== */
.downloader-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.downloader-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-surface-elevated);
  padding: 6px;
  border-radius: var(--radius-md);
  width: fit-content;
  border: 1px solid var(--border-subtle);
}

.dl-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.dl-tab-btn.active {
  background: var(--accent-gradient);
  color: #07080c;
  font-weight: 700;
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.input-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.custom-input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

.custom-input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 16px rgba(0, 229, 117, 0.15);
}

.options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.select-input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.upload-dropzone {
  border: 2px dashed var(--border-medium);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent-emerald);
  background: rgba(0, 229, 117, 0.04);
}

.dropzone-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 229, 117, 0.1);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropzone-icon svg { width: 28px; height: 28px; }

/* Active Downloads List */
.active-downloads-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.job-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.job-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.job-status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.job-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.job-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* ==========================================================================
   FLOATING GLASS PLAYER BAR
   ========================================================================== */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  align-items: center;
  padding: 0 28px;
  z-index: 50;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.6);
}

/* Track Info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.player-cover-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

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

.player-cover-wrapper.playing img {
  animation: vinyl-spin 20s linear infinite;
}

@keyframes vinyl-spin {
  100% { transform: rotate(360deg); }
}

.disc-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-space);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: none;
}

.player-cover-wrapper.playing .disc-hole { display: block; }

.player-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.player-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.player-badges {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.badge-format, .badge-bitrate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

/* Center Controls */
.player-controls-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.control-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  position: relative;
}

.control-btn svg { width: 18px; height: 18px; }
.control-btn:hover { color: var(--text-primary); transform: scale(1.1); }
.control-btn.active { color: var(--accent-emerald); }

.btn-play-main {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #07080c;
  box-shadow: 0 4px 18px var(--accent-emerald-glow);
}
.btn-play-main svg { width: 20px; height: 20px; }
.btn-play-main:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 229, 117, 0.5);
  color: #07080c;
}

.repeat-one-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 800;
  background: var(--accent-emerald);
  color: #07080c;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Scrubber Timeline */
.player-timeline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.time-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  width: 36px;
  text-align: center;
}

.timeline-bar-wrapper {
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.timeline-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  position: relative;
  transition: height 0.15s ease;
}

.timeline-bar-wrapper:hover .timeline-track {
  height: 6px;
}

.timeline-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  width: 0%;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  width: 0%;
}

.timeline-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}

.timeline-bar-wrapper:hover .timeline-handle {
  transform: translate(-50%, -50%) scale(1);
}

.timeline-tooltip {
  position: absolute;
  top: -26px;
  transform: translateX(-50%);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  display: none;
  pointer-events: none;
}

/* Right Tools: Volume, Lyrics, Queue */
.player-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.tool-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
}

.tool-btn svg { width: 18px; height: 18px; }
.tool-btn:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.tool-btn.active { color: var(--accent-emerald); background: rgba(0, 229, 117, 0.1); }

.queue-count-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider-wrapper {
  width: 80px;
  display: flex;
  align-items: center;
}

.volume-slider-wrapper input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.volume-slider-wrapper input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   LYRICS & QUEUE DRAWERS
   ========================================================================== */
.lyrics-drawer, .queue-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: calc(100vh - var(--player-height));
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-left: 1px solid var(--border-subtle);
  z-index: 45;
  display: flex;
  flex-direction: column;
  transition: right 0.35s var(--ease-smooth);
  box-shadow: var(--shadow-lg);
}

.lyrics-drawer.open, .queue-drawer.open {
  right: 0;
}

.lyrics-header, .queue-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lyrics-title-group h3, .queue-title-group h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lyrics-title-group p, .queue-title-group p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.btn-close:hover { color: var(--text-primary); }

.lyrics-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.lyrics-line {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition-normal);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.lyrics-line:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.lyrics-line.active {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-emerald);
  text-shadow: 0 0 20px var(--accent-emerald-glow);
  transform: scale(1.04);
}

.queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: calc(var(--player-height) + 20px);
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent-emerald);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  font-size: 0.86rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slide-toast 0.3s ease;
}

.toast-item.error { border-left-color: var(--accent-danger); }

@keyframes slide-toast {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Mobile Nav Bar (Hidden by default on Desktop) */
.mobile-nav {
  display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .main-wrapper {
    margin-left: 0;
    padding-bottom: calc(var(--player-height) + var(--mobile-nav-height) + 20px);
  }
  .app-topbar {
    padding: 0 16px;
  }
  .search-container {
    width: 220px;
  }
  .search-container:focus-within {
    width: 260px;
  }
  .btn-text {
    display: none;
  }
  .content-viewport {
    padding: 20px 16px;
  }
  .hero-spotlight {
    padding: 24px;
    min-height: auto;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .hero-actions {
    justify-content: center;
  }
  .player-bar {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
    height: 74px;
  }
  .player-tools {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-subtle);
    justify-content: space-around;
    align-items: center;
    z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-nav-btn svg { width: 20px; height: 20px; }
  .mobile-nav-btn.active { color: var(--accent-emerald); }
  .lyrics-drawer, .queue-drawer {
    width: 100vw;
    right: -100vw;
  }
  .track-row {
    grid-template-columns: 32px 40px 1fr 60px;
  }
  .track-album-col, .track-action-col {
    display: none;
  }
}

/* ==========================================================================
   PLAYLIST INSPECTOR & TRACK SELECTION PREVIEW
   ========================================================================== */
.playlist-preview-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease;
  box-shadow: var(--shadow-md);
}

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

.preview-hero {
  display: flex;
  gap: 20px;
  align-items: center;
}

.preview-artwork {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.preview-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.preview-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.preview-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.preview-selection-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.preview-filter-input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
  font-family: inherit;
  width: 220px;
}
.preview-filter-input:focus { border-color: var(--accent-emerald); }

.preview-track-list {
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.preview-track-row {
  display: grid;
  grid-template-columns: 36px 48px 1fr 80px 36px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.preview-track-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
}

.preview-track-row.selected {
  background: rgba(0, 229, 117, 0.08);
  border-color: rgba(0, 229, 117, 0.25);
}

.preview-check {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.preview-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-surface);
}

.preview-track-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-track-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-track-dur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

.preview-yt-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-yt-link:hover { color: var(--accent-danger); }
.preview-yt-link svg { width: 18px; height: 18px; }

/* Responsive */
@media (max-width: 768px) {
  .preview-hero { flex-direction: column; text-align: center; }
  .preview-controls-bar { flex-direction: column; align-items: stretch; }
  .preview-filter-input { width: 100%; }
  .preview-track-row { grid-template-columns: 30px 40px 1fr 50px; }
  .preview-yt-link { display: none; }
}

/* ==========================================================================
   ATMOSPHERIC LOGIN GATE OVERLAY
   ========================================================================== */
.login-gate-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.95) 0%, rgba(7, 8, 12, 0.98) 100%);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

.login-gate-card {
  width: 100%;
  max-width: 440px;
  background: rgba(18, 21, 32, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 229, 117, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-vinyl-glow {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 32px var(--accent-emerald-glow);
  position: relative;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 0 24px var(--accent-emerald-glow); }
  100% { transform: scale(1.05); box-shadow: 0 0 44px rgba(0, 242, 254, 0.4); }
}

.login-vinyl-disc {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #0b0d14;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: vinyl-spin 12s linear infinite;
}

.vinyl-groove {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.vinyl-center {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07080c;
}
.vinyl-center svg { width: 15px; height: 15px; }

.login-brand-header {
  margin-bottom: 24px;
}

.login-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.login-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.login-btn-sso {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 0.95rem;
  text-decoration: none;
}

.login-divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 16px;
  position: relative;
}
.login-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--border-subtle);
}
.login-divider span {
  position: relative;
  background: #121520;
  padding: 0 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.login-form {
  width: 100%;
}

.login-footer {
  margin-top: 20px;
}

.login-guest-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.login-guest-btn:hover { color: var(--accent-emerald); }

@media (max-width: 500px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
