/* Social POC additions on top of /styles.css */
.follow-btn { appearance: none; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--amber-soft); background: transparent; color: var(--amber); font: 500 12.5px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.follow-btn:hover { background: var(--amber-soft); }
.follow-btn[aria-pressed="true"] { color: var(--muted); border-color: var(--line); }
.follow-btn[hidden] { display: none; }
.demo-banner { margin: 10px 0 0; padding: 7px 12px; border: 1px dashed rgba(201,160,99,.45); border-radius: 10px; color: var(--amber); font-size: 11.5px; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.demo-banner[hidden] { display: none; }
.friends-now { margin-top: 20px; }
.friends-now[hidden] { display: none; }
.friends-now .block-head { margin-bottom: 10px; }
.friends-now .block-head h3 { font-size: 17px; }
.fn-row { display: grid; grid-auto-flow: column; grid-auto-columns: 38%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; }
.fn-row::-webkit-scrollbar { display: none; }
.friend-now { scroll-snap-align: start; min-width: 0; }
.friend-now .img { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-3); }
.friend-now .img img, .friend-now .img .fallback { width: 100%; height: 100%; object-fit: cover; }
.friend-now .fallback { font-size: 28px; }
.friend-now .eq.mini { position: absolute; left: 8px; bottom: 8px; padding: 4px 5px; border-radius: 6px; background: rgba(13,12,11,.55); backdrop-filter: blur(8px); height: auto; }
.friend-now .eq.mini i { height: 8px; }
.fn-name { margin-top: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-track { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friends { display: flex; flex-wrap: wrap; gap: 10px; }
.friend { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; }
.friend .av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: block; }
.friend .av img, .friend .av .fallback { width: 100%; height: 100%; object-fit: cover; font-size: 14px; }
.friend small { display: block; color: var(--faint); font-size: 11px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-line { appearance: none; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 500 13px var(--sans); cursor: pointer; }
.btn-line:hover { border-color: var(--amber); }
.btn-line.danger { color: #d98b7a; border-color: rgba(217,139,122,.3); }
[hidden] { display: none !important; }
@media (min-width: 720px) { .fn-row { grid-auto-columns: 18%; } }
.profile-meta { min-width: 0; }
.name-row .username { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.hdr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; align-self: start; }
.hdr-right .lang { align-self: flex-end; }
.profile.shrunk .hdr-right { gap: 3px; }
.profile.shrunk .follow-btn { height: 22px; font-size: 12px; }
@media (min-width: 720px) { .hdr-right { grid-column: 4; grid-row: 1; } }
.profile .since { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Two-line subtitle: @handle + flag, then "Scrobbling since …" on its own line (each line truncates on its own). */
.profile .since { max-height: 40px; white-space: normal; }
.profile.shrunk .since { max-height: 0; }
.since-line, .since-at { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.since-handle { display: flex; align-items: center; gap: .35em; min-width: 0; }
.since-at { min-width: 0; } .since-handle > .flag, .since-handle > .flag-emoji { flex: none; }
.flag { display: inline-block; width: 1.35em; height: .9em; vertical-align: -0.08em; border-radius: 2px; object-fit: cover;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.18); }
.flag-emoji { font-size: 1em; line-height: 1; }

/* Soft shadow so the hero label stays readable over light cover backgrounds */
.hero-label { text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 10px rgba(0,0,0,.35); }
.hero-label svg, .hero-label .eq { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }

/* Sign-up CTA for logged-out visitors: compact amber pill */
.signup-cta { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 12px auto 2px; padding: 7px 8px 7px 16px; border-radius: 999px; border: 1px solid rgba(201,160,99,.6); background: linear-gradient(100deg, rgba(201,160,99,.26), rgba(201,160,99,.10)); color: #e7c48c; font: 600 14px/1 var(--sans); text-decoration: none; box-shadow: 0 6px 20px -10px rgba(201,160,99,.55); transition: background .2s, transform .2s; }
.signup-cta:hover { background: linear-gradient(100deg, rgba(201,160,99,.36), rgba(201,160,99,.14)); transform: translateY(-1px); }
.signup-cta[hidden] { display: none; }
.signup-cta .cta-arrow { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--amber); color: #15120d; font-size: 13px; font-weight: 700; }
.signup-cta.bottom { margin: 28px auto 6px; }

/* Owner share pill (same slot as "+ Seguir") + invite + toast */
.share-btn { background: var(--amber); border-color: var(--amber); color: #15120d; font-weight: 600; }
.share-btn:hover { background: #d8b27a; }
.share-btn[hidden], .toast[hidden] { display: none; }
.btn-line.invite { border-color: rgba(201,160,99,.6); color: var(--amber); }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 8px); opacity: 0; padding: 9px 16px; border-radius: 999px; background: #1c1814; border: 1px solid rgba(201,160,99,.5); color: #e7c48c; font: 500 13px/1 var(--sans); box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Owner-only profile editor: discreet pencil on the avatar + modal */
.avatar-wrap { position: relative; display: block; line-height: 0; }
.avatar-edit { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; padding: 0; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); background: #15120d; color: var(--amber); opacity: .7; cursor: pointer; transition: opacity .2s, transform .2s, border-color .2s; }
.avatar-edit svg { width: 10px; height: 10px; }
.avatar-edit:hover, .avatar-edit:focus-visible { opacity: 1; border-color: rgba(201,160,99,.6); transform: scale(1.08); outline: none; }
.profile.shrunk .avatar-edit { width: 16px; height: 16px; right: -4px; bottom: -4px; }
@media (min-width: 720px) { .avatar-edit { width: 22px; height: 22px; right: -2px; bottom: -2px; } .avatar-edit svg { width: 12px; height: 12px; } }
.sp-link { padding: 0 6px; }
.sp-link[hidden] { display: none; }
.mf-modal { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #14120f; color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.mf-modal::backdrop { background: rgba(5,5,4,.66); backdrop-filter: blur(3px); }
.pe-form { display: grid; gap: 16px; padding: 22px 20px 18px; }
.pe-form h2 { margin: 0; font: 400 24px/1.2 var(--serif, Fraunces, serif); }
.pe-field { display: grid; gap: 7px; }
.pe-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pe-field input, .pe-field select { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-3, #1b1814); color: var(--text); font: 400 15px/1 var(--sans); }
.pe-field input:focus, .pe-field select:focus { outline: none; border-color: rgba(201,160,99,.7); }
.pe-hint, .pe-note { font-size: 12px; line-height: 1.45; color: var(--faint); margin: 0; }
.pe-err { margin: 0; font-size: 13px; color: #e08a7a; }
.pe-err[hidden] { display: none; }
.pe-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 2px; }
.pe-save { height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--amber); background: var(--amber); color: #15120d; font: 600 14px/1 var(--sans); cursor: pointer; }
.pe-save:disabled { opacity: .6; cursor: default; }
@media (min-width: 720px) { .since-line { font-size: 12px; } }   /* desktop: smaller "Scrobbling since" line */
/* CTA pill arrow: inline SVG, flex-centred */
.signup-cta .cta-arrow { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.signup-cta .cta-arrow svg { width: 60%; height: 60%; max-width: 16px; max-height: 16px; display: block; }
