/* T.W.A. Community — Facebook-style design system */
:root{
  --fb-blue:#1877F2; --fb-blue-dark:#166FE5; --fb-green:#42B72A; --fb-green-dark:#36A420;
  --bg:#F0F2F5; --card:#FFFFFF; --text:#050505; --muted:#65676B; --line:#E4E6EB;
  --gold:#C9A227; --navy:#0B1B33;
  --shadow:0 1px 2px rgba(0,0,0,.1);
  --shadow-lg:0 8px 28px rgba(0,0,0,.18);
  --radius:8px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:15px; line-height:1.34;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font-family:inherit}

/* ---------- Top navbar ---------- */
.fb-nav{
  position:fixed; top:0; left:0; right:0; height:56px; z-index:100;
  background:var(--card); box-shadow:0 1px 4px rgba(0,0,0,.12);
  display:flex; align-items:center; padding:0 16px; gap:8px;
}
.fb-nav .brand{display:flex;align-items:center;gap:10px}
.fb-nav .brand .logo{width:40px;height:40px;flex:none}
.fb-nav .brand .t{line-height:1.1}
.fb-nav .brand .t b{font-size:17px;letter-spacing:.2px}
.fb-nav .brand .t span{display:block;font-size:9.5px;color:var(--muted);letter-spacing:1.6px;font-weight:600}
.fb-search{
  display:flex;align-items:center;background:var(--bg);border-radius:999px;
  padding:0 12px;height:40px;min-width:200px;flex:0 1 280px;margin-left:4px;
}
.fb-search svg{color:var(--muted);flex:none}
.fb-search input{border:none;background:none;outline:none;font-size:15px;margin-left:8px;width:100%;color:var(--text)}
.fb-nav .spacer{flex:1}
.fb-nav .navicons{display:flex;align-items:center;gap:4px}
.fb-nav .navicon{
  width:44px;height:44px;border-radius:50%;background:var(--bg);
  display:flex;align-items:center;justify-content:center;color:var(--text);position:relative;
}
.fb-nav .navicon:hover{background:var(--line)}
.fb-nav .navicon.on{color:var(--fb-blue)}
.fb-nav .navicon .bdg{
  position:absolute;top:2px;right:2px;background:#E41E3F;color:#fff;font-size:11px;font-weight:700;
  min-width:19px;height:19px;border-radius:999px;display:flex;align-items:center;justify-content:center;padding:0 5px;
}
.fb-nav .avatar{width:40px;height:40px;border-radius:50%;cursor:pointer}
.fb-nav .me-chip{display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border-radius:999px;font-weight:600;font-size:14px}
.fb-nav .me-chip:hover{background:var(--bg)}
.fb-dropdown{
  position:absolute;top:56px;right:12px;background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow-lg);min-width:240px;padding:8px;z-index:120;display:none;
}
.fb-dropdown.open{display:block}
.fb-dropdown a{display:flex;align-items:center;gap:10px;padding:10px;border-radius:6px;font-weight:600;font-size:14px}
.fb-dropdown a:hover{background:var(--bg)}

/* ---------- Page shell ---------- */
.fb-page{padding-top:56px;min-height:100vh}
.fb-cols{display:flex;justify-content:center;gap:16px;max-width:1280px;margin:0 auto;padding:16px}
.fb-left{width:300px;flex:none;position:sticky;top:72px;align-self:flex-start;max-height:calc(100vh - 88px);overflow-y:auto}
.fb-center{flex:1;max-width:680px;min-width:0}
.fb-right{width:300px;flex:none;position:sticky;top:72px;align-self:flex-start;max-height:calc(100vh - 88px);overflow-y:auto}
.fb-single{max-width:680px;margin:0 auto;padding:16px;width:100%}
@media(max-width:1100px){.fb-right{display:none}}
@media(max-width:860px){.fb-left{display:none}.fb-cols{padding:12px 8px}}

