/* Profile pop-outs (creator, media house, brand) — shared by the Brand, Studio and Creator portals. */
/* ── Profile pop-out (creator / media house), public/dashboard/js/brand-profile-popout.js ── */
.pp-bg { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(31,31,31,.4); }
.pp { width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #F4ECE3; border-radius: 20px; box-shadow: var(--shadow-xl); overflow: hidden; }
.pp-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.pp-tile { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft, #f0dce6); color: var(--accent); font-size: 18px; }
.pp-top-r { display: flex; gap: 8px; }
.pp-round { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong, #DCC7B7); background: transparent; color: var(--fg-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; }
.pp-round.is-fill { border-color: transparent; background: rgba(0,0,0,.07); }
.pp-round:hover { color: var(--fg); }
.pp-round.on { color: var(--accent); border-color: var(--accent); }
.pp-body { padding: 6px 16px 16px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.pp-loading, .pp-empty { padding: 40px 0; text-align: center; color: var(--fg-muted); font-size: var(--text-body-sm); }
.pp-empty { padding: 24px 0; }
.pp-card { background: #FFFCF8; border-radius: 16px; padding: 18px; }
.pp-id { display: flex; align-items: center; gap: 14px; }
.pp-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--fg-muted); font-size: 24px; }
.pp-avatar.is-org { border-radius: 14px; }
.pp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-name b { font: 600 18px/1.25 var(--font-heading); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pp-name span { font-size: var(--text-small); color: var(--fg-muted); }
.pp-foot { margin-top: 14px; font-size: var(--text-small); color: var(--fg-muted); }
.pp-foot b { color: var(--fg); }
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chip { height: 26px; padding: 0 12px; border-radius: 999px; background: rgba(0,0,0,.08); display: inline-flex; align-items: center; font: 500 12px/1 var(--font-body); }
.pp-plats { display: flex; gap: 10px; font-size: 22px; }
.pp-plat { display: inline-flex; }
.pp-feat-t { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: var(--text-body-sm); }
.pp-feat-t i, .pp-feat-t svg { color: var(--fg-muted); }
.pp-clips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pp-clip { position: relative; flex: 0 0 calc((100% - 40px) / 5); min-width: 110px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #1c1c1c; cursor: pointer; }
.pp-clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; background: linear-gradient(transparent 55%, rgba(0,0,0,.35)); }
.pp-clip.is-playing .pp-play { display: none; }
.pp-chans { display: flex; flex-direction: column; gap: 8px; }
.pp-chan { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #F6EFE8; }
.pp-chan-ic { width: 34px; height: 34px; border-radius: 10px; background: #FFFCF8; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.pp-chan-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-chan-id b, .pp-chan-st b { font: 600 14px/1.3 var(--font-body); }
.pp-chan-id span, .pp-chan-st span { font-size: 11px; color: var(--fg-muted); }
.pp-chan-st { display: flex; flex-direction: column; align-items: flex-end; min-width: 70px; }
@media (max-width: 560px) { .pp-id { flex-wrap: wrap; } }
/* Stats bar: the Kobbe UI KPI strip — equal cells, 69px tall, 13/16/11 padding, hairline dividers inset 16px, no fills. */
.pp-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; }
.pp-stat { position: relative; height: 69px; padding: 13px 16px 11px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-width: 0; text-align: left; }
.pp-stat + .pp-stat::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--border); }
.pp-stat .l { font: 500 13px/1.3 var(--font-body); color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-stat .v { font: 600 16px/24px var(--font-heading); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .pp-stat + .pp-stat::before { display: none; } }
@media (max-width: 560px) { .pp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pp-stat { border-bottom: 1px solid var(--border); } }
.pp-plats { align-items: center; }
.pp-plat svg { width: 24px; height: 24px; display: block; }
.pp-feat-t svg { width: 26px; height: 26px; flex: none; }
