* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: black;
  overflow: hidden;
}

#canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

.start-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
}

.start-overlay.hidden {
  display: none;
}

.start-content {
  text-align: center;
  color: white;
}

.start-logo {
  width: 600px;
  height: auto;
  margin-bottom: 24px;
}

.start-content h1 {
  font-size: 48px;
  margin-bottom: 16px;
  font-family: system-ui, -apple-system, sans-serif;
}

.start-content p {
  font-size: 18px;
  opacity: 0.7;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Controls overlay */
.controls-overlay {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  transition: opacity 0.3s ease;
}

.controls-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 24px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.mode-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-family: system-ui, -apple-system, sans-serif;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

.mode-btn.active {
  background: #8B5CF6;
  border-color: #8B5CF6;
  color: white;
}

/* Party Mode Button - uses pink/orange gradient when active */
.mode-btn.party:hover {
  border-color: rgba(236, 72, 153, 0.8);
  color: #ec4899;
}

.mode-btn.party.active {
  background: linear-gradient(135deg, #ec4899, #f97316);
  border-color: #ec4899;
  color: white;
  animation: party-pulse 2s ease-in-out infinite;
}

@keyframes party-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(236, 72, 153, 0.4); }
  50% { box-shadow: 0 0 16px rgba(236, 72, 153, 0.7); }
}

.mode-status {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-family: system-ui, -apple-system, sans-serif;
  margin-left: 12px;
}

/* ==========================================
   INFO ICON
   ========================================== */
#info-icon {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 100;
}

#info-icon.visible {
  opacity: 1;
  pointer-events: auto;
}

#info-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

#info-icon:focus {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

/* ==========================================
   INFO CARD - CENTERED (TV/Desktop)
   ========================================== */
#info-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 440px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(12, 12, 16, 0.94);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 200;
}

#info-card.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

#info-card::-webkit-scrollbar {
  width: 6px;
}

#info-card::-webkit-scrollbar-track {
  background: transparent;
}

#info-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.info-card-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.info-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 24px 0;
  padding-right: 44px;
  line-height: 1.3;
}

.info-section {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-section h3 {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 14px 0;
}

/* Contemplation section */
.contemplation blockquote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.quote-theme {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* Metadata section */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-row label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-row span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* Inspiration section */
.inspiration p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 16px 0;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: capitalize;
}

/* ==========================================
   GENERATED IMAGE INFO CARD - Elegant Gallery Style
   ========================================== */
.info-card-content.generated {
  padding: 0;
}

.info-badge-row {
  margin-bottom: 16px;
}

.generated-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.artwork-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 300;
  color: white;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.artist-statement-section {
  margin: 24px 0;
}

.artist-statement {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin: 0;
}

.artist-statement.pending {
  color: rgba(255, 255, 255, 0.5);
}

.info-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  text-transform: capitalize;
}

.info-card-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.inspired-by {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.inspired-by .inspired-song-title {
  color: rgba(255, 255, 255, 0.8);
}

.generated-timestamp {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* Hide old prompt-related styles */
.prompt-section,
.prompt-text,
.creative-prompt,
.generated-for {
  display: none !important;
}

.pending .pending-text {
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ==========================================
   MOBILE STYLES
   ========================================== */
@media (max-width: 768px) {
  #info-icon {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  #info-card {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    width: 100%;
    max-width: 100%;
    max-height: 60vh;
    border-radius: 28px 28px 0 0;
    padding: 24px;
    padding-top: 20px;
  }
  
  #info-card.visible {
    transform: translateY(0);
  }
  
  /* Swipe indicator for mobile */
  #info-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
  }
  
  .info-card-title {
    font-size: 22px;
    margin-bottom: 18px;
    margin-top: 8px;
  }
  
  .contemplation blockquote {
    font-size: 16px;
  }
  
  /* Shrink canvas when card is open */
  body.info-card-open canvas,
  body.info-card-open #canvas {
    height: 40vh !important;
    transition: height 0.4s ease;
  }
}

/* Hide swipe indicator on desktop */
@media (min-width: 769px) {
  #info-card::before {
    display: none;
  }
}

/* ============================================
   Visual DNA Picker Styles
   ============================================ */

