/* ==========================================================================
   SyncMix Party — Modern Material Design 3 (M3) Mobile Theme
   Kolorystyka spójna z wtyczką SyncMix YouTube Music Crossfader
   ========================================================================== */

:root {
  /* Surface & Background (Głęboki styl Pioneer DJ / Dark Mode) */
  --md-bg: #090a10;
  --md-surface: #12131e;
  --md-surface-card: #171826;
  --md-surface-card-high: #212338;
  --md-surface-card-highest: #2b2e47;
  
  /* Borders & Dividers */
  --md-outline: rgba(255, 255, 255, 0.08);
  --md-outline-focus: rgba(168, 85, 247, 0.55);
  --md-outline-card: rgba(255, 255, 255, 0.05);

  /* Typography / Text colors */
  --md-text-primary: #f4f5f9;
  --md-text-secondary: #9ea4b6;
  --md-text-tertiary: #676e82;

  /* Accent colors (Fiolet Pioneer + SyncMix Hot Pink) */
  --md-primary: #a855f7;
  --md-secondary: #ec4899;
  --md-primary-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --md-glow: rgba(168, 85, 247, 0.35);

  /* Semantic status colors */
  --md-gold: #f59e0b;
  --md-gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --md-success: #22c55e;
  --md-success-glow: rgba(34, 197, 94, 0.35);
  --md-danger: #ef4444;
  --md-cyan: #06b6d4;

  /* Radii & Elevation */
  --md-radius-sm: 8px;
  --md-radius-md: 14px;
  --md-radius-lg: 18px;
  --md-radius-xl: 24px;
  --md-radius-pill: 9999px;
  
  --md-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --md-shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  
  /* Touch target standard */
  --md-touch-min: 44px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--md-bg);
  color: var(--md-text-primary);
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tło ambient glow */
.ambient-glow {
  position: fixed;
  top: -10vw;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, rgba(236, 72, 153, 0.08) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.hidden {
  display: none !important;
}

/* Kontener główny ekranu */
.screen {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding: 12px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

/* ==========================================================================
   1. Ekran dołączania (Join Screen)
   ========================================================================== */
.join-screen {
  max-width: 1080px !important;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 20px 80px;
}

.join-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.join-hero-wrapper {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.join-header {
  text-align: center;
  margin-bottom: 24px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--md-radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--md-primary);
  margin-bottom: 14px;
}

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

.join-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.gradient-text {
  background: var(--md-primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px var(--md-glow));
}

.join-desc {
  font-size: 16px;
  color: var(--md-text-secondary);
  max-width: 380px;
  margin: 0 auto;
}

/* Karta formularza */
.m3-card {
  background: var(--md-surface-card);
  border: 1px solid var(--md-outline);
  border-radius: var(--md-radius-xl);
  box-shadow: var(--md-shadow-elevated);
  padding: 22px 18px;
}

.join-card {
  backdrop-filter: blur(16px);
  background: rgba(23, 24, 38, 0.85);
}

.m3-field-group {
  margin-bottom: 18px;
}

.m3-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--md-text-secondary);
  margin-bottom: 8px;
  padding-left: 4px;
}

.m3-input-box {
  display: flex;
  align-items: center;
  background: var(--md-surface);
  border: 2px solid var(--md-outline);
  border-radius: var(--md-radius-md);
  padding: 0 14px;
  transition: all 0.2s ease;
}

.m3-input-box:focus-within {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.m3-prefix {
  font-size: 24px;
  font-weight: 700;
  color: var(--md-primary);
  margin-right: 6px;
}

.m3-input-icon {
  width: 22px;
  height: 22px;
  color: var(--md-text-tertiary);
  margin-right: 10px;
  flex-shrink: 0;
}

.m3-input {
  width: 100%;
  height: 54px;
  background: transparent;
  border: none;
  color: var(--md-text-primary);
  font-size: 18px;
  font-family: inherit;
  outline: none;
}

.room-code-input {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 10px;
  text-transform: uppercase;
  text-align: center;
}

.m3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: var(--md-radius-md);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.m3-btn:active {
  transform: scale(0.98);
}

.primary-btn {
  background: var(--md-primary-gradient);
  box-shadow: 0 4px 18px var(--md-glow);
}

.primary-btn:hover {
  filter: brightness(1.08);
}

.primary-btn:disabled {
  opacity: 0.5;
  filter: grayscale(0.5);
  cursor: not-allowed;
}

.m3-error {
  color: var(--md-danger);
  font-size: 15px;
  text-align: center;
  min-height: 1.2em;
  margin-top: 10px;
}

.join-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--md-text-tertiary);
}

