*,*::before,*::after{box-sizing:border-box}
:root{color-scheme:dark;--accent:#dedede;--text:#eeeeee;--muted:#888888;--ease:cubic-bezier(.22,1,.36,1)}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#000;color:var(--text);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
[hidden]{display:none!important}
svg{display:block}
#player{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:hidden;background:#000}
#player video{display:block;object-fit:contain}
.web-parser{display:block;border:0;width:100%;height:100%;background:#000}
.web-watermark{z-index:15;pointer-events:none}

/* Floating controls use the video's full canvas; there is no reserved toolbar. */
.routes{position:absolute;z-index:30;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));width:max-content;max-width:calc(100% - 16px);padding:10px 12px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(255,255,255,.02);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 4px 16px #0000001f,inset 0 1px 0 #ffffff09;text-shadow:0 1px 3px #0009}
.route-panel{max-height:min(42vh,260px);padding:7px;margin:-7px;overflow:auto;scrollbar-width:thin;scrollbar-color:#6664 transparent;animation:panel-reveal .32s var(--ease)}
.route-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.route-label{display:flex;gap:7px;align-items:center;white-space:nowrap;font-size:11px;color:#b9b9b9;letter-spacing:.06em}
.route-dot{display:block;width:5px;height:5px;flex-shrink:0;border-radius:50%;background:#e5e5e5;opacity:.8}
.route-options{display:flex;flex:1;flex-wrap:wrap;gap:5px;align-items:center;min-width:0}
.route-pill{position:relative;max-width:220px;min-height:30px;padding:5px 13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:1px solid #ffffff17;border-radius:999px;background:#ffffff05;color:#d3d3d3;font-size:12px;font-weight:500;line-height:18px;text-shadow:inherit;transition:background-color .14s ease-out}
.route-pill:hover{background-color:#ffffff10}
.route-pill.active{color:#f2f2f2;border-color:#ffffff38;background-color:#ffffff14;box-shadow:inset 0 1px 0 #ffffff09}
.route-pill.active:hover{background-color:#ffffff14}
.route-pill.active::before{content:"";display:inline-block;width:4px;height:4px;margin:0 6px 2px 0;border-radius:50%;background:#eeeeee;opacity:.8}
.route-pill.automatic{color:#b9b9b9}
.route-pill.automatic.active{color:#f2f2f2}
.route-actions{display:flex;align-items:center;gap:2px;margin-left:auto;padding-left:7px;border-left:1px solid #ffffff0d}
.route-icon{display:grid;place-items:center;width:28px;height:28px;padding:6px;border:0;border-radius:50%;background:transparent;color:#b9b9b9;transition:background-color .14s ease-out}
.route-icon:hover{background-color:#ffffff10}
.route-rate{display:flex;align-items:center;gap:5px;min-height:30px;padding:5px 9px;border:0;border-radius:999px;background:transparent;color:#c9c9c9;font-size:11px;white-space:nowrap}
.route-rate:hover,.route-rate[aria-expanded="true"]{background:#ffffff10;color:#fff}
.route-rate:disabled{opacity:.45;cursor:default}
.route-rate svg,.route-vote svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.route-rating-panel{width:520px;max-width:100%;margin:10px 0 0 auto;padding:10px 12px;border:1px solid #ffffff12;border-radius:14px;background:#11171de8;text-shadow:none}
.route-rating-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;color:#a8adb4;font-size:11px}
.route-rating-heading>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.route-rating-heading strong{font-weight:500;color:#e5e7eb}
.route-rating-heading .route-icon{width:24px;height:24px;padding:4px;flex-shrink:0}
.route-rating-list{max-height:min(32vh,260px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6665 transparent}
.route-rating-item{display:grid;grid-template-columns:minmax(0,1fr) 112px 112px;align-items:center;gap:8px;padding:7px 0;border-top:1px solid #ffffff0a}
.route-rating-item:first-child{border-top:0}
.route-rating-name{min-width:0;color:#cbd0d7;font-size:12px}
.route-rating-name>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rating-current{display:none;margin-top:3px;color:#83c9b8;font-size:9px;line-height:12px}
.route-rating-item.current .rating-current{display:block}
.route-vote{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:40px;flex:1;padding:9px 8px;border:1px solid #ffffff15;border-radius:10px;background:#ffffff05;color:#cfd3d9;font-size:12px;white-space:nowrap}
.route-vote strong{font-size:11px;font-weight:500;min-width:12px;overflow:hidden;text-overflow:ellipsis}
.route-vote:hover{background:#ffffff0c}
.route-vote[data-vote="1"][aria-pressed="true"]{color:#83e7cb;background:#27ba941a;border-color:#57d4b347}
.route-vote[data-vote="-1"][aria-pressed="true"]{color:#f0b49c;background:#d98b661a;border-color:#efa47c47}
.route-vote:disabled{opacity:.5;cursor:default}
.route-rating-status{min-height:15px;margin:9px 0 0;color:#929aa6;font-size:10px;line-height:15px;text-align:center}
.routes.rating-open{opacity:1}
.route-actions{flex-shrink:0}
@media(max-width:767px){.route-rate{min-height:32px;padding:5px 7px}.route-rating-panel{width:100%;padding:9px 10px}.route-rating-item{grid-template-columns:minmax(52px,1fr) minmax(0,1fr) minmax(0,1fr);gap:6px}.route-rating-name{font-size:11px}.route-vote{font-size:11px;padding:8px 5px;gap:5px}.route-vote svg{display:none}.route-vote{min-height:42px}}
@media(max-width:767px){.route-row{display:grid;grid-template-columns:minmax(0,1fr) auto}.route-label{grid-column:1;grid-row:1}.route-actions{grid-column:2;grid-row:1}.route-options{grid-column:1 / -1;grid-row:2}.routes.rating-open .route-panel{max-height:min(80vh,560px)}}
.route-icon svg,.route-trigger svg,.retry-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.route-tip{display:block;margin-top:8px;text-align:center;color:#a1a1a1;font-size:10px;letter-spacing:.02em}
.routes.collapsed{padding:0;border-radius:18px}
.route-trigger{display:flex;align-items:center;gap:8px;max-width:100%;min-height:32px;padding:6px 12px;border:0;border-radius:inherit;background:transparent;font-size:11px;color:#d3d3d3;line-height:18px;text-shadow:inherit}
#current-route{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
.route-trigger svg{width:12px;height:12px;color:#888}

/* Official React Bits shaders; custom ball settings and a softer display brightness. */
.notice{position:absolute;inset:0;z-index:20;display:grid;place-items:center;isolation:isolate;overflow:hidden;padding:32px;background:#000;text-align:center}
.loading-scene{position:absolute;inset:0;z-index:-1;overflow:hidden}
.loading-scene .molten-metal-container,.loading-crystal .crystalized-ball{position:relative;width:100%;height:100%;overflow:hidden}
.loading-scene canvas,.loading-crystal canvas{display:block;width:100%;height:100%}
.loading-effects-root{display:contents}
.film-loading{position:absolute;inset:0;z-index:0;pointer-events:none;text-align:left}
.film-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 22%;filter:blur(12px);transform:scale(1.06)}
.film-backdrop.is-poster-fallback{filter:blur(24px);transform:scale(1.08)}
.film-scrim{position:absolute;inset:0;background:linear-gradient(90deg,#000b,#0005),linear-gradient(0deg,#000b,transparent 55%)}
.film-info{position:absolute;top:max(90px,env(safe-area-inset-top));left:clamp(22px,4vw,48px);right:clamp(22px,4vw,48px);display:flex;align-items:flex-start;gap:clamp(14px,2vw,24px)}
.film-poster{flex:none;width:clamp(72px,12vw,136px);aspect-ratio:2/3;object-fit:cover;border-radius:5px;box-shadow:0 8px 30px #0006}
.film-copy{min-width:0;max-width:640px;padding-top:4px;color:#fff;text-shadow:0 2px 14px #0008}
#film-title{margin:0;font-size:clamp(20px,2.8vw,34px);font-weight:550;line-height:1.45;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#film-episode{margin:10px 0 0;font-size:clamp(12px,1.3vw,15px);line-height:1.6;color:#fffc;overflow-wrap:anywhere}
.notice.has-film .notice-content{z-index:1}
.notice.has-artwork .loading-scene{display:none}
.art-video-player #notice{z-index:80}.art-video-player #routes{z-index:90}.art-video-player #player-features{z-index:91}
@media(max-width:767px){.film-info{top:max(120px,calc(env(safe-area-inset-top) + 100px))}}
@media(max-height:420px){.film-info{top:96px;left:22px;right:22px}.film-poster{width:48px}#film-title{font-size:18px;-webkit-line-clamp:2}#film-episode{margin-top:6px;font-size:12px}}
.notice-content{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;max-width:640px;animation:content-reveal .65s var(--ease)}
.loading-emblem{position:relative;display:grid;place-items:center;width:148px;height:148px;margin-bottom:30px}
.loading-crystal{position:absolute;inset:0;filter:brightness(.62)}
.crystal-fallback{display:none;position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#F25BD0;stroke-width:1;opacity:.7}
.notice[data-loading-animation="crystal"][data-effects="fallback"][data-state="loading"] .crystal-fallback{display:block}
.emblem-error{display:none;width:76px;height:76px;fill:none;stroke:#d8d8d8;stroke-width:1.5;stroke-linecap:round}
.notice-copy{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%}
#status{display:block;max-width:100%;font-size:clamp(18px,2.1vw,24px);font-weight:500;line-height:1.55;letter-spacing:.06em;text-wrap:balance;overflow-wrap:anywhere}
.notice[data-state="loading"] #status{color:#c7c7c7;background:linear-gradient(115deg,#9b9b9b 20%,#f1f1f1 46%,#9b9b9b 72%);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:text-sheen 3s ease-in-out infinite}
.hint{display:block;font-size:12px;font-weight:400;line-height:1.7;color:#767676;letter-spacing:.08em}
.loading-beats{display:flex;gap:5px;align-items:center;margin-top:28px;height:3px}
.loading-beats i{display:block;width:18px;height:2px;border-radius:5px;background:#91c4b8;opacity:.18;animation:beat 1.8s ease-in-out infinite}
.loading-beats i:nth-child(2){animation-delay:.2s}.loading-beats i:nth-child(3){animation-delay:.4s}
.retry-button{display:flex;align-items:center;gap:8px;margin-top:26px;min-height:40px;padding:9px 20px;border:1px solid #ffffff21;border-radius:999px;background:#ffffff08;font-size:12px;color:#d4d4d4;transition:background .2s,border-color .2s}
.retry-button:hover{background:#ffffff10;border-color:#ffffff3d}
.notice[data-state="error"] .loading-crystal,.notice[data-state="error"] .loading-beats{display:none}
.notice[data-state="error"] .emblem-error{display:block}
.notice[data-state="error"] .loading-emblem{height:96px;margin-bottom:26px}
@keyframes text-sheen{0%{background-position:130% 0}100%{background-position:-110% 0}}
@keyframes beat{0%,60%,100%{opacity:.18;transform:scaleX(.85)}25%{opacity:.85;transform:scaleX(1)}}
@keyframes panel-reveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@keyframes content-reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(min-width:768px){.routes{top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:min(860px,calc(100% - 32px))}}
@media(max-width:767px){.routes{padding:9px 10px;border-radius:16px}.route-row{gap:7px}.route-pill{padding:5px 11px;min-height:32px;max-width:160px}.route-actions{padding-left:4px}.route-label{font-size:10px}.route-tip{font-size:10px}.notice{padding:28px}.loading-emblem{width:132px;height:132px;margin-bottom:26px}.emblem-error{width:70px;height:70px}}
@media(max-height:360px){.loading-emblem{width:100px;height:100px;margin-bottom:16px}.emblem-error{width:58px;height:58px}.notice-copy{gap:6px}.loading-beats{margin-top:16px}.notice{padding:20px}.route-panel{max-height:42vh}}
@media(max-width:600px){#player .art-control-volume,#player .art-control-pip,#player .art-control-fullscreenWeb{display:none!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.notice[data-state="loading"] #status{-webkit-text-fill-color:#d8d8d8;background:none}.loading-beats i{opacity:.5}}

/* Keep the top hit area available over cross-origin parser frames. */
.routes{transition:opacity .28s ease}
.routes.idle{opacity:0}

.player-features{position:absolute;inset:0;z-index:31;pointer-events:none;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
.online-badge{position:absolute;left:max(12px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top));display:flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:#c7c7c7;font-size:11px;line-height:16px;text-shadow:0 1px 3px #000;white-space:nowrap;pointer-events:none;transition:opacity .28s ease}
.online-badge strong{font:inherit;color:#ddd;font-variant-numeric:tabular-nums}
.player-features.routes-idle .online-badge{opacity:0}
.player-features.routes-hidden .online-badge{display:none}
@media(max-width:767px){.online-badge{top:var(--online-top,44px);font-size:10px;line-height:14px}}
.player-features.mobile-player .online-badge{left:var(--online-left,12px);top:var(--online-top,44px);font-size:10px;line-height:14px}
.player-features.desktop-player .online-badge{left:max(12px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top));font-size:11px;line-height:16px}
/* These buttons live inside the player's native bottom controls, never over the picture. */
.lx-player-control{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:36px;margin:0;padding:5px;border:0;border-radius:0;background:none;color:inherit;pointer-events:auto;touch-action:manipulation}
.lx-player-control svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lx-player-control span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.lx-player-control:hover{color:#fff}.lx-player-control.enabled,.cast-toggle[aria-pressed=true]{color:#9fe0c1}.cast-toggle:disabled{opacity:.45}
.player-features>.lx-player-control{display:none}
.art-controls-right .lx-control-slot{display:flex;align-items:center;width:34px;padding:0}
.skip-panel,.mobile-settings-panel{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(56px,calc(env(safe-area-inset-bottom) + 48px));width:268px;max-width:calc(100% - 24px);max-height:calc(100% - 72px);overflow:auto;padding:14px;border:1px solid #ffffff24;border-radius:14px;background:#151b24f2;box-shadow:0 8px 28px #0006;backdrop-filter:blur(12px);pointer-events:auto;color:#ddd;font-size:12px}
.skip-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.skip-heading strong{font-weight:500;font-size:13px}.skip-heading button{border:0;background:transparent;font-size:21px;color:#aaa;padding:0 4px}
.skip-panel form{display:grid;gap:12px}.skip-panel label{display:flex;align-items:center;justify-content:space-between;gap:12px}.skip-panel label span{display:flex;align-items:center;gap:7px}.skip-panel input[type=number]{width:80px;padding:6px 8px;background:#ffffff08;border:1px solid #ffffff25;border-radius:6px;color:#fff;font:inherit}.skip-panel .skip-switch{justify-content:flex-start;gap:7px}.skip-panel input[type=checkbox]{margin:0;accent-color:#84bfac}.skip-panel p{margin:0;color:#9ca6b5;font-size:11px}.skip-panel button[type=submit]{border:1px solid #ffffff25;border-radius:7px;background:#ffffff0b;font-size:12px;padding:8px}

.mobile-settings-panel{padding:12px;font-size:12px}
.mobile-settings-panel .skip-heading{margin-bottom:5px}
.mobile-rate-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px}
.mobile-rate-setting select{padding:4px 8px;border:1px solid #ffffff25;border-radius:5px;background:#242b34;color:#eee;font:inherit}
.mobile-settings-actions{display:grid;gap:2px;margin-top:4px}
.mobile-settings-actions .lx-player-control{width:100%;height:32px;min-height:32px;display:flex;justify-content:flex-start;gap:9px;padding:4px 0;font-size:12px;color:#ddd}
.mobile-settings-actions .lx-player-control svg{width:18px;height:18px;flex:none}
.mobile-settings-actions .lx-player-control span{position:static;width:auto;height:auto;clip:auto;margin:0;overflow:visible;white-space:normal}
.mobile-settings-actions .lx-player-control.enabled,.mobile-settings-actions .cast-toggle[aria-pressed=true]{color:#9fe0c1}

@media(min-width:768px){.routes.rating-open .route-panel{max-height:min(80vh,560px)}}

/* Compact route feedback: one label per column, clear counts and selected state. */
.route-rating-panel{width:400px;padding:16px;margin-top:12px;border-radius:18px;background:linear-gradient(145deg,#19202cf7,#10151ff7);border:1px solid #ffffff24;box-shadow:0 16px 48px #0005}
.route-rating-heading{margin-bottom:16px;font-size:14px;color:#f5f7fc}
.route-rating-heading strong{font-size:14px;font-weight:650;color:#f5f7fc;letter-spacing:.4px}
.route-rating-heading small{display:block;margin-top:5px;color:#a6adbd;font-size:11px}
.route-rating-heading .route-icon{width:32px;height:32px;border-radius:50%;background:#ffffff08;color:#c3cad6}
.rating-columns,.route-rating-item{display:grid;grid-template-columns:minmax(0,1fr) 76px 76px;gap:8px;align-items:center}
.rating-columns{padding:0 8px 8px;color:#a3adbd;font-size:11px}.rating-columns span:not(:first-child){text-align:center}.rating-columns span:nth-child(2){color:#8edac8}.rating-columns span:nth-child(3){color:#dcbaa7}
.route-rating-list{max-height:min(36vh,300px);padding-right:4px;scrollbar-color:#8390a244 transparent}
.route-rating-item{padding:6px 8px;border:0;border-radius:10px;min-height:49px;margin-bottom:3px;box-sizing:border-box}
.route-rating-item:nth-child(even){background:#ffffff03}.route-rating-item.current{background:#91b4ff0d;box-shadow:inset 2px 0 #a9c3ff}
.route-rating-name{font-size:12px;color:#e4e9f2;font-weight:550}.rating-current{color:#a9c3ff;font-size:10px;margin-top:2px}
.route-vote{min-height:36px;padding:6px 9px;gap:9px;border-radius:9px;border:1px solid transparent;background:#ffffff06;color:#b5bfce;transition:background .15s,color .15s,border-color .15s}
.route-vote>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.route-vote svg{display:block;width:15px;height:15px;stroke-width:1.7}.route-vote strong{font-size:13px;font-weight:650;min-width:17px;font-variant-numeric:tabular-nums}
.route-vote:hover{background:#ffffff12;color:#fff}.route-vote:focus-visible{outline:2px solid #b6cbff;outline-offset:2px}
.route-vote[data-vote="1"][aria-pressed="true"]{color:#9ff4d8;background:#38c89e20;border-color:#5bdbb74a}
.route-vote[data-vote="-1"][aria-pressed="true"]{color:#ffcaab;background:#ee9e7220;border-color:#efa47c4a}
.route-vote:disabled{opacity:.72}.route-rating-status{color:#9ba7bb;margin-top:12px;padding-top:10px;border-top:1px solid #ffffff0b;font-size:10px}
@media(max-width:767px){.route-rating-panel{padding:12px;width:100%;border-radius:14px}.rating-columns,.route-rating-item{grid-template-columns:minmax(0,1fr) 64px 64px;gap:6px}.route-rating-list{max-height:min(28vh,200px)}.route-vote{min-height:42px;padding:8px 6px;gap:7px}.route-vote svg{display:block}.route-rating-item{padding:3px 6px}.route-rating-heading{margin-bottom:12px}.route-rating-heading small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.route-vote{transition:none}}
@media(max-height:450px){.routes.rating-open .route-options{display:none}.routes.rating-open .route-panel{max-height:calc(100vh - 32px)}.route-rating-panel{margin-top:8px;padding:10px 12px}.route-rating-heading{margin-bottom:8px}.route-rating-heading small{display:none}.route-rating-list{max-height:max(44px,calc(100vh - 205px))}.route-rating-status{margin-top:6px;padding-top:6px}}