.vdna-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: vdnaFadeIn 0.3s ease;
  backdrop-filter: blur(8px);
}

.vdna-overlay.closing {
  animation: vdnaFadeOut 0.3s ease forwards;
}

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

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

.vdna-modal {
  background: #1a1a2e;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  color: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(139, 92, 246, 0.1);
  overflow: hidden;
}

.vdna-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
}

.vdna-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: system-ui, -apple-system, sans-serif;
}

.vdna-header p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-family: system-ui, -apple-system, sans-serif;
}

.vdna-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  border-radius: 4px;
}

.vdna-close:hover {
  color: white;
  transform: scale(1.1);
}

.vdna-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.vdna-content::-webkit-scrollbar {
  width: 6px;
}

.vdna-content::-webkit-scrollbar-track {
  background: transparent;
}

.vdna-content::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

.vdna-level {
  display: none;
}

.vdna-level.active {
  display: block;
  animation: vdnaSlideIn 0.3s ease;
}

.vdna-level.hidden {
  display: none;
}

@keyframes vdnaSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Level 1: Mode Cards */
.vdna-mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vdna-mode-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vdna-mode-card:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.vdna-mode-card.selected {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8B5CF6;
}

.vdna-mode-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 16px;
}

.vdna-mode-icon svg {
  width: 32px;
  height: 32px;
  color: #8B5CF6;
}

.vdna-mode-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
}

.vdna-mode-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.4;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Level 2: Vibe Grid */
.vdna-level-2 h2,
.vdna-level-3 h2 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-family: system-ui, -apple-system, sans-serif;
}

.vdna-vibe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.vdna-vibe-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vdna-vibe-card:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.vdna-vibe-card.selected {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8B5CF6;
}

.vdna-vibe-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.vdna-vibe-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.vdna-vibe-name {
  font-size: 14px;
  font-weight: 500;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Level 3: Style Categories */
.vdna-count {
  font-weight: 400;
  color: #8B5CF6;
  font-size: 14px;
}

.vdna-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vdna-category {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.vdna-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.vdna-category-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.vdna-category-arrow {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s;
}

.vdna-category.expanded .vdna-category-arrow {
  transform: rotate(90deg);
}

.vdna-category-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  font-family: system-ui, -apple-system, sans-serif;
}

.vdna-category-count {
  font-size: 12px;
  color: #8B5CF6;
}

.vdna-category-content {
  display: none;
  padding: 0 16px 16px;
}

.vdna-category.expanded .vdna-category-content {
  display: block;
}

.vdna-style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.vdna-style-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.vdna-style-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.vdna-style-card.selected {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
}

.vdna-style-preview {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}

.vdna-style-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vdna-style-info strong {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vdna-style-info span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vdna-style-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.15s;
  flex-shrink: 0;
}

.vdna-style-card.selected .vdna-style-check {
  background: #8B5CF6;
  border-color: #8B5CF6;
  color: white;
}

/* Footer */
.vdna-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.vdna-selection-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
  font-family: system-ui, -apple-system, sans-serif;
}

.vdna-actions {
  display: flex;
  gap: 12px;
}

.vdna-back {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: system-ui, -apple-system, sans-serif;
}

.vdna-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

.vdna-back.hidden {
  display: none;
}

.vdna-create {
  padding: 10px 24px;
  background: #8B5CF6;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: system-ui, -apple-system, sans-serif;
}

.vdna-create:hover:not(:disabled) {
  background: #7C3AED;
  transform: translateY(-1px);
}

.vdna-create:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Visual DNA Picker Responsive */
@media (max-width: 768px) {
  .vdna-modal {
    max-height: 90vh;
  }
  
  .vdna-mode-cards {
    grid-template-columns: 1fr;
  }
  
  .vdna-vibe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .vdna-style-grid {
    grid-template-columns: 1fr;
  }
  
  .vdna-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .vdna-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .vdna-overlay {
    padding: 10px;
  }
  
  .vdna-header {
    padding: 20px 16px;
  }
  
  .vdna-header h1 {
    font-size: 20px;
  }
  
  .vdna-content {
    padding: 16px;
  }
  
  .vdna-vibe-grid {
    grid-template-columns: 1fr;
  }
  
  .vdna-mode-card {
    padding: 24px 16px;
  }
}