/* ---------- Sidebars ---------- */
.side-item{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:8px;font-weight:500;font-size:15px}
.side-item:hover{background:var(--line)}
.side-item img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.side-item .ic{width:36px;height:36px;border-radius:50%;background:var(--line);display:flex;align-items:center;justify-content:center;color:var(--text);flex:none}
.side-h{font-size:13px;color:var(--muted);font-weight:600;padding:12px 10px 4px}
.contact-row{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:8px;font-size:14px;font-weight:500}
.contact-row:hover{background:var(--line)}
.contact-row img{width:32px;height:32px;border-radius:50%}
.dot-online{width:9px;height:9px;border-radius:50%;background:#31A24C;border:2px solid var(--bg);margin-left:auto}

/* ---------- Cards ---------- */
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;overflow:hidden}
.card.pad{padding:12px 16px}
.verify{width:15px;height:15px;flex:none;vertical-align:-2px;margin-left:3px}

/* Stories */
.stories{display:flex;gap:8px;margin-bottom:16px;overflow-x:auto;padding:2px}
.story-card{
  position:relative;flex:0 0 112px;height:200px;border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);cursor:pointer;background:var(--card);
}
.story-card img.bg{width:100%;height:100%;object-fit:cover}
.story-card .ring-av{position:absolute;top:8px;left:8px;width:38px;height:38px;border-radius:50%;border:3px solid var(--fb-blue);object-fit:cover;background:#fff}
.story-card .nm{position:absolute;bottom:8px;left:8px;right:8px;color:#fff;font-size:12.5px;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.story-card.create .top{height:150px;overflow:hidden}
.story-card.create .top img{width:100%;height:100%;object-fit:cover}
.story-card.create .bot{height:50px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;position:relative}
.story-card.create .plus{position:absolute;top:-18px;left:50%;transform:translateX(-50%);width:36px;height:36px;border-radius:50%;background:var(--fb-blue);color:#fff;font-size:24px;display:flex;align-items:center;justify-content:center;border:4px solid #fff}

/* Composer */
.composer-box{padding:12px 16px}
.composer-top{display:flex;gap:10px;align-items:center}
.composer-top img{width:40px;height:40px;border-radius:50%}
.composer-top .fake-input{flex:1;background:var(--bg);border-radius:999px;padding:11px 16px;color:var(--muted);cursor:pointer;font-size:15px}
.composer-top .fake-input:hover{background:var(--line)}
.composer-div{border-top:1px solid var(--line);margin:12px -16px 0}
.composer-actions{display:flex;padding-top:4px}
.composer-actions button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;background:none;border:none;padding:10px;border-radius:6px;font-size:14.5px;font-weight:600;color:var(--muted);cursor:pointer}
.composer-actions button:hover{background:var(--bg)}

/* ---------- Post card ---------- */
.post{padding:0}
.post-head{display:flex;gap:10px;padding:12px 16px 0;align-items:center}
.post-head img.avatar{width:42px;height:42px;border-radius:50%}
.post-head .meta{flex:1;min-width:0}
.post-head .nm{font-weight:600;font-size:15px}
.post-head .nm a:hover{text-decoration:underline}
.post-head .sub{font-size:12.5px;color:var(--muted)}
.post-head .dots{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--muted);cursor:pointer;font-size:20px}
.post-head .dots:hover{background:var(--bg)}
.post-body{padding:8px 16px 12px;font-size:15px;word-wrap:break-word}
.post-body .tag{color:var(--fb-blue);font-weight:500}
.post-img img{width:100%;max-height:560px;object-fit:cover}
.post-counts{display:flex;justify-content:space-between;padding:10px 16px;font-size:14px;color:var(--muted)}
.post-counts .likes{display:flex;align-items:center;gap:6px}
.like-pip{width:18px;height:18px;border-radius:50%;background:var(--fb-blue);display:inline-flex;align-items:center;justify-content:center}
.post-actionbar{display:flex;border-top:1px solid var(--line);margin:0 16px;padding:4px 0}
.post-actionbar .act{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;background:none;border:none;padding:9px;border-radius:6px;font-size:14.5px;font-weight:600;color:var(--muted);cursor:pointer}
.post-actionbar .act:hover{background:var(--bg)}
.post-actionbar .act.liked{color:var(--fb-blue)}
.post-actionbar .act svg{width:20px;height:20px}
.comments{border-top:1px solid var(--line);padding:8px 16px 12px}
.comments.hidden{display:none}
.comment{display:flex;gap:8px;margin:8px 0}
.comment img.avatar{width:32px;height:32px;border-radius:50%;flex:none}
.comment .cb{background:var(--bg);border-radius:16px;padding:8px 12px;flex:1}
.comment .cn{font-weight:600;font-size:13px}
.comment .ct{font-size:14px}

/* ---------- Buttons / forms ---------- */
.btn{background:var(--fb-blue);color:#fff;border:none;border-radius:6px;padding:9px 16px;font-size:15px;font-weight:600;cursor:pointer;display:inline-block;text-align:center}
.btn:hover{background:var(--fb-blue-dark)}
.btn.block{width:100%}
.btn.light{background:var(--line);color:var(--text)}
.btn.light:hover{background:#D8DADF}
.btn.gold{background:var(--gold);color:#fff}
.btn.green{background:var(--fb-green)}.btn.green:hover{background:var(--fb-green-dark)}
.btn.sm{padding:6px 14px;font-size:14px}
.field{margin-bottom:12px}
.field label{display:block;font-size:13px;font-weight:600;margin-bottom:5px}
.field input,.field textarea,.field select{width:100%;border:1px solid #CCD0D5;border-radius:6px;padding:11px;font-size:15px;font-family:inherit;background:#fff;color:var(--text)}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--fb-blue);box-shadow:0 0 0 2px rgba(24,119,242,.2)}
.field textarea{min-height:90px;resize:vertical}
.err{background:#FDE8E8;color:#C5221F;border-radius:6px;padding:10px 12px;margin-bottom:12px;font-size:14px}
.form{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}

/* Modal */
.modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:200;align-items:flex-start;justify-content:center;padding:60px 16px 16px;overflow-y:auto}
.modal-bg.open{display:flex}
.modal{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-lg);width:100%;max-width:500px;padding:0;overflow:hidden}
.modal h3{margin:0;padding:16px;border-bottom:1px solid var(--line);text-align:center;font-size:19px;position:relative}
.modal .mbody{padding:16px}
.artpick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.artpick img{border-radius:6px;cursor:pointer;border:3px solid transparent;aspect-ratio:1;object-fit:cover;width:100%}
.artpick img.sel{border-color:var(--fb-blue)}

/* ---------- Profile ---------- */
.pf-cover{height:350px;border-radius:0 0 var(--radius) var(--radius);overflow:hidden;background:linear-gradient(180deg,#0B1B33,#1c3a63);position:relative}
.pf-cover img{width:100%;height:100%;object-fit:cover}
.pf-head{background:var(--card);box-shadow:var(--shadow);padding:0 16px 16px;text-align:center}
.pf-av{width:168px;height:168px;border-radius:50%;border:4px solid #fff;margin:-84px auto 0;position:relative;object-fit:cover;background:#fff}
.pf-name{font-size:30px;font-weight:800;margin:12px 0 2px}
.pf-sub{color:var(--muted);font-size:15px}
.pf-stats{display:flex;justify-content:center;gap:24px;margin:12px 0;font-size:14px;color:var(--muted)}
.pf-stats b{color:var(--text)}
.pf-badges{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:10px 0}
.pf-badges .badge{background:var(--bg);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}
.pf-actions{display:flex;justify-content:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.pf-tabs{display:flex;justify-content:center;gap:4px;border-top:1px solid var(--line);margin-top:16px;padding-top:4px}
.pf-tabs a{padding:12px 18px;font-weight:600;color:var(--muted);border-bottom:3px solid transparent;font-size:15px}
.pf-tabs a.on{color:var(--fb-blue);border-bottom-color:var(--fb-blue)}
.pf-cols{display:flex;gap:16px;max-width:1095px;margin:16px auto;padding:0 16px;align-items:flex-start}
.pf-intro{width:360px;flex:none}
.pf-feed{flex:1;min-width:0}
.intro-card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;margin-bottom:16px}
.intro-card h3{margin:0 0 10px;font-size:19px}
.intro-row{display:flex;gap:10px;align-items:flex-start;margin:9px 0;font-size:14.5px;color:var(--muted)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.grid3 img{border-radius:6px;aspect-ratio:1;object-fit:cover;width:100%}
@media(max-width:900px){.pf-cols{flex-direction:column}.pf-intro{width:100%}}

/* ---------- Groups / Discover ---------- */
.grp-hero{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-bottom:16px}
.grp-hero img{width:100%;height:220px;object-fit:cover}
.grp-hero .in{padding:16px}
.grp-hero .kicker{font-size:12px;font-weight:700;letter-spacing:1px;color:var(--fb-blue)}
.grp-hero h2{margin:6px 0;font-size:28px}
.grp-hero p{color:var(--muted);margin:0 0 12px}
.grp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.grp-card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.grp-card img{width:100%;height:120px;object-fit:cover}
.grp-card .ci{padding:12px}
.grp-card .cn{font-weight:700;font-size:15px}
.grp-card .cm{font-size:12.5px;color:var(--muted);margin:2px 0 10px}
.sect-h{display:flex;justify-content:space-between;align-items:center;margin:20px 0 10px}
.sect-h h3{margin:0;font-size:19px}
.sect-h a{color:var(--fb-blue);font-size:14px}
.chips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.chip{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px}
.chip .t{font-weight:700;color:var(--fb-blue);font-size:14px}
.chip .c{font-size:12.5px;color:var(--muted)}
.ev-card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-bottom:12px;display:flex;gap:12px;padding:12px;align-items:center}
.ev-date{width:64px;flex:none;text-align:center;background:var(--bg);border-radius:8px;padding:8px 0}
.ev-date .m{font-size:11px;font-weight:700;color:#E41E3F;letter-spacing:1px}
.ev-date .d{font-size:22px;font-weight:800}
.ev-info{flex:1;min-width:0}
.ev-info .t{font-weight:700;font-size:15px}
.ev-info .s{font-size:13px;color:var(--muted)}

/* ---------- Messages ---------- */
.msg-shell{display:flex;gap:0;max-width:1100px;margin:16px auto;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;height:calc(100vh - 120px);min-height:480px}
.msg-list{width:340px;flex:none;border-right:1px solid var(--line);overflow-y:auto}
.msg-list h2{padding:14px 16px;margin:0;font-size:22px}
.msg-list .row{display:flex;gap:10px;padding:10px 16px;align-items:center}
.msg-list .row:hover{background:var(--bg)}
.msg-list .row img{width:52px;height:52px;border-radius:50%}
.msg-list .nm{font-weight:600;font-size:15px}
.msg-list .pv{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.msg-list .tm{font-size:12px;color:var(--muted);margin-left:auto}
.msg-main{flex:1;display:flex;flex-direction:column;min-width:0}
.msg-head{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.msg-head img{width:40px;height:40px;border-radius:50%}
.thread{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:6px}
.bubble{max-width:70%;padding:9px 13px;border-radius:18px;font-size:15px;word-wrap:break-word}
.bubble.me{align-self:flex-end;background:var(--fb-blue);color:#fff}
.bubble.them{align-self:flex-start;background:var(--bg);color:var(--text)}
.msgbar{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--line)}
.msgbar input{flex:1;border:none;background:var(--bg);border-radius:999px;padding:11px 16px;font-size:15px;outline:none}
@media(max-width:760px){.msg-list{width:100%}.msg-shell.single .msg-main{display:none}}

/* ---------- Notifications ---------- */
.notif{display:flex;gap:12px;padding:12px 16px;align-items:center;border-radius:8px}
.notif:hover{background:var(--bg)}
.notif.unread{background:#E7F3FF}
.notif img{width:56px;height:56px;border-radius:50%;flex:none}
.notif .tx{flex:1;font-size:14.5px}
.notif .t{font-size:12.5px;color:var(--fb-blue);font-weight:600;margin-top:2px}

/* ---------- Landing (logged-out, FB style) ---------- */
.landing{min-height:100vh;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:40px 20px}
.landing .in{display:flex;gap:60px;align-items:center;max-width:980px;width:100%;flex-wrap:wrap;justify-content:center}
.landing .brand-side{flex:1;min-width:300px;max-width:560px}
.landing .brand-side .logo-row{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.landing .brand-side h1{font-size:52px;font-weight:800;margin:0;letter-spacing:-.5px}
.landing .brand-side h1 .twa{color:var(--fb-blue)}
.landing .tagline{font-size:24px;color:var(--text);margin:14px 0 8px;font-weight:400}
.landing .ppp{font-size:13px;letter-spacing:2.5px;color:var(--muted);font-weight:700}
.landing .private-note{margin-top:18px;font-size:14.5px;color:var(--muted);max-width:440px}
.login-card{background:#fff;border-radius:var(--radius);box-shadow:0 2px 12px rgba(0,0,0,.12);padding:20px;width:396px;flex:none}
.login-card input{width:100%;border:1px solid #DDDFE2;border-radius:6px;padding:14px 16px;font-size:17px;margin-bottom:12px}
.login-card input:focus{outline:none;border-color:var(--fb-blue);box-shadow:0 0 0 2px rgba(24,119,242,.2)}
.login-card .btn{font-size:20px;padding:12px}
.login-card .forgot{display:block;text-align:center;color:var(--fb-blue);font-size:14px;margin:14px 0}
.login-card .div{border-top:1px solid #DADDE1;margin:6px 0 20px}
.login-card .create-row{text-align:center}
.landing .foot{position:fixed;bottom:0;left:0;right:0;background:#fff;padding:12px;text-align:center;font-size:12.5px;color:var(--muted)}
@media(max-width:900px){.landing .brand-side h1{font-size:38px;text-align:center}.landing .brand-side{text-align:center}.landing .private-note{margin-left:auto;margin-right:auto}}

/* Misc */
.empty{text-align:center;color:var(--muted);padding:32px 16px;font-size:15px}
.hidden{display:none!important}
#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#0B1B33;color:#fff;padding:10px 18px;border-radius:8px;font-size:14px;z-index:300;box-shadow:var(--shadow-lg);display:none}

/* Happy people photo strip on landing page */
.photo-strip{width:100%;max-width:980px;margin:30px auto 60px;text-align:center;padding:0 20px}
.photo-strip-title{font-size:20px;font-weight:700;color:var(--text);margin-bottom:16px}
.photo-row{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.photo-row img{width:300px;height:200px;object-fit:cover;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.12)}
@media(max-width:900px){.photo-row img{width:100%;max-width:340px;height:220px}}
.landing{flex-wrap:wrap;align-content:center}
.photo-strip{flex-basis:100%}
/* ============ Mobile app-style bottom tab bar (max-width: 768px) ============ */
.app-tabbar { display: none; }
.nav-mobile-quick { display: none; }

@media (max-width: 768px) {
  /* Slim top bar: logo left, quick icons right */
  .fb-nav { padding: 0 12px; height: 52px; }
  .fb-nav .brand .t { display: none; }
  .fb-nav .brand .logo { width: 34px; height: 34px; }
  .fb-search { display: none; }
  .fb-nav .navicons { display: none; }
  .nav-mobile-quick {
    display: flex; align-items: center; gap: 2px;
  }
  .nav-mobile-quick a {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); position: relative;
  }
  .nav-mobile-quick a.on { color: var(--fb-blue); }
  .fb-dropdown { top: 52px; }

  /* Content clears both bars */
  .fb-page { padding-top: 52px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* Bottom tab bar */
  .app-tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: #fff;
    border-top: 1px solid var(--line, #ddd);
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-top: 6px;
  }
  .app-tabbar .tab {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 2px; padding: 4px 0 6px;
    color: var(--muted, #65676B); text-decoration: none;
    font-size: 10px; font-weight: 600;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .app-tabbar .tab:active { opacity: .6; }
  .app-tabbar .tab.on { color: var(--fb-blue, #1877F2); }
  .app-tabbar .tab-bdg {
    position: absolute; top: 0; left: calc(50% + 2px);
    background: #E41E3F; color: #fff; font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; padding: 0 5px;
  }
  .app-tabbar .tab-avatar {
    width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  }
  /* Raised center Post button */
  .app-tabbar .tab-post .post-plus {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--fb-blue, #1877F2);
    display: flex; align-items: center; justify-content: center;
    margin-top: -26px;
    box-shadow: 0 4px 12px rgba(24,119,242,.4);
    border: 3px solid #fff;
  }
  .app-tabbar .tab-post:active .post-plus { transform: scale(.94); }
}

/* Post photo uploads (2026-10-11) */
.post-imgs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 12px 8px}
.post-imgs img{width:100%;height:220px;object-fit:cover;border-radius:6px;cursor:pointer}
.post-imgs img:only-child{grid-column:1/-1;height:auto;max-height:560px}
@media(max-width:768px){.post-imgs img{height:160px}.post-imgs img:only-child{height:auto}}

/* Live player - bigger, portrait-friendly on mobile (2026-10-11) */
.live-player{aspect-ratio:3/4}
@media(min-width:768px){.live-player{aspect-ratio:16/10;max-height:70vh}}

/* ---------- Stories ---------- */
.stories{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 12px;margin-bottom:4px;scrollbar-width:none}
.stories::-webkit-scrollbar{display:none}
.story-card .ring-av.seen{border-color:#ccd0d5}
/* Story viewer (fullscreen) */
#storyViewer{position:fixed;inset:0;background:#000;z-index:9999;display:flex;align-items:center;justify-content:center}
#svImg{max-width:100%;max-height:100vh;object-fit:contain}
#svBars{position:absolute;top:10px;left:10px;right:10px;display:flex;gap:6px;z-index:3}
.sv-bar{flex:1;height:3px;background:rgba(255,255,255,.35);border-radius:2px;overflow:hidden}
.sv-fill{height:100%;width:0%;background:#fff;border-radius:2px}
#svTop{position:absolute;top:22px;left:12px;right:12px;display:flex;align-items:center;gap:10px;z-index:3}
#svAvatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid #fff}
#svMeta{flex:1;color:#fff}
#svName{font-weight:700;font-size:15px;text-shadow:0 1px 3px rgba(0,0,0,.7)}
#svTime{font-size:12.5px;opacity:.85;text-shadow:0 1px 3px rgba(0,0,0,.7)}
#svClose{background:rgba(0,0,0,.45);border:none;color:#fff;font-size:26px;width:40px;height:40px;border-radius:50%;cursor:pointer;line-height:1}
#svPrev,#svNext{position:absolute;top:0;bottom:0;width:30%;z-index:2}
#svPrev{left:0}
#svNext{right:0}
@media (max-width:768px){
  #svImg{width:100%;height:100vh;object-fit:cover}
}

.post-menu{position:absolute;top:100%;right:0;background:#fff;border:1px solid var(--border,#ddd);border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.15);z-index:50;min-width:150px;overflow:hidden}
.post-menu.hidden{display:none}
.post-del{display:block;width:100%;text-align:left;padding:10px 14px;background:none;border:none;font-size:14px;color:#D93025;cursor:pointer;font-family:inherit}
.post-del:hover{background:#FDECEA}