/* ==========================================================================
   2. Top App Bar & Pasek Moderatora Gospodarza
   ========================================================================== */
.host-top-bar {
  width: 100%;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.host-pause-btn {
  flex: 1;
  padding: 10px 14px;
  background: var(--md-surface-card);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--md-radius-pill);
  color: #fef08a;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.host-pause-btn:hover {
  border-color: var(--md-gold);
  background: var(--md-surface-card-high);
}

.host-pause-btn:active {
  transform: scale(0.98);
}

.host-pause-btn.is-paused {
  background: var(--md-gold-gradient);
  border-color: var(--md-gold);
  color: #1a0f00;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
  font-weight: 800;
}

.host-force-skip-btn {
  flex: 1;
  padding: 10px 14px;
  background: rgba(244, 63, 94, 0.15);
  border: 1.5px solid rgba(244, 63, 94, 0.45);
  border-radius: var(--md-radius-pill);
  color: #fecdd3;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.host-force-skip-btn:hover {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.28);
  color: #fff;
}

.host-force-skip-btn:active {
  transform: scale(0.98);
}

.m3-top-app-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 0 12px;
  background: linear-gradient(var(--md-bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.room-chip {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--md-surface-card);
  border: 1px solid var(--md-outline);
  border-radius: var(--md-radius-pill);
  padding: 0 12px;
  color: var(--md-text-primary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.room-chip:hover {
  border-color: var(--md-primary);
  background: var(--md-surface-card-high);
}

.room-chip b {
  font-size: 15px;
  letter-spacing: 1.5px;
  color: #fff;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--md-success);
  box-shadow: 0 0 8px var(--md-success);
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.pulse-dot.offline {
  background: #64748b;
  box-shadow: none;
  animation: none;
}

.room-chip.offline {
  border-color: rgba(100, 116, 139, 0.4);
  background: rgba(23, 24, 38, 0.6);
  opacity: 0.85;
}

/* Material Token Wallet Badge (Symmetrical with room-chip) */
.wallet-badge {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--md-surface-card);
  border: 1px solid var(--md-outline);
  border-radius: var(--md-radius-pill);
  padding: 0 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.wallet-badge:hover {
  border-color: var(--md-gold);
  background: var(--md-surface-card-high);
}

.wallet-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.wallet-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  flex: 1 1 auto;
}

.wallet-tokens {
  font-size: 14px;
  font-weight: 800;
  color: var(--md-gold);
  white-space: nowrap;
}

.wallet-max {
  font-size: 11.5px;
  color: var(--md-text-tertiary);
  font-weight: 500;
}

.wallet-subtext {
  font-size: 10px;
  color: var(--md-text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-micro-dots {
  display: flex;
  gap: 2.5px;
  margin-left: auto;
  flex-shrink: 0;
}

.token-micro-dots i {
  width: 3px;
  height: 12px;
  border-radius: 1.5px;
  background: var(--md-surface-card-highest);
  transition: all 0.25s ease;
}

.token-micro-dots i.on {
  background: var(--md-gold);
  box-shadow: 0 0 5px var(--md-gold);
}

/* Alert Banner */
.m3-alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--md-radius-md);
  padding: 12px 16px;
  color: var(--md-gold);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.m3-alert-banner.offline-banner {
  background: rgba(100, 116, 139, 0.14);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.offline-banner .offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}

/* ==========================================================================
   3. Sekcja Teraz Odtwarzane (Now Playing)
   ========================================================================== */
.now-playing-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(23, 24, 38, 0.95) 60%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  margin-bottom: 16px;
  padding: 14px;
}

.now-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--md-primary);
  margin-bottom: 10px;
}

/* Animowany mini-equalizer */
.live-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.live-eq i {
  width: 3px;
  height: 100%;
  background: var(--md-primary);
  border-radius: 1px;
  animation: eqBounce 1.2s infinite ease-in-out;
}

.live-eq i:nth-child(2) { animation-delay: 0.2s; }
.live-eq i:nth-child(3) { animation-delay: 0.4s; }

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

/* ==========================================================================
   4. Lista utworów i karty (Track Cards)
   ========================================================================== */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 4px 12px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--md-text-primary);
}

.section-hint {
  font-size: 14px;
  color: var(--md-text-tertiary);
}

