/* ---------- Hero: banner + avatar + name + group ---------- */

.idol-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.idol-hero-banner {
  position: relative;
  aspect-ratio: 21 / 6;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1f no-repeat center top / cover; /* top-anchored so faces stay in frame */
  border: 1px solid var(--border);
}

@media (max-width: 750px) {
  .idol-hero-banner { aspect-ratio: 16 / 9; }
}

/* Dark shadow along the bottom of the banner so the part of the name that
   still overlaps the photo (the avatar/name block is pulled up over it)
   stays readable no matter how light that part of the photo is. */
.idol-hero-banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* Pulled up so the avatar straddles the banner's bottom edge — half on the
   photo, half poking out below it onto the page background. Needs its own
   stacking context (position + z-index): the banner is `position: relative`
   too (for its ::after shadow), and a positioned element always paints over
   a plain in-flow sibling regardless of DOM order — without this the name
   was rendering invisibly behind the banner wherever the two overlapped. */
.idol-hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: -48px;
  padding: 0 24px;
}

.idol-hero-avatar {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  background: #1a1a1f;
  border: 3px solid var(--bg);
}

/* Shifted up relative to the avatar (which stays anchored to straddle the
   banner symmetrically) — otherwise the name sits right against the
   banner's bottom edge instead of clearing it. */
.idol-hero-info {
  margin-bottom: 12px;
}

.idol-hero-stagename {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.idol-hero-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.idol-hero-group:hover {
  background: #ff6b6b;
  color: #1a0000;
}

/* Mobile: stack instead of the desktop row — avatar centered, name and
   group centered underneath it, all sitting fully below the banner. */
@media (max-width: 560px) {
  .idol-hero-avatar {
    width: 84px;
    height: 84px;
  }

  .idol-hero-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -42px;
    gap: 10px;
  }

  .idol-hero-info {
    margin-bottom: 0;
  }

  .idol-hero-stagename {
    font-size: 1.3rem;
  }
}

/* ---------- Basic information: 4 columns x 2 rows ---------- */

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .profile-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .profile-info-grid { grid-template-columns: 1fr; }
}

.profile-info-item {
  background: var(--bg-header);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.profile-info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.profile-info-value {
  font-size: 0.95rem;
  font-weight: 600;
}
