:root{
  --bg:#0b0710;--card:#17101f;--card2:#1f1629;--line:rgba(255,255,255,.08);
  --mut:#a99bb8;--p:#7b2fbe;--k:#d6307f;--o:#ff8a3d;
  --g:linear-gradient(135deg,#7b2fbe 0%,#d6307f 55%,#ff8a3d 100%);
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%;background:#050308;color:#fff;font:15px/1.4 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,select{font:inherit;color:#fff}
img{display:block}
h1,h2,h3{font-weight:700}
small{color:var(--mut);font-size:12.5px}
.muted{color:var(--mut)}

#app{position:relative;max-width:480px;height:100dvh;margin:0 auto;overflow:hidden;overflow:clip;
  background:radial-gradient(120% 45% at 50% -8%,#4b1a66 0%,rgba(11,7,16,0) 70%),var(--bg)}
#view{height:100%;overflow-y:auto;padding:max(18px,env(safe-area-inset-top)) 16px 200px;scrollbar-width:none}
#view::-webkit-scrollbar{display:none}

/* icons */
.ic{width:22px;height:22px;flex:none}
.ic.fill{fill:currentColor}
.icbtn{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid var(--line);flex:none}
.icbtn.sm{width:32px;height:32px;border-radius:10px}
.icbtn.lg{width:56px;height:56px;border-radius:50%}
.icbtn.danger{color:#ff6b7d}
.badge-wrap{position:relative}
.badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;border-radius:9px;padding:0 5px;background:var(--g);font:700 11px/18px system-ui;text-align:center;font-style:normal}

/* nav */
#nav{position:absolute;left:16px;right:16px;bottom:max(14px,env(safe-area-inset-bottom));height:64px;border-radius:32px;display:flex;justify-content:space-around;align-items:center;
  background:rgba(24,16,32,.82);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--line);z-index:10;padding:0 10px}
#nav button{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#cfc3dc}
#nav button.on{background:var(--g);color:#fff;box-shadow:0 6px 20px rgba(214,48,127,.4)}

/* mini player */
#mini{display:none;position:absolute;left:16px;right:16px;bottom:calc(max(14px,env(safe-area-inset-bottom)) + 74px);height:62px;border-radius:20px;align-items:center;gap:10px;padding:8px 10px;z-index:9;
  background:rgba(34,22,46,.92);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--line);overflow:hidden}
#mini img{width:44px;height:44px;border-radius:12px;object-fit:cover}
#mini .meta{flex:1;min-width:0}
.mbar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.08)}
.mbar i{display:block;height:100%;width:0;background:var(--g)}
.pp{width:42px;height:42px;border-radius:50%;background:var(--g);display:grid;place-items:center;flex:none}
.pp.big{width:72px;height:72px}
.pp.big .ic{width:30px;height:30px}

.meta{min-width:0}
.meta b,.meta small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meta b{font-weight:600}

/* header */
.top{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.top .hello{flex:1;min-width:0}
.top .hello small{display:block}
.top .hello b{font-size:17px}
.av{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;flex:none;font-weight:700;color:#fff;
  background:linear-gradient(135deg,hsl(var(--h),60%,38%),hsl(calc(var(--h) + 50),75%,55%))}
.av.lg{width:46px;height:46px;font-size:18px;border-radius:16px}
.av.xl{width:96px;height:96px;font-size:40px}
.lgi{width:46px;height:46px;border-radius:16px}
.kicker{color:var(--mut);font-size:13px}
.hero{font-size:34px;line-height:1.1;margin:6px 0 18px;letter-spacing:-.5px}
.title{font-size:30px;letter-spacing:-.5px;margin-bottom:4px}
.searchbar{display:flex;align-items:center;gap:10px;width:100%;height:52px;border-radius:26px;padding:0 18px;margin:14px 0 20px;text-align:left;
  background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--mut)}
.searchbar input{flex:1;background:none;border:0;outline:0;height:100%;min-width:0}
.sec{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:20px 0 12px}
.sec h3{font-size:18px}
.sec small{margin-right:auto;margin-left:4px}
.link{color:var(--mut);font-size:13px}