.m3-count-badge {
  font-size: 14px;
  font-weight: 700;
  color: var(--md-primary);
  background: rgba(168, 85, 247, 0.15);
  padding: 3px 10px;
  border-radius: var(--md-radius-pill);
}

.m3-track-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Karta utworu (Material 3 Elevated Card) */
.m3-track-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--md-surface-card);
  border: 1px solid var(--md-outline);
  border-radius: var(--md-radius-lg);
  padding: 10px 12px;
  box-shadow: var(--md-shadow-card);
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Podniesienie utworu level wyżej podczas aktywnego głosowania */
.m3-track-card.voting-active {
  z-index: 5;
  transform: translateY(-2px) scale(1.015);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.16) 0%, var(--md-surface-card-high) 100%);
  border-color: var(--md-primary);
  box-shadow: 0 10px 32px rgba(168, 85, 247, 0.45), inset 0 0 0 1px rgba(168, 85, 247, 0.5);
}

/* Wyróżnienie nowo dodanego utworu (pop neon animacja) */
@keyframes popTrack {
  0% { transform: scale(0.96); border-color: var(--md-success); box-shadow: 0 0 20px var(--md-success-glow); }
  50% { transform: scale(1.02); border-color: var(--md-success); box-shadow: 0 0 25px var(--md-success-glow); }
  100% { transform: scale(1); border-color: var(--md-outline); box-shadow: var(--md-shadow-card); }
}

.m3-track-card.just-added {
  animation: popTrack 1.4s ease-out;
  border-color: var(--md-success);
}

/* Ordery / Medale zostały całkowicie usunięte na rzecz miejsca dla opisu utworu */
.rank-badge {
  display: none !important;
}

/* Miniaturka okładki */
.track-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--md-surface-card-high);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Informacje o utworze — rozszerzone do 2 linii z większą czcionką */
.track-info {
  flex: 1;
  min-width: 0;
}

.track-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--md-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  margin-bottom: 2px;
  word-break: break-word;
}

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

.track-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--md-primary);
  background: rgba(168, 85, 247, 0.1);
  padding: 2px 8px;
  border-radius: var(--md-radius-pill);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-my-votes {
  font-size: 12px;
  font-weight: 700;
  color: var(--md-gold);
  margin-top: 3px;
}

/* ==========================================================================
   5. Moduł głosowania (Pionowy stepper: PLUS u góry, ilość punktów w środku, MINUS na dole)
   ========================================================================== */
.m3-voting-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  margin-top: 2px;
  gap: 5px;
  flex-shrink: 0;
}

.m3-voting-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  width: 40px;
  background: var(--md-surface);
  border: 1px solid var(--md-outline);
  border-radius: var(--md-radius-pill);
  padding: 4px 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.m3-track-card.voting-active .m3-voting-unit {
  border-color: var(--md-primary);
  box-shadow: 0 0 14px var(--md-glow);
}

.vote-btn {
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);
  font-family: inherit;
}

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

.vote-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* Przycisk podbicia (Plus / Upvote - u góry) */
.vote-plus {
  width: 34px;
  height: 34px;
  background: var(--md-primary-gradient);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px var(--md-glow);
}

/* Przycisk cofnięcia (Minus / Downvote - pod spodem) */
.vote-minus {
  width: 28px;
  height: 28px;
  background: var(--md-surface-card-high);
  color: var(--md-text-secondary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vote-minus:hover {
  background: var(--md-surface-card-highest);
  color: var(--md-text-primary);
}

.vote-score-box {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 2px 0;
}

.vote-score {
  font-size: 15px;
  font-weight: 800;
  color: var(--md-text-primary);
}

.vote-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--md-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 1px;
}

/* Przycisk zatwierdzenia / zamknięcia aktywnego głosowania */
.vote-done-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  background: var(--md-primary-gradient);
  border: none;
  border-radius: var(--md-radius-pill);
  color: #ffffff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--md-glow);
  transition: all 0.15s ease;
  animation: fadeInDone 0.2s ease;
}

.m3-track-card.voting-active .vote-done-btn {
  display: inline-flex;
}

@keyframes fadeInDone {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Przycisk usuwania utworu przez gospodarza */
.track-remove-btn {
  background: transparent;
  border: none;
  color: var(--md-danger);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.track-remove-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Pusty stan kolejki */
.m3-empty-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--md-surface-card);
  border: 1px dashed var(--md-outline);
  border-radius: var(--md-radius-xl);
  margin-top: 12px;
}