/* ============================================
   NOW PLAYING NOTIFICATION
   ============================================ */

.now-playing {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  z-index: 1000;
  animation: nowPlayingSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 320px;
}

.now-playing.hiding {
  animation: nowPlayingSlideOut 0.5s ease forwards;
}

@keyframes nowPlayingSlideIn {
  from { 
    transform: translateX(120%); 
    opacity: 0; 
  }
  to { 
    transform: translateX(0); 
    opacity: 1; 
  }
}

@keyframes nowPlayingSlideOut {
  from { 
    transform: translateX(0); 
    opacity: 1; 
  }
  to { 
    transform: translateX(120%); 
    opacity: 0; 
  }
}

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

.now-playing-art {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.now-playing-art-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8B5CF6;
}

.now-playing-info {
  color: white;
  min-width: 0;
  flex: 1;
}

.now-playing-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8B5CF6;
  margin-bottom: 4px;
  font-weight: 600;
}

.now-playing-title {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.now-playing-artist {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-album {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .now-playing {
    top: auto;
    bottom: 100px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ==========================================
   VISION PICKER
   ========================================== */
.vision-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.vision-picker-overlay.visible {
  opacity: 1;
}

.vision-picker-overlay.closing {
  opacity: 0;
}

.vision-picker-modal {
  background: rgba(20, 20, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s ease-out;
}

.vision-picker-overlay.visible .vision-picker-modal {
  transform: scale(1);
}

.vision-picker-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.vision-picker-header h2 {
  font-size: 24px;
  font-weight: 300;
  color: white;
  margin: 0 0 8px 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.vision-picker-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.vision-picker-close {
  position: absolute;
  top: -8px;
  right: -8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s;
}

.vision-picker-close:hover {
  color: white;
}

.vision-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.vision-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.vision-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.vision-card.selected {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
}

.vision-card-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  flex-shrink: 0;
}

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

.vision-card-name {
  font-size: 15px;
  font-weight: 500;
  color: white;
  margin: 0 0 4px 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.vision-card-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.vision-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #8B5CF6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
}

.vision-description-panel {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
}

.vision-description-panel p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Vision button in controls bar */
.vision-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-family: system-ui, -apple-system, sans-serif;
}

.vision-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.vision-btn .control-icon {
  font-size: 16px;
}

.vision-btn .control-label {
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 500px) {
  .vision-picker-grid {
    grid-template-columns: 1fr;
  }
  
  .vision-picker-modal {
    padding: 20px;
  }
}

/* ==========================================
   VIEW MODE TOGGLE (Gallery/Dream)
   ========================================== */

.view-mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.view-mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 17px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: system-ui, -apple-system, sans-serif;
}

.view-mode-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.view-mode-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.view-mode-btn .mode-icon {
  font-size: 14px;
}

.view-mode-btn .mode-label {
  font-size: 13px;
  font-weight: 500;
}

/* Dream mode active - subtle purple/pink gradient */
.view-mode-btn.dream.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.2));
}

/* Body class for global dream mode effects */
body.dream-mode .view-mode-toggle {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Optional subtle glow on canvas when in dream mode */
body.dream-mode #canvas {
  filter: brightness(1.02) saturate(1.05);
}

/* ==========================================
   MINI INFO CARD (Gallery Mode)
   ========================================== */

.mini-info-card {
  position: fixed;
  bottom: 100px;
  left: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 320px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 100;
  font-family: system-ui, -apple-system, sans-serif;
}

.mini-info-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.mini-info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-info-title {
  font-size: 16px;
  font-weight: 400;
  color: white;
  line-height: 1.3;
}

.mini-info-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Generated image - subtle purple accent */
.mini-info-card.generated {
  border-color: rgba(139, 92, 246, 0.3);
}

.mini-info-card.generated .mini-info-title::before {
  content: '✨ ';
  font-size: 14px;
}

/* Adjust position to not overlap with controls */
@media (max-height: 700px) {
  .mini-info-card {
    bottom: 80px;
  }
}
