/* Library (audio/video) — cards with round play buttons, scholar cards with location badges, bottom player */
.lib-top { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:18px; }
.lib-search { flex:1; min-width:240px; display:flex; align-items:center; gap:8px; border:1.5px solid #d6dedb; border-radius:999px; padding:4px 4px 4px 16px; background:#fff; }
.lib-search input { border:0; flex:1; min-width:0; padding:8px 0; outline:none; font-size:16px; }
.lib-search button { width:42px; height:42px; border-radius:50%; border:0; background:var(--ink); color:#fff; font-size:18px; cursor:pointer; }
.lib { display:grid; grid-template-columns:260px 1fr; gap:22px; align-items:start; }
.lib.three { grid-template-columns:1fr 340px; }
@media (max-width:980px) { .lib, .lib.three { grid-template-columns:1fr; } }
.yl { background:#f7f9f8; border-radius:16px; padding:18px; position:sticky; top:84px; }
.yl h2 { font-size:17px; margin:0 0 10px; }
.yl a { display:flex; align-items:center; gap:12px; padding:11px 6px; text-decoration:none; color:var(--ink); border-radius:10px; font-weight:500; }
.yl a:hover, .yl a.on { background:#e9f3ee; } .yl a span.i { width:22px; text-align:center; } .yl a span.c { margin-left:auto; color:var(--muted); font-size:13px; }
@media (max-width:980px) { .yl { position:static; display:flex; gap:6px; overflow-x:auto; padding:8px; } .yl h2 { display:none; } .yl a { white-space:nowrap; padding:8px 12px; } }
.lib-main { background:#f7f9f8; border-radius:16px; padding:20px; min-width:0; }
.lib-main h2 { margin:0; font-size:20px; } .lib-main .sub { color:var(--muted); margin:2px 0 16px; font-size:14px; }
.sec-h { display:flex; justify-content:space-between; align-items:flex-end; gap:10px; margin:6px 0 14px; } .sec-h a { color:var(--muted); text-decoration:none; font-weight:500; }
.mgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:20px; }
@media (max-width:480px) { .mgrid { grid-template-columns:repeat(2,1fr); gap:12px; } }
.mc { position:relative; min-width:0; }
.mc-img { display:block; aspect-ratio:1; border-radius:14px; overflow:hidden; background:#e6eee9; position:relative; }
.mc-img img { width:100%; height:100%; object-fit:cover; transition:transform .25s; } .mc:hover .mc-img img { transform:scale(1.04); }
.mc-ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:48px; }
.mc-media { position:relative; }
.mc-play { position:absolute; right:10px; bottom:10px; width:50px; height:50px; border-radius:50%; border:0; background:var(--ink); color:#fff;
  font-size:18px; cursor:pointer; box-shadow:0 6px 16px rgba(0,0,0,.3); padding-left:3px; transition:transform .15s, background .15s; }
.mc-play:hover, .mc-play:focus-visible { background:var(--green); transform:scale(1.07); }
.mc-t { display:block; margin-top:8px; font-weight:600; color:var(--ink); text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mc-by { display:block; color:var(--muted); font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mc-price, .mc-kind { position:absolute; left:10px; top:10px; background:#fff; color:var(--ink); font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; }
.mc-kind { left:auto; right:10px; background:rgba(0,0,0,.65); color:#fff; }
.agrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:20px; }
.ac { display:block; background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; text-decoration:none; color:var(--ink); }
.ac:hover { box-shadow:0 10px 26px rgba(0,0,0,.08); }
.ac-img { display:block; aspect-ratio:4/3; position:relative; background:#e6eee9; } .ac-img img { width:100%; height:100%; object-fit:cover; }
.ac-loc { position:absolute; left:14px; top:14px; background:#f26b5b; color:#fff; font-size:13px; font-weight:600; padding:6px 14px; border-radius:6px; text-transform:uppercase; letter-spacing:.3px; }
.ac b { display:block; padding:14px 16px 0; font-size:18px; } .ac small { display:block; padding:2px 16px 14px; color:var(--muted); }
.recent { background:#f2f5f8; border-radius:16px; padding:22px; }
.recent h2 { margin:0 0 6px; font-size:22px; } .recent .bar { display:flex; gap:6px; margin-bottom:16px; } .recent .bar i { height:3px; background:var(--green); border-radius:2px; width:26px; } .recent .bar i + i { width:60px; }
.ri { display:flex; gap:14px; align-items:center; padding:8px 0; text-decoration:none; color:var(--ink); }
.ri img, .ri .mc-ph { width:84px; height:72px; border-radius:8px; object-fit:cover; flex:none; font-size:28px; background:#e6eee9; }
.ri b { display:block; line-height:1.25; } .ri small { color:var(--muted); }
.tl { list-style:none; margin:0; padding:0; }
.tl li { display:flex; align-items:center; gap:12px; padding:9px 6px; border-bottom:1px solid var(--line); }
.tl li .n { width:24px; color:var(--muted); font-size:13px; text-align:right; }
.tl li button { width:38px; height:38px; border-radius:50%; border:0; background:var(--ink); color:#fff; cursor:pointer; flex:none; padding-left:2px; }
.tl li a { color:var(--ink); text-decoration:none; font-weight:500; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tl li .m { color:var(--muted); font-size:13px; white-space:nowrap; }
.chip-btn { display:inline-flex; gap:8px; align-items:center; border:1.5px solid #d6dedb; background:#fff; border-radius:999px; padding:9px 18px; font:600 14px Poppins,Arial,sans-serif; cursor:pointer; color:var(--ink); text-decoration:none; }
.chip-btn.on { background:var(--ink); color:#fff; border-color:var(--ink); }
/* bottom player */
#pl { position:fixed; left:0; right:0; bottom:0; z-index:60; background:#111; color:#fff; display:none; align-items:center; gap:14px; padding:10px 16px; box-shadow:0 -6px 20px rgba(0,0,0,.25); }
#pl.show { display:flex; } body.has-pl { padding-bottom:84px; }
#pl img { width:52px; height:52px; border-radius:8px; object-fit:cover; background:#333; flex:none; }
#pl .pi { min-width:0; width:220px; } #pl .pi b { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } #pl .pi small { color:#aaa; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#pl .pc { display:flex; gap:6px; align-items:center; } #pl button { background:none; border:0; color:#fff; font-size:18px; cursor:pointer; width:40px; height:40px; border-radius:50%; }
#pl button.big { background:#fff; color:#111; } #pl button:focus-visible { outline:2px solid #8fc7ad; } #pl button.liked { color:#ff5a7a; }
#pl .ps { flex:1; display:flex; align-items:center; gap:10px; font-size:12px; color:#bbb; min-width:120px; } #pl input[type=range] { flex:1; accent-color:#1fbf7a; }
@media (max-width:700px) { #pl { flex-wrap:wrap; gap:8px; padding:8px 10px; } #pl .pi { width:auto; flex:1; } #pl .ps { order:3; flex-basis:100%; } body.has-pl { padding-bottom:120px; } }
#vmodal { position:fixed; inset:0; z-index:70; background:rgba(0,0,0,.85); display:none; align-items:center; justify-content:center; padding:16px; }
#vmodal.show { display:flex; } #vmodal .box { width:min(960px,100%); } #vmodal video, #vmodal iframe { width:100%; aspect-ratio:16/9; border:0; border-radius:12px; background:#000; }
#vmodal .x { display:flex; justify-content:space-between; color:#fff; margin-bottom:8px; } #vmodal button { background:#fff; border:0; border-radius:999px; padding:6px 14px; cursor:pointer; font-weight:600; }
/* posts feed */
.feed { display:flex; flex-direction:column; gap:14px; }
.post { display:flex; gap:12px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px; }
.pav { width:44px; height:44px; border-radius:50%; object-fit:cover; flex:none; background:#e9f3ee; display:inline-flex; align-items:center; justify-content:center; font-weight:700; color:var(--green); }
.pb { flex:1; min-width:0; } .pb a { color:var(--ink); text-decoration:none; } .pb .ptext { margin-top:6px; white-space:normal; overflow-wrap:anywhere; }
.pb .ptext a { color:var(--green); text-decoration:underline; } .pimg2 { margin-top:10px; width:100%; max-height:460px; object-fit:cover; border-radius:12px; }
/* chat */
.chat { display:flex; flex-direction:column; height:min(70vh,640px); background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.chat-h { display:flex; gap:12px; align-items:center; padding:12px 16px; border-bottom:1px solid var(--line); }
.chat-b { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:8px; background:#f4f7f6; }
.msg { max-width:78%; padding:9px 13px; border-radius:16px; line-height:1.4; overflow-wrap:anywhere; white-space:pre-wrap; }
.msg small { display:block; font-size:11px; opacity:.6; margin-top:3px; }
.msg.me { align-self:flex-end; background:var(--green); color:#fff; border-bottom-right-radius:4px; }
.msg.them { align-self:flex-start; background:#fff; border:1px solid var(--line); border-bottom-left-radius:4px; }
.chat-f { display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); }
.chat-f textarea { flex:1; resize:none; height:46px; border-radius:23px; padding:12px 16px; }
.chat-f button { border-radius:50%; width:46px; height:46px; padding:0; flex:none; }

/* likes & comments */
.pact { display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }
.pact button { background:#f3f6f5; border:1px solid var(--line); border-radius:999px; padding:5px 14px; font:500 13px Poppins,Arial,sans-serif; cursor:pointer; color:var(--ink); }
.pact button:hover { border-color:var(--green); } .pact .plike.on { background:#fde7ec; border-color:#f2a7b8; color:#c2185b; }
.pcomments { margin-top:10px; border-top:1px solid var(--line); padding-top:10px; }
.cmt { background:#f6f8f7; border-radius:12px; padding:8px 12px; margin-bottom:8px; font-size:14px; } .cmt div { margin-top:2px; white-space:pre-wrap; word-break:break-word; }
.chide { background:none; border:0; color:#a93226; cursor:pointer; font-size:12px; }
.cform { display:flex; flex-direction:column; gap:6px; } .cform .crow { display:flex; gap:6px; } .cform .crow input { flex:1; min-width:0; }
.cform input { padding:8px 12px; font-size:14px; } .cform .hp { position:absolute; left:-9999px; }
.post.hl { border-color:var(--green); box-shadow:0 0 0 3px rgba(26,122,85,.15); }