.empty-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  color: var(--md-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.m3-empty-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.m3-empty-card p {
  color: var(--md-text-secondary);
  font-size: 15px;
  max-width: 300px;
  margin: 0 auto 20px;
}

.tonal-btn {
  background: var(--md-surface-card-highest);
  color: var(--md-text-primary);
  border: 1px solid var(--md-outline);
}

.tonal-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--md-primary);
  color: #fff;
}

/* ==========================================================================
   6. Wyszukiwarka (Material 3 Search Bar)
   ========================================================================== */
.m3-search-bar-wrap {
  position: sticky;
  top: 58px;
  z-index: 8;
  padding: 6px 0 10px;
  background: linear-gradient(var(--md-bg) 85%, transparent);
}

.m3-search-bar {
  display: flex;
  align-items: center;
  background: var(--md-surface-card);
  border: 1.5px solid var(--md-outline);
  border-radius: var(--md-radius-pill);
  padding: 0 16px;
  height: 54px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.m3-search-bar:focus-within {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
  background: var(--md-surface-card-high);
}

.search-lens-icon {
  color: var(--md-text-tertiary);
  margin-right: 12px;
  flex-shrink: 0;
}

.m3-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--md-text-primary);
  font-size: 17px;
  font-family: inherit;
  outline: none;
}

.m3-search-bar input::placeholder {
  color: var(--md-text-tertiary);
}

.search-clear-btn {
  background: var(--md-surface-card-highest);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--md-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
}

.search-status-box {
  text-align: center;
  padding: 12px 0;
}

.search-status-text {
  font-size: 15px;
  color: var(--md-text-secondary);
}

/* Przycisk Dodaj w wynikach wyszukiwania */
.add-track-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--md-radius-pill);
  background: var(--md-primary-gradient);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--md-glow);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
}

.add-track-btn:active {
  transform: scale(0.94);
}

.add-track-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.add-track-btn.added {
  background: var(--md-success);
  box-shadow: 0 2px 10px var(--md-success-glow);
}

/* ==========================================================================
   7. M3 Bottom Navigation Bar
   ========================================================================== */
.m3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: auto;
  min-height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-top: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  padding-left: 4px;
  padding-right: 4px;
  background: rgba(17, 18, 30, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--md-outline);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.m3-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--md-text-tertiary);
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-family: inherit;
  transition: all 0.2s ease;
  min-width: 0;
}

.nav-indicator {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.nav-indicator svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
}

.nav-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-align: center;
  transition: color 0.2s ease;
}

/* Aktywna zakładka (M3 Active Pill) */
.m3-nav-item.active {
  color: var(--md-text-primary);
}

.m3-nav-item.active .nav-indicator {
  background: rgba(168, 85, 247, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.4);
}

.m3-nav-item.active .nav-label {
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   8. Material 3 Snackbar (Toast)
   ========================================================================== */
.m3-snackbar {
  position: fixed;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--md-surface-card-highest);
  color: var(--md-text-primary);
  border: 1px solid var(--md-outline);
  padding: 12px 22px;
  border-radius: var(--md-radius-pill);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  max-width: 90vw;
  z-index: 30;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.m3-snackbar.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.m3-snackbar.bad {
  background: #3b111a;
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   8. Sekcja Informacyjna o SyncMix & Gdzie Gra Muzyka
   ========================================================================== */
.party-info-section {
  margin-top: 56px;
  width: 100%;
}

.party-info-section a,
.taka-footer a {
  text-decoration: none;
}

.info-hero-header {
  text-align: center;
  margin-bottom: 28px;
}

.info-pill {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  border-radius: var(--md-radius-pill);
  background: rgba(168, 85, 247, 0.12);
  color: var(--md-primary);
  border: 1px solid rgba(168, 85, 247, 0.3);
  margin-bottom: 12px;
}

.info-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #ffffff;
}

.info-subtitle {
  font-size: 16px;
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto;
}

/* Siatka 3 kroków — 1 kolumna na mobile, 3 kolumny na desktopie */
.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 32px;
  width: 100%;
}

@media (min-width: 768px) {
  .info-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.info-step-card {
  position: relative;
  background: linear-gradient(160deg, rgba(23, 24, 38, 0.9) 0%, rgba(16, 17, 28, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: var(--md-radius-xl);
  padding: 24px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.info-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(168, 85, 247, 0.2);
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--md-radius-pill);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #d8b4fe;
}

.step-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-text {
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8; /* Kontrastowy, miękki szary - NIE zlewająca się biel */
  margin-bottom: 16px;
  flex-grow: 1;
}

.step-text strong {
  color: #f1f5f9;
  font-weight: 600;
}

.step-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--md-radius-md);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: #c084fc;
  align-self: flex-start;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  display: inline-block;
  box-shadow: 0 0 6px #a855f7;
}

