:root{--bg:#0b0d14;--panel:#11162a;--panel2:#0f1326;--stroke:#20284a;--text:#e9ecf5;--muted:#7f8aa6;--pink:#ffc0e1;}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;}
.wrap{max-width:1200px;margin:0 auto;padding:18px;}
.panel{background:linear-gradient(180deg,var(--panel),var(--panel2));border:1px solid var(--stroke);border-radius:5px;overflow:hidden;margin-bottom:14px;}
.head{padding:5px 14px;border-bottom:1px solid var(--stroke);display:flex;justify-content:space-between;align-items:center;gap:10px;}
.title{font-weight:900;font-size:16px;}
.sub{font-size:12px;color:var(--muted);}
.sub.debug{color:rgba(255,255,255,.75);font-size:12px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:680px;}
.sub.debug b{color:var(--pink);}
.player{width:100%;aspect-ratio:16/9;border:1px solid var(--stroke);background:#050816;overflow:hidden;position:relative;}
.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:2;}
.player-debug{display:none !important;}
.hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.7);font-weight:800;z-index:1;pointer-events:none;}
.hint.hide{display:none;}
.load{position:absolute;inset:0;display:none;align-items:center;justify-content:center;z-index:5;}
.load.on{display:flex;}
.server-wrap{display:flex;flex-wrap:wrap;overflow:hidden;border:1px solid var(--stroke);background:#0f1120;}
.server-right{flex:1 1 520px;padding:14px;background:radial-gradient(1200px 400px at 20% 0%, #1a1f36 0%, #10142a 60%, #0f1120 100%);display:flex;flex-direction:column;gap:12px;}
.server-left{flex:1 1 320px;background:var(--pink);color:#fff;text-align:center;display:flex;flex-direction:column;justify-content:center;padding:2px;}
.server-left p{margin:6px 0;line-height:1.5;font-size:18px;text-shadow:0 2px 10px rgba(0,0,0,.22);}
.server-left b{color:#0b0d14;font-size:20px;text-shadow:none;}
.row{display:flex;align-items:center;gap:12px;}
.row-right{flex:1 1 auto;display:flex;flex-direction:column;gap:10px;min-width:0;}
.lbl{min-width:100px;color:#fff;font-weight:900;display:flex;gap:10px;align-items:center;}
.ico{width:28px;height:28px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);}
.grid{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
@media(max-width:980px){ .grid{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:640px){ .grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
.btn{display:flex;align-items:center;justify-content:center;padding:10px 10px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.08);color:#fff;font-weight:900;white-space:nowrap;cursor:pointer;user-select:none;text-decoration:none;transition:.15s transform,.15s border;}
.btn:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.16);}
.btn.active{background:var(--pink);color:#ff2a2a;border-color:rgba(255,192,225,.55);}
.btn.wp{opacity:.78;cursor:default;}
.divider{border-top:1px dashed rgba(255,255,255,.20);}
.error{background:#2a0f17;border:1px solid #53202e;color:#ffccd8;padding:10px 12px;border-radius:5px;font-size:13px;}
.muted{color:var(--muted);font-size:12px;}
.search{width:100%;padding:10px 12px;border-radius:5px;border:1px solid var(--stroke);background:#0b1024;color:var(--text);outline:none;}
.mini-search{width:320px;max-width:44vw;padding:8px 10px;border-radius:5px;border:1px solid var(--stroke);background:#0b1024;color:var(--text);outline:none;}
@media(max-width:700px){ .mini-search{width:100%;max-width:100%;} }

@media(max-width:700px){
	.head{flex-wrap:wrap;align-items:stretch;}
	#expTxt{width:100%;}
	.anime-search{max-width:100% !important;}
	.results{max-width:100vw;}
}
.select{width:100%;padding:10px 12px;border-radius:5px;border:1px solid var(--stroke);background:#0b1024;color:var(--text);outline:none;}

.anime-search{position:relative;}
.results{display:none;position:absolute;left:0;right:0;top:calc(100% + 8px);border:1px solid var(--stroke);border-radius:5px;overflow:hidden;background:#0b1024;z-index:30;max-height:420px;overflow-y:auto;overscroll-behavior:contain;}
.result-item{display:flex;gap:12px;align-items:flex-start;width:100%;text-align:left;padding:12px;color:var(--text);background:transparent;border:0;border-top:1px dashed rgba(255,255,255,.14);cursor:pointer;}
.result-item:first-child{border-top:0;}
.result-item:hover{background:rgba(255,255,255,.06);}
.result-poster{width:56px;height:74px;border-radius:10px;object-fit:cover;flex:0 0 auto;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.06);}
.result-title{font-weight:900;font-size:16px;line-height:1.15;margin:0;}
.result-alias{color:rgba(255,255,255,.70);margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.result-meta{margin-top:10px;color:rgba(255,255,255,.65);}
.result-muted{padding:12px;color:var(--muted);font-size:12px;}
.result-more{width:100%;padding:12px;border:0;border-top:1px dashed rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;font-weight:900;cursor:pointer;}
.result-more:hover{background:rgba(255,255,255,.10);}

@keyframes splashMove{0%{background-position:0% 50%;}100%{background-position:200% 50%;}}
.splash{position:relative;color:transparent !important;}
.splash::after{content:"";position:absolute;inset:0;border-radius:10px;background:linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06));background-size:200% 100%;animation:splashMove 1.2s linear infinite;pointer-events:none;}
.splash-box{position:relative;overflow:hidden;}
.splash-box::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.10), rgba(255,255,255,.04));background-size:200% 100%;animation:splashMove 1.2s linear infinite;pointer-events:none;z-index:3;}
.eps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:12px;}
@media(max-width:980px){.eps{grid-template-columns:repeat(5,minmax(0,1fr));}}
@media(max-width:800px){.eps{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:520px){.eps{grid-template-columns:repeat(3,minmax(0,1fr));}}
.epbtn{display:flex;align-items:center;justify-content:center;padding:6px;border-radius:10px;border:1px solid var(--stroke);background:#0b1024;color:var(--text);text-decoration:none;transition:.15s transform,.15s border;font-size:13px;cursor:pointer;}
.epbtn:hover{transform:translateY(-1px);border-color:#2c3a70;}
.epbtn.active{background:rgba(255,186,222,.14);border-color:rgba(255,186,222,.35);}
.badge{font-size:12px;color:#0b0d14;background:var(--pink);padding:3px 10px;border-radius:999px;font-weight:900;}

.more-btn{grid-column:1/-1;padding:12px;border:0;border-radius:5px;background:rgba(255,255,255,.06);color:#fff;font-weight:900;cursor:pointer;border:1px dashed rgba(255,255,255,.14);}
.more-btn:hover{background:rgba(255,255,255,.10);}

.player-home{position:absolute;inset:0;z-index:3;padding:14px;overflow:auto;overscroll-behavior:contain;background:rgba(11,13,20,.92);}
.player-home-tabs{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px;justify-content:space-between;align-items:center;padding-bottom:10px;border-bottom:1px solid var(--stroke);}
.player-home-headtitle{font-weight:900;color:rgba(255,255,255,.85);letter-spacing:.2px;}
.player-home-headright{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:nowrap;}
.player-home-headhint{font-size:12px;color:var(--muted);font-weight:700;white-space:nowrap;}
.player-home-tab{padding:8px 12px;border-radius:5px;border:1px solid var(--stroke);background:rgba(255,255,255,.06);color:rgba(255,255,255,.85);font-weight:900;cursor:pointer;}
.player-home-tab.active{background:var(--pink);color:#0b0d14;border-color:rgba(255,192,225,.55);}
.player-home-body{min-height:0;}
.player-home-section{margin-top:14px;}
.player-home-section:first-child{margin-top:0;}
.player-home-h{font-weight:900;margin:0 0 10px;color:rgba(255,255,255,.85);font-size:14px;}
.player-home-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
@media(max-width:980px){.player-home-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:640px){.player-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

@media(max-width:520px){
	.player.home-mode{aspect-ratio:auto;height:calc(100vh - 180px);height:calc(100dvh - 180px);}
	.player-home{padding:10px;}
	.player-home-tabs{flex-direction:column;align-items:stretch;gap:8px;}
	.player-home-headtitle{font-size:16px;}
	.player-home-headright{justify-content:flex-start;}
	.player-home-headhint{display:none;}
	.player-home-headright .select{max-width:none !important;}
	.player-home-item{padding:8px;gap:8px;}
}
.player-home-item{display:flex;flex-direction:column;gap:10px;text-align:left;border:1px solid var(--stroke);background:#0b1024;color:var(--text);border-radius:5px;padding:10px;cursor:pointer;}
.player-home-item:hover{border-color:#2c3a70;}
.player-home-poster{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:5px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.06);}
.player-home-title{font-weight:900;font-size:13px;line-height:1.2;max-height:2.4em;overflow:hidden;}
.player-home-meta{font-size:12px;color:var(--muted);margin-top:-4px;}

.mini-servers{border:1px dashed rgba(255,255,255,.14);border-radius:5px;padding:10px;background:rgba(255,255,255,.04);}
.mini-servers-title{font-size:12px;color:var(--muted);font-weight:900;}
.mini-servers-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.mini-servers-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid var(--stroke);background:#0b1024;color:rgba(255,255,255,.85);font-weight:900;font-size:12px;}
.mini-servers-chip small{color:var(--muted);font-weight:900;}
