/**
 * Featured content — public Content tab (media kit overview v2 only).
 * Loaded when ?media_kit_overview=1 and profile has content entries.
 */
body.media-kit-overview-v2 #profile-content.tab-content--active {
  margin-top: 32px;
}

body.media-kit-overview-v2 #profile-content .ct-sec-label {
  font-size: 14px;
  margin: 0 0 16px;
}

body.media-kit-overview-v2 #profile-content .ct-intro {
  font-size: 14px;
  color: var(--color-text-secondary, #64748b);
  line-height: 1.6;
  margin: 0 0 20px;
}

body.media-kit-overview-v2 #profile-content .ct-filters {
  margin-bottom: 16px;
}

body.media-kit-overview-v2 #profile-content .ct-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 0.5px solid var(--color-border-tertiary, #e5e7eb);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 6px;
  background: var(--color-background-primary, #fff);
  color: var(--color-text-secondary, #64748b);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.media-kit-overview-v2 #profile-content .ct-filter-pill .ti {
  font-size: 13px;
  color: inherit;
}

body.media-kit-overview-v2 #profile-content .ct-filter-pill:hover:not(.ct-filter-pill--active) {
  border-color: var(--color-border-secondary, #d1d5db);
}

body.media-kit-overview-v2 #profile-content .ct-filter-pill--active {
  background: var(--color-text-primary, #111827);
  color: var(--color-background-primary, #fff);
  border-color: var(--color-text-primary, #111827);
}

body.media-kit-overview-v2 #profile-content .ct-filter-pill--active .ti {
  color: var(--color-background-primary, #fff);
}

body.media-kit-overview-v2 #profile-content .ct-card[hidden] {
  display: none !important;
}

body.media-kit-overview-v2 #profile-content .ct-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

body.media-kit-overview-v2 #profile-content .ct-card,
body.media-kit-overview-v2 #profile-content a.ct-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  border: 0.5px solid var(--color-border-tertiary, #e5e7eb);
  border-radius: var(--border-radius-lg, 12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--color-background-primary, #fff);
  transition: border-color 0.15s ease;
  width: 100%;
}

body.media-kit-overview-v2 #profile-content a.ct-card {
  cursor: pointer;
}

body.media-kit-overview-v2 #profile-content div.ct-card {
  cursor: default;
}

body.media-kit-overview-v2 #profile-content .ct-card:hover {
  border-color: var(--color-border-secondary, #d1d5db);
}

body.media-kit-overview-v2 #profile-content .ct-card-media-wrap {
  position: relative;
  width: 100%;
}

body.media-kit-overview-v2 #profile-content .ct-card-media {
  aspect-ratio: 9 / 16;
  position: relative;
  overflow: hidden;
  background: #111;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

body.media-kit-overview-v2 #profile-content .ct-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.media-kit-overview-v2 #profile-content .ct-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 99px;
  padding: 4px 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  color: #fff;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.media-kit-overview-v2 #profile-content .ct-card-badge span {
  font-size: 13px;
  font-weight: 500;
}

body.media-kit-overview-v2 #profile-content .ct-card-badge .ti {
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
}

body.media-kit-overview-v2 #profile-content .ct-card-badge-type {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.media-kit-overview-v2 #profile-content .ct-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 12px 14px 12px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  overflow: visible;
  pointer-events: none;
  background: none;
  box-sizing: border-box;
  isolation: isolate;
}

body.media-kit-overview-v2 #profile-content .ct-card-title-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-1 {
  padding-bottom: 10px;
}

body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-2 {
  padding-bottom: 16px;
}

body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-3 {
  padding-bottom: 20px;
}

body.media-kit-overview-v2 #profile-content .ct-card-title::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100% + 36px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-1::before {
  height: calc(100% + 28px);
}

body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-2::before {
  height: calc(100% + 40px);
}

body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-3::before {
  height: calc(100% + 48px);
}

body.media-kit-overview-v2 #profile-content .ct-card-stats {
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  background: var(--color-background-primary, #fff);
  width: 100%;
  box-sizing: border-box;
}

