@import url('/fonts.css');
:root{color-scheme:dark;--bg:#0a0a11;--panel:#19151f;--muted:#b8b0be;--pink:#fb358b;--line:rgba(255,255,255,.09);font-family:Inter,"Segoe UI","Microsoft YaHei",Tahoma,"Myanmar Text","Khmer UI",sans-serif;font-size:14px;line-height:1.5;color:#f8f7fc;background:#17141e}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{color:inherit;border:0;cursor:pointer;background:none;min-height:44px}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid var(--pink);outline-offset:3px}input,select,textarea{color:inherit;background:#231e2c;border:1px solid var(--line);border-radius:10px;padding:12px;width:100%;min-height:44px}textarea{min-height:100px;resize:vertical}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--pink)}h1,h2,h3,p{margin:0}h1{font-size:23px}h2{font-size:19px;letter-spacing:.2px}h3{font-size:16px}small,.muted{color:var(--muted)}.loading{padding:35vh 0;text-align:center;font-weight:800;font-size:30px}.loading span{color:var(--pink)}.mobile{max-width:460px;min-height:100dvh;margin:auto;background:radial-gradient(ellipse at 55% -20%,#32152f 0,transparent 38%),var(--bg);padding-bottom:100px;box-shadow:0 0 100px #0007;overflow-x:clip}.content{padding:0 16px}.header{height:68px;padding:10px 16px;display:flex;align-items:center;gap:5px}.brand{display:flex;align-items:center;gap:8px;font-size:21px;font-weight:800;letter-spacing:-.8px;margin-right:auto}.brand img{width:30px;height:30px}.brand em{font-size:15px;font-style:normal}.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.icon-btn{min-width:44px;padding:8px}.vip-pill{background:linear-gradient(100deg,#ffcf74,#ff9e1b);color:#fff;min-height:27px;border-radius:12px;padding:2px 9px;white-space:nowrap}.hero{height:auto;aspect-ratio:1.72;border-radius:16px;overflow:hidden;position:relative;background:#bc7b9f;isolation:isolate}.hero-art{position:absolute;inset:0;background-image:url('/assets/b-reference.png');background-size:114.06% auto;background-position:49% 22.1%;z-index:-2}.hero:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#170d2055);z-index:-1}.hero-link{display:block;width:100%;height:100%;min-height:100%}.hero-dots{position:absolute;bottom:8px;left:45%;display:flex;gap:5px}.hero-dots button{padding:0;width:6px;height:6px;min-height:6px;border-radius:50%;background:#ffffff66}.hero-dots button.active{background:white;width:14px}.demo-label{font-size:10px;color:#e2cedb;padding:0 16px 5px;text-align:right}.shortcuts{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:15px 0 22px}.shortcut{display:flex;flex-direction:column;gap:6px;align-items:center;font-size:13px;font-weight:600}.shortcut .tile{display:grid;place-items:center;width:49px;height:49px;border-radius:17px;background:linear-gradient(135deg,#ff7994,#ff245d);box-shadow:inset 0 1px 8px #fff3}.shortcut:nth-child(2) .tile{background:linear-gradient(135deg,#ff9680,#ff9a3e)}.shortcut:nth-child(3) .tile{background:linear-gradient(135deg,#9d9aff,#6652ff)}.shortcut:nth-child(4) .tile{background:linear-gradient(135deg,#ff79c6,#f421a0)}.shortcut:nth-child(5) .tile{background:linear-gradient(135deg,#ce8aff,#a629ff)}.tile .icon{width:27px;height:27px;stroke-width:2.5}.section{margin-bottom:25px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px}.section-title button,.section-title a{font-size:12px;color:#ccc4d0}.section-title button{min-height:30px}.poster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.poster{display:block;text-align:left;position:relative;min-width:0}.art{position:relative;aspect-ratio:2/3;border-radius:11px;overflow:hidden;background:#241b2c}.art img{width:100%;height:100%;object-fit:cover}.reference-poster{background-image:url('/assets/b-reference.png');background-size:381.06% 523.22%;background-position:7.28% 67.19%}.reference-poster.p2,.reference-poster.p5{background-position:46.9% 67.19%}.reference-poster.p3,.reference-poster.p6{background-position:86.1% 67.19%}.art .badge{position:absolute;top:0;right:0;background:#fc3a8a;padding:2px 6px;border-radius:0 8px 0 8px;font-size:10px;font-weight:700}.art .number{position:absolute;left:0;top:0;color:#301d00;background:#ffcb38;min-width:25px;text-align:center;border-radius:8px 0 7px 0;padding:2px;font-size:18px;font-weight:700}.poster:nth-child(2) .number{background:#8ba8ff;color:#fff}.poster:nth-child(3) .number{background:#ff815f;color:#fff}.poster-name{font-size:13px;font-weight:600;margin-top:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.poster-meta{font-size:11px;color:#b0a6b6;margin-top:3px}.bottom-tabs{position:fixed;z-index:40;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,460px);display:grid;grid-template-columns:repeat(5,1fr);background:#111015f0;border-top:1px solid var(--line);backdrop-filter:blur(14px);padding:7px 0 calc(7px + env(safe-area-inset-bottom));min-height:68px}.bottom-tabs a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:48px;font-size:11px;color:#aaa6af}.bottom-tabs .icon{width:25px;height:25px}.bottom-tabs a.active{color:var(--pink)}.bottom-tabs a.active .icon{fill:var(--pink);stroke:var(--pink)}.page-header{display:flex;gap:8px;align-items:center;padding:12px 10px;min-height:65px}.page-header h1{font-size:20px;flex:1}.chipbar{display:flex;gap:8px;overflow:auto;padding:4px 0 14px;scrollbar-width:none}.chip{padding:7px 15px;min-height:36px;background:#201a27;border-radius:20px;color:#c9bece;white-space:nowrap}.chip.active{background:linear-gradient(115deg,#fc4b9a,#d62c82);color:white}.chip.small{padding:5px 11px;min-height:32px;font-size:12px}.panel{padding:17px;border:1px solid var(--line);border-radius:14px;background:var(--panel);margin-bottom:14px}.empty{text-align:center;padding:40px 20px;color:var(--muted)}.empty .icon{width:44px;height:44px;color:#78677c;margin-bottom:14px}.empty p{margin:10px 0}.primary{background:linear-gradient(115deg,#ff4d9b,#ed237d);border-radius:24px;color:#fff;padding:10px 23px;font-weight:600}.secondary{background:#2c2334;border:1px solid #ffffff12;border-radius:24px;padding:10px 20px}.danger{color:#ff8e99}.row{display:flex;gap:12px;align-items:center}.row.spread{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:12px}.list-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.list-row .art{width:74px;flex-shrink:0}.list-row .text{flex:1;min-width:0}.list-row h3{margin-bottom:6px}.list-row .rank{font-size:22px;font-style:italic;color:#a899ad;width:24px;text-align:center}.list-row p{font-size:12px;color:var(--muted)}.detail-hero{display:flex;align-items:center;gap:19px;padding:10px 0 20px}.detail-hero .art{width:126px;flex-shrink:0}.detail-hero h1{font-size:22px;margin-bottom:10px}.detail-actions{display:flex;gap:10px;margin:12px 0 20px}.detail-actions .primary{flex:1}.description{line-height:1.9;color:#c4b9c9;font-size:14px}.episodes{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:14px 0}.episode{background:#241c2e;border-radius:9px;padding:10px 0;position:relative}.episode.active{background:var(--pink)}.episode small{font-size:9px;position:absolute;top:0;right:3px;color:#f5c77e}.profile{padding:23px 3px;display:flex;align-items:center;gap:15px}.avatar{height:64px;width:64px;border-radius:50%;background:linear-gradient(130deg,#f3b6d4,#63405f);display:grid;place-items:center;font-size:28px}.menu-link{min-height:55px;display:flex;align-items:center;gap:13px;padding:10px 0;border-bottom:1px solid var(--line)}.menu-link>.icon{color:#f77eb1}.menu-link span{flex:1}.gold{background:linear-gradient(120deg,#f3d5a0,#ba8d56);color:#3e2a17}.searchbox{display:flex;gap:8px;align-items:center}.searchbox input{background:#211a28;border-radius:25px}.searchbox button{padding:9px 14px}.form{display:flex;flex-direction:column;gap:14px}.form label{display:flex;flex-direction:column;gap:6px;color:#cbbfd1}.form .inline-label{flex-direction:row;align-items:center}.feedback-note{font-size:12px;color:#d6a6bd;line-height:1.7}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.settings-row select{width:auto;max-width:180px}.toggle{width:44px;height:26px;border-radius:15px;background:#514657;position:relative}.toggle:after{content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:#fff}.toggle.on{background:var(--pink)}.toggle.on:after{left:21px}.fullscreen{padding-bottom:0}.player{height:calc(100dvh - 68px);min-height:550px;position:relative;background:#050508;overflow:hidden;isolation:isolate}.player video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#08060a;z-index:-1}.player .backdrop{position:absolute;inset:0;opacity:.17;filter:blur(8px);background-size:cover;z-index:-2}.player-top{position:absolute;left:10px;right:10px;top:max(12px,env(safe-area-inset-top));display:flex;gap:5px;align-items:center;background:linear-gradient(#0006,transparent)}.player-top .chip{font-size:12px;background:#19111b99}.player-state{position:absolute;top:35%;left:20px;right:20px;text-align:center;pointer-events:none}.player-state>*{pointer-events:auto}.player-state p{margin:13px auto;max-width:260px}.player-state .icon{width:40px;height:40px}.player-side{position:absolute;right:10px;bottom:145px;display:flex;flex-direction:column;gap:12px}.player-side button{display:flex;align-items:center;flex-direction:column;gap:3px;font-size:11px;width:50px;text-shadow:0 1px 4px #000}.player-side .icon{width:29px;height:29px}.player-side .selected{color:var(--pink)}.player-bottom{position:absolute;left:16px;right:16px;bottom:16px;background:linear-gradient(transparent,#000b);padding-top:35px}.player-bottom h2{font-size:18px}.player-controls{display:flex;align-items:center;gap:5px}.player-controls input{padding:0;min-height:30px;accent-color:var(--pink);flex:1}.player-controls select{width:65px;padding:4px;min-height:32px;background:#201823}.player-progress{font-size:11px;color:#cdbbcf}.sheet-shade{position:fixed;inset:0;z-index:80;background:#0009;display:flex;align-items:flex-end;justify-content:center}.sheet{background:#1a1420;width:min(100%,460px);border-radius:22px 22px 0 0;padding:16px 20px calc(30px + env(safe-area-inset-bottom));max-height:85dvh;overflow:auto;box-shadow:0 -8px 80px #0006}.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.sheet-head button{font-size:25px}.sheet .episodes{grid-template-columns:repeat(5,1fr)}.comment{border-bottom:1px solid var(--line);padding:13px 0}.comment small{display:block;margin-bottom:6px}.comment-form{position:sticky;bottom:-30px;background:#1a1420;padding:12px 0;display:flex;gap:8px}.comment-form input{flex:1;min-width:0}.comment-form button{padding:8px 15px}.language-grid{display:grid;gap:10px}.language-grid button{padding:14px;text-align:left;background:#271e30;border-radius:12px}.language-grid button.active{color:#ff76b1;border:1px solid #fa358b}.tag{font-size:11px;padding:3px 7px;background:#ffffff0d;border-radius:5px}.divider{height:1px;background:var(--line);margin:17px 0}.text-link{color:#f87bad}.pull-note{font-size:11px;text-align:center;color:#8d7b94;margin:20px}.error{color:#ff9aa7}#toast{position:fixed;z-index:150;bottom:110px;left:50%;transform:translateX(-50%);max-width:85%;background:#f9f2fa;color:#26192d;box-shadow:0 5px 30px #0005;border-radius:25px;padding:10px 20px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .15s}#toast.visible{opacity:1}progress{width:100%;height:5px;accent-color:var(--pink)}.admin{min-height:100dvh;background:#0f1119;color:#ecedf3;display:grid;grid-template-columns:225px 1fr}.admin-sidebar{background:#151721;border-right:1px solid #ffffff0b;padding:25px 18px;position:fixed;top:0;bottom:0;width:225px;overflow:auto}.admin .brand{font-size:23px;margin-bottom:6px}.admin-subbrand{font-size:10px;color:#8d91a6;letter-spacing:2px;margin-bottom:27px}.admin-sidebar a{display:flex;align-items:center;gap:10px;padding:11px 14px;min-height:43px;color:#aeb1c4;border-radius:9px;font-size:13px}.admin-sidebar a.active{background:#fb358b17;color:#ff69a7}.admin-sidebar small{display:block;color:#646b85;font-size:10px;margin:22px 12px 5px}.admin-main{grid-column:2;min-width:0}.admin-top{height:76px;border-bottom:1px solid #ffffff0a;padding:0 30px;display:flex;justify-content:space-between;align-items:center;background:#12141e}.admin-top .tag{color:#91cebd;background:#24453c55}.admin-body{padding:28px 30px;max-width:1700px}.admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.admin-heading h1{font-size:25px;margin-bottom:5px}.admin-heading p{font-size:12px;color:#8c94ad}.admin .panel{background:#181b28;border-color:#ffffff09;border-radius:12px;padding:20px}.admin .primary{border-radius:9px;padding:9px 17px}.admin .secondary{border-radius:9px}.admin input,.admin textarea,.admin select{background:#121522;border-color:#ffffff15;border-radius:7px}.admin .muted{color:#9ca3bb}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:22px}.metric .metric-icon{color:#fe76af;background:#fb358b15;float:right;padding:10px;border-radius:12px}.metric p{color:#999fb7;font-size:12px}.metric strong{display:block;font-size:31px;margin-top:11px;font-weight:600}.metric small{color:#6ac7a3;font-size:11px}.admin-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.chart{height:190px;display:flex;align-items:flex-end;gap:16px;padding:25px 8px 15px;border-bottom:1px solid #ffffff12}.bar{flex:1;background:linear-gradient(#fa599c,#fb358b25);border-radius:5px 5px 0 0;min-height:3px}.admin table{width:100%;border-collapse:collapse;font-size:12px}.table-wrap{overflow:auto}.admin th{text-align:left;font-weight:500;color:#9ba2bb;background:#ffffff03;padding:12px}.admin td{padding:12px;border-bottom:1px solid #ffffff07;max-width:400px;overflow-wrap:anywhere}.admin td img{width:34px;height:46px;object-fit:cover;border-radius:4px}.admin td button{font-size:12px;min-height:32px;color:#ff78af;padding:5px 9px;border:1px solid #ffffff12;border-radius:6px}.status{border-radius:5px;padding:3px 7px;font-size:10px;background:#8f7f3c22;color:#e4cb76;white-space:nowrap}.status.published,.status.active,.status.approved,.status.succeeded{background:#33997722;color:#75d2ad}.status.unpublished,.status.banned,.status.rejected{background:#bb445522;color:#ee8999}.admin-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:20px}.admin-toolbar input{max-width:340px}.admin-login{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 25%,#3f183b,#10111b 60%)}.admin-login .panel{width:min(90%,420px);padding:35px}.admin-login .brand{margin-bottom:18px;justify-content:center}.admin .hint{background:#c4933020;border:1px solid #c4933040;color:#dec48e;padding:13px;border-radius:8px;font-size:12px;margin-bottom:20px}.admin .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.admin .form-grid .wide{grid-column:1/-1}.admin .switch-panel{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}.admin .switch-box{padding:22px;border-radius:12px;background:#121522;border:1px solid #ffffff13}.admin .switch-box p{color:#8f96b0;font-size:12px;min-height:45px;margin:8px 0}.admin .switch-box strong{font-size:14px}.admin .switch-box .toggle{margin-top:8px}.code{font-family:Consolas,monospace;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.admin .tree-level-2{padding-left:25px}.admin .tree-level-3{padding-left:50px}.admin-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.admin-tabs a{padding:8px 14px;border-radius:7px;background:#242738;font-size:12px}.admin-tabs a.active{background:#fb358b28;color:#ff7ab3}.admin-footer{margin-top:20px;color:#6f7892;font-size:11px}.admin .sheet-shade{align-items:center}.admin .sheet{width:min(90%,800px);border-radius:15px;background:#181b28}.admin .sheet-head{border-bottom:1px solid #ffffff10;padding-bottom:10px}.admin .sheet input{color:white}.comment-body{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:1050px){.admin{grid-template-columns:180px 1fr}.admin-sidebar{width:180px}.admin-body{padding:20px}.metrics{grid-template-columns:repeat(2,1fr)}.admin-grid{grid-template-columns:1fr}.admin .switch-panel{grid-template-columns:1fr}}@media(min-width:700px){body:has(.mobile){padding:18px 0}.mobile{min-height:calc(100dvh - 36px);border-radius:22px;outline:1px solid #ffffff0a}.bottom-tabs{bottom:18px;border-radius:0 0 22px 22px}.player{height:calc(100dvh - 104px)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.ad-overlay{position:absolute;z-index:10;top:70px;left:16px;right:16px;padding:12px;background:#201725dd;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.ad-overlay button:disabled{opacity:.5}
.admin-sidebar .brand em{font-size:11px;white-space:nowrap}.profile>div:last-child{min-width:0;overflow-wrap:anywhere}.player-controls:has([data-track]){flex-wrap:wrap}.player-controls select[data-track]{max-width:110px;width:auto}.player-controls input{min-width:70px}