/* Karta promocyjna / pobrania wtyczki SyncMix */
.promo-card {
  margin-top: 14px;
  background: linear-gradient(145deg, rgba(28, 30, 48, 0.95) 0%, rgba(18, 19, 32, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--md-radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.12);
  padding: 34px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.promo-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.promo-badge {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f472b6;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 5px 16px;
  border-radius: var(--md-radius-pill);
}

.promo-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.promo-desc {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 24px;
}

.promo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}

.promo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--md-radius-md);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.promo-action-btn.primary-action {
  background: var(--md-primary-gradient);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.45);
}

.promo-action-btn.primary-action:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(236, 72, 153, 0.55);
}

.promo-action-btn.secondary-action {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.promo-action-btn.secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.promo-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  font-size: 14px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--md-radius-pill);
  color: #34d399;
  font-weight: 600;
}

/* ==========================================================================
   9. Standardowa Stopka Taka Idea
   ========================================================================== */
.taka-footer {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
}

.taka-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.taka-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--md-radius-pill);
  color: #cbd5e1 !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.taka-footer-link:hover {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.45);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
}

.taka-footer-links a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
}

.link-icon {
  font-size: 16px;
}

.taka-footer-company {
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 16px;
}

.company-brand strong {
  color: #f8fafc;
  font-weight: 700;
}

.company-details {
  font-size: 14px;
  color: #64748b;
  margin-top: 3px;
}

.taka-footer-note {
  max-width: 620px;
  margin: 0 auto;
}

.privacy-notice {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.privacy-notice strong {
  color: #94a3b8;
}

.version-badge-wrap {
  margin-top: 14px;
}

.taka-version-badge {
  display: inline-block;
  padding: 4px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--md-radius-pill);
}

/* ==========================================================================
   10. Modal Treści Prawnych (Taka Idea: Regulamin / Polityka / Kontakt)
   ========================================================================== */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.legal-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.legal-modal-dialog {
  position: relative;
  z-index: 101;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  background: var(--md-surface-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--md-radius-xl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--md-outline);
  background: rgba(0, 0, 0, 0.2);
}

.legal-modal-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.close-legal-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--md-text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}

.close-legal-btn:hover {
  color: #fff;
}

.legal-modal-body {
  padding: 24px 22px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--md-text-secondary);
}

.legal-modal-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 8px;
}

.legal-modal-body p {
  margin-bottom: 12px;
}

.legal-modal-body strong {
  color: var(--md-text-primary);
}

.legal-highlight-box {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--md-radius-md);
  padding: 14px 16px;
  margin: 16px 0;
  color: var(--md-text-primary);
}

.legal-contact-mail {
  display: inline-block;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 700;
  color: #c084fc;
  text-decoration: none;
}

.legal-contact-mail:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Modal Zasad Pokoju (Instrukcja na wejściu do pokoju)
   ========================================================================== */
.rules-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rules-modal.hidden {
  display: none !important;
}

.rules-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rules-modal-dialog {
  position: relative;
  z-index: 121;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: linear-gradient(180deg, #181926 0%, #12131d 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--md-radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(168, 85, 247, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.rules-modal-header {
  padding: 22px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.rules-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 4px 12px;
  border-radius: var(--md-radius-pill);
  margin-bottom: 8px;
}

.rules-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.rules-modal-subtitle {
  font-size: 14px;
  color: var(--md-text-secondary);
  line-height: 1.45;
  margin: 0;
}

.rules-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rules-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--md-radius-lg);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.rule-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.3);
}

.rule-card-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--md-primary-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--md-glow);
  margin-top: 2px;
}

.rule-card-content {
  flex: 1;
  min-width: 0;
}

.rule-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.3;
}

.rule-card-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.rule-card-desc strong {
  color: #e2e8f0;
}

.rules-modal-footer {
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
}

.rules-confirm-btn {
  width: 100%;
  max-width: 340px;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--md-radius-pill);
}


/* ==========================================================================
   9. Host Guide & How-It-Works Page Styles
   ========================================================================== */
.guide-page-body {
  background-color: var(--md-bg);
  color: var(--md-text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
}

.guide-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 1;
}

/* Guide Nav */
.guide-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 40px;
}

.guide-nav-brand {
  text-decoration: none;
}

