.profile-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.profile-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--secondary-text);
  font-size: 3rem;
  font-weight: 700;
}

.profile-header__details h1 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.profile-location {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-bio {
  margin: 0.5rem 0;
  color: var(--text);
  white-space: pre-wrap;
}

.instrument-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0;
}

.instrument-badge {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.profile-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.4rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
}

/* One caption field per file chosen in a multi-photo upload — see
   multi_photo_captions_controller.js. */
.photo-caption-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.photo-caption-list__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.photo-caption-list__item span {
  flex: 0 0 auto;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.photo-caption-list__item input[type="text"] {
  flex: 1 1 auto;
}

.checkbox-list__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  color: var(--text);
}

.checkbox-list__item input {
  width: auto;
}

.video-links {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.video-embed {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
}

.video-embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed__description {
  padding: 0.6rem 0.85rem;
}
