/* ════════════════════════════════════════════════════════════════════
   Arisu Web Panel — style.css
   Modern Dark Cybernetic & Blue Theme // Apple Music layout
════════════════════════════════════════════════════════════════════ */

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

:root {
  /* color design system */
  --bg:               #050508;
  --bg-deep:          #080a10;
  --navy:             #0d111c;
  --navy-light:       #151b2c;
  
  --cyan:             #00d2ff;   /* Arisu Halo Glow */
  --cyan-dim:         rgba(0, 210, 255, 0.4);
  --blue:             #0066ff;
  --blue-glow:        rgba(0, 102, 255, 0.25);
  
  --text:             #f5f7fa;
  --muted:            #8a99ad;
  --border:           rgba(255, 255, 255, 0.04);
  --border-active:    rgba(0, 210, 255, 0.25);
  
  --danger:           #ff4a5a;
  --danger-bg:        rgba(255, 74, 90, 0.08);
  --success:          #00e676;
  --discord:          #5865f2;

  /* glass overlay configs */
  --glass-bg:         rgba(13, 17, 28, 0.65);
  --glass-blur:       blur(24px) saturate(180%);
  --shadow:           0 16px 48px rgba(0, 0, 0, 0.6);
  --glow-shadow:      0 0 24px var(--blue-glow);

  /* animations */
  --ease:             cubic-bezier(0.16, 1, 0.3, 1);
  --transition:       0.25s var(--ease);

  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

html, body { height: 100%; overflow-x: hidden; background: var(--bg); color: var(--text); }
body { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Utility ────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.muted  { color: var(--muted); }
.mt-12  { margin-top: 12px; }
.text-cyan { color: var(--cyan); }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.08em; }
.tracking-widest { letter-spacing: 0.16em; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.text-xs { font-size: 0.75rem; }
.text-xxs { font-size: 0.68rem; }

/* ── Cybernetic Background Grid & Orbs ───────────────────────────── */
#bg-grid {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  mask-image: radial-gradient(circle, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 95%);
}
.glow-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.22;
  animation: orb-drift 32s ease-in-out infinite;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: -150px; left: -100px;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation-delay: -10s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.08); }
}

/* ── View Manager ────────────────────────────────────────────────── */
.view {
  display: none;
  position: relative; z-index: 1;
  min-height: 100vh;
}
.view.active { display: flex; flex-direction: column; }

/* ── Glassmorphism Panel ─────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── Loading Spinner Ring ────────────────────────────────────────── */
.spinner-ring {
  width: 60px; height: 60px;
  border: 3px solid rgba(0, 210, 255, 0.1);
  border-top-color: var(--cyan);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.ring-core {
  width: 32px; height: 32px;
  border: 2px solid transparent;
  border-bottom-color: var(--blue);
  border-radius: 50%;
  animation: spin-reverse 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

/* ── Center wrap ─────────────────────────────────────────────────── */
.center-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; z-index: 5;
}

/* ════════════════════════════════════════════════════════════════════
   LOGIN VIEW
════════════════════════════════════════════════════════════════════ */
.login-card {
  width: 100%; max-width: 440px;
  padding: 56px 48px; border-radius: 24px;
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
  text-align: center;
  border-top: 1px solid rgba(0, 210, 255, 0.2);
}
.logo-box {
  position: relative; width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
}
.logo-halo {
  position: absolute; inset: -4px;
  border: 2.5px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--cyan-dim);
  transform: rotateX(60deg) translateY(-20px);
  opacity: 0.85;
}
.arisu-face { font-size: 3.2rem; filter: drop-shadow(0 0 10px var(--blue)); }
.login-bot-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px var(--cyan-dim);
  object-fit: cover;
  z-index: 2;
}