/* lists */
.list{display:flex;flex-direction:column;gap:10px}
.row{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 10px;border-radius:18px;background:var(--card);border:1px solid var(--line);cursor:pointer}
.row.cur{border-color:rgba(255,138,61,.55);background:linear-gradient(90deg,rgba(123,47,190,.25),rgba(255,138,61,.12))}
.row.cur b{color:#ffb27a}
.cv{width:52px;height:52px;border-radius:14px;object-fit:cover;flex:none}
.cv.sm{width:40px;height:40px;border-radius:10px}
.row .meta{flex:1}
.dur{color:var(--mut);font-size:13px;font-variant-numeric:tabular-nums}
.hscroll{display:flex;gap:12px;overflow-x:auto;margin:0 -16px;padding:0 16px 4px;scrollbar-width:none}
.hscroll::-webkit-scrollbar{display:none}
.acard{position:relative;flex:none;width:150px;height:190px;border-radius:22px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;padding:12px;cursor:pointer;background:var(--card)}
.acard img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.acard .shade{position:absolute;inset:0;background:linear-gradient(transparent 35%,rgba(0,0,0,.85))}
.acard>*:not(img):not(.shade){position:relative}
.acard b{font-size:16px}
.pill{margin-top:8px;display:block;text-align:center;height:34px;line-height:34px;border-radius:17px;background:#fff;color:#111;font-weight:600;font-size:13px}
.box{background:var(--card);border:1px solid var(--line);border-radius:24px;padding:14px 14px 16px;margin-top:6px}
.box .sec{margin-top:0}
.box .hscroll{margin:0 -14px;padding:0 14px 4px}
.pcard{flex:none;width:112px;cursor:pointer}
.pcard img{width:112px;height:112px;border-radius:18px;object-fit:cover;margin-bottom:8px}
.pcard b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcard.new{height:112px;border-radius:18px;border:2px dashed rgba(255,255,255,.2);display:grid;place-items:center;color:var(--mut);text-align:center;font-size:13px}
.chips{display:flex;gap:8px;overflow-x:auto;margin:0 -16px 16px;padding:0 16px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;height:36px;padding:0 16px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid var(--line)}
.chip.on{background:var(--g);border-color:transparent}
.empty{padding:28px 12px;text-align:center;color:var(--mut);border:1px dashed rgba(255,255,255,.14);border-radius:18px}
.banner{background:rgba(255,138,61,.14);border:1px solid rgba(255,138,61,.4);color:#ffc9a3;border-radius:14px;padding:10px 14px;margin-bottom:14px;font-size:13px}

/* pages */
.ph{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.ph h2{flex:1;font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-pl{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;margin-bottom:18px}
.hero-pl img{width:200px;height:200px;border-radius:26px;object-fit:cover;box-shadow:0 20px 50px rgba(123,47,190,.45);margin-bottom:10px}
.hero-pl h2{font-size:26px}
.btnrow{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.btn{height:46px;padding:0 22px;border-radius:23px;background:var(--g);font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#fff}
.btn.sm{height:36px;padding:0 16px;border-radius:18px;font-size:14px}
.btn.ghost{background:rgba(255,255,255,.07);border:1px solid var(--line)}
.btn.on{background:rgba(214,48,127,.25);border:1px solid var(--k)}
.btn.block{width:100%}
.prof{display:flex;flex-direction:column;align-items:center;gap:6px;margin:6px 0 16px;text-align:center}
.prof .av.xl{box-shadow:0 0 0 6px rgba(255,255,255,.05),0 0 0 12px rgba(255,255,255,.03)}
.tag{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 14px;border-radius:15px;background:var(--g);font-weight:600;font-size:13px}
.tag.mem{background:rgba(255,255,255,.08)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
.stat{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:12px 6px;text-align:center}
.stat b{display:block;font-size:22px}
.menu{background:var(--card);border:1px solid var(--line);border-radius:22px;overflow:hidden}
.mi{display:flex;align-items:center;gap:14px;width:100%;padding:15px 16px;text-align:left;border-bottom:1px solid var(--line)}
.mi:last-child{border-bottom:0}
.mi .meta{flex:1}
.mi .chev{color:var(--mut);transform:rotate(-90deg)}
.mi.danger{color:#ff7b8c}
.switch{width:46px;height:26px;border-radius:13px;background:rgba(255,255,255,.15);position:relative;flex:none;transition:.2s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}
.switch.on{background:var(--g)}
.switch.on::after{left:23px}
.nrow{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:16px;background:var(--card);border:1px solid var(--line);margin-bottom:10px;cursor:pointer}
.nrow.unread{border-color:rgba(214,48,127,.6);background:linear-gradient(90deg,rgba(123,47,190,.22),var(--card))}
.nrow p{font-size:14px}
.arow{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:var(--card);border:1px solid var(--line);margin-bottom:8px}
.arow .meta{flex:1}
.arow small{white-space:normal!important}

/* comments */
h3.ch{font-size:17px;margin:22px 0 12px}
.cm{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px}
.cm .av{width:32px;height:32px;font-size:13px}
.cm>div{flex:1;min-width:0}
.cm p{overflow-wrap:anywhere;margin-top:1px;font-size:14px}
.cform{display:flex;gap:8px;margin-top:10px}
.cform input{flex:1;min-width:0;height:44px;border-radius:22px;padding:0 16px;background:rgba(255,255,255,.07);border:1px solid var(--line);outline:0}

/* full player */
#full{position:absolute;inset:0;z-index:30;overflow-y:auto;transform:translateY(102%);transition:transform .32s cubic-bezier(.2,.8,.2,1);
  background:linear-gradient(#3d1456 0%,#1a0e25 40%,#0b0710 100%);padding:max(16px,env(safe-area-inset-top)) 22px 40px;scrollbar-width:none}
#full.open{transform:none}
#full:not(.open){visibility:hidden;transition:transform .32s cubic-bezier(.2,.8,.2,1),visibility 0s .32s}
.fp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.fp-cover{width:100%;max-width:340px;aspect-ratio:1;border-radius:28px;object-fit:cover;margin:0 auto 22px;box-shadow:0 26px 60px rgba(0,0,0,.55)}
.fp-meta{text-align:center;margin-bottom:14px}
.fp-meta h2{font-size:24px}
.fp-meta p{color:#e7dcf1}
#seek{width:100%;accent-color:#ff5f8f;height:24px}
.times{display:flex;justify-content:space-between;color:var(--mut);font-size:12.5px;margin-top:-2px}
.ctrls{display:flex;align-items:center;justify-content:center;gap:22px;margin:14px 0 20px}
.acts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.acts button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 4px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid var(--line);font-size:12px}
.acts button.on{color:#ff7aa8;border-color:rgba(255,122,168,.5)}

/* sheets */
#sheet{display:none;position:absolute;inset:0;z-index:40;flex-direction:column;justify-content:flex-end}
#sheet.open{display:flex}
.sbg{position:absolute;inset:0;background:rgba(0,0,0,.62)}
.scard{position:relative;max-height:90%;overflow-y:auto;background:#18111f;border-radius:28px 28px 0 0;padding:22px 20px max(24px,env(safe-area-inset-bottom));border-top:1px solid var(--line);animation:up .25s ease}
@keyframes up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.scard h2{font-size:22px;margin-bottom:6px}
.scard form{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.scard input:not([type=checkbox]):not([type=file]),.scard select{height:48px;border-radius:14px;padding:0 14px;background:rgba(255,255,255,.07);border:1px solid var(--line);outline:0;width:100%}
.scard select option{color:#000}
.sh-logo{display:flex;justify-content:center;margin-bottom:10px}
.sh-logo img{width:64px;height:64px;border-radius:18px}
.seg{display:grid;grid-template-columns:1fr 1fr;background:rgba(255,255,255,.06);border-radius:14px;padding:4px;margin-top:14px}
.seg button{height:38px;border-radius:11px;color:var(--mut)}
.seg button.on{background:var(--g);color:#fff}
.hint{margin-top:12px;text-align:center;font-size:12.5px;color:var(--mut)}
.drop,.cover-pick{display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;border:1.5px dashed rgba(255,255,255,.22);cursor:pointer;color:var(--mut)}
.drop span{display:flex;align-items:center;gap:8px;min-width:0;word-break:break-all}
.cover-pick img{width:52px;height:52px;border-radius:12px;object-fit:cover}
.lbl{margin-top:6px;font-weight:600}
.checks{max-height:240px;overflow-y:auto;display:flex;flex-direction:column;gap:6px}
.chk{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:12px;background:rgba(255,255,255,.04);cursor:pointer}
.chk input{width:18px;height:18px;accent-color:#d6307f}
.chk span{min-width:0}
.chk b,.chk small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shead{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.shead img{width:54px;height:54px;border-radius:14px;object-fit:cover}
.sact{display:flex;align-items:center;gap:14px;width:100%;padding:14px 4px;border-top:1px solid var(--line);text-align:left}
.sact.danger{color:#ff7b8c}
.sact.on{color:#ff7aa8}

#toast{position:absolute;left:50%;top:max(16px,env(safe-area-inset-top));transform:translate(-50%,-90px);z-index:60;max-width:88%;padding:12px 18px;border-radius:16px;
  background:rgba(40,26,54,.96);border:1px solid rgba(255,255,255,.14);box-shadow:0 10px 30px rgba(0,0,0,.5);transition:transform .3s;text-align:center;font-size:14px}
#toast.show{transform:translate(-50%,0)}
#splash{position:absolute;inset:0;z-index:100;background:var(--bg);display:grid;place-items:center;transition:opacity .5s}
#splash img{width:62%;max-width:280px}
#splash.hide{opacity:0;pointer-events:none}
