.gsmvp5-root {
  max-width: 380px;
  margin: 10px auto;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  font-family: -apple-system, system-ui, sans-serif;
  text-align: center;
}

.gsmvp5-root video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.gsmvp5-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.gsmvp5-btn {
  background: #444;
  color: #fff;
  border: none;
  padding: 8px 0;
  border-radius: 18px;
  flex: 1;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.gsmvp5-btn.is-recording { background: #1DB954 !important; opacity: 1 !important; }
.gsmvp5-btn.is-grey { background: #777 !important; opacity: 1 !important; }
.gsmvp5-btn.is-stopped { background: #cc0000 !important; opacity: 1 !important; }
.gsmvp5-btn.is-ready { background: #1DB954 !important; opacity: 1 !important; }
.gsmvp5-btn:disabled { opacity: 0.25; }

.gsmvp5-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

.gsmvp5-results { margin-top: 10px; }

.gsmvp5-scene {
  text-align: left;
  font-size: 12px;
  color: #555;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.gsmvp5-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gsmvp5-card {
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.gsmvp5-card.is-voted {
  border-color: #1DB954;
  background: #f0fdf4;
}

.gsmvp5-card-error {
  background: #fffbeb;
  border-color: #fbbf24;
}

.gsmvp5-error-note {
  font-size: 12px;
  color: #92400e;
  background: #fef3c7;
  padding: 8px;
  border-radius: 6px;
  margin: 8px 0;
}

.gsmvp5-error-note code {
  background: #fde68a;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

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

.gsmvp5-label {
  background: #1DB954;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: lowercase;
}

.gsmvp5-mood {
  font-size: 12px;
  color: #4a5568;
  font-style: italic;
}

.gsmvp5-card-body {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gsmvp5-album-art {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.gsmvp5-album-art-placeholder {
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #94a3b8;
}

.gsmvp5-track-info { flex: 1; min-width: 0; }

.gsmvp5-track-name {
  font-weight: 700;
  font-size: 14px;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsmvp5-track-artist {
  font-size: 12px;
  color: #64748b;
}

.gsmvp5-genres-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.gsmvp5-tag {
  background: #e2e8f0;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.gsmvp5-reasoning {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.4;
}

.gsmvp5-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}

.gsmvp5-preview-btn {
  background: #fff;
  border: 1px solid #1DB954;
  color: #1DB954;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.gsmvp5-preview-btn:hover {
  background: #1DB954;
  color: #fff;
}

.gsmvp5-spotify-link {
  color: #1DB954;
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
}

.gsmvp5-spotify-link:hover { text-decoration: underline; }

.gsmvp5-no-preview, .gsmvp5-no-spotify {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

.gsmvp5-vote-btn {
  width: 100%;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gsmvp5-vote-btn:hover { background: #f1f5f9; }

.gsmvp5-vote-btn.is-voted {
  background: #1DB954;
  border-color: #1DB954;
  color: #fff;
}

.gsmvp5-empty, .gsmvp5-error {
  padding: 20px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  background: #f8fafc;
  border-radius: 8px;
}

.gsmvp5-error {
  color: #b91c1c;
  background: #fef2f2;
}

/* v5 additions: family badge + diversity indicator */
.gsmvp5-family {
  display: inline-block;
  background: rgba(255,255,255,0.85);
  color: #1DB954;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  margin-left: 4px;
  letter-spacing: 0.05em;
}

.gsmvp5-diversity {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-align: left;
}
.gsmvp5-diversity-pass {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.gsmvp5-diversity-fail {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