.brand-info { display: flex; flex-direction: column; gap: 4px; }
.brand-title {
  font-size: 2.5rem; font-weight: 900; letter-spacing: 0.1em;
  background: linear-gradient(to right, #ffffff, var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-subtitle { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.15em; }

.btn-discord {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--discord); color: white;
  padding: 16px 28px; border-radius: 14px;
  font-size: 0.9rem; font-weight: 800; text-decoration: none;
  width: 100%; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  transition: var(--transition); border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(88,101,242,0.25);
}
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88,101,242,0.45);
}
.tech-sub { font-size: 0.65rem; }

/* ════════════════════════════════════════════════════════════════════
   TOP NAVIGATION BAR
════════════════════════════════════════════════════════════════════ */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none; border-bottom: 1px solid var(--border);
  border-radius: 0; z-index: 100;
  position: sticky; top: 0;
}
.bot-avatar-logo {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 10px var(--cyan-dim);
  object-fit: cover;
}
.guild-icon-xs {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}
.top-bar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.top-bar-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.top-bar-brand { display: flex; align-items: center; gap: 12px; }
.brand-title-sm { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.08em; }

.user-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px 5px 5px;
  font-size: 0.8rem; font-weight: 600;
}
.user-badge img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

.icon-btn {
  background: transparent; border: none; color: var(--text);
  cursor: pointer; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.icon-btn:hover { background: var(--navy-light); color: var(--cyan); }
.icon-btn svg { width: 20px; height: 20px; }

/* ════════════════════════════════════════════════════════════════════
   GUILD SELECTOR
════════════════════════════════════════════════════════════════════ */
.guilds-main {
  flex: 1; padding: 48px 32px;
  max-width: 980px; margin: 0 auto; width: 100%;
}
.guilds-heading { margin-bottom: 40px; }
.section-title { font-size: 1.8rem; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 8px; }

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.guild-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
  outline: none;
}
.guild-card:hover {
  background: var(--navy-light);
  transform: translateY(-6px);
  box-shadow: var(--glow-shadow);
  border-color: var(--cyan-dim);
}
.guild-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
}
.guild-avatar-placeholder {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: white;
}
.guild-card-name { font-weight: 700; font-size: 0.95rem; }
.guild-status-row { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-active { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.dot-idle   { background: var(--muted); }
.guild-playing {
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--cyan);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px;
}

/* ════════════════════════════════════════════════════════════════════
   PLAYER VIEW (APPLE MUSIC SPLIT-PANE DASHBOARD)
════════════════════════════════════════════════════════════════════ */
.dashboard-layout {
  flex: 1; display: flex; flex-direction: column;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 24px; gap: 20px;
}

.alert-banner {
  padding: 14px 20px; border-radius: 12px;
  background: var(--danger-bg); border: 1px solid rgba(255, 74, 90, 0.2);
  color: var(--danger); font-size: 0.82rem; font-family: 'JetBrains Mono', monospace;
  text-align: center; letter-spacing: 0.05em;
}

/* Split-Pane Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── LEFT PANE: Premium Now Playing Card ───────────────────────── */
.pane-left {
  position: sticky; top: 100px;
}
.now-playing-container {
  border-radius: 28px;
  padding: 36px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dynamic glow background */
.np-blur-bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(50px) brightness(0.4) saturate(1.4);
  opacity: 0.45; z-index: 1;
  transition: background-image 0.6s var(--ease);
  pointer-events: none;
}

/* Album Art Card */
.art-card {
  position: relative; z-index: 2;
  width: 280px; height: 280px;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.np-thumbnail {
  width: 100%; height: 100%; object-fit: cover;
  display: none; transition: opacity var(--transition);
}
.art-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
.music-note { font-size: 3.5rem; filter: drop-shadow(0 0 15px var(--blue)); }

/* Track Meta Details */
.track-details {
  position: relative; z-index: 2;
  width: 100%; text-align: center;
  margin-top: 32px; display: flex; flex-direction: column; gap: 8px;
}
.title-scroller {
  width: 100%; overflow: hidden; white-space: nowrap;
}
.track-title {
  font-size: 1.35rem; font-weight: 800; color: #ffffff;
  text-decoration: none; display: inline-block;
  transition: color var(--transition);
}
.track-title:hover { color: var(--cyan); }
.track-title.scroll-active {
  animation: title-marquee linear infinite alternate;
  animation-delay: 2s; /* Initial pause */
}
@keyframes title-marquee {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(var(--scroll-dist, 0)); }
}
.track-artist { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); }

