/* Perfil (alpha.115): capa maior, avatar grande com moldura, linha "Nível • Membro desde", ações em ícones,
   números em cartões, abas Visão geral / Favoritos / Atividade, "Continuar assistindo" e conquistas em emblemas. */
.pf-page .pf-cover { height: 170px; }
@media (min-width: 640px) { .pf-page .pf-cover { height: 220px; } }
.pf-page .pf-hero-body { margin-top: -66px; }

/* avatar maior; com moldura a imagem ocupa o centro da moldura */
.pf-page .pf-avatar { width: 128px; height: 128px; }
.pf-page .pf-avatar.has-frame { width: 156px; height: 156px; }

/* identidade */
.pf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 0; color: var(--muted); font-size: .86rem; font-weight: 600; }
.pf-meta i { font-style: normal; opacity: .6; }
.pf-verified { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #3b82f6; color: #fff; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, #3b82f6 22%, transparent); }
.pf-verified .icon { width: 13px; height: 13px; stroke-width: 3; }

@media (max-width: 639px) {
  .pf-page .pf-head { flex-direction: column; align-items: center; text-align: center; }
  .pf-page .pf-name, .pf-page .pf-meta, .pf-page .pf-pills { justify-content: center; }
  .pf-page .pf-headline, .pf-page .pf-bio { text-align: center; }
  .pf-page .pf-actions { justify-content: center; }
}

/* ações: "Editar perfil" largo e ícones quadrados ao lado */
.pf-actions .pf-edit { flex: 1 1 auto; max-width: 320px; justify-content: center; }
.pf-actions .btn--icon { width: 42px; padding: 0; justify-content: center; }

/* números */
.pf-stats--v3 { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.pf-stats--v3 .pf-stat { min-height: 76px; background: var(--surface); }
.pf-stats--v3 button.pf-stat { width: 100%; font: inherit; cursor: pointer; }
.pf-stats--v3 .pf-stat.is-link:hover { border-color: var(--accent); transform: translateY(-2px); }

/* abas */
.pf-tabs--v3 { gap: 4px; }
.pf-tabs--v3 button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem; white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s; }
.pf-tabs--v3 button .icon { width: 16px; height: 16px; }
.pf-tabs--v3 button b { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--surface-3); font-size: .72rem; }
.pf-tabs--v3 button:hover { color: var(--text); }
.pf-tabs--v3 button.is-active { color: var(--text); border-bottom-color: var(--accent); }
.pf-tabs--v3 button.is-active .icon { color: var(--accent-text, var(--accent)); }
.pf-panel { display: grid; gap: var(--pf-gap, 16px); min-width: 0; }
.pf-panel[hidden] { display: none; }

/* continuar assistindo */
.pf-continue-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 2px; }
.pf-continue-row::-webkit-scrollbar { display: none; }
.pf-cw { display: grid; gap: 8px; color: inherit; text-decoration: none; scroll-snap-align: start; }
.pf-cw-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.pf-cw-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pf-cw:hover .pf-cw-img img { transform: scale(1.04); }
.pf-cw-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .2s; }
.pf-cw-play .icon { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111; }
.pf-cw:hover .pf-cw-play, .pf-cw:focus-visible .pf-cw-play { opacity: 1; }
.pf-cw-body { display: grid; gap: 3px; min-width: 0; }
.pf-cw-body strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-cw-body small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-cw-bar { display: block; height: 4px; margin-top: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.pf-cw-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

/* conquistas como emblemas emoldurados */
.pf-emblems { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px 10px; margin: 0; padding: 0; list-style: none; }
.pf-emblem { --tone: var(--accent); display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.pf-emblem-art { position: relative; display: grid; place-items: center; width: 72px; height: 72px; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: conic-gradient(from 210deg, color-mix(in srgb, var(--tone) 95%, #fff), color-mix(in srgb, var(--tone) 55%, #000), color-mix(in srgb, var(--tone) 95%, #fff) 60%, color-mix(in srgb, var(--tone) 60%, #000), color-mix(in srgb, var(--tone) 95%, #fff)); }
.pf-emblem-art::before { content: ""; position: absolute; inset: 5px; clip-path: inherit; background: radial-gradient(80% 80% at 35% 25%, color-mix(in srgb, var(--tone) 45%, #fff), color-mix(in srgb, var(--tone) 80%, #000)); }
.pf-emblem-art::after { content: ""; position: absolute; inset: 5px; clip-path: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .4), transparent 45%); pointer-events: none; }
.pf-emblem-art > .icon, .pf-emblem-art > img { position: relative; z-index: 1; width: 30px; height: 30px; color: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.pf-emblem-art > img { width: 44px; height: 44px; object-fit: contain; }
.pf-emblem:hover .pf-emblem-art { transform: translateY(-2px) scale(1.04); }
.pf-emblem-art { transition: transform .2s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 8px 12px color-mix(in srgb, var(--tone) 35%, transparent)); }
.pf-emblem strong { font-size: .8rem; line-height: 1.2; overflow-wrap: anywhere; }
.pf-emblem small { color: var(--muted); font-size: .72rem; }
.pf-featured-badges .pf-emblems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) { .pf-featured-badges .pf-emblems { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* cartão de nível na lateral */
.pf-level-card .pf-level { border: 0; padding: 0; background: none; box-shadow: none; }
.pf-level-link { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--text-soft, var(--muted)); font-size: .84rem; text-decoration: none; }
.pf-level-link .icon { width: 15px; height: 15px; color: var(--accent-text, var(--accent)); }
.pf-level-link strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) { .pf-emblem-art, .pf-cw-img img { transition: none; } }
