/* SAVE PETS · Social – story-uri, follow, meniu lateral, foaia „+”, video în feed */
:root { --sps-accent: #ee8b46; --sps-ink: #262626; --sps-muted: #8e8e8e; --sps-border: #efefef; }

/* ---------- video în feed ---------- */
.sp-vid { position: relative; width: 100%; height: 100%; background: #000; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-vid video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.sp-vid-sound { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.sp-vid-sound .material-icons-outlined { font-size: 17px; }
.sp-vid-dur { position: absolute; left: 10px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; pointer-events: none; }
.sp-grid-vid { position: absolute; top: 8px; right: 8px; color: #fff; font-size: 22px; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }

/* ---------- bara de story-uri ---------- */
.sps-stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 0 12px; scrollbar-width: none; border-bottom: 1px solid var(--sps-border); width: 100%; box-sizing: border-box; }
.sps-stories::-webkit-scrollbar { display: none; }
.sps-stories[hidden] { display: none; }
.sps-story { position: relative; flex: 0 0 auto; width: 72px; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; font-family: inherit; }
.sps-ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; box-sizing: border-box; background: conic-gradient(from 210deg, #ee8b46, #f6c048, #e2557b, #ee8b46); display: block; }
.sps-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-sizing: border-box; display: block; background: #f2f2f2; }
.sps-story.seen .sps-ring { background: #dbdbdb; }
.sps-story.add .sps-ring { background: none; padding: 0; }
.sps-story.add .sps-ring img { border: 1px solid var(--sps-border); }
.sps-plus { position: absolute; top: 46px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--sps-accent); color: #fff; font-size: 18px !important; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.sps-story small { font-size: 12px; color: var(--sps-ink); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sps-stories-skel { height: 96px; }

/* ---------- vizualizator story ---------- */
.sps-viewer { position: fixed; inset: 0; background: #000; z-index: 9000; display: flex; align-items: center; justify-content: center; color: #fff; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.sps-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sps-stage img, .sps-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (min-width: 769px) { .sps-stage { left: 50%; width: min(56.25vh, 100vw); transform: translateX(-50%); border-radius: 10px; overflow: hidden; } }
.sps-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
@media (min-width: 769px) { .sps-bars, .sps-top, .sps-foot, .sps-caption { left: 50% !important; right: auto !important; width: min(56.25vh, 100vw); transform: translateX(-50%); box-sizing: border-box; } }
.sps-bars span { flex: 1; height: 2.5px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.sps-bars i { display: block; height: 100%; background: #fff; width: 0; }
.sps-top { position: absolute; top: 18px; left: 8px; right: 8px; display: flex; align-items: center; justify-content: space-between; z-index: 4; }
.sps-user { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; min-width: 0; }
.sps-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.4); }
.sps-user b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.sps-user small { font-size: 13px; opacity: .75; }
.sps-top-act { display: flex; gap: 2px; }
.sps-x { background: none; border: 0; color: inherit; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; padding: 0; }
.sps-viewer .sps-x { color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.sps-x.top { position: absolute; top: 14px; right: 10px; z-index: 5; }
.sps-tap { position: absolute; top: 70px; bottom: 80px; z-index: 2; }
.sps-tap.left { left: 0; width: 33%; } .sps-tap.right { right: 0; width: 67%; }
@media (min-width: 769px) { .sps-tap.left { left: calc(50% - min(28vh, 50vw)); width: min(18.75vh, 33vw); } .sps-tap.right { left: calc(50% - min(28vh, 50vw) + min(18.75vh, 33vw)); right: auto; width: min(37.5vh, 67vw); } }
.sps-caption { position: absolute; left: 16px; right: 16px; bottom: 84px; text-align: center; font-size: 15px; line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,.7); z-index: 3; padding: 0 12px; }
.sps-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); z-index: 4; }
.sps-reply { display: flex; gap: 8px; align-items: center; }
.sps-reply input { flex: 1; background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; border-radius: 22px; padding: 11px 16px; font: inherit; font-size: 14px; outline: none; }
.sps-reply input::placeholder { color: rgba(255,255,255,.75); }
.sps-reply button { background: none; border: 0; color: #fff; cursor: pointer; }
.sps-views { background: none; border: 0; color: #fff; display: flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sps-compose-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); z-index: 4; }
.sps-compose-bar input { flex: 1; background: rgba(255,255,255,.15); border: 0; color: #fff; border-radius: 22px; padding: 11px 16px; font: inherit; font-size: 14px; outline: none; }
.sps-compose-bar input::placeholder { color: rgba(255,255,255,.8); }
.sps-publish { background: var(--sps-accent); color: #fff; border: 0; border-radius: 22px; padding: 0 20px; font: inherit; font-weight: 700; cursor: pointer; }
.sps-publish:disabled { opacity: .6; }
.sps-progress-msg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,.7); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 6; }
.sps-progress-msg[hidden] { display: none; }

/* ---------- modale / foi ---------- */
.sps-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 8000; display: flex; align-items: center; justify-content: center; padding: 16px; animation: spsFade .15s; }
.sps-sheet { background: #fff; color: var(--sps-ink); border-radius: 14px; width: 100%; max-width: 420px; max-height: 75vh; display: flex; flex-direction: column; overflow: hidden; }
.sps-sheet-head { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--sps-border); text-align: center; font-size: 15px; }
.sps-list { overflow-y: auto; min-height: 160px; padding: 6px 0; }
.sps-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.sps-row small { color: var(--sps-muted); font-size: 12px; }
.sps-av { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: block; }
.sps-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #f2f2f2; }
.sps-av.ring { padding: 2px; background: conic-gradient(#ee8b46, #f6c048, #e2557b, #ee8b46); box-sizing: border-box; }
.sps-av.ring img { border: 2px solid #fff; box-sizing: border-box; }
.sps-name { flex: 1; min-width: 0; color: var(--sps-ink); text-decoration: none; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sps-hint { padding: 24px 16px; color: var(--sps-muted); font-size: 14px; text-align: center; }
.sps-follow-btn { background: var(--sps-accent); color: #fff; border: 0; border-radius: 8px; padding: 7px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sps-follow-btn.is-following, .btn-follow.is-following { background: #efefef; color: var(--sps-ink); }
@media (max-width: 768px) {
    .sps-modal.sps-bottom { align-items: flex-end; padding: 0; }
    .sps-bottom .sps-sheet { max-width: none; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: spsUp .2s ease; }
}
.sps-grab { width: 36px; height: 4px; border-radius: 2px; background: #dbdbdb; margin: 8px auto 0; }
@media (min-width: 769px) { .sps-grab { display: none; } }
.sps-create { padding: 6px 0 10px; }
.sps-create a, .sps-create button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; background: none; border: 0; text-decoration: none; color: var(--sps-ink); font: inherit; text-align: left; cursor: pointer; }
.sps-create a:hover, .sps-create button:hover { background: #fafafa; }
.sps-create .material-icons-outlined { font-size: 26px; color: var(--sps-accent); }
.sps-create b { display: block; font-size: 15px; }
.sps-create small { display: block; color: var(--sps-muted); font-size: 12px; margin-top: 2px; }
.sps-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #262626; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 9500; transition: opacity .3s; }
.sps-toast.out { opacity: 0; }
@keyframes spsFade { from { opacity: 0; } }
@keyframes spsUp { from { transform: translateY(100%); } }

/* ---------- meniu lateral (drawer) ---------- */
.sp-drawer { position: fixed; inset: 0; z-index: 7500; background: rgba(0,0,0,0); transition: background .2s; }
.sp-drawer[hidden] { display: none; }
.sp-drawer.open { background: rgba(0,0,0,.45); }
.sp-drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff; transform: translateX(-100%); transition: transform .22s ease; display: flex; flex-direction: column; box-shadow: 4px 0 20px rgba(0,0,0,.08); }
.sp-drawer.open .sp-drawer-panel { transform: none; }
.sp-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--sps-border); }
.sp-drawer-head img { height: 34px; width: auto; }
.sp-drawer-me { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--sps-ink); border-bottom: 1px solid var(--sps-border); }
.sp-drawer-me img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.sp-drawer-me b { display: block; font-size: 15px; }
.sp-drawer-me small { color: var(--sps-muted); font-size: 13px; }
.sp-drawer-body { flex: 1; overflow-y: auto; }
.sp-drawer-title { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; font-size: 13px; font-weight: 700; color: var(--sps-muted); text-transform: uppercase; letter-spacing: .03em; }
.sp-drawer-title a { color: var(--sps-accent); text-transform: none; letter-spacing: 0; text-decoration: none; font-weight: 600; }
.sp-drawer-user { display: flex; align-items: center; gap: 12px; padding: 8px 16px; text-decoration: none; color: var(--sps-ink); font-size: 14px; font-weight: 600; }
.sp-drawer-user:hover { background: #fafafa; }
.sp-drawer-user .sps-av { width: 40px; height: 40px; }
.sp-drawer-user .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; margin-left: auto; }
.sp-drawer-empty { padding: 6px 16px 14px; color: var(--sps-muted); font-size: 13px; line-height: 1.5; }
.sp-drawer-links { border-top: 1px solid var(--sps-border); padding: 6px 0; }
.sp-drawer-links a, .sp-drawer-links button { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--sps-ink); text-decoration: none; font: inherit; font-size: 15px; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.sp-drawer-links .material-icons-outlined { color: #555; }
.sp-donate-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #ee8b46, #e2557b); color: #fff !important; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 12px 20px; font-size: 15px; box-shadow: 0 6px 18px rgba(238,139,70,.3); transition: transform .15s; border: 0; cursor: pointer; }
.sp-donate-btn:hover { transform: translateY(-1px); }
.sp-drawer .sp-donate-btn { margin: 10px 16px 16px; width: calc(100% - 32px); box-sizing: border-box; }

/* ---------- profil: statistici + urmăriți ---------- */
.sp-profile-stats { display: flex; justify-content: center; gap: 28px; margin: 4px 0 18px; }
.sp-profile-stats > * { display: flex; flex-direction: column; align-items: center; background: none; border: 0; font: inherit; color: var(--sps-ink); cursor: pointer; padding: 0; text-decoration: none; }
.sp-profile-stats b { font-size: 17px; font-weight: 800; }
.sp-profile-stats span { font-size: 13px; color: var(--sps-muted); }
.btn-follow { background: var(--sps-accent); color: #fff; border: 0; }
.sp-following-strip { width: 100%; max-width: 600px; margin: 0 auto 24px; }
.sp-following-strip h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.sp-following-strip h3 button { background: none; border: 0; color: var(--sps-accent); font: inherit; font-weight: 600; cursor: pointer; font-size: 13px; }
.sp-following-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.sp-following-row::-webkit-scrollbar { display: none; }
.sp-following-row a { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--sps-ink); font-size: 12px; }
.sp-following-row a .sps-av { width: 58px; height: 58px; }
.sp-following-row a small { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-donate-card { width: 100%; max-width: 600px; margin: 0 auto 24px; background: #fff8f2; border: 1px solid #fbe1cd; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; box-sizing: border-box; }
.sp-donate-card p { margin: 0; font-size: 13px; color: #6b5a4e; line-height: 1.45; flex: 1; }
@media (max-width: 520px) { .sp-donate-card { flex-direction: column; text-align: center; } .sp-donate-card .sp-donate-btn { width: 100%; } }

/* ---------- top bar mobil nou ---------- */
@media (max-width: 768px) {
    .mobile-top-bar { padding: 0 8px !important; }
    .sp-top-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: #262626; cursor: pointer; padding: 0; border-radius: 50%; text-decoration: none; }
    .sp-top-btn .material-icons-outlined { font-size: 28px; }
    .sp-top-btn.plus .material-icons-outlined { font-size: 27px; border: 2px solid #262626; border-radius: 8px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
    .sp-top-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; }
    .sp-top-logo img { height: 34px; width: auto; display: block; }
}

.post .sps-follow-link, .sps-follow-link { background: none !important; color: var(--sps-accent) !important; border: 0; padding: 0 0 0 6px; color: var(--sps-accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sps-follow-link::before { content: '• '; color: var(--sps-muted); font-weight: 400; }
.post .sps-follow-link.is-following, .sps-follow-link.is-following { color: var(--sps-muted) !important; font-weight: 600; }
.sps-follow-link span { color: inherit !important; font-size: inherit !important; }
@media (max-width: 768px) { .feed > .sps-stories { margin-top: -14px; } }