.channel-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid var(--border-active);
  border-radius: 20px;
  padding: 4px 14px; margin: 6px auto 0;
}

/* Timeline/Progress Bar */
.timeline-container {
  position: relative; z-index: 2;
  width: 100%; margin-top: 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.timeline-track {
  width: 100%; height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px; overflow: hidden;
  position: relative; cursor: pointer;
}
.timeline-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%; background: linear-gradient(to right, var(--blue), var(--cyan));
  border-radius: 3px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--cyan);
}
.timeline-time { display: flex; justify-content: space-between; }

/* Control row */
.playback-controls {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 32px; width: 100%;
}
.control-circle {
  background: var(--navy);
  border: 1px solid var(--border);
  color: var(--text);
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  outline: none;
}
.control-circle:hover {
  background: var(--navy-light);
  transform: scale(1.06);
  border-color: var(--border-active);
}
.control-circle svg { width: 18px; height: 18px; }

.circle-lg { width: 68px; height: 68px; font-size: 1.5rem; }

.primary-btn {
  background: linear-gradient(to bottom, var(--blue), var(--navy-light));
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
}
.primary-btn:hover {
  filter: brightness(1.2);
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.5);
}

.danger-btn:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(255, 74, 90, 0.3);
}

.toggle-btn.on {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

/* ── RIGHT PANE: Search and Queue ──────────────────────────────── */
.pane-right {
  display: flex; flex-direction: column; gap: 20px;
}

.search-panel {
  padding: 16px 20px; border-radius: 20px;
}
.input-wrap { display: flex; gap: 12px; }
.search-input {
  flex: 1; background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  padding: 12px 18px; outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.search-input:focus {
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.03);
}
.search-action-btn {
  background: var(--cyan); color: #000000;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800; font-size: 0.85rem;
  padding: 0 24px; border: none; border-radius: 12px;
  cursor: pointer; transition: var(--transition);
}
.search-action-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 14px var(--cyan-dim);
}

/* Queue List Box */
.queue-panel {
  border-radius: 24px;
  display: flex; flex-direction: column; overflow: hidden;
  height: 520px;
}
.queue-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.queue-title { font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.tech-badge {
  background: var(--navy-light); color: var(--cyan);
  border: 1px solid var(--border-active);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 10px; border-radius: 12px;
}
.text-action-btn {
  background: transparent; border: none;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  font-weight: 700; cursor: pointer; transition: var(--transition);
}
.text-action-btn:hover { filter: brightness(1.2); }
.danger-text { color: var(--danger); }

.queue-body { flex: 1; overflow-y: auto; padding: 12px 16px; position: relative; }
.queue-body::-webkit-scrollbar { width: 5px; }
.queue-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.queue-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.queue-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: background var(--transition);
}
.queue-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}
.q-pos { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--muted); width: 22px; }
.q-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--border); }
.q-info { flex: 1; min-width: 0; }
.q-title { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
.q-dur { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--muted); }
.q-rm {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; padding: 6px; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.q-rm:hover { color: var(--danger); background: var(--danger-bg); }

.queue-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 10px; padding: 48px 0; text-align: center;
}
.empty-icon { font-size: 3rem; filter: grayscale(1) opacity(0.35); }

