:root{--bg:#0a0412;--accent:#e8590c;--accent2:#ff8a3d;--glass:rgba(255,255,255,.06);--edge:rgba(255,255,255,.16);--blur:22px}
*{box-sizing:border-box;margin:0}
html,body{height:100%}
body{background:var(--bg);color:#f3ecfa;font-family:system-ui,Segoe UI,Roboto,sans-serif;overflow:hidden}
.blob{position:fixed;border-radius:50%;filter:blur(90px);opacity:.55;z-index:0}
.b1{width:420px;height:420px;background:#3b0f6b;top:-100px;left:20%}
.b2{width:360px;height:360px;background:#7a2a05;bottom:-80px;right:10%}
.b3{width:300px;height:300px;background:#2a0a52;top:40%;left:-80px}
body.lite .blob{display:none}
body.lite{--blur:0px}
.glass{background:linear-gradient(135deg,rgba(255,255,255,.11),rgba(255,255,255,.03));border:1px solid var(--edge);
 backdrop-filter:blur(var(--blur)) saturate(160%);-webkit-backdrop-filter:blur(var(--blur)) saturate(160%);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.25),inset 0 -1px 0 rgba(255,255,255,.04),0 10px 30px rgba(0,0,0,.4)}
.app{position:relative;z-index:1;height:100vh;display:grid;grid-template-columns:210px 1fr;grid-template-rows:84px 1fr;gap:12px;padding:12px}
.logo{border-radius:24px;display:flex;align-items:center;justify-content:center;padding:6px}
.logo img{max-height:100%;max-width:100%;object-fit:contain}
.top{border-radius:24px;display:flex;align-items:center;gap:12px;padding:0 16px}
.round{width:46px;height:46px;flex:none;border-radius:50%;border:2px solid #fff;background:none;color:#fff;cursor:pointer;overflow:hidden;display:grid;place-items:center;padding:0}
.round.plain{border:none;width:40px;height:40px}
.round svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.round.plain:hover svg{stroke:var(--accent2);transform:rotate(60deg)}
.round svg{transition:.4s}
#avatar{width:100%;height:100%;object-fit:cover;display:none}
#search{flex:1;height:46px;border-radius:30px;border:1.5px solid var(--edge);background:rgba(0,0,0,.25);color:#fff;padding:0 20px;font-size:16px;outline:none}
#search:focus{border-color:var(--accent)}
.side{border-radius:24px;display:flex;flex-direction:column;overflow:hidden}
.side button{flex:1;background:none;border:none;border-bottom:1px solid var(--edge);color:#e7dcf3;font-size:16px;text-align:left;padding:0 20px;cursor:pointer;transition:.2s;min-height:44px}
.side button:last-child{border:none}
.side button:hover{background:rgba(255,255,255,.07)}
.side button.on{background:linear-gradient(90deg,rgba(232,89,12,.55),rgba(232,89,12,.08));color:#fff;font-weight:600;box-shadow:inset 3px 0 var(--accent2)}
.main{border-radius:24px;padding:20px;overflow-y:auto;min-width:0}
.bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
h1{font-size:24px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
.card{border-radius:18px;overflow:hidden;display:flex;flex-direction:column;position:relative}
.cover{aspect-ratio:2/3;background:linear-gradient(135deg,#3b0f6b,#8a3205);display:grid;place-items:center;font-weight:700;text-align:center;padding:10px;position:relative}
.cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.badges{position:absolute;top:8px;left:8px;display:flex;gap:4px;flex-wrap:wrap}
.badge{font-size:11px;padding:2px 8px;border-radius:10px;background:rgba(0,0,0,.6);border:1px solid var(--edge)}
.badge.ex{background:var(--accent)}
.save{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;border:1px solid var(--edge);background:rgba(0,0,0,.55);color:#fff;font-size:18px;cursor:pointer}
.save.on{color:var(--accent2)}
.info{padding:12px;display:flex;flex-direction:column;gap:6px;flex:1}
.info h3{font-size:16px}
.meta{font-size:12px;opacity:.7}
.desc{font-size:13px;opacity:.85;line-height:1.35}
.btns{display:flex;gap:6px;margin-top:auto;padding-top:6px}
.btn{flex:1;padding:8px 6px;border-radius:12px;border:1px solid var(--edge);background:rgba(255,255,255,.08);color:#fff;font-size:13px;cursor:pointer;transition:.2s}
.btn:hover{background:rgba(255,255,255,.18)}
.btn.pri{background:var(--accent);border-color:var(--accent2)}
.btn.pri:hover{background:var(--accent2)}
.btn:disabled{opacity:.35;cursor:not-allowed}
select,.field{background:rgba(0,0,0,.35);color:#fff;border:1px solid var(--edge);border-radius:12px;padding:8px 12px;font-size:14px}
.empty{opacity:.7;padding:40px;text-align:center;grid-column:1/-1}
.overlay{position:fixed;inset:0;z-index:10;background:rgba(5,0,10,.65);display:grid;place-items:center;padding:16px}
.hidden{display:none}
.dialog{border-radius:24px;padding:22px;width:min(760px,100%);max-height:90vh;overflow:auto;background:rgba(30,12,50,.7)}
.dialog h2{margin-bottom:14px}
.dialog video{width:100%;border-radius:14px;background:#000}
.row{display:flex;gap:10px;align-items:center;margin:10px 0;flex-wrap:wrap}
.ep{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;border-bottom:1px solid var(--edge);flex-wrap:wrap}
.ep .btns{margin:0;padding:0}.ep .btn{padding:6px 12px;flex:none}
.bigav{width:96px;height:96px;border-radius:50%;object-fit:cover;background:#3b0f6b;border:2px solid var(--accent)}
.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,80px);background:var(--accent);padding:10px 20px;border-radius:20px;transition:.3s;z-index:20}
.toast.show{transform:translate(-50%,0)}
@media(max-width:700px){.app{grid-template-columns:1fr;grid-template-rows:64px 56px 1fr;height:100vh}
 .logo{display:none}.side{flex-direction:row;overflow-x:auto;grid-row:2}.side button{flex:none;white-space:nowrap;border-bottom:none;border-right:1px solid var(--edge);padding:0 14px}
 .top{grid-row:1}.main{grid-row:3}}