.brand-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--md-radius-pill);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--md-primary);
}

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

.guide-nav-link {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.guide-nav-link:hover {
  color: #fff;
}

.guide-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: var(--md-radius-pill);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-nav-btn.primary {
  background: var(--md-primary-gradient);
  color: #fff;
  box-shadow: 0 2px 12px var(--md-glow);
}

.guide-nav-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Guide Hero */
.guide-hero {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 54px;
}

.guide-hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--md-radius-pill);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.guide-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #fff;
  margin-bottom: 18px;
}

.guide-hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: #94a3b8;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 32px;
}

.guide-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.guide-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--md-radius-pill);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.guide-cta-btn.primary {
  background: var(--md-primary-gradient);
  color: #fff;
  box-shadow: 0 4px 18px var(--md-glow);
}

.guide-cta-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--md-glow);
}

.guide-cta-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

.guide-cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.guide-cta-btn.tertiary {
  background: transparent;
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.guide-cta-btn.tertiary:hover {
  background: rgba(168, 85, 247, 0.12);
  color: #fff;
  border-color: var(--md-primary);
  transform: translateY(-2px);
}

/* Master Workflow Section */
.guide-workflow-section {
  margin-bottom: 70px;
}

.workflow-card {
  background: linear-gradient(180deg, rgba(23, 24, 38, 0.9) 0%, rgba(15, 16, 26, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--md-radius-xl);
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.15);
}

.workflow-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 24px;
}

.workflow-chip {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--md-radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c084fc;
  margin-bottom: 8px;
}

.workflow-title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.workflow-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.5;
}

.workflow-img-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #090a12;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.workflow-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.workflow-img:hover {
  transform: scale(1.01);
}

.img-hint {
  position: absolute;
  bottom: 12px;
  right: 14px;
  padding: 5px 12px;
  background: rgba(5, 5, 12, 0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--md-radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  pointer-events: none;
}

/* Comparison Section */
.guide-comparison-section {
  margin-bottom: 80px;
}

.section-badge-center {
  text-align: center;
  display: table;
  margin: 0 auto 12px;
  padding: 4px 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--md-radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c084fc;
}

.guide-section-heading {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  text-align: center;
  color: #fff;
  margin-bottom: 8px;
}

.guide-section-subheading {
  font-size: 16px;
  color: #94a3b8;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.comparison-card {
  border-radius: var(--md-radius-xl);
  padding: 30px 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.comparison-card.bad {
  background: linear-gradient(180deg, rgba(35, 18, 26, 0.8) 0%, rgba(20, 12, 17, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.comparison-card.good {
  background: linear-gradient(180deg, rgba(20, 32, 28, 0.8) 0%, rgba(13, 22, 20, 0.95) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(16, 185, 129, 0.15);
}

.comparison-header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.comparison-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-top: 8px;
}

.comparison-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--md-radius-pill);
}

.comparison-tag.red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.comparison-tag.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  font-size: 14.5px;
  line-height: 1.55;
  color: #cbd5e1;
}

.comparison-list li strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

/* Step Feature Cards (3 Authentic Screenshots) */
.guide-steps-section {
  margin-bottom: 80px;
}

.step-feature-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: center;
  background: rgba(23, 24, 38, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: var(--md-radius-xl);
  padding: 36px 32px;
  margin-bottom: 36px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
}

.step-feature-card.reverse {
  grid-template-columns: 1.1fr 1fr;
}

.step-feature-card.reverse .step-feature-content {
  order: 2;
}

.step-feature-card.reverse .step-feature-media {
  order: 1;
}

.step-num-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--md-radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #d8b4fe;
  margin-bottom: 12px;
}

.step-feature-content {
  min-width: 0;
  max-width: 100%;
}

.step-feature-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
  overflow-wrap: break-word;
  word-break: normal;
}

.step-feature-desc {
  font-size: 15.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.step-feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5e1;
  overflow-wrap: break-word;
  min-width: 0;
}