/* ════════════════════════════════════════════════════════════════════
   MODALS & STATS
════════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(3, 3, 5, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  width: 100%; max-width: 580px;
  max-height: 80vh; border-radius: 24px;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-sm { max-width: 400px; }

.modal-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.05em; }

.search-result-list {
  list-style: none; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.sr-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  transition: background var(--transition);
}
.sr-item:hover { background: rgba(255, 255, 255, 0.04); }
.sr-thumb { width: 72px; height: 50px; border-radius: 8px; object-fit: cover; }
.sr-info { flex: 1; min-width: 0; }
.sr-title { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.sr-add {
  background: var(--cyan); color: #000;
  font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 0.78rem;
  padding: 8px 16px; border: none; border-radius: 10px;
  cursor: pointer; transition: var(--transition);
}
.sr-add:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* Stats modal key-value pairs */
.stats-dl {
  padding: 24px; display: grid; grid-template-columns: 1fr; gap: 18px;
}
.stats-dl dt {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.stats-dl dd {
  font-size: 1.25rem; font-weight: 800; color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-dim); margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════════
   TOASTS (Cyber Style)
════════════════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 2000; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 0.88rem; font-weight: 600;
  max-width: 320px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: rgba(0, 230, 118, 0.3); color: #86efac; }
.toast-error { border-color: rgba(255, 74, 90, 0.3); color: #fca5a5; }
.toast-info { border-color: var(--cyan-dim); color: #e0f2fe; }

/* Tabs to toggle Queue/Lyrics */
.right-pane-tabs {
  display: flex; gap: 8px; padding: 6px;
  border-radius: 14px; margin-bottom: 2px;
}
.tab-btn {
  flex: 1; background: transparent; border: none;
  color: var(--muted); padding: 10px; border-radius: 10px;
  cursor: pointer; font-size: 0.8rem; font-weight: 700;
  transition: var(--transition); outline: none;
}
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.tab-btn.active {
  background: var(--navy-light); color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.05);
}

/* Lyrics panel & container */
.lyrics-panel {
  border-radius: 24px;
  display: flex; flex-direction: column; overflow: hidden;
  height: 520px;
}
.lyrics-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.lyrics-body {
  flex: 1; overflow-y: auto; padding: 32px 24px;
  scroll-behavior: smooth;
  display: flex; flex-direction: column; gap: 28px;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}
.lyrics-body::-webkit-scrollbar { width: 0px; background: transparent; } /* Hidden scrollbars like Apple Music */

.lyric-line {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); opacity: 0.22;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s var(--ease);
  cursor: pointer; text-align: left;
  transform: scale(0.96); transform-origin: left center;
}
.lyric-line:hover { opacity: 0.6; }
.lyric-line.active {
  opacity: 1; transform: scale(1.08);
  color: #ffffff;
  text-shadow: 0 0 12px var(--cyan-dim), 0 0 24px rgba(0, 210, 255, 0.2);
}
.lyric-line.past {
  opacity: 0.35;
}

.lyrics-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 10px; text-align: center;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; gap: 20px; }
  .pane-left { position: relative; top: 0; }
  .now-playing-container { padding: 28px; }
  .art-card { width: 220px; height: 220px; }
}
@media (max-width: 580px) {
  .top-bar { padding: 12px 16px; }
  .guilds-main { padding: 24px 12px; }
  .guild-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .guild-card { padding: 20px 12px; }
  
  .dashboard-layout { padding: 12px; gap: 12px; }
  .now-playing-container { padding: 20px 12px; }
  .art-card { width: 160px; height: 160px; }
  
  /* Prevent 5-button row wrapping on narrow mobile screens */
  .playback-controls { gap: 8px; flex-wrap: nowrap; }
  .control-circle { width: 38px !important; height: 38px !important; }
  .control-circle svg { width: 14px; height: 14px; }
  .circle-lg { width: 48px !important; height: 48px !important; font-size: 1.1rem; }
  
  .track-title { font-size: 1.15rem; }
  .alert-banner { font-size: 0.72rem; padding: 10px 14px; }
  
  .lyrics-panel, .queue-panel { height: 460px; }
  .lyrics-body { padding: 24px 16px; gap: 20px; }
  .lyric-line { font-size: 0.95rem; }
  
  .search-action-btn { padding: 0 12px; font-size: 0.75rem; }
  .search-input { font-size: 0.8rem; }
}
