.char-profile-main {
  padding: 28px 0 56px;
}

.char-profile-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #c4b5fd;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.char-profile-back:hover {
  color: #e9d5ff;
}

.char-profile-not-found {
  text-align: center;
  padding: 48px 16px 64px;
}

.char-profile-not-found .btn {
  margin-top: 20px;
}

.char-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: linear-gradient(155deg, rgba(32, 32, 34, 0.96), rgba(18, 18, 20, 0.98));
}

.char-profile-hero__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.char-profile-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.char-profile-hero__age {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.char-profile-hero__vibe {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e0f2fe;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.28);
}

.char-profile-hero__name {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
}

.char-profile-hero__tagline {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.char-profile-hero__meta {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.char-profile-hero__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.char-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.char-profile-hero__actions .btn {
  min-width: 160px;
  justify-content: center;
}

.char-profile-section {
  margin-bottom: 36px;
}

.char-profile-section__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
}

.char-profile-section__sub {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.char-profile-about {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
}

.char-profile-about__bio {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.char-profile-about__facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.char-profile-about__facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.char-profile-about__facts li i {
  margin-top: 3px;
  color: #22d3ee;
  font-size: 12px;
}

.char-profile-scenarios {
  display: grid;
  gap: 14px;
}

.char-profile-scenario {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
}

.char-profile-scenario__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.char-profile-scenario__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.char-profile-scenario__badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbcfe8;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.28);
}

.char-profile-scenario__desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.char-profile-scenario__pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.char-profile-others {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.char-profile-other {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.char-profile-other:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.06);
}

.char-profile-other img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.char-profile-other__name {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.char-profile-other__vibe {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.character-profile-page.char-profile--eva .char-profile-hero__vibe {
  color: #fbcfe8;
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.28);
}

@media (max-width: 820px) {
  .char-profile-hero {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .char-profile-hero__actions {
    flex-direction: column;
  }

  .char-profile-hero__actions .btn {
    width: 100%;
  }
}