.bullet-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Browser Mockup Frame */
.browser-mockup {
  border-radius: 16px;
  overflow: hidden;
  background: #10111a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.12);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-bar .dot.red { background: #ef4444; }
.mockup-bar .dot.yellow { background: #f59e0b; }
.mockup-bar .dot.green { background: #10b981; }

.mockup-title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.mockup-img:hover {
  transform: scale(1.015);
}

/* Quickstart Checklist Section */
.guide-checklist-section {
  margin-bottom: 80px;
}

.checklist-card {
  background: linear-gradient(180deg, #161726 0%, #11121d 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--md-radius-xl);
  padding: 36px 30px;
}

.checklist-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.checklist-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.checklist-desc {
  font-size: 15px;
  color: #94a3b8;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.check-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--md-radius-lg);
  padding: 22px 18px;
  position: relative;
  transition: all 0.2s ease;
}

.check-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
}

.check-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--md-primary-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px var(--md-glow);
}

.check-item-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.check-item-card p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.check-item-card code {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Final CTA Section */
.guide-final-cta {
  margin-bottom: 60px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(236, 72, 153, 0.14) 50%, rgba(23, 24, 38, 0.95) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  border-radius: var(--md-radius-xl);
  padding: 46px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(168, 85, 247, 0.2);
}

.cta-pill {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--md-radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f5d0fe;
  margin-bottom: 16px;
}

.cta-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cta-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.hidden {
  display: none !important;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 12, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  z-index: 201;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.3);
  object-fit: contain;
}

.lightbox-close-btn {
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--md-radius-pill);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--md-danger);
  border-color: var(--md-danger);
}

/* Responsive queries for Guide page */
@media (max-width: 860px) {
  .guide-container {
    padding: 16px 14px 60px;
  }

  .guide-nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0 24px;
    margin-bottom: 28px;
    justify-content: space-between;
  }

  .guide-nav-actions {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .step-feature-card,
  .step-feature-card.reverse {
    grid-template-columns: 100%;
    gap: 20px;
    padding: 24px 16px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .step-feature-content {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .step-feature-title {
    word-break: normal;
    overflow-wrap: break-word;
    font-size: clamp(20px, 5.5vw, 26px);
  }

  .step-feature-desc,
  .bullet-item {
    word-break: normal;
    overflow-wrap: break-word;
  }

  .step-feature-media {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .browser-mockup {
    width: 100%;
    box-sizing: border-box;
  }

  .step-feature-card.reverse .step-feature-content,
  .step-feature-card.reverse .step-feature-media {
    order: unset;
  }

  .workflow-card {
    padding: 22px 14px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-card {
    padding: 22px 16px;
  }

  .cta-box {
    padding: 30px 16px;
  }
}

@media (max-width: 580px) {
  .guide-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .guide-nav-brand {
    display: flex;
    justify-content: center;
  }

  .brand-badge-pill {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .guide-nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .guide-nav-link {
    font-size: 14px;
    white-space: nowrap;
    padding: 6px 4px;
  }

  .guide-nav-btn {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
  }

  .guide-hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .guide-cta-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 18px;
    text-align: center;
  }

  .step-feature-card,
  .step-feature-card.reverse {
    padding: 20px 14px;
    border-radius: var(--md-radius-lg);
  }
}

/* ==========================================================================
   10. Workflow Preview Card & Action Button Extensions
   ========================================================================== */
.workflow-preview-card {
  margin-bottom: 28px;
  background: linear-gradient(180deg, rgba(23, 24, 38, 0.95) 0%, rgba(16, 17, 28, 0.98) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.15);
  padding: 28px 24px;
  border-radius: var(--md-radius-xl);
}

.workflow-preview-content {
  text-align: center;
}

.workflow-preview-title {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  color: #fff;
  margin: 10px 0 8px;
}

.workflow-preview-desc {
  font-size: 15px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.workflow-preview-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090a12;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.workflow-preview-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.workflow-preview-img:hover {
  transform: scale(1.015);
  filter: brightness(1.05);
}

.workflow-preview-cta {
  display: flex;
  justify-content: center;
}

.promo-action-btn.tertiary-action {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.promo-action-btn.tertiary-action:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: var(--md-primary);
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 4px 18px var(--md-glow);
}

/* ==========================================================================
   11. Workflow Steps Grid & Cutout Box Styles
   ========================================================================== */
.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 14px;
}

@media (max-width: 920px) {
  .workflow-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.workflow-step-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--md-radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.workflow-step-box:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.step-box-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.step-box-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 4px 10px;
  border-radius: var(--md-radius-pill);
  flex-shrink: 0;
}

.step-box-header h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.step-box-header p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.step-box-img-wrap {
  margin-top: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #07080e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-box-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.step-box-img:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   Live Now Playing Card & Vote to Skip
   ========================================================================== */
.now-playing-card {
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(26, 20, 48, 0.85) 0%, rgba(15, 14, 28, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.38);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.now-playing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #ec4899, #38bdf8);
}

.now-playing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.now-playing-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--md-radius-pill);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: liveDotPulse 1.8s infinite ease-in-out;
}

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

.live-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #4ade80;
}

.now-playing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.np-action-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--md-radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  letter-spacing: 0.2px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.lyrics-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
}

.lyrics-action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.lyrics-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.skip-action-btn {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.38);
  color: #fda4af;
}

