/* Audience tab — public profile (?media_kit_overview=1) */

.profile-audience {
  margin-top: 0;
}

/* At a glance uses Overview .ov-headline-stats (profile-view-styles.css) */

.profile-audience-divider {
  margin: 52px 0;
  border: 0;
  border-top: 0.5px solid var(--color-border-tertiary, #e5e7eb);
}

.profile-audience-section {
  margin-bottom: 0;
}

.profile-audience-section__label {
  margin: 0 0 16px;
}

.profile-audience-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 200px));
  gap: 10px;
  justify-content: start;
}

.profile-audience-platform {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 200px;
  width: 100%;
  padding: 16px;
  border: 0.5px solid var(--color-border-tertiary, #e5e7eb);
  border-radius: var(--border-radius-lg, 12px);
  box-sizing: border-box;
  background: #fff;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.profile-audience-platforms a.profile-audience-platform {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.profile-audience-platform--primary {
  border-color: #bae6fd;
  background: linear-gradient(90deg, #e0f2fe 0%, #e0f2fe 3px, #f8fcff 3px, #f8fcff 100%);
  box-shadow: inset 0 0 0 0.5px #bae6fd;
}

.profile-audience-platform--primary .profile-audience-platform__head i {
  color: #0284c7;
}

.profile-audience-platform--primary .profile-audience-platform__name {
  color: #0369a1;
  font-weight: 600;
}

.profile-audience-platforms a.profile-audience-platform:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.profile-audience-platforms a.profile-audience-platform--primary:hover {
  border-color: #7dd3fc;
  background: linear-gradient(90deg, #bae6fd 0%, #bae6fd 3px, #f0f9ff 3px, #f0f9ff 100%);
}

.profile-audience-platforms a.profile-audience-platform:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.profile-audience-platforms a.profile-audience-platform:focus-visible {
  outline: 2px solid #03a5ff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .profile-audience-platform {
    transition: none;
  }
}

.profile-audience-platform__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-audience-platform__head i {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--color-text-secondary, #64748b);
}

.profile-audience-platform__name {
  flex-shrink: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.3;
  color: var(--color-text-tertiary, #9ca3af);
}

.profile-audience-platform__stat-value {
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text-primary, #0f172a);
  font-variant-numeric: tabular-nums;
}

.profile-audience-platform__stat-label {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--color-text-tertiary, #9ca3af);
}

.profile-audience-platform__engagement {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 0.5px solid var(--color-border-tertiary, #e5e7eb);
}

.profile-audience-platform__engagement-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary, #0f172a);
  font-variant-numeric: tabular-nums;
}

.profile-audience-platform__engagement-label {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text-tertiary, #9ca3af);
}

.profile-audience-section--last .profile-audience-section__label:not(.ov-sec-label) {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-tertiary, #9ca3af);
}

body.media-kit-overview-v2 .profile-audience-section__label.ov-sec-label {
  margin: 0 0 16px;
}

.profile-audience-interests {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-left: 2px solid var(--color-border-secondary, #e5e7eb);
  background: var(--color-background-secondary, #f8f8f6);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary, #64748b);
}

.profile-audience-demo-unified {
  overflow: hidden;
  border: 0.5px solid var(--color-border-tertiary, #e5e7eb);
  border-radius: var(--border-radius-lg, 12px);
}

.profile-audience-demo-unified__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
}

.profile-audience-demo-unified__grid--count-1 {
  grid-template-columns: 1fr;
  max-width: 320px;
}

.profile-audience-demo-unified__grid--count-2 {
  grid-template-columns: 1fr 1fr;
}

.profile-audience-demo-unified__col {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-right: 0.5px solid var(--color-border-tertiary, #e5e7eb);
  box-sizing: border-box;
}

.profile-audience-demo-unified__col:last-child {
  border-right: none;
}

.profile-audience-demo-unified__title {
  flex-shrink: 0;
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary, #0f172a);
}

.profile-audience-demo-unified__footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 24px;
  border-top: 0.5px solid var(--color-border-tertiary, #e5e7eb);
  font-size: 11px;
  color: var(--color-text-tertiary, #9ca3af);
}

.profile-audience-age-rows {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.profile-audience-age-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--color-border-tertiary, #e5e7eb);
}

.profile-audience-age-row--last {
  border-bottom: none;
}

.profile-audience-age-row__label {
  flex-shrink: 0;
  width: 44px;
  font-size: 13px;
  color: var(--color-text-secondary, #64748b);
}

.profile-audience-age-row--dominant .profile-audience-age-row__label {
  font-weight: 500;
  color: var(--color-text-primary, #0f172a);
}

.profile-audience-age-row__track {
  flex: 1 1 auto;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--color-background-secondary, #f8f8f6);
}

.profile-audience-age-row__fill {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: 99px;
  background: var(--color-text-tertiary, #9ca3af);
}

.profile-audience-age-row--dominant .profile-audience-age-row__fill {
  background: var(--color-text-primary, #0f172a);
}

.profile-audience-age-row__pct {
  flex-shrink: 0;
  width: 36px;
  font-size: 13px;
  color: var(--color-text-tertiary, #9ca3af);
  text-align: right;
}

.profile-audience-age-row--dominant .profile-audience-age-row__pct {
  font-weight: 500;
  color: var(--color-text-primary, #0f172a);
}

.profile-audience-gender-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 0;
}

.profile-audience-gender-chart {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0;
  flex-shrink: 0;
}

.profile-audience-gender-chart__svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.profile-audience-gender-chart__bg {
  stroke: var(--color-background-secondary, #f8f8f6);
}

.profile-audience-gender-chart__female {
  stroke: var(--color-text-primary, #0f172a);
}

.profile-audience-gender-chart__male {
  stroke: var(--color-border-secondary, #d1d5db);
}

.profile-audience-gender-chart__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.profile-audience-gender-chart__pct {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-text-primary, #0f172a);
}

.profile-audience-gender-chart__name {
  margin-top: 2px;
  font-size: 11px;
  color: var(--color-text-tertiary, #9ca3af);
}

.profile-audience-gender-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.profile-audience-gender-legend__item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.profile-audience-gender-legend__dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.profile-audience-gender-legend__dot--female {
  background: var(--color-text-primary, #0f172a);
}

.profile-audience-gender-legend__dot--male {
  background: var(--color-background-secondary, #f8f8f6);
  border: 0.5px solid var(--color-border-secondary, #e5e7eb);
  box-sizing: border-box;
}

.profile-audience-gender-legend__value {
  display: block;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-text-primary, #0f172a);
}

.profile-audience-gender-legend__label {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--color-text-tertiary, #9ca3af);
}

.profile-audience-geo-rows {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
}

.profile-audience-geo-row {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md, 8px);
}

.profile-audience-geo-row__bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-background-secondary, #f8f8f6);
  border-radius: var(--border-radius-md, 8px);
  pointer-events: none;
}

.profile-audience-geo-row__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}

.profile-audience-geo-row__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  color: var(--color-text-secondary, #64748b);
}

.profile-audience-geo-row__flag {
  flex-shrink: 0;
  line-height: 1;
}

.profile-audience-geo-row__country {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-audience-geo-row__pct {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary, #0f172a);
}

@media (max-width: 900px) {
  .profile-audience-demo-unified__grid--count-2,
  .profile-audience-demo-unified__grid--count-3 {
    grid-template-columns: 1fr;
  }

  .profile-audience-demo-unified__col {
    border-right: none;
    border-bottom: 0.5px solid var(--color-border-tertiary, #e5e7eb);
  }

  .profile-audience-demo-unified__col:last-child {
    border-bottom: none;
  }

  .profile-audience-demo-unified__grid--count-1 {
    max-width: none;
  }
}

/* Media kit v2 — remove primary-platform blue highlight */
body.media-kit-overview-v2 .profile-audience-platform--primary {
  border: 0.5px solid var(--color-border-tertiary, #e5e7eb);
  background: var(--color-background-secondary, #f8f8f6);
  box-shadow: none;
}

body.media-kit-overview-v2 .profile-audience-platform:not(.profile-audience-platform--primary) {
  background: var(--color-background-primary, #fff);
}

body.media-kit-overview-v2 .profile-audience-platform .profile-audience-platform__head i {
  color: var(--color-text-tertiary, #9ca3af);
}

body.media-kit-overview-v2 .profile-audience-platform .profile-audience-platform__name {
  color: var(--color-text-tertiary, #9ca3af);
  font-weight: 400;
}

body.media-kit-overview-v2 .profile-audience-platform .profile-audience-platform__stat-label {
  color: var(--color-text-tertiary, #9ca3af);
}

body.media-kit-overview-v2 .profile-audience-platforms a.profile-audience-platform:hover {
  border-color: var(--color-border-secondary, #e5e7eb);
  background: var(--color-background-primary, #fff);
  box-shadow: none;
  transform: none;
}

body.media-kit-overview-v2 .profile-audience-platforms a.profile-audience-platform--primary:hover {
  border-color: var(--color-border-secondary, #e5e7eb);
  background: var(--color-background-secondary, #f8f8f6);
  box-shadow: none;
  transform: none;
}

body.media-kit-overview-v2 .profile-audience-platforms a.profile-audience-platform:focus-visible {
  outline: 2px solid var(--color-border-secondary, #e5e7eb);
  outline-offset: 2px;
}

