.pc-only,.pc-global-head,.pc-footer,.pc-watch-next{display:none}
@media(min-width:768px){
  body{
    --gutter:40px;--bg:var(--m3-bg);--panel:var(--m3-card);--surface:var(--m3-sheet);
    --line:var(--m3-outline);--ink:var(--m3-text);--muted:var(--m3-muted);
    --accent:var(--m3-primary);--accent-ink:var(--m3-on-primary);
    --pc-surface:#211b17;--pc-hover:#342a23;--pc-vip:#713700;
    min-height:100vh;font:400 15px/1.5 Roboto,"PingFang SC","Noto Sans SC",system-ui,sans-serif;
  }
  h1,h2,h3,.brand,.primary,.secondary,.text-button{font-weight:500;letter-spacing:0}
  h2{font-size:22px}
  .site-width,.top-inner,.pc-footer{width:min(1280px,100% - 80px)}
  .pc-only{display:revert}
  .pc-global-head{display:block;position:sticky;top:0;z-index:7}
  .pc-global-head .top{background:var(--pc-surface);border-color:#30251f}
  .pc-global-head .top-inner{min-height:64px;gap:clamp(16px,2.5vw,40px)}
  .pc-global-head .brand{font-size:26px;color:var(--m3-primary)}
  .pc-global-head .brand span{display:none}
  .desktop-nav{gap:5px;flex:none}
  .desktop-nav a{min-height:40px;padding:0 14px;border-radius:100px;display:flex;align-items:center;white-space:nowrap;font-weight:400}
  .desktop-nav a:hover{background:var(--m3-card)}
  .desktop-nav a[aria-current]{background:var(--m3-selection);color:var(--m3-primary)}
  .top-actions{min-width:0;gap:7px}
  .pc-global-head .search-button{min-width:0;width:clamp(108px,18vw,280px);border:0;border-radius:100px;background:var(--m3-card);min-height:40px;padding:0 14px}
  .pc-global-head .search-button span{display:block;white-space:nowrap}
  .pc-global-head .history-clock{display:none}
  .pc-global-head .history-star{display:block!important}
  .top-actions .m3-button{min-height:40px;white-space:nowrap}
  .pc-avatar{width:40px;height:40px;display:grid;place-items:center;color:var(--m3-primary);background:var(--m3-selection);border-radius:50%}
  .pc-footer{margin:36px auto 0;padding:24px 0 32px;display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--m3-outline);color:var(--m3-muted);font-size:13px}
  .pc-footer a:hover{text-decoration:underline}
  .home-chrome,.detail-mobile-header,.account-bar,.catalog-page>.m3-mobile-bar,.search-page>.m3-mobile-bar{display:none}
  .primary,.secondary{min-height:44px;border-radius:100px}
  .poster-grid,.find-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px}
  .poster-image,.find-card .poster-image{aspect-ratio:2/3;border-radius:12px}
  .find-card .poster-image img{height:100%;aspect-ratio:auto}
  .poster-card h3,.find-card h3{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:400}
  .m3-poster-grid .catalog-muted{display:block;color:var(--m3-muted)}
  .poster-play{background:var(--m3-primary);color:var(--m3-on-primary);width:40px;height:40px;transform:translateY(4px);transition:opacity .2s,transform .2s}
  :is(.poster-card,.find-card):is(:hover,:focus-visible) .poster-play{opacity:1;transform:none}
  :is(.poster-card,.find-card):is(:hover,:focus-visible) .poster-image img{transform:scale(1.04)}
  .home{display:flex;flex-direction:column;gap:24px;padding-top:28px}
  .home-sections{display:contents}
  .home-failed-content{display:none}
  .home-error{display:grid}
  .home-highlights{display:block;position:relative;min-width:0;order:0}
  .home-highlights>.section-head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .home-highlight-track{display:block;min-width:0}
  .home-highlight{display:grid;align-items:end;position:relative;isolation:isolate;overflow:hidden;min-height:420px;border-radius:20px;background:var(--m3-card)}
  .home-highlight-art{position:absolute;inset:0;z-index:-2}
  .home-highlight-art img{height:100%}
  .home-highlight::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#18120ff7 0%,#18120fce 34%,#18120f22 76%),linear-gradient(0deg,#18120fce,transparent 45%)}
  .home-highlight-copy{padding:36px 36px 58px;max-width:590px;pointer-events:none}
  .home-highlight-copy a{pointer-events:auto}
  .home-highlight-copy>span{font-size:13px;color:var(--m3-primary)}
  .home-highlight-copy h3{font-size:clamp(30px,3vw,40px);line-height:1.15;margin:8px 0;overflow-wrap:anywhere}
  .home-hero-synopsis{color:var(--m3-muted);margin-top:12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .home-hero-actions{display:flex;gap:10px;margin-top:20px}
  .home-hero-actions .m3-text-button{border:1px solid var(--m3-outline)}
  .home-hero-dots{display:flex;position:absolute;right:16px;bottom:8px;gap:0}
  .home-hero-dots button{min-width:32px;min-height:44px;display:grid;place-items:center;padding:0}
  .home-hero-dots button::before{content:"";width:8px;height:8px;background:#ece0da55;border-radius:8px}
  .home-hero-dots button[aria-pressed=true]::before{width:22px;background:var(--m3-primary)}
  .home-rail{order:1}
  .home-continue{background:var(--m3-card);padding:16px 20px;border-radius:16px;margin:0}
  .home-continue h2{font-size:18px}
  .home-continue .home-section-note{display:block;color:var(--m3-muted);margin:6px 0 8px}
  .home-continue .home-resume-link{display:inline-flex;margin-bottom:0}
  .home .resume{max-width:none;min-height:0;padding:7px 0;border:0;border-radius:9px;background:none;grid-template-columns:48px minmax(0,1fr) 24px;gap:10px}
  .home .resume:hover{background:var(--pc-hover)}
  .home .resume img{height:62px;border-radius:8px}
  .home .resume strong{font-weight:400}
  .home .resume-play{border:0;width:24px}
  .home .resume progress{width:100%;height:5px;accent-color:var(--m3-primary);margin-top:5px}
  .home-vip{display:grid;order:2;background:linear-gradient(125deg,var(--pc-vip),var(--m3-selection));align-content:start;padding:20px}
  .home-vip strong{font-size:19px}
  .home-vip .m3-button{justify-self:start;margin-top:6px}
  .home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));order:3;gap:12px}
  .home-shortcuts a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:56px;border-radius:16px;background:var(--pc-surface);color:var(--m3-primary)}
  .home-shortcuts svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .home-shortcuts a:hover{background:var(--m3-card)}
  .home .recommend{order:4;margin-top:7px}
  .detail>.back-link{margin-top:14px}
  .detail-hero{border:0;border-radius:18px}
  .detail-bg img{filter:blur(26px);opacity:.56;transform:scale(1.12)}
  .detail-bg::after{background:linear-gradient(0deg,var(--m3-bg),#18120f50)}
  .detail-inner{display:grid;grid-template-columns:clamp(180px,19vw,260px) minmax(0,1fr);gap:40px;padding:18px 0 28px;align-items:end}
  .detail-poster{width:100%;aspect-ratio:2/3;border:0;border-radius:16px}
  .detail-copy h1{font-size:clamp(29px,3.2vw,44px)}
  .detail-copy .synopsis{max-width:680px;font-size:15px;-webkit-line-clamp:4}
  .detail-copy .save{width:auto;min-height:44px;display:inline-flex;gap:8px;padding:0 14px;border-radius:100px}
  .detail-tags{display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:12px 0 0;list-style:none}
  .detail-tags li{padding:3px 9px;border-radius:7px;background:var(--m3-card);color:var(--m3-muted);font-size:13px}
  .detail-bottom{display:grid;grid-template-columns:1fr;gap:24px}
  .detail-bottom .episode-panel{padding:22px}
  .episode-panel .ranges{flex-wrap:wrap}
  .episode-panel .ranges button{min-height:36px;font-weight:500}
  .episode-panel .ranges button[aria-pressed=true]{background:var(--m3-selection);color:var(--m3-primary);border-color:transparent}
  .episode-panel .ranges button[aria-pressed=true]::before{content:'✓ ';margin-right:3px}
  .episode-grid a{position:relative;min-height:42px;border:0;background:var(--m3-sheet);color:var(--m3-text);font-weight:400}
  .episode-grid a.locked{background:#2a221d}
  .episode-grid a svg{position:absolute;top:4px;right:4px}
  .episode-grid a.current{background:var(--m3-primary);color:var(--m3-on-primary)}
  .detail-bottom .episode-grid{grid-template-columns:repeat(10,minmax(0,1fr))}
  .detail-bottom .similar .poster-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .catalog-content,.account-content{width:min(1280px,100% - 80px)}
  .catalog-content{padding-top:28px}
  .find-filters{display:none}
  .pc-find-tags{display:flex;align-items:baseline;gap:18px;padding:16px 18px;border-radius:16px;background:var(--pc-surface);color:var(--m3-muted)}
  .pc-find-tags>span{flex:none}
  .pc-find-tags>div{display:flex;flex-wrap:wrap;gap:8px}
  .pc-find-tags .m3-chip{min-height:36px}
  .rankings-page .catalog-content,.search-content{width:min(960px,100% - 80px)}
  .rank-list{grid-template-columns:1fr}
  .rank-number{font-size:26px}
  .search-content{padding-top:28px}
  .account-content{display:grid;grid-template-columns:clamp(230px,27vw,320px) minmax(0,1fr);gap:24px;padding-top:28px}
  .account-sidebar.pc-only{display:grid}
  .account-menu{display:grid;gap:4px;background:var(--m3-card);padding:8px;border-radius:16px}
  .account-menu a{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 12px;border-radius:11px}
  .account-menu a:is(:hover,[aria-current]){color:var(--m3-primary);background:var(--m3-selection)}
  .account-pc-title{font-size:28px}
  .account-mobile-purchases{display:none}
  .history-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .history-row:hover{background:var(--pc-hover)}
  .discover-feed{display:grid;width:min(960px,100% - 80px);margin:24px auto 0;max-height:calc(100dvh - 96px);overflow:auto;scroll-snap-type:y proximity;scrollbar-width:thin;gap:16px;padding:3px 5px 12px}
  .discover-slide{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);align-items:center;gap:20px;background:var(--m3-card);border-radius:16px;padding:14px;scroll-snap-align:start;min-width:0}
  .discover-art{aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--m3-sheet)}
  .discover-cover,.discover-art picture{display:block;width:100%;height:100%;object-fit:cover}
  .discover-copy{min-width:0;display:grid;gap:8px;align-content:center}
  .discover-kicker{color:var(--m3-primary);font-size:13px}
  .discover-copy h2{font-size:22px;line-height:1.22;overflow-wrap:anywhere}
  .discover-synopsis{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .discover-meta,.discover-hint{color:var(--m3-muted);font-size:12px}
  .discover-cta{justify-self:start}
  .discover-next{display:inline-flex;align-items:center;min-height:44px;color:var(--m3-primary)}
  .login-page .pc-global-head,.login-page .pc-footer{display:none}
  .login-page>.login-panel{width:min(440px,100% - 48px);margin:10vh auto;position:relative;z-index:1;background:var(--pc-surface);border-radius:24px;padding:16px 24px 24px}
  .login-background{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(3px) brightness(.42);pointer-events:none}
  .pc-login-dialog.m3-dialog, #watch-unlock.m3-dialog{width:min(440px,100% - 48px);max-height:90vh;border-radius:24px;padding:16px 24px 24px}
  .pc-login-dialog::backdrop{background:#120c08b8}
  .login-panel .m3-bar{background:transparent}
  .login-panel .m3-bar-inner{width:100%;flex-direction:row-reverse;min-height:48px}
  .login-panel .m3-bar h1{font-size:17px;padding-left:8px}
  .login-panel .login-content{padding:14px 0 0;width:100%}
  .login-panel .m3-field label{background:var(--pc-surface)}
  .pc-login-dialog .login-panel .m3-field label{background:var(--m3-sheet)}
  .login-steps{display:flex;gap:5px;margin:3px 8px 10px}
  .login-steps i{flex:1;height:4px;border-radius:4px;background:var(--m3-outline)}
  .login-steps .on{background:var(--m3-primary)}
}
@media(min-width:1024px){
  .poster-grid,.find-grid,.detail-bottom .similar .poster-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .home{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px 24px}
  .home-highlights{grid-area:1 / 1 / span 2;align-self:stretch}
  .home-highlight-track,.home-highlight{height:100%}
  .home-rail{grid-area:1 / 2}
  .home-vip{grid-area:2 / 2}
  .home-shortcuts,.home .recommend,.home .home-error,.home .m3-loading{grid-column:1 / -1}
  .detail-bottom .episode-grid{grid-template-columns:repeat(15,minmax(0,1fr))}
}
@media(max-width:767px){
  .detail-tags{display:flex;flex-wrap:wrap;gap:5px;list-style:none;padding:0;margin:5px 0 0;font-size:12px;color:var(--m3-muted)}
  .detail-tags li{padding:2px 6px;border-radius:4px;background:var(--m3-card)}
  .find-card .poster-image img,.discover-art picture{height:100%}
}
@media(min-width:768px){
  .watch-page{background:#0f0b09}
  .watch-mobile-header{display:block;background:#0f0b09}
  .watch-mobile-header .m3-bar-inner{width:min(1280px,100% - 80px)}
  .watch-mobile-header h1{font-size:18px}
  .watch-mobile-header .m3-bar-inner>.m3-icon:last-child{display:none}
  .watch-layout{max-width:none;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;padding-top:0}
  .watch-player{position:relative}
  .watch-page .stage{background:#000;border:0;border-radius:16px;width:100%;aspect-ratio:16/9;display:block}
  .watch-page .stage .screen,.watch-page .stage.landscape .screen{width:100%;height:100%;min-height:0;aspect-ratio:auto;background:#000}
  .watch-page .screen-top{display:none}
  .watch-page .screen video{background:#000}
  .watch-page .player-state .big-play{width:68px;height:68px;border:0;background:#000a}
  .watch-page .player-state{background:none}
  .watch-page .watch-mobile-controls{
    position:absolute;inset:auto 0 0;display:grid;gap:4px;padding:24px 14px 8px;
    border-radius:0 0 16px 16px;background:linear-gradient(0deg,#000e,transparent);z-index:2;
  }
  .watch-page .watch-locked-actions{display:none}
  .watch-time-row{display:flex;align-items:center;gap:4px;font-size:13px;color:#fff}
  .watch-time-row .m3-icon{width:42px;min-height:40px;font-size:20px}
  .watch-time-row output{font-variant-numeric:tabular-nums;white-space:nowrap}
  .watch-time-row .watch-volume{width:clamp(28px,6vw,64px);accent-color:var(--m3-primary);margin:0 4px 0 0}
  .watch-progress{display:block;width:100%;margin:0;accent-color:var(--m3-primary);height:24px}
  .watch-actions{display:flex;gap:4px;margin-left:auto}
  .watch-actions button{min-height:38px;border-radius:100px;background:#ffffff20;padding:0 11px;font-size:13px;white-space:nowrap}
  .watch-actions button:hover{background:#ffffff40}
  .watch-page .watch-caption{display:flex;align-items:flex-start;gap:20px;margin-top:20px}
  .watch-caption h1{font-size:25px}
  .watch-caption .synopsis{max-width:680px}
  .watch-caption .watch-share{border:1px solid var(--m3-outline);white-space:nowrap;flex:none}
  .watch-recommend{margin-top:28px}
  .watch-aside{display:flex;flex-direction:column;background:var(--pc-surface);padding:16px;border-radius:16px}
  .watch-aside-meta{order:1;color:var(--m3-muted);font-size:13px;margin-bottom:12px}
  .watch-aside .episode-panel{display:contents}
  .watch-aside .section-head{order:0}
  .watch-aside .section-head h2{font-size:20px}
  .watch-aside .section-head>span,.watch-aside .availability{display:none}
  .watch-aside .ranges{order:2}
  .watch-aside .episode-grid{order:3;grid-template-columns:repeat(6,minmax(0,1fr))}
  .watch-aside .next-episode{order:4;justify-content:center;margin-top:16px}
  .watch-page [data-pc-popup]{
    position:absolute;inset:auto 12px 62px auto;margin:0;width:min(232px,100% - 24px);border-radius:16px;padding:12px;z-index:6;
    box-shadow:0 8px 25px #0009;
  }
  .watch-page [data-pc-popup] .m3-dialog-handle{display:none}
  .watch-page [data-pc-popup] .dialog-head{margin:0}
  .watch-choice{display:flex;align-items:center;justify-content:space-between;min-height:36px;width:100%;text-align:left;border-radius:8px;padding:5px 10px}
  .watch-choice:is(:hover,[aria-pressed=true]){background:var(--m3-card);color:var(--m3-primary)}
  .watch-choice[aria-pressed=true]::after{content:"✓"}
  .pc-watch-next{display:grid;grid-template-columns:38px 1fr auto auto;align-items:center;gap:8px;position:absolute;z-index:4;right:12px;top:12px;width:min(340px,100% - 24px);padding:10px;background:#2b241ff2;border-radius:14px;color:var(--m3-text)}
  .pc-watch-next img{height:50px;border-radius:6px}
  .pc-watch-next p>*{display:block}
  .pc-watch-next p span{color:var(--m3-muted);font-size:12px}
  .pc-watch-next .m3-button,.pc-watch-next .m3-text-button{min-height:36px;white-space:nowrap;padding-inline:10px}
  #watch-unlock .m3-vip,#watch-unlock .m3-button{margin-top:10px}
  .watch-later{text-align:center}
  .watch-player:fullscreen{background:#000;display:grid;align-content:center}
  .watch-player:fullscreen .stage{height:100vh;aspect-ratio:auto}
}
@media(min-width:1024px){
  .watch-layout{grid-template-columns:minmax(0,1fr) 380px}
  .watch-aside{position:sticky;top:81px}
  .watch-recommend .poster-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(min-width:768px){
  .pc-login-dialog .pc-login-close{position:absolute;top:12px;right:16px;z-index:1}
  .pc-login-dialog .login-panel .m3-bar-inner{flex-direction:row;padding-right:42px}
  .pc-login-dialog .login-panel .m3-bar-inner>a[data-login-dismiss]{display:none}
  .pc-login-dialog .login-steps{margin-right:45px}
  .discover-feed{position:relative}
  .watch-toolbar-volume[aria-pressed=true]{color:var(--m3-primary)}
}
@media(max-width:767px){.pc-only{display:none!important}}
@media(min-width:768px){
  dialog.m3-confirm{width:min(440px,100% - 48px)}
}
@media(max-width:767px){
  .watch-actions [data-dialog="watch-speed"]{order:1}
}