.skip-action-btn:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.24);
  border-color: rgba(244, 63, 94, 0.55);
  transform: translateY(-1px);
}

.skip-action-btn.voted {
  background: #f43f5e;
  border-color: #f43f5e;
  color: #fff;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.4);
}

.skip-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.now-playing-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.now-playing-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #0d0e17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.now-playing-meta {
  flex: 1;
  min-width: 0;
}

.now-playing-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-artist {
  font-size: 13.5px;
  color: #c084fc;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-progress-wrap {
  margin-top: 14px;
  width: 100%;
}

.now-playing-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.now-playing-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7 0%, #ec4899 100%);
  border-radius: 4px;
  transition: width 0.3s linear;
}

.now-playing-time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Lyrics Modal
   ========================================================================== */
.lyrics-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lyrics-modal.hidden {
  display: none !important;
}

.lyrics-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lyrics-modal-dialog {
  position: relative;
  z-index: 126;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: linear-gradient(180deg, #181926 0%, #12131d 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--md-radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(168, 85, 247, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.lyrics-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  gap: 12px;
}

.lyrics-header-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.lyrics-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.lyrics-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 3px 10px;
  border-radius: var(--md-radius-pill);
}

.lyrics-source-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2.5px 8px;
  border-radius: var(--md-radius-pill);
}

.lyrics-source-badge.hidden {
  display: none !important;
}

.lyrics-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyrics-modal-artist {
  font-size: 15px;
  color: #94a3b8;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.close-lyrics-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--md-radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.close-lyrics-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lyrics-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  max-height: 62vh;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

/* ==========================================================================
   Queue Segmented Control (Guest Requests vs Host PC Playlist)
   ========================================================================== */
.queue-nav-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--md-radius-pill, 9999px);
  padding: 4px;
  gap: 4px;
  margin: 12px 0 16px 0;
}

.queue-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--md-radius-pill, 9999px);
  padding: 9px 14px;
  color: var(--md-on-surface-variant, #94a3b8);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.queue-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.queue-nav-btn.active {
  background: var(--md-primary, #a855f7);
  color: #fff;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
}

.queue-subview {
  animation: fadeIn 0.2s ease-out;
}

/* Host Track Cards */
.host-track-card {
  position: relative;
  border-left: 3px solid rgba(168, 85, 247, 0.6);
}

.host-track-num {
  font-size: 13px;
  font-weight: 700;
  color: #a855f7;
  min-width: 28px;
  text-align: center;
  padding: 2px 6px;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 6px;
  flex-shrink: 0;
}

.guest-pick-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
  width: fit-content;
}

.lyrics-content {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 18.5px;
  line-height: 1.8;
  color: #f8fafc;
  font-weight: 500;
  text-align: left;
  word-break: break-word;
  user-select: text;
  letter-spacing: 0.15px;
}

.lyrics-stanza {
  margin: 0 0 22px 0;
  padding: 0;
  line-height: 1.8;
  white-space: pre-line;
}

.lyrics-stanza:last-child {
  margin-bottom: 0;
}

.lyrics-empty-msg {
  text-align: center;
  color: #94a3b8;
  font-size: 15.5px;
  padding: 40px 10px;
  line-height: 1.6;
}

.lyrics-modal-footer {
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: center;
}

.lyrics-dismiss-btn {
  width: 100%;
  max-width: 240px;
}

/* ============================================================
   Guest Mobile App Showcase Gallery (how-it-works.html)
   ============================================================ */
.guide-app-showcase-section {
  margin: 50px 0 60px 0;
}

.app-screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.app-screen-card {
  background: var(--md-surface);
  border: 1px solid var(--md-outline);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.app-screen-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(168, 85, 247, 0.2);
}

.app-screen-img-box {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  background: #0d0d16;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.app-screen-card:hover .app-screen-img {
  transform: scale(1.02);
}

.app-screen-info {
  padding: 16px 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-screen-step {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #c084fc;
  margin-bottom: 6px;
  display: inline-block;
}

.app-screen-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.app-screen-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

@media (max-width: 960px) {
  .app-screens-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 540px) {
  .app-screens-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