body.media-kit-overview-v2 #profile-content .ct-card-stats--empty {
  font-size: 11px;
  color: var(--color-text-tertiary, #9ca3af);
  display: block;
  justify-content: flex-start;
}

body.media-kit-overview-v2 #profile-content .ct-card-stat {
  text-align: center;
  min-width: 0;
  flex: 1 1 0;
  container-type: inline-size;
}

body.media-kit-overview-v2 #profile-content .ct-card-stats:has(> .ct-card-stat:only-child) {
  justify-content: flex-start;
}

body.media-kit-overview-v2 #profile-content .ct-card-stats:has(> .ct-card-stat:only-child) .ct-card-stat {
  text-align: left;
}

body.media-kit-overview-v2 #profile-content .ct-card-stats--triple {
  gap: 4px;
  padding: 18px 12px;
}

body.media-kit-overview-v2 #profile-content .ct-card-stat-value {
  font-size: clamp(12px, 24cqi, 22px);
  font-weight: 500;
  color: var(--color-text-primary, #111827);
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
}

body.media-kit-overview-v2 #profile-content .ct-card-stats--triple .ct-card-stat-value {
  font-size: clamp(11px, 26cqi, 17px);
}

body.media-kit-overview-v2 #profile-content .ct-card-stat-label {
  font-size: clamp(10px, 16cqi, 13px);
  color: var(--color-text-tertiary, #9ca3af);
  margin-top: 3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

body.media-kit-overview-v2 #profile-content .ct-card-stats--triple .ct-card-stat-label {
  font-size: clamp(9px, 14cqi, 11px);
  margin-top: 2px;
}

@media (max-width: 900px) {
  body.media-kit-overview-v2 #profile-content .ct-thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-stats {
    padding: 14px 12px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-stats--triple {
    gap: 3px;
    padding: 12px 8px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-stat-value {
    font-size: clamp(11px, 22cqi, 17px);
  }

  body.media-kit-overview-v2 #profile-content .ct-card-stats--triple .ct-card-stat-value {
    font-size: clamp(10px, 24cqi, 15px);
  }

  body.media-kit-overview-v2 #profile-content .ct-card-stat-label {
    font-size: clamp(9px, 14cqi, 11px);
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title {
    font-size: 15px;
    padding: 10px 12px 10px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title-text {
    -webkit-line-clamp: 2;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-1 {
    padding-bottom: 8px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-2 {
    padding-bottom: 16px;
  }
}

@media (max-width: 768px) {
  body.media-kit-overview-v2 #profile-content .ct-card-badge {
    top: 12px;
    left: 12px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title {
    padding: 14px 16px 12px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-1 {
    padding-bottom: 10px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-2 {
    padding-bottom: 18px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-stats {
    padding: 18px 16px 20px;
  }
}

@media (max-width: 520px) {
  body.media-kit-overview-v2 #profile-content.tab-content--active {
    margin-top: 24px;
  }

  body.media-kit-overview-v2 #profile-content .ct-intro {
    margin-bottom: 16px;
  }

  body.media-kit-overview-v2 #profile-content .ct-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
  }

  body.media-kit-overview-v2 #profile-content .ct-filter-pill {
    margin: 0;
  }

  body.media-kit-overview-v2 #profile-content .ct-thumb-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-media {
    aspect-ratio: 4 / 5;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title {
    font-size: 16px;
    padding: 16px 20px 12px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title-text {
    -webkit-line-clamp: 2;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-1 {
    padding-bottom: 12px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-title.ct-card-title--lines-2 {
    padding-bottom: 22px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-stats {
    padding: 22px 20px 24px;
    gap: 14px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-stats--triple {
    gap: 4px;
    padding: 14px 10px 16px;
  }

  body.media-kit-overview-v2 #profile-content .ct-card-badge {
    top: 14px;
    left: 14px;
  }
}

body.media-kit-overview-v2.profile-viewer--restricted #profile-content .tc-content-stats-row {
  display: none !important;
}
