@charset "UTF-8";
:root{color-scheme:dark;--canvas:#141015;--panel:#20181f;--soft:#2b2029;--line:#3d2c38;--ink:#f7f0ed;--muted:#c4b5bd;--wine:#a43551;--wine-hover:#bc4262;--rose:#efb2c1;--gold:#d7b98f;--bg:#141015;--surface:#20181f;--accent:#efb2c1;--focus:#d7b98f;--max:1360px;font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.6;scroll-behavior:smooth;scroll-padding-top:96px}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink)}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed}a,button,input{outline-offset:5px}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--gold)}::selection{background:#813149;color:#fff}input{caret-color:var(--rose)}h1,h2,h3,p{margin:0}button{color:inherit}svg{flex-shrink:0;vertical-align:middle}img{display:block}input{min-width:0}[hidden]{display:none!important}.wrap{width:min(calc(100% - 88px),var(--max));margin-inline:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link{position:fixed;left:16px;top:-90px;z-index:20;padding:12px;background:var(--wine)}.skip-link:focus{top:12px}
.age-notice{font-size:12px;color:var(--muted);background:#1b151b;border-bottom:1px solid #2a2027}.age-notice>.wrap{display:flex;align-items:center;justify-content:space-between;min-height:31px;gap:8px}.age-notice b{font-size:12px;color:var(--rose);padding:1px 5px;border:1px solid var(--rose);border-radius:3px;margin-right:8px}.age-notice a{text-decoration:underline;text-underline-offset:3px}.site-header{position:relative;z-index:3;background:var(--canvas);border-bottom:1px solid #2b2128}.header-inner{min-height:88px;display:flex;align-items:center;gap:32px}.brand{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}.brand>span{font-size:30px;font-weight:600;letter-spacing:.025em;white-space:nowrap}.desktop-nav{display:flex;gap:25px;align-items:center;white-space:nowrap}.desktop-nav a{font-size:16px;color:var(--muted);padding:31px 0;position:relative}.desktop-nav a:hover,.desktop-nav a[aria-current]{color:var(--ink)}.desktop-nav a[aria-current]:after{content:"";height:2px;background:var(--rose);position:absolute;bottom:20px;left:0;right:0}.header-search{margin-left:auto;display:flex;align-items:center;flex:1;max-width:320px;min-width:180px;background:#291e27;border:1px solid #402d3a;border-radius:28px;height:43px}.header-search input{width:100%;background:transparent;color:var(--ink);border:0;padding:10px 0 10px 18px;font-size:13px;outline-offset:0}.header-search input::placeholder{color:#bba6b2}.header-search button{border:0;background:none;color:var(--rose);padding:10px 15px}.header-saved{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px;color:var(--muted)}
.home-hero{overflow:hidden;background:linear-gradient(112deg,#261820 0%,#1b141b 42%,#281b25 100%);border-bottom:1px solid #32232d}.hero-layout{min-height:603px;display:grid;grid-template-columns:40% 60%;align-items:center;padding-block:45px}.hero-copy{position:relative;z-index:2;max-width:510px;padding-right:24px}.hero-copy h1{font-family:"Noto Serif CJK SC","Songti SC",SimSun,serif;font-size:clamp(38px,3.75vw,56px);font-weight:600;line-height:1.5;letter-spacing:.015em;text-wrap:balance}.hero-intro{margin-top:15px;color:var(--muted);font-size:15px;line-height:1.9}.mood-tabs{display:flex;gap:20px;margin:27px 0 24px;white-space:nowrap}.mood-tabs a{font-size:13px;color:var(--muted);padding-bottom:9px;border-bottom:1px solid transparent}.mood-tabs a:hover,.mood-tabs a[aria-current]{color:var(--rose);border-color:var(--rose)}.feature-copy{min-height:118px}.feature-genre{font-size:12px;color:var(--rose)}.feature-copy h2{font-size:26px;margin:4px 0 7px;font-weight:600;line-height:1.4}.feature-copy>p:last-child{color:var(--muted);font-size:14px;max-width:30ch}.hero-actions{display:flex;gap:12px;margin-top:21px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:11px 21px;border-radius:6px;font-size:14px;font-weight:500;border:1px solid transparent;transition:background .2s ease,color .2s ease}.button.primary{background:var(--wine);color:#fff}.button.primary:hover{background:var(--wine-hover)}.button.quiet{background:#30212d;border-color:#503342;color:#f2dce4}.button.quiet:hover{background:#412b38}.button.is-saved{color:var(--rose);background:#3d2633}.hero-stage{height:500px;position:relative;min-width:0}.poster-deck{position:absolute;inset:0}.hero-poster{position:absolute;display:block;width:38%;aspect-ratio:2/3;border-radius:10px;overflow:hidden;box-shadow:0 18px 32px #0006;transition:transform .65s cubic-bezier(.2,.7,.2,1),left .65s cubic-bezier(.2,.7,.2,1),top .65s ease;top:30px;left:32%;background:var(--panel)}.hero-poster.position-0{left:32%;top:5px;z-index:2;transform:scale(1.03)}.hero-poster.position-1{left:65%;top:69px;z-index:1;transform:rotate(5deg) scale(.83)}.hero-poster.position-2{left:1%;top:69px;z-index:1;transform:rotate(-5deg) scale(.83)}.art{aspect-ratio:2/3;width:100%;background-color:#30242c}
/* v40l9: only the sprite classes reference the 2.4MB posters.png (custom covers never download it) */
.art-0,.art-1,.art-2,.art-3,.art-4,.art-5{background-image:url('/assets/posters.png');background-repeat:no-repeat;background-size:300% 200%}.art-0{background-position:0 0}.art-1{background-position:50% 0}.art-2{background-position:100% 0}.art-3{background-position:0 100%}.art-4{background-position:50% 100%}.art-5{background-position:100% 100%}.hero-poster-caption{position:absolute;bottom:0;left:0;right:0;padding:38px 17px 19px;background:linear-gradient(transparent,#160f17 64%)}.hero-poster-caption>span{font-size:12px;color:#d6bcc8;display:block;margin-bottom:4px}.hero-poster-caption strong{font-size:20px;font-weight:500}.carousel-controls{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:16px;align-items:center}.carousel-dots{display:flex;gap:8px}.carousel-dots button{border:0;background:#70545f;border-radius:4px;padding:0;width:20px;height:4px;position:relative}.carousel-dots button:before{content:"";position:absolute;inset:-11px -2px}.carousel-dots button[aria-pressed=true]{background:var(--rose);width:36px}.carousel-pause{background:transparent;border:0;width:30px;height:30px;color:var(--muted);display:grid;place-items:center}.carousel-pause svg{width:14px}.carousel-pause.paused{color:var(--rose)}
.quick-find{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);padding-block:27px;margin-top:4px}.quick-find>a{position:relative;padding:2px 32px;border-right:1px solid var(--line)}.quick-find>a:first-child{padding-left:0}.quick-find>a:last-child{border:0}.quick-find strong{font-size:20px;font-weight:500;display:block}.quick-find span{font-size:12px;color:var(--muted);display:block;margin-top:5px}.quick-find svg{position:absolute;right:24px;top:15px;color:var(--rose)}.shelf{margin:48px 0 58px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.section-title h2{font-size:24px;font-weight:600;letter-spacing:.01em;line-height:1.5}.section-title>div>p{font-size:13px;color:var(--muted);margin-top:7px}.section-title>a{display:flex;align-items:center;gap:8px;color:var(--rose);font-size:13px;white-space:nowrap}.section-title>span{font-size:12px;color:var(--muted)}.section-title svg{width:16px}.work-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:29px 21px}.work-card{position:relative;min-width:0}.cover-link{display:block;aspect-ratio:2/3;overflow:hidden;border-radius:8px;position:relative;background:var(--panel)}.cover-link>.art{transition:transform .4s ease}.cover-link:hover>.art{transform:scale(1.035)}.card-kind{position:absolute;left:9px;top:9px;background:#24141fcc;color:#fff2f5;padding:2px 7px;font-size:12px;border-radius:3px}.cover-action{position:absolute;left:0;right:0;bottom:0;padding:35px 12px 14px;display:flex;justify-content:center;align-items:center;gap:8px;background:linear-gradient(transparent,#120c14db);font-size:12px;opacity:0;transition:opacity .2s}.cover-link:hover .cover-action,.cover-link:focus-visible .cover-action{opacity:1}.save-icon{position:absolute;right:7px;top:7px;display:grid;place-items:center;width:32px;height:32px;background:#1e151dbf;color:#fff;border:0;border-radius:50%}.save-icon svg{width:16px;height:16px}.save-icon.is-saved{color:var(--rose);background:#4b2639}.card-title{display:block;margin-top:12px;font-size:15px;font-weight:500;line-height:1.5}.card-title:hover{color:var(--rose)}.work-card>p{font-size:12px;color:var(--muted);margin-top:7px}.work-card>p>span{padding:0 6px}.genre-shelf{margin-bottom:50px}.genre-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#211820;border-radius:8px;padding:27px 10px}.genre-grid>a{padding:0 22px;border-right:1px solid var(--line);position:relative}.genre-grid>a:last-child{border:0}.genre-grid h3{font-size:18px;font-weight:500}.genre-grid p{font-size:12px;color:var(--muted);margin-top:6px}.genre-grid svg{position:absolute;right:15px;top:6px;color:var(--rose);width:16px}
.site-footer{border-top:1px solid var(--line);padding:46px 0 23px;margin-top:64px;background:#171217}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:50px}.footer-grid h2{font-size:14px;font-weight:500;margin:0 0 17px;color:#e9d6df}.footer-grid>div>a:not(.brand){display:block;margin:10px 0;font-size:12px;color:var(--muted)}.footer-grid a:hover{color:var(--rose)}.footer-brand .brand>span{font-size:24px}.footer-brand p{font-size:12px;color:var(--muted);margin-top:15px}.footer-brand .footer-brand-intro{margin-top:12px;font-size:13px;line-height:1.75;color:#e9d6df;max-width:42ch}.footer-brand .fine-print{margin-top:8px}.footer-bottom{display:flex;gap:25px;justify-content:space-between;align-items:flex-start;padding-top:25px;margin-top:35px;border-top:1px solid #30232c;font-size:12px;line-height:1.8;color:#b8a7b0}.footer-bottom>span:nth-child(2){max-width:60ch}.mobile-nav{display:none}.toast{position:fixed;bottom:32px;left:50%;transform:translate(-50%,10px);background:#f2e7eb;color:#3c2231;border-radius:6px;padding:11px 22px;font-size:13px;z-index:15;max-width:calc(100vw - 40px);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}
.page-content{padding-top:32px;padding-bottom:35px;min-height:55vh}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin:9px 0 28px;gap:20px}.page-heading h1{font-size:32px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.page-heading p{font-size:14px;color:var(--muted);margin-top:8px}.page-heading>span{font-size:13px;color:var(--muted);white-space:nowrap}.discover-search{display:flex;gap:12px;max-width:700px;margin-bottom:28px}.discover-search input{flex:1;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:10px 15px;color:var(--ink);font-size:14px}.discover-search input::placeholder{color:var(--muted)}.filters{margin-bottom:28px}.filters nav{display:flex;gap:10px;flex-wrap:wrap;margin:13px 0}.filters nav a{padding:6px 16px;font-size:13px;border-radius:5px;color:var(--muted);min-height:36px}.filters nav a[aria-current]{background:#4b2638;color:#ffd8e4}.filters nav a:hover{background:#30202b;color:var(--ink)}.sort-row{border-top:1px solid var(--line);margin-top:23px;padding-top:19px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.sort-row a{color:var(--rose)}.empty-state{text-align:center;padding:72px 20px;max-width:800px;margin:0 auto}.empty-state h2,.empty-state h1{font-size:25px;font-weight:500;line-height:1.6}.empty-state p{font-size:14px;color:var(--muted);margin:13px auto 25px;max-width:40ch}.breadcrumbs{display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-bottom:28px}.breadcrumbs a:hover{color:var(--rose)}.detail-hero{display:grid;grid-template-columns:260px minmax(0,1fr);gap:48px;align-items:center;padding-bottom:43px;border-bottom:1px solid var(--line)}.detail-cover{border-radius:10px;overflow:hidden}.detail-copy{max-width:780px}.tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--rose)}.tags>*{padding:3px 9px;background:#30212c;border-radius:3px}.detail-copy h1{font-size:44px;line-height:1.4;margin:18px 0 12px;font-weight:600}.detail-tagline{font-size:18px;color:#e5c4d0;margin:0 0 20px}.synopsis{font-size:14px;line-height:2;color:var(--muted);max-width:65ch}.detail-actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}.story-keywords{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px}.story-keywords>a{color:var(--rose)}.episodes{margin-top:34px}.episode-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:10px;max-width:900px}.episode-grid a,.episode-grid button{height:43px;background:#2c202a;border:1px solid #45303e;border-radius:5px;font-size:14px;display:flex;align-items:center;justify-content:center;gap:4px}.episode-grid a:hover,.episode-grid a[aria-current]{background:var(--wine);border-color:var(--wine)}.episode-grid button:disabled{background:#1d171d;color:#a3949e;border-color:#30252e}.episode-grid svg{width:13px}.episode-note{font-size:12px;color:var(--muted);margin-top:15px;line-height:1.8}.watch-content{padding-top:24px}.watch-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:36px;align-items:start}.player-panel{border-radius:8px;overflow:hidden;background:#09080a}.video-frame{height:min(680px,calc(100vh - 220px));min-height:380px;position:relative;display:grid;place-items:center}.video-frame video{width:100%;height:100%;max-height:680px;background:#080709}.player-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#0c090d}.player-cover>.art{height:100%;width:auto;aspect-ratio:2/3;opacity:.5}.play-trigger{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:72px;height:72px;border-radius:50%;border:1px solid #e3b6c6;background:#6c2d46d9;display:grid;place-items:center;color:white}.play-trigger svg{width:30px;height:30px;margin-left:5px}.player-cover>span{position:absolute;top:calc(50% + 53px);font-size:12px}.player-toolbar{padding:13px 17px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;font-size:12px}.player-toolbar button{font-size:12px;background:#402433;border:0;border-radius:4px;padding:5px 10px}.watch-sidebar h1{font-size:29px;font-weight:500;margin-top:14px;line-height:1.5}.watch-episode{font-size:14px;color:var(--rose);margin:4px 0 15px}.watch-sidebar .synopsis{font-size:13px;margin-bottom:23px}.watch-sidebar .episodes{padding-top:23px;border-top:1px solid var(--line);margin-top:24px}.watch-sidebar .section-title{display:block;margin-bottom:16px}.watch-sidebar .section-title h2{font-size:18px}.watch-sidebar .section-title span{display:block;margin-top:5px;color:var(--muted);font-size:12px}.watch-sidebar .episode-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.episode-step{display:flex;justify-content:space-between;gap:10px;margin:25px 0 20px;font-size:12px}.episode-step>a{color:var(--rose)}.episode-step>span{color:var(--muted)}.episode-step svg{width:15px}.back-detail{display:inline-flex;align-items:center;gap:10px;font-size:12px;color:var(--rose)}.prose{max-width:850px}.prose h1{font-size:36px;margin:32px 0 26px;line-height:1.6}.prose h2{font-size:22px;margin:35px 0 12px}.prose p{color:var(--muted);line-height:2;font-size:15px;margin:15px 0}.prose button{margin-top:20px}.text-link{font-size:13px;color:var(--rose)}.text-button{border:0;background:none;color:var(--rose);font-size:12px;padding:6px 0}.history-section{margin-bottom:40px}.history-section [data-history]{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.history-link{padding:18px 20px;background:var(--panel);border-radius:6px}.history-link strong{display:block;font-weight:500;font-size:15px}.history-link span{display:block;font-size:12px;color:var(--muted);margin-top:6px}
@media(min-width:1001px){.shelf:has(.work-grid>:nth-child(3):last-child) .work-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.shelf:has(.work-grid>:nth-child(3):last-child) .work-card{display:grid;grid-template-columns:125px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:18px}.shelf:has(.work-grid>:nth-child(3):last-child) .cover-link{grid-row:1/3}.shelf:has(.work-grid>:nth-child(3):last-child) .save-icon{right:auto;left:86px}.shelf:has(.work-grid>:nth-child(3):last-child) .card-title{margin-top:17px;line-height:1.8;font-size:16px}.shelf:has(.work-grid>:nth-child(3):last-child) .work-card>p{line-height:2}.shelf:has(.work-grid>:nth-child(3):last-child) .card-kind{font-size:12px;left:5px;top:auto;bottom:5px}}
@media(max-width:1200px){.header-inner{gap:16px}.desktop-nav{gap:12px}.brand>span{font-size:27px}.brand img{width:40px;height:40px}.hero-layout{grid-template-columns:43% 57%;min-height:560px}.hero-stage{height:440px}.hero-poster-caption strong{font-size:17px}.mood-tabs{gap:14px}.hero-copy h1{font-size:46px}.hero-poster{top:35px}.hero-poster.position-0{top:40px}.hero-poster.position-1,.hero-poster.position-2{top:90px}.work-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.watch-layout{grid-template-columns:minmax(0,1fr) 330px;gap:26px}}
@media(max-width:900px){.wrap{width:calc(100% - 48px)}.desktop-nav{display:none}.header-search{max-width:none}.hero-layout{grid-template-columns:46% 54%;min-height:520px}.hero-copy h1{font-size:39px}.hero-stage{height:390px}.hero-poster{width:45%}.hero-poster.position-0{left:28%;top:40px}.hero-poster.position-1{left:60%;top:90px}.hero-poster.position-2{left:0%;top:90px}.mood-tabs{gap:11px}.mood-tabs a{font-size:12px}.hero-intro{font-size:13px}.feature-copy h2{font-size:23px}.hero-actions .button{font-size:12px;padding:10px 14px}.quick-find>a{padding-inline:20px}.quick-find strong{font-size:18px}.quick-find span{max-width:18ch}.quick-find svg{right:15px;top:6px;width:16px}.genre-grid{grid-template-columns:repeat(2,1fr);row-gap:24px}.genre-grid>a:nth-child(2){border:0}.footer-grid{gap:25px;grid-template-columns:1.6fr 1fr 1fr 1fr}.detail-hero{grid-template-columns:215px minmax(0,1fr);gap:30px}.detail-copy h1{font-size:34px}.detail-tagline{font-size:16px}.watch-layout{grid-template-columns:minmax(0,1fr) 280px;gap:22px}.watch-sidebar h1{font-size:24px}.watch-sidebar .episode-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.video-frame{height:570px}.work-grid{gap:25px 16px}}
@media(max-width:650px){:root{font-size:15px;scroll-padding-top:15px}.wrap{width:calc(100% - 36px)}body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}.age-notice{font-size:12px}.age-notice>.wrap{min-height:28px;gap:4px}.age-notice b{font-size:12px;margin-right:4px}.header-inner{min-height:77px;gap:14px;flex-wrap:wrap;padding:15px 0 14px}.brand img{width:34px;height:34px}.brand>span{font-size:24px}.brand{gap:8px}.header-search{order:3;max-width:none;flex-basis:100%;height:39px}.header-search input{font-size:12px}.header-search button{padding:8px 13px}.header-saved{margin-left:auto}.header-saved span{display:none}.header-saved svg{width:20px}.hero-layout{display:flex;flex-direction:column;align-items:stretch;padding-block:25px 20px;gap:10px;min-height:0}.hero-copy{max-width:none;padding:0}.hero-copy h1{font-size:31px;line-height:1.55;letter-spacing:.025em}.hero-copy h1 br{display:none}.hero-intro{font-size:12px;margin-top:6px;line-height:1.8}.mood-tabs{margin:18px 0 14px;gap:0;justify-content:space-between;max-width:370px}.mood-tabs a{font-size:12px;min-height:32px}.feature-copy{min-height:88px}.feature-copy h2{font-size:23px;margin-block:4px}.feature-copy>p:last-child{font-size:12px;max-width:none}.feature-genre{font-size:12px}.hero-actions{margin-top:8px}.hero-actions .button{min-height:41px;padding:9px 17px;font-size:12px}.hero-stage{height:335px;order:2;margin-top:5px;max-width:440px;width:100%;align-self:center}.hero-poster{width:44%;border-radius:7px}.hero-poster.position-0{left:28%;top:12px;transform:scale(1)}.hero-poster.position-1{left:59%;top:41px;transform:rotate(5deg) scale(.8)}.hero-poster.position-2{left:-3%;top:41px;transform:rotate(-5deg) scale(.8)}.hero-poster-caption{padding:25px 11px 13px}.hero-poster-caption strong{font-size:16px}.hero-poster-caption>span{font-size:12px}.carousel-controls{bottom:3px}.carousel-dots button{height:3px}.carousel-pause{width:26px;height:26px}.quick-find{padding:19px 0;grid-template-columns:repeat(2,minmax(0,1fr))}.quick-find>a{padding-inline:16px}.quick-find>a:nth-child(2){border:0}.quick-find>a:last-child{display:none}.quick-find strong{font-size:17px}.quick-find span{font-size:12px;max-width:18ch}.quick-find svg{width:15px;right:6px}.shelf{margin:32px 0 38px}.section-title{gap:12px;margin-bottom:17px;align-items:baseline}.section-title h2{font-size:21px;line-height:1.5}.section-title>div>p{font-size:12px;margin-top:6px;max-width:27ch}.section-title>a{font-size:12px;gap:4px}.section-title svg{width:14px}.work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.card-title{font-size:14px;margin-top:9px}.work-card>p{font-size:12px;line-height:1.7;margin-top:5px}.card-kind{font-size:12px;left:7px;top:7px;padding:2px 5px}.save-icon{width:30px;height:30px;right:5px;top:5px}.cover-action{display:none}.genre-shelf{margin-bottom:33px}.genre-grid{padding:20px 0;row-gap:22px}.genre-grid>a{padding:0 14px}.genre-grid h3{font-size:16px}.genre-grid p{font-size:12px;max-width:14ch;margin-top:5px}.genre-grid svg{width:14px;right:10px;top:4px}.site-footer{margin-top:37px;padding-top:30px}.footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:29px 16px}.footer-brand{grid-column:1/-1;padding-bottom:23px;border-bottom:1px solid var(--line)}.footer-brand .brand>span{font-size:24px}.footer-brand p{font-size:12px;margin-top:11px}.footer-brand .fine-print{font-size:12px}.footer-grid h2{font-size:12px;margin-bottom:14px}.footer-grid>div>a:not(.brand){font-size:12px;margin-block:11px}.footer-bottom{flex-wrap:wrap;font-size:12px;gap:12px;margin-top:25px;padding-top:20px}.footer-bottom>span:nth-child(2){order:3;width:100%;max-width:none}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:#20171f;border-top:1px solid #48313f;display:grid;grid-template-columns:repeat(5,1fr);padding-bottom:env(safe-area-inset-bottom,0px);z-index:9;min-height:calc(58px + env(safe-area-inset-bottom,0px))}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:58px;font-size:12px;color:var(--muted)}.mobile-nav svg{width:20px;height:20px}.mobile-nav a[aria-current]{color:var(--rose)}.toast{bottom:calc(75px + env(safe-area-inset-bottom,0px));width:max-content;font-size:12px}.page-content{padding-top:23px;padding-bottom:20px}.page-heading{margin:0 0 23px;align-items:start}.page-heading h1{font-size:26px}.page-heading p{font-size:12px;line-height:1.8;max-width:28ch}.page-heading>span{font-size:12px;margin-top:11px}.discover-search{gap:8px;margin-bottom:23px}.discover-search input{padding:10px 12px;font-size:12px}.discover-search .button{padding:10px 13px;font-size:12px;min-height:43px;gap:5px}.discover-search .button svg{width:15px}.filters nav{gap:6px;margin:10px 0}.filters nav a{font-size:12px;padding:7px 11px;min-height:34px}.sort-row{font-size:12px;margin-top:18px;padding-top:15px}.empty-state{padding:55px 8px}.empty-state h2,.empty-state h1{font-size:21px}.empty-state p{font-size:12px}.breadcrumbs{font-size:12px;gap:8px;margin-bottom:20px}.detail-hero{grid-template-columns:110px minmax(0,1fr);gap:18px;align-items:start;padding-bottom:25px;position:relative}.detail-cover{border-radius:6px}.detail-copy{display:contents}.detail-copy>.tags{grid-column:2;grid-row:1;align-self:start;gap:5px;padding-top:1px}.tags{font-size:12px}.tags>*{padding:2px 5px}.detail-copy h1{grid-column:2;grid-row:1;align-self:start;margin-top:60px;font-size:26px;line-height:1.5;overflow-wrap:anywhere}.detail-copy .detail-tagline{grid-column:1/-1;font-size:16px;line-height:1.8;margin:0}.detail-copy .synopsis{grid-column:1/-1;font-size:13px;line-height:2}.detail-actions{grid-column:1/-1;margin:5px 0;gap:10px}.detail-actions .button{flex:1;padding-inline:10px;font-size:12px;min-height:44px;gap:6px}.story-keywords{grid-column:1/-1;font-size:12px;gap:10px;line-height:1.9}.episodes{margin-top:25px}.episodes .section-title{display:block}.episodes .section-title>span{font-size:12px;display:block;margin-top:6px}.episode-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.episode-grid a,.episode-grid button{height:42px;font-size:12px}.episode-note{font-size:12px;line-height:1.9;margin-top:12px}.watch-content{padding-top:17px}.watch-layout{display:block}.video-frame{height:calc((100vw - 36px)*1.48);min-height:350px;max-height:620px}.video-frame video{max-height:620px}.player-cover>.art{height:100%;width:100%;aspect-ratio:2/3}.play-trigger{width:64px;height:64px}.player-toolbar{padding:12px;font-size:12px}.watch-sidebar{margin-top:23px}.watch-sidebar h1{font-size:25px;margin-top:12px}.watch-sidebar .synopsis{font-size:12px;margin-bottom:17px}.watch-sidebar .episode-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.watch-episode{font-size:12px}.watch-sidebar .episodes{margin-top:23px;padding-top:22px}.watch-sidebar .section-title h2{font-size:19px}.prose h1{font-size:27px;margin:24px 0 22px}.prose h2{font-size:20px;margin-top:28px}.prose p{font-size:13px}.history-section [data-history]{grid-template-columns:1fr}.history-section{margin-bottom:30px}.history-link{padding:14px 16px}.history-link strong{font-size:14px}.history-link span{font-size:12px}}
@media(max-width:360px){.wrap{width:calc(100% - 28px)}.hero-copy h1{font-size:27px}.hero-stage{height:290px}.hero-poster-caption strong{font-size:14px}.hero-poster-caption>span{font-size:12px}.feature-copy h2{font-size:22px}.mood-tabs a{font-size:12px}.genre-grid svg{display:none}.genre-grid p{max-width:13ch}.work-grid{gap:22px 12px}.card-title{font-size:13px}.work-card>p{font-size:12px}.detail-copy h1{font-size:23px}.video-frame{height:calc((100vw - 28px)*1.48)}.header-inner{gap:10px}.page-heading h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Final legibility pass: apply the same reading floor to legal and functional copy. */
.age-notice{padding-block:4px}.hero-poster.position-1 .hero-poster-caption{padding-left:25px}.home-hero{padding-bottom:8px}
.art.custom-art{background:none;position:relative}.custom-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.art.no-art{background:#35232f;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;color:#e4c3d2}.hero-backdrop{position:absolute;inset:0;opacity:.2;pointer-events:none;overflow:hidden}.hero-backdrop img{width:100%;height:100%;object-fit:cover;filter:blur(14px);transform:scale(1.08)}.home-hero{position:relative}.hero-layout{position:relative;z-index:1}

/* Keep the player sound control above the mobile navigation on the first screen. */
@media(max-width:680px){.watch-page .video-frame{min-height:240px;max-height:min(620px,calc(100svh - 340px))}.watch-page .video-frame video{max-height:100%}}

.carousel-pause{width:44px;height:44px}
.filters nav a{min-height:44px;display:inline-flex;align-items:center}
.player-toolbar .episode-note{margin-top:8px}
@media(max-width:650px){
.header-search{height:44px}
.age-notice>.wrap{min-height:44px}
.filters nav a{min-height:44px}
.discover-search input,.header-search input{min-height:44px}
}
.gate-page{min-height:100vh;display:grid;place-items:center;padding:24px}.gate-card{width:min(440px,100%);background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:28px}.gate-card h1{font-size:32px;margin:8px 0}.gate-card p{color:var(--muted)}.gate-card form{margin:18px 0}.report-form{display:grid;gap:12px;max-width:640px;margin-top:18px}.report-form input,.report-form select,.report-form textarea{width:100%;min-height:44px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:10px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* v23: touch targets, player states and end card. Visual sizes stay close to v22; hit areas grow to 44px on touch/narrow screens. */
.player-loading{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;background:#0c090d66}
.player-loading[hidden]{display:none}
.player-loading:before{content:"";width:44px;height:44px;border-radius:50%;border:3px solid #ffffff33;border-top-color:var(--rose);animation:tx-spin .9s linear infinite}
@keyframes tx-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.player-loading:before{animation:none;border-color:var(--rose)}}
.player-end{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#0c090dd9;text-align:center;padding:24px}
.player-end[hidden]{display:none}
.player-end p{color:var(--ink);font-size:16px}
.player-end .end-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.player-toolbar button,.player-toolbar .button{min-height:44px;min-width:44px;padding:8px 14px;color:var(--ink)}
.player-toolbar [data-retry]{background:var(--wine);color:#fff}
.gate-page .gate-card a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:900px),(pointer:coarse){
 .age-notice a{display:inline-flex;align-items:center;min-height:44px;padding-inline:6px}
 .age-notice>.wrap{min-height:44px}
 .header-saved{min-width:44px;min-height:44px;justify-content:center}
 .header-search{height:44px}
 .header-search button{min-height:44px;min-width:44px}
 .mood-tabs a{min-height:44px;display:inline-flex;align-items:center;padding-bottom:0}
 .carousel-dots{gap:0}
 .carousel-dots button{width:44px;height:44px;background:linear-gradient(#70545f,#70545f) center/20px 4px no-repeat;border-radius:0}
 .carousel-dots button[aria-pressed=true]{width:44px;background:linear-gradient(var(--rose),var(--rose)) center/36px 4px no-repeat}
 .carousel-dots button:before{content:none}
 .carousel-pause{width:44px;height:44px}
 .save-icon{width:44px;height:44px;right:0;top:0;background:radial-gradient(circle,#1e151dbf 15px,transparent 16px)}
 .save-icon.is-saved{background:radial-gradient(circle,#4b2639 15px,transparent 16px)}
 .card-title{display:flex;align-items:center;min-height:44px;margin-top:2px}
 .breadcrumbs a,.tags a,.story-keywords>a,.sort-row a,.text-link,.back-detail,.episode-step>a,.section-title>a,.filters nav a,.footer-grid>div>a:not(.brand),.footer-bottom a,.text-button{display:inline-flex;align-items:center;min-height:44px}
 .story-keywords>a,.tags a{padding-inline:4px}
 .footer-grid>div>a:not(.brand){display:flex;margin:0}
 .episode-grid a,.episode-grid button{height:44px}
 .site-footer .brand,.site-header .brand{min-height:44px}
}
.player-toolbar{flex-wrap:wrap}
.player-toolbar button,.player-toolbar .button{white-space:nowrap;flex:none}
.player-toolbar [data-player-status]{flex:1 1 160px;min-width:0}
.player-toolbar .episode-note{flex-basis:100%;margin-top:4px}
@media(pointer:coarse),(max-width:650px){.player-toolbar .episode-note{display:none}}
@media(max-width:900px),(pointer:coarse){.hero-actions .button,.detail-actions .button{min-height:44px}.breadcrumbs a,.tags a,.story-keywords>a{min-width:44px;justify-content:center}}

/* v27: portrait and landscape video are letterboxed inside the frame; native controls stay at the frame bottom */
.video-frame{overflow:hidden}
.video-frame video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
.sound-hint{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:4;min-height:44px;padding:10px 18px;border:0;border-radius:999px;background:#c2417aee;color:#fff;font-size:14px;font-weight:600;box-shadow:0 4px 18px #0007;cursor:pointer}
.sound-hint[hidden]{display:none}

/* v31 portrait player (PORTRAIT-PLAYER.md). Active only on the Web watch page when html[data-shape=portrait]
   (server hint from stored/measured orientation, corrected on loadedmetadata). Landscape works keep the existing layout. */
html[data-shape=portrait] .watch-page .breadcrumbs{display:none}
html[data-shape=portrait] .watch-page .watch-content{padding-top:14px}
html[data-shape=portrait] .watch-page .watch-layout{grid-template-columns:auto minmax(300px,390px);justify-content:center;gap:28px}
html[data-shape=portrait] .watch-page .player-panel{position:relative;width:calc((100svh - 128px) * 9 / 16);max-width:calc(100vw - 460px);border-radius:12px}
html[data-shape=portrait] .watch-page .video-frame{height:calc(100svh - 128px);min-height:0;max-height:none;aspect-ratio:auto}
html[data-shape=portrait] .watch-page .video-frame video{object-fit:contain;max-height:none;height:100%}
/* overlay toolbar: sound button on top of the picture; native controls (play, progress, volume, fullscreen) stay on the picture's bottom edge */
html[data-shape=portrait] .watch-page .player-toolbar{position:absolute;top:0;left:0;right:0;z-index:3;min-height:0;padding:10px 12px;background:linear-gradient(#000a,#0000);color:#fff;pointer-events:none;flex-wrap:nowrap}
html[data-shape=portrait] .watch-page .player-toolbar>*{pointer-events:auto}
html[data-shape=portrait] .watch-page .player-toolbar .episode-note,html[data-shape=portrait] .watch-page .player-toolbar [data-player-status]{display:none}
html[data-shape=portrait] .watch-page .player-toolbar [data-sound]{margin-left:auto;background:#0008;backdrop-filter:blur(6px);color:#fff}
/* desktop episode drawer: sticky sidebar that scrolls internally, every episode reachable without leaving the player */
html[data-shape=portrait] .watch-page .watch-sidebar{position:sticky;top:14px;max-height:calc(100svh - 128px);overflow:auto;padding-right:6px}
html[data-shape=portrait] .watch-page .watch-sidebar h1{margin-top:4px}
html[data-shape=portrait] .watch-page .watch-sidebar .synopsis{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:900px){
 html[data-shape=portrait] .watch-page .watch-layout{display:block}
 html[data-shape=portrait] .watch-page .watch-content{padding:0;margin:0;max-width:none;width:100%}
 html[data-shape=portrait] .watch-page .player-panel{width:100%;max-width:none;border-radius:0}
 /* full-width stage between the header and the fixed bottom tab bar, so the native controls stay visible above it */
 html[data-shape=portrait] .watch-page .video-frame{height:min(calc(100vw * 16 / 9),calc(100svh - var(--tx-top,132px) - var(--tx-nav,60px) - env(safe-area-inset-bottom,0px)))}
 html[data-shape=portrait] .watch-page .watch-sidebar{position:static;max-height:none;overflow:visible;padding:14px 14px calc(76px + env(safe-area-inset-bottom,0px))}
 /* episode strip right under the stage (horizontal scroll) */
 html[data-shape=portrait] .watch-page .watch-sidebar .episode-grid{display:flex;overflow-x:auto;gap:8px;scroll-snap-type:x mandatory;padding-bottom:6px}
 html[data-shape=portrait] .watch-page .watch-sidebar .episode-grid>*{flex:0 0 56px;scroll-snap-align:start}
}

/* v38: age gate points (owner t86u) */
.gate-card .gate-points{margin:12px 0 0;padding-left:1.2em;color:var(--muted);display:grid;gap:6px;font-size:14px;line-height:1.6}
/* v38 (owner t90u): player watermark = LOGO + 糖果短剧, top-right (the source's own mark is top-left and is never covered or cropped). */
.tx-wm{position:absolute;z-index:5;display:inline-flex;align-items:center;gap:.32em;pointer-events:none;user-select:none;-webkit-user-select:none;
 font:800 clamp(12px,3.5vw,15px)/1 "PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",system-ui,sans-serif;letter-spacing:.06em;opacity:.9;padding:.32em .62em .32em .36em;border-radius:999px;background:#0000004d;border:1px solid #ffffff2e}
.tx-wm img{width:1.45em;height:1.45em;border-radius:50%;box-shadow:0 1px 3px #0006}
.tx-wm span{color:#fff;text-shadow:0 1px 2px #0008}
.video-frame .tx-wm{top:calc(var(--bar-y,0px) + 14px);right:calc(var(--bar-x,0px) + 14px);font-size:15px}
@media(max-width:650px){.video-frame .tx-wm{top:calc(var(--bar-y,0px) + 10px);right:calc(var(--bar-x,0px) + 10px);font-size:13px}}
html[data-shape=portrait] .watch-page .video-frame .tx-wm{top:max(72px,calc(var(--bar-y,0px) + 10px))}

.home-tx-shelf{margin-top:36px}
.home-tx-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px 12px}
.home-tx-card{position:relative;display:flex;flex-direction:column;gap:8px;color:inherit;text-decoration:none}
.home-tx-card .art{border-radius:12px;overflow:hidden}
.home-tx-card strong{font-size:15px;font-weight:700;line-height:1.3}
.home-tx-card .badge-18{position:absolute;z-index:1;top:8px;left:8px}
.badge-18{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:18px;padding:0 5px;border:1px solid #c45d7a;color:#c45d7a;border-radius:4px;font-size:12px;font-weight:800;letter-spacing:.04em;background:#180c12cc}
@media(max-width:900px){.home-tx-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.home-tx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v40h: align desktop tokens and surfaces with the polished H5 我的 look. */
:root{
  --canvas:#180c12;
  --panel:#2b141f;
  --soft:#22101a;
  --line:#694351;
  --ink:#fff3f5;
  --muted:#e0bfcb;
  --wine:#ff657c;
  --wine-hover:#ff7a90;
  --rose:#ffa8c2;
  --gold:#ffc1d2;
  --bg:#180c12;
  --surface:#2b141f;
  --accent:#ffa8c2;
  --focus:#ffa8c2;
  font-family:"PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",system-ui,sans-serif;
}
body{background:var(--canvas);color:var(--ink)}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.site-header{background:#180c12f2;backdrop-filter:saturate(1.2) blur(12px);border-bottom:1px solid #69435166}
.desktop-nav a{border-radius:999px;padding:8px 12px;transition:color .15s ease,background .15s ease}
.desktop-nav a:hover{color:var(--ink);background:#2b141f}
.desktop-nav a[aria-current]{color:#180c12;background:var(--rose);font-weight:800}
.desktop-nav a[aria-current]:after{display:none}
.header-search{background:#2b141f;border-color:#694351}
.header-saved:hover,.header-saved:focus-visible{color:var(--rose)}
.brand>span{letter-spacing:.06em}
.work-card,.feature-card,.detail-cover,.player-panel,.gate-card,article.card,.shelf .card{border:1px solid var(--line);border-radius:16px;background:var(--panel);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.work-card:hover,.feature-card:hover,.shelf a:hover .work-card,.discover-grid a:hover{border-color:var(--rose);box-shadow:0 10px 28px #0006;transform:translateY(-2px)}
@media(prefers-reduced-motion:reduce){.work-card:hover,.feature-card:hover{transform:none}}
.episode-grid a,.episode-grid button{min-width:44px;min-height:44px;border-radius:12px;border:1px solid var(--line);background:var(--panel);display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;position:relative}
.episode-grid a:hover{border-color:var(--rose);color:var(--rose)}
.episode-grid a[aria-current]{background:var(--rose);color:#180c12;border-color:var(--rose);font-weight:800}
.episode-grid a.episode-locked small,.episode-grid button[data-locked] small{font-size:12px;line-height:1;color:var(--rose);font-weight:700}
.episode-grid a[aria-current] small{color:#180c12}
.player-lock{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#180c12d9;color:var(--ink);text-align:center;padding:24px}
.player-lock .fine-print{max-width:22em;color:var(--muted);font-size:13px;line-height:1.7}
.guest-hint{position:absolute;right:12px;bottom:12px;z-index:9;padding:8px 12px;border-radius:999px;background:#c2417aee;color:#fff;font-size:13px;font-weight:700;box-shadow:0 4px 18px #0007}
.download-page{display:grid;gap:24px;padding:32px 0 64px}
.download-hero{display:grid;justify-items:center;text-align:center;gap:12px;padding:28px 20px;border-radius:24px;background:linear-gradient(180deg,#3a1a27,#2b141f);border:1px solid var(--line)}
.download-icon{border-radius:22px;box-shadow:0 10px 30px #0006}
.download-page h1{font-size:clamp(28px,4vw,40px)}
.download-page h2{font-size:20px;margin-bottom:8px}
.download-page section{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:22px}
.download-apk,.download-page .button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:999px;background:var(--wine);color:#180c12;font-weight:800}
.download-steps{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.guide-card{margin:0;background:#22101a;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.guide-illus{min-height:120px;display:grid;place-items:center;background:radial-gradient(circle at 50% 20%,#733c50,#180c12);font-weight:800}
.guide-share,.guide-add,.guide-safari{padding:8px 14px;border-radius:999px;border:1px solid #ffffff33;background:#0006}
.guide-card figcaption{padding:12px;color:var(--muted);font-size:14px}
.points-modal{border:0;padding:0;background:transparent}
.points-modal::backdrop{background:#0009}
.points-modal-card{width:min(420px,calc(100vw - 32px));margin:0;padding:24px;border-radius:20px;background:#2b141f;color:#fff3f5;border:1px solid #694351;display:grid;gap:12px}
.points-modal-card h2{font-size:22px}
.points-modal-card label{display:grid;gap:6px;font-size:14px;color:#e0bfcb}
.points-modal-card input{min-height:44px;border-radius:12px;border:1px solid #694351;background:#22101a;color:#fff3f5;padding:8px 12px}
.sheet-error{color:#ff8aa0;font-size:13px}
.fine-print{color:#e0bfcb;font-size:13px;line-height:1.7}
.button,.button.primary{min-height:44px}
.detail-copy h1,.watch-sidebar h1{letter-spacing:.02em}
.page-content,.watch-content{padding-top:24px;padding-bottom:64px}
@media(max-width:900px){.desktop-nav a{padding:8px 10px}}

/* v40k web member: header actions + desktop member center (do not shrink type below 12px). */
.header-inner{min-width:0}
.header-search{margin-left:auto;flex:1 1 160px;max-width:280px;min-width:0}
.header-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:4px}
.header-download,.header-saved,.header-auth{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;font-size:13px;color:var(--muted);min-height:40px;padding:0 10px;border-radius:999px;border:0;background:transparent}
.header-download:hover,.header-download:focus-visible,.header-saved:hover,.header-saved:focus-visible,.header-auth:hover,.header-auth:focus-visible,.header-download[aria-current],.header-saved[aria-current]{color:var(--rose);background:#2b141f}
.header-download svg,.header-saved svg{width:18px;height:18px;flex-shrink:0}
.header-member{position:relative;flex:0 0 auto;padding:2px}
.header-auth{font-weight:700;color:var(--ink);background:#2b141f;border:1px solid var(--line)}
.header-avatar-btn{position:relative;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#2b141f;display:grid;place-items:center}
.header-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;display:block}
.header-unread,.header-unread-inline{position:absolute;top:-2px;right:-2px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#ff4d6d;color:#fff;font-size:12px;font-weight:800;line-height:16px;text-align:center}
.header-unread-inline{position:static;display:inline-flex;align-items:center;justify-content:center;margin-left:6px;min-width:18px;height:18px;line-height:18px}
.header-dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:20;min-width:200px;padding:8px;border-radius:16px;background:#2b141f;border:1px solid var(--line);box-shadow:0 16px 40px #0008;display:grid}
.header-dropdown[hidden]{display:none}
.header-dropdown a,.header-dropdown button{display:flex;align-items:center;min-height:40px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--ink);font-size:14px;text-align:left;width:100%}
.header-dropdown a:hover,.header-dropdown button:hover,.header-dropdown a:focus-visible,.header-dropdown button:focus-visible{background:#3a1b29}
.header-dropdown button[data-header-logout]{color:#ff8fa3;margin-top:4px;border-top:1px solid #69435166;border-radius:0 0 10px 10px}

@media(max-width:1440px){
  .header-inner{gap:20px}
  .desktop-nav{gap:14px}
  .header-search{max-width:240px}
}
@media(max-width:1280px){
  .header-inner{gap:14px}
  .desktop-nav{gap:8px}
  .desktop-nav a{padding:8px 8px;font-size:14px}
  .header-search{max-width:200px;flex-basis:140px}
  .header-actions{gap:6px}
  .header-download,.header-saved,.header-auth{padding:0 8px;font-size:13px}
}
@media(max-width:1100px){
  .header-inner{gap:10px}
  .brand>span{font-size:22px}
  .desktop-nav{gap:4px}
  .desktop-nav a{padding:6px 8px;font-size:13px}
  .header-search{max-width:160px;height:40px}
  .header-download span,.header-saved span{display:none}
  .header-download,.header-saved{min-width:40px;padding:0}
  .header-actions{gap:4px}
}
@media(max-width:900px){
  .header-actions{margin-left:auto;gap:4px}
  .header-search{order:3;flex:1 1 100%;max-width:none;margin-left:0}
  .header-download span,.header-saved span{display:none}
  .header-auth{padding:0 10px}
}

/* Member center */
.me-page{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:start;padding:28px 0 64px}
.me-sidebar{position:sticky;top:24px;padding:18px 14px;border-radius:20px;background:var(--panel);border:1px solid var(--line)}
.me-sidebar-kicker{margin:0 12px 10px;font-size:12px;letter-spacing:.12em;color:var(--muted)}
.me-side-nav{display:grid;gap:4px}
.me-side-nav a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:12px;color:var(--muted);font-size:15px;font-weight:600}
.me-side-nav a:hover,.me-side-nav a:focus-visible{color:var(--ink);background:#3a1b29}
.me-side-nav a[aria-current]{color:#180c12;background:var(--rose);font-weight:800}
.me-main{min-width:0;display:grid;gap:20px}
.me-guest{display:grid;place-items:center;min-height:420px}
.me-guest-card,.me-profile,.me-panel,.me-feedback{padding:28px;border-radius:20px;background:var(--panel);border:1px solid var(--line)}
.me-guest-card{max-width:440px;display:grid;gap:14px;text-align:center}
.me-guest-card h1,.me-panel h1,.me-profile-copy h1{margin:0;font-size:28px;font-weight:800}
.me-guest-card p,.me-sub{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.me-profile{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.me-avatar-btn{width:88px;height:88px;padding:0;border:0;border-radius:50%;background:#180c12;flex-shrink:0;overflow:hidden}
.me-avatar-btn img{width:100%;height:100%;object-fit:cover;display:block}
.me-profile-copy{flex:1 1 220px;display:grid;gap:6px}
.me-badge{display:inline-flex;align-items:center;width:max-content;padding:2px 10px;border-radius:999px;background:#3a1b29;color:var(--rose);font-size:12px;font-weight:700}
.me-points{display:inline-flex;align-items:center;gap:8px;margin-top:8px;font-size:18px;font-weight:800}
.me-points b{color:var(--rose)}
.me-shelf{padding:22px;border-radius:20px;background:var(--panel);border:1px solid var(--line)}
.me-shelf-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.me-shelf-head h2{margin:0;font-size:18px;font-weight:800}
.me-shelf-head a{font-size:13px;color:var(--rose)}
.me-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(140px,160px);gap:14px;overflow-x:auto;padding-bottom:6px}
.me-card{display:grid;gap:8px;color:inherit}
.me-cover{position:relative;aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:#3a1b29;display:grid;place-items:center}
.me-cover img{width:100%;height:100%;object-fit:cover;display:block}
.me-cover-ph{font-size:28px;font-weight:800;color:var(--rose)}
.me-card strong{font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.me-card span{font-size:12px;color:var(--muted)}
.me-empty{display:grid;place-items:center;gap:8px;padding:36px 16px;color:var(--muted);text-align:center}
.me-empty p{margin:0;font-size:15px;font-weight:700;color:var(--ink)}
.me-empty small{font-size:13px}
.me-inbox-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.me-inbox-tabs{display:flex;flex-wrap:wrap;gap:8px}
.me-inbox-tabs button{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:13px}
.me-inbox-tabs button[aria-pressed=true]{background:var(--rose);color:#180c12;border-color:transparent;font-weight:800}
.me-inbox-list{display:grid;gap:10px}
.me-msg{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border-radius:14px;border:1px solid var(--line);background:#22101a}
.me-msg.is-unread{border-color:var(--rose)}
.me-msg-cover{width:64px;height:80px;border-radius:8px;overflow:hidden;background:#3a1b29;display:grid;place-items:center}
.me-msg-cover img{width:100%;height:100%;object-fit:cover}
.me-msg h3{margin:0 0 4px;font-size:15px}
.me-msg p{margin:0;font-size:13px;color:var(--muted);line-height:1.6;white-space:pre-wrap}
.me-msg-kind{font-size:12px;color:var(--rose);font-weight:700;margin-right:8px}
.me-msg-actions{display:flex;flex-direction:column;gap:6px}
.me-msg-actions button{min-height:32px;padding:0 10px;border:0;border-radius:8px;background:#3a1b29;color:var(--ink);font-size:12px}
.me-checkin{display:grid;gap:12px}
.me-checkin-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.me-checkin-days span{display:grid;place-items:center;min-height:64px;border-radius:12px;background:#180c12;border:1px solid var(--line);font-size:12px;text-align:center;padding:6px}
.me-checkin-days span.is-next{border-color:var(--rose);color:var(--rose)}
.me-checkin-days span b{font-size:14px}
.me-task-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.me-task-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:8px 12px;border-radius:12px;background:#180c12}
.me-task-list li.is-done{opacity:.7}
.me-task-list b{color:var(--rose);font-size:13px}
.me-task-list button{min-height:32px;padding:0 10px;border:0;border-radius:999px;background:var(--wine);color:#fff;font-size:13px}
.me-feedback{display:grid;gap:12px}
.me-type{display:flex;gap:8px}
.me-type button{min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:13px}
.me-type button[aria-pressed=true]{background:var(--rose);color:#180c12;border-color:transparent;font-weight:800}
.me-feedback form,.me-auth-form,.points-modal-card form{display:grid;gap:10px}
.me-feedback input,.me-feedback textarea,.me-auth-form input,.me-dialog input,.me-dialog textarea{min-height:44px;border-radius:12px;border:1px solid var(--line);background:#180c12;color:var(--ink);padding:8px 12px;font-size:14px}
.me-feedback textarea,.me-dialog textarea{min-height:120px;resize:vertical}
.preset-avatars{display:flex;flex-wrap:wrap;gap:10px}
.preset-avatars button{width:56px;height:56px;padding:0;border:2px solid transparent;border-radius:50%;background:#180c12;overflow:hidden}
.preset-avatars button img{width:100%;height:100%;display:block}
.preset-avatars button:hover,.preset-avatars button:focus-visible{border-color:var(--rose)}
.me-dialog{border:0;padding:0;background:transparent}
.me-dialog::backdrop,.points-modal::backdrop{background:#0009}
.me-dialog-card{width:min(420px,calc(100vw - 32px));margin:auto;padding:24px;border-radius:20px;background:#2b141f;color:var(--ink);border:1px solid var(--line);display:grid;gap:12px}
.me-dialog-card h2{margin:0;font-size:22px}
.me-auth-tabs{display:flex;gap:8px}
.me-auth-tabs button{flex:1;min-height:40px;border:0;border-radius:999px;background:#180c12;color:var(--muted);font-size:14px}
.me-auth-tabs button[aria-pressed=true]{background:var(--rose);color:#180c12;font-weight:800}
.sheet-error{margin:0;color:#ff8fa3;font-size:13px}
.me-nickname-edit{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

@media(max-width:1024px){
  .me-page{grid-template-columns:180px minmax(0,1fr);gap:18px;padding-top:20px}
  .me-sidebar{padding:14px 10px}
  .me-side-nav a{min-height:40px;padding:0 10px;font-size:14px}
}
@media(max-width:900px){
  .me-page{grid-template-columns:1fr;gap:16px}
  .me-sidebar{position:static}
  .me-side-nav{grid-auto-flow:column;grid-auto-columns:max-content;overflow-x:auto}
}

/* v40l4: points explanation lives on /points, not in the footer */
.points-page{max-width:860px}
.points-page h1{margin:8px 0 12px}
.points-page>p{margin:0 0 8px;max-width:56ch;line-height:1.8}
.points-page .points-faq{display:grid;gap:14px;margin:22px 0 0;padding:0}
.points-faq-item{padding:18px 20px;border-radius:16px;background:var(--panel);border:1px solid var(--line)}
.points-faq-item h3{margin:0 0 8px;font-size:16px;font-weight:700}
.points-faq-item p{margin:0;font-size:14px;line-height:1.75;color:var(--muted)}
.points-page .points-faq .fine-print{margin:4px 0 0;font-size:13px;line-height:1.7;color:var(--muted)}
@media(min-width:900px){
  .points-page .points-faq{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
  .points-page .points-faq .fine-print{grid-column:1/-1}
}

/* v40k: hide 片单 for logged-in members; they use 追剧 instead. */
html.is-member .header-saved,
html.is-member .footer-saved,
html.is-member .mobile-saved,
html.is-member .guest-library,
html.is-member .guest-saved-entry{display:none !important}
html.is-member .member-library{display:inline-flex}
html.is-member .save-icon.member-library{display:flex}
html:not(.is-member) .member-library{display:none !important}
.member-saved-redirect{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 20px;padding:16px 18px;border-radius:16px;background:var(--panel);border:1px solid var(--line)}
.member-saved-redirect[hidden]{display:none}
.member-saved-redirect p{margin:0;font-size:14px;line-height:1.6}

/* v40l community + 热门资讯. Type stays at or above 12px. */
.news-shelf .section-lead{margin:0 0 16px;font-size:14px;color:var(--muted);line-height:1.7;max-width:48ch}
.news-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.news-card{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden;color:inherit;text-decoration:none;min-height:100%}
.news-card-photo{position:relative;aspect-ratio:16/9;background:#4a2a36;overflow:hidden}
.news-card-photo img,.news-card img{width:100%;aspect-ratio:16/9;object-fit:cover;object-position:center top;background:#4a2a36;display:block}
.news-card-credit{position:absolute;right:8px;bottom:8px;z-index:1;font-size:14px;line-height:1.2;letter-spacing:.04em;color:#fff;background:rgba(16,8,12,.62);padding:3px 8px;border-radius:999px}
.community-media .news-card-credit{position:absolute;right:8px;bottom:8px}
.news-card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:8px;flex:1}
.news-card h3{margin:0;font-size:16px;line-height:1.4}
.news-card p{margin:0;font-size:13px;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-card time{margin-top:auto;font-size:12px;color:#b8a7b0}
.news-card:hover{border-color:#694351}

.community-page{padding:24px 0 72px}
.community-single{max-width:760px;margin-left:auto;margin-right:auto}
.community-heading h1{margin:0 0 6px;font-size:28px}
.community-heading p{margin:0 0 14px;font-size:14px;color:var(--muted);max-width:52ch;line-height:1.7}
.community-heading a{color:var(--rose)}
.community-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.community-tabs a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line);color:var(--muted);font-size:14px;text-decoration:none}
.community-tabs a[aria-current]{background:var(--rose);color:#180c12;border-color:transparent;font-weight:700}
.community-feed{display:flex;flex-direction:column;gap:12px}
.community-post{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px 14px}
.community-post-meta{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin-bottom:8px}
.community-post-meta time{margin-left:auto;flex-shrink:0;font-size:12px;color:#b8a7b0}
.community-account{display:inline-flex;align-items:center;gap:8px;min-width:0;color:inherit;text-decoration:none;font-weight:600;font-size:14px}
.community-account span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-account img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#2b141f;flex:none}
.community-badge{font-size:12px;border:1px solid var(--rose);color:var(--rose);border-radius:999px;padding:1px 7px;font-weight:500;flex:none}
.community-placeholder{font-size:12px;color:#b8a7b0;font-weight:500;flex:none}
.community-placeholder-note{font-size:13px;color:#c9b3bd}
.community-post h1,.community-post h2,.community-post h3{margin:0 0 4px;font-size:16px;line-height:1.4}
.community-post h1 a,.community-post h2 a,.community-post h3 a{color:inherit;text-decoration:none}
.community-post .body{font-size:14px;line-height:1.65;margin:0}
.community-source{margin:6px 0 0;font-size:12px;color:#b8a7b0;line-height:1.6}
.community-source a{color:#ff8fa0;text-decoration:underline;text-underline-offset:2px}
.community-media{position:relative;margin:8px 0 0;border-radius:12px;overflow:hidden;background:#10080d}
.community-media video,.community-media .community-still{width:100%;height:100%;margin:0;border-radius:0;display:block;object-fit:cover;background:#10080d;max-height:none}
.community-media.is-portrait{width:min(100%,420px);max-height:min(72vh,680px);aspect-ratio:9/16;margin-left:auto;margin-right:auto}
.community-media.is-portrait video,.community-media.is-portrait .community-still{object-fit:cover}
.community-media.is-landscape{width:100%;aspect-ratio:16/9}
.community-media.is-landscape video,.community-media.is-landscape .community-still{object-fit:cover}
.community-post video,.community-still{width:100%;max-height:none;background:#10080d;border-radius:12px;margin-top:0;display:block;object-fit:cover}
.community-composer{margin:0 0 22px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.community-composer h2{margin:0 0 10px;font-size:16px}
.community-composer input,.community-composer textarea{width:100%;margin:0 0 10px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:#20151c;color:var(--ink);font:inherit;font-size:14px}
.community-composer textarea{resize:vertical;min-height:96px}
.community-login-hint,.community-error,.community-empty{font-size:13px;color:var(--muted);line-height:1.7}
.community-error{color:#ff8fa3}
.community-profile{margin:0 0 12px}

/* v40l7 Web community wall (owner t226u): full site width, multi-column card wall + side rail, 全部 default.
   Columns: 3 at >=1181px (1280 and 1600 = 3; 4 was tested at 1600 and too cramped), 2 at 621-1180px, 1 below. JS (community.mjs) re-flows cards
   into shortest-first columns so the newest posts read across the top row; without JS CSS columns are the fallback. */
.community-web .community-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin:0 0 20px}
.community-web .community-heading p{margin:0}
.community-web .community-tabs{margin:0}
.community-tab-count{margin-left:6px;font-size:12px;opacity:.72;font-weight:500}
.community-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-areas:"wall composer" "wall aside";grid-template-rows:auto 1fr;gap:20px 24px;align-items:start}
.community-layout>.community-composer{grid-area:composer;margin:0}
.community-layout>.community-wall{grid-area:wall}
.community-layout>.community-aside{grid-area:aside}
.community-wall{--wall-cols:3;display:block;column-count:var(--wall-cols);column-gap:16px}
.community-wall>.community-card{break-inside:avoid;margin:0 0 16px}
.community-wall.is-masonry{display:flex;flex-direction:row;gap:16px;align-items:flex-start;column-count:auto}
.community-wall.is-masonry>.community-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:16px}
.community-wall.is-masonry .community-card{margin:0}
.community-wall>.community-empty{column-span:all}
.community-card{padding:0;overflow:hidden;display:flex;flex-direction:column;border-radius:14px;transition:border-color .15s ease}
.community-card:hover{border-color:#694351}
.community-card .community-media{margin:0;border-radius:0}
.community-card .community-media.is-portrait{width:100%;max-height:none;aspect-ratio:9/16;margin:0}
.community-card .community-media.is-landscape{width:100%;aspect-ratio:16/9}
.community-card-body{padding:12px 14px 12px;display:flex;flex-direction:column;gap:6px;min-width:0}
.community-kind{align-self:flex-start;display:inline-block;font-size:12px;line-height:1;padding:4px 8px;border-radius:6px;background:#3a2330;color:var(--rose);font-weight:600}
.community-kind[data-kind="talk"]{background:#22352a;color:#a9e3b8}
.community-kind[data-kind="news"]{background:#22303d;color:#a8d4ff}
.community-kind[data-kind="gossip"]{background:#3a3222;color:#ffd58a}
.community-card h2{margin:0;font-size:16px;line-height:1.45}
.community-card h2 a:hover{color:var(--rose)}
.community-card .body{color:#e3d6dc;font-size:14px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.community-card.is-text{background:linear-gradient(165deg,#2c1e29 0%,var(--panel) 70%)}
.community-card.is-text .body{-webkit-line-clamp:7}
.community-card .community-source{margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.community-card .community-post-meta{margin:4px 0 0;padding-top:9px;border-top:1px solid #3d2c3899;gap:6px}
.community-card .community-account{font-size:13px;gap:6px}
.community-card .community-account img{width:26px;height:26px}
.community-card .community-badge{padding:0 6px}
.community-aside{position:sticky;top:20px;display:flex;flex-direction:column;gap:16px}
.community-aside-block{padding:14px 16px 16px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.community-aside-block h2{margin:0 0 12px;font-size:15px}
.community-roster{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 6px}
.community-roster a{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;color:var(--muted);text-align:center;min-width:0}
.community-roster a:hover{color:var(--ink)}
.community-roster img{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#2b141f}
.community-roster span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-rules ul{margin:0;padding-left:18px;font-size:13px;color:var(--muted);line-height:1.8}
.community-account-page .community-profile .community-account img{width:56px;height:56px}
@media(max-width:1180px){
  .community-layout{grid-template-columns:minmax(0,1fr) 260px}
  .community-wall{--wall-cols:2}
}
@media(max-width:900px){
  .community-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"composer" "wall" "aside";grid-template-rows:auto}
  .community-aside{position:static}
  .community-roster{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}
}
@media(max-width:620px){.community-wall{--wall-cols:1}}

@media(max-width:1100px){
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1024px){
  .header-inner{gap:8px}
  .desktop-nav{gap:2px}
  .desktop-nav a{padding:6px 6px;font-size:13px}
  .header-search{max-width:136px}
}
@media(max-width:650px){
  .news-grid{grid-template-columns:1fr}
  .community-heading h1{font-size:24px}
  .community-page{padding:16px 0 72px}
  .mobile-nav a{font-size:12px;padding:0 2px}
}

/* v40l8d: hero intro + mood tabs removed; 2 AI + 1 糖心 hero (18+ badge on the 糖心 poster) */
.hero-copy h1+.feature-copy{margin-top:30px}.hero-save{display:contents}.hero-save[hidden]{display:none}
.hero-poster-adult .badge-18{position:absolute;z-index:2;top:10px;left:10px;background:#160f17cc}
@media(max-width:650px){.hero-copy h1+.feature-copy{margin-top:14px}.hero-poster-adult .badge-18{top:6px;left:6px}}


/* v40l8d2: no 18+ peek on the first / side slides; readable peek titles; 390 search + shelf clearance */
.home-hero .hero-poster-adult:not(.position-0){
  visibility:hidden;
  opacity:0;
  pointer-events:none;
}
.hero-poster-caption strong{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.3;
}
.hero-poster.position-1 .hero-poster-caption,
.hero-poster.position-2 .hero-poster-caption{
  padding-left:12px;
  padding-right:12px;
}
/* Right peek is partly covered by the centre card; keep the title in the visible sliver. */
.hero-poster.position-1 .hero-poster-caption{
  padding-left:38%;
  text-align:right;
}
.hero-poster.position-1 .hero-poster-caption strong,
.hero-poster.position-2 .hero-poster-caption strong{
  font-size:14px;
}
.mobile-nav-safe{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){
  .header-inner{flex-wrap:wrap}
  .header-search{order:3;flex:1 1 100%;max-width:none;min-width:0;margin-left:0;height:40px}
  .header-search input{font-size:13px;min-width:0}
}
@media(max-width:650px){
  .hero-poster.position-1{left:46%}
  .hero-poster-caption strong{font-size:13px}
  .home-hero{padding-bottom:0}
  .home-hero + .wrap{
    padding-top:8px;
    padding-bottom:calc(24px + 58px + env(safe-area-inset-bottom,0px));
    scroll-margin-bottom:calc(72px + env(safe-area-inset-bottom,0px));
  }
  .home-tx-shelf .section-title{
    scroll-margin-bottom:calc(72px + env(safe-area-inset-bottom,0px));
  }
  /* Tighten the stacked hero so the 糖心短剧 heading and 查看全部 sit above the sticky nav on a 390x844 first screen. */
  .hero-stage{height:300px}
  .hero-layout{padding-block:16px 8px;gap:8px}
  .feature-copy{min-height:0}
  .hero-copy h1{font-size:28px;line-height:1.4}
}

@media(min-width:901px){
  .header-search{max-width:320px;min-width:240px;flex:1 1 240px}
  .header-search input{font-size:13px}
}
/* v40n1 hero: no fixed slogan; rotating big title + 1-2 line blurb (owner t253u/t254u/t257u) */.hero-copy-rotating .feature-copy{min-height:150px}.hero-copy-rotating .feature-genre{font-size:14px;letter-spacing:.04em}.hero-copy-rotating h1.feature-title{font-size:clamp(32px,3.2vw,48px);line-height:1.3;margin:8px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-wrap:balance}.hero-copy-rotating .feature-copy>p.feature-blurb{color:var(--muted);font-size:15px;line-height:1.75;max-width:32ch;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hero-copy-rotating .feature-blurb[hidden]{display:none}.hero-copy-rotating .hero-actions{margin-top:22px}@media(max-width:900px){.hero-copy-rotating h1.feature-title{font-size:32px}}@media(max-width:650px){.hero-copy-rotating .feature-copy{min-height:0}.hero-copy-rotating h1.feature-title{font-size:24px;line-height:1.35;margin:4px 0 6px}.hero-copy-rotating .feature-copy>p.feature-blurb{font-size:16px;line-height:1.7;max-width:none}.hero-copy-rotating .hero-actions{margin-top:12px}}@media(max-width:360px){.hero-copy-rotating h1.feature-title{font-size:21px}}

/* v40n3: age overlay (content stays in the document under the card) */
.age-overlay{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:rgba(8,4,8,.82);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.age-overlay-card{width:min(440px,100%);max-height:min(92vh,640px);overflow:auto;background:var(--panel,#1b141b);border:1px solid var(--line,#3a2a34);border-radius:14px;padding:28px 24px;color:var(--ink,#f7eef2);box-shadow:0 18px 48px #0008}
.age-overlay-card h2{font-size:26px;line-height:1.35;margin:8px 0 12px}
.age-overlay-card p,.age-overlay-card li{font-size:16px;line-height:1.7;color:var(--muted,#d8c4ce)}
.age-overlay-card .button{min-height:44px;width:100%;margin-top:8px;font-size:16px}
.age-overlay-card a{color:inherit;text-decoration:underline;text-underline-offset:3px}
body[data-age-gate]{overflow:hidden}

/* v40n3: 随心刷 is a quiet section title, not a banner */
.feed-entry-shelf{margin-top:8px;margin-bottom:28px}
.feed-entry-shelf .section-title p{display:none}
.card-play{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-top:8px;min-height:44px;padding:8px 12px;border-radius:8px;background:var(--wine,#8b1e3f);color:#fff;font-size:14px;font-weight:600}

/* v40n3: more-drawer in the phone bar (must open to show desktop-equivalent links) */
.mobile-more{position:relative}
.mobile-more>summary{list-style:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;gap:2px;font-size:12px;cursor:pointer}
.mobile-more>summary::-webkit-details-marker{display:none}
.mobile-drawer{position:fixed;left:0;right:0;bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:40;background:#1a1218;border-top:1px solid #3a2a34;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:4px;box-shadow:0 -12px 32px #0008}
.mobile-drawer a{display:flex;align-items:center;min-height:44px;padding:0 12px;font-size:16px;color:var(--ink,#f7eef2);border-radius:8px}
.mobile-drawer a:hover,.mobile-drawer a:focus{background:#2a1c26}
.mobile-nav{display:none}

@media(max-width:900px){
  .mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
  .mobile-nav>a,.mobile-nav .mobile-more>summary{min-height:44px;font-size:12px}
}

@media(max-width:650px){
  /* 方案 §4: body copy and main fields ≥16px; hit areas ≥44px */
  :root{font-size:16px}
  .feature-blurb,.feature-copy>p:last-child,.synopsis,.detail-copy .synopsis,.detail-copy .detail-tagline,.watch-sidebar .synopsis,.prose p,.card-title,.hero-intro{font-size:16px;line-height:1.7}
  .header-search input,.discover-search input{font-size:16px;min-height:44px}
  .episode-grid a,.episode-grid button{min-height:44px;height:44px;font-size:14px}
  .button,.hero-play,.card-play{min-height:44px;font-size:16px}
  .detail-actions .button{font-size:16px}

  /* Homepage reads as H5 选剧: full-bleed hero, 立即播放 on the poster, rails stay compact */
  .home-hero{position:relative}
  .hero-layout{display:flex;flex-direction:column;min-height:0;padding:0 0 18px;gap:0}
  .hero-stage{height:auto;min-height:0;order:-1}
  .poster-deck{position:relative;height:0;padding-bottom:128%;margin:0}
  .hero-poster{width:86%;left:7%;top:8px;border-radius:12px}
  .hero-poster.position-0{left:7%;top:8px;transform:none;z-index:2}
  .hero-poster.position-1,.hero-poster.position-2{opacity:0;pointer-events:none;transform:none}
  .hero-copy{padding:16px 4px 0;max-width:none}
  .hero-copy h1,.feature-title{font-size:26px;line-height:1.4}
  .hero-actions{position:relative;margin-top:14px;gap:10px}
  .hero-actions .hero-play{flex:1 1 auto}
  /* list-grid-leak 2026-11-15: keep the rail only on homepage shelves, not list pages */
  .shelf .work-grid{display:grid;grid-auto-flow:column;grid-auto-columns:min(42vw,160px);overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;padding-bottom:6px}
  .shelf .work-grid>.work-card,.shelf .work-grid>.home-tx-card{scroll-snap-align:start}
  .cover-action{display:none}
}

/* v40n3 typography: checklist 4.6 — narrow-screen bottom-nav labels and 立即播放 ≥16px.
   .hero-actions .button{font-size:12px} in the 900px query is more specific than .hero-play,
   and the 900px nav rule kept labels at 12px; both must be overridden without changing layout. */
@media(max-width:900px){
  .mobile-nav a,
  .mobile-nav>a,
  .mobile-nav .mobile-more>summary,
  .mobile-more>summary{font-size:16px;line-height:1.2}
  .hero-actions .button,
  .hero-actions .hero-play,
  a.hero-play,
  .hero-play,
  .card-play{font-size:16px}
}

/* v40n6 h5 nav player — mobile bottom search, 随心看 mark, burger drawer, immersive watch.
   New text is ≥14px. Existing v40k / v40n3 typography rules are kept. */
.nav-burger{display:none;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;border:0;background:transparent;color:var(--ink);flex-shrink:0;border-radius:10px}
.nav-burger:focus-visible{outline:2px solid var(--gold)}
.mobile-search-sheet{display:none}
/* v40n6f: 随心看 pink ring only when the feed tab is current */
.mobile-feed-tab{gap:2px}
.mobile-feed-tab img{width:28px;height:28px;border-radius:8px;background:transparent;box-shadow:none;opacity:.75}
.mobile-nav .mobile-feed-tab{transform:none}
.mobile-nav .mobile-feed-tab[aria-current]{transform:translateY(-6px);color:var(--rose)}
.mobile-nav .mobile-feed-tab[aria-current] img{background:#fff;box-shadow:0 0 0 2px #ff2d6f66,0 6px 14px #ff2d6f44;opacity:1}
.mobile-nav .mobile-search-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:transparent;color:inherit;font:inherit;padding:0 2px;min-height:44px}
.site-drawer{position:fixed;inset:0;z-index:60;background:#0008}
.site-drawer-panel{position:absolute;left:0;top:0;bottom:0;width:min(86vw,320px);background:#1a1218;border-right:1px solid #3a2a34;padding:12px 12px calc(16px + env(safe-area-inset-bottom,0px));overflow:auto;transform:translateX(0)}
.site-drawer-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0 0 8px auto;border:0;background:transparent;color:var(--ink);font-size:28px;line-height:1}
.site-drawer .mobile-drawer{position:static;left:auto;right:auto;bottom:auto;box-shadow:none;border:0;padding:0;background:transparent;display:flex;flex-direction:column;gap:4px}
.player-fs,.player-rotate{position:absolute;z-index:6;right:12px;min-height:44px;min-width:44px;padding:8px 12px;border:0;border-radius:999px;background:#0009;color:#fff;font-size:14px;font-weight:700}
.player-fs{bottom:14px}
.player-rotate{bottom:64px}
html[data-shape=portrait] .player-rotate{display:none}

@media(max-width:900px){
  .nav-burger{display:inline-flex}
  .header-search{display:none}
  .mobile-nav a,
  .mobile-nav>a,
  .mobile-nav button,
  .mobile-nav .mobile-search-tab,
  .mobile-nav .mobile-more>summary,
  .mobile-more>summary{font-size:16px;line-height:1.2}
  .mobile-nav-safe{grid-template-columns:repeat(4,minmax(0,1fr))}
  .mobile-search-sheet{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:45;align-items:center;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#1a1218;border-top:1px solid #3a2a34;box-shadow:0 -10px 28px #0008;transform:translateY(calc(100% + 24px));transition:transform .28s ease;pointer-events:none}
  .mobile-search-sheet.is-open{transform:translateY(0);pointer-events:auto}
  .mobile-search-sheet[hidden]{display:flex!important;transform:translateY(calc(100% + 24px));pointer-events:none}
  .mobile-search-sheet input{flex:1;min-height:44px;border:1px solid #402d3a;border-radius:22px;background:#291e27;color:var(--ink);padding:8px 16px;font-size:16px}
  .mobile-search-sheet button{min-height:44px;min-width:44px;padding:0 14px;border:0;border-radius:22px;background:var(--wine);color:#fff;font-size:16px}
  .mobile-search-sheet [data-mobile-search-close]{background:transparent;color:var(--muted)}
  .watch-page .wrap.watch-content{padding-top:0;margin:0;max-width:none;width:100%}
  .watch-page .breadcrumbs{display:none}
  .watch-page .watch-layout{display:block}
  .watch-page .player-panel{width:100%;max-width:none;border-radius:0}
  .watch-page .video-frame{width:100%;min-height:220px;max-height:none;height:min(calc(100vw * 9 / 16),calc(100svh - 120px - env(safe-area-inset-bottom,0px)));background:#000;border-radius:0}
  .watch-page .video-frame video{object-fit:contain;max-height:none;height:100%}
  html[data-shape=portrait] .watch-page .video-frame{height:min(calc(100vw * 16 / 9),calc(100svh - 72px - env(safe-area-inset-bottom,0px)))}
  .watch-page .watch-sidebar{padding:14px 14px calc(86px + env(safe-area-inset-bottom,0px))}
  html.watch-immersive .site-header,
  html.watch-immersive .mobile-nav,
  html.watch-immersive .age-notice{opacity:0;pointer-events:none;transform:translateY(-8px);transition:opacity .4s ease,transform .4s ease}
  html.watch-immersive .mobile-nav{transform:translateY(100%)}
  html.watch-immersive .watch-page .video-frame{height:100svh;position:relative}
  html.watch-immersive[data-shape=portrait] .watch-page .video-frame{height:100svh}
  html.watch-immersive body{padding-bottom:0}
  @media(prefers-reduced-motion:reduce){
    .mobile-search-sheet,html.watch-immersive .site-header,html.watch-immersive .mobile-nav{transition:none}
  }
}
/* v40n6b posters + player fill */
.art,.custom-art{position:relative;overflow:hidden}
.art img,.custom-art img,.hero-poster img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.hero-poster .art,.hero-poster .custom-art{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
.player-cover{position:absolute;inset:0;z-index:2;overflow:hidden}
.player-cover>.art,.player-cover>.custom-art,.player-cover>.no-art{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;opacity:1}
.player-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.video-fill-bg{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;opacity:0}
.video-fill-bg .art,.video-fill-bg img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.video-frame:has(video[data-shape=landscape]) .video-fill-bg{opacity:1}
.video-frame:has(video[data-shape=landscape]) .video-fill-bg img{filter:blur(28px) saturate(1.1);transform:scale(1.16)}
.video-frame video{position:relative;z-index:1;background:transparent}
@media(max-width:900px){
  .watch-page .player-cover>.art,.watch-page .player-cover>.custom-art{width:100%;height:100%;aspect-ratio:auto}
  html[data-shape=portrait] .watch-page .video-frame video,
  .watch-page .video-frame video[data-shape=portrait]{object-fit:cover;object-position:center}
  .watch-page .video-frame video[data-shape=landscape]{object-fit:contain;object-position:center;background:transparent}
}

/* home-18-popup: fixed dialog so the prompt never shifts document flow (0 CLS). */
.home-age-prompt{position:fixed;inset:0;z-index:10000;isolation:isolate;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:rgba(10,6,8,.62);-webkit-overflow-scrolling:touch}
dialog.home-age-prompt{width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;background:transparent}
dialog.home-age-prompt::backdrop{background:rgba(10,6,8,.62)}
.home-age-btn[disabled],.home-age-btn[aria-busy="true"]{opacity:.7;pointer-events:none}
html.home-age-prompt-open .feed-scroller{-webkit-overflow-scrolling:auto!important;overflow:hidden!important}
.home-age-prompt-card{position:relative;width:min(520px,100%);max-height:min(90vh,720px);overflow:auto;background:#1a1014;color:#f6eef2;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:28px 24px 24px;box-shadow:0 16px 48px rgba(0,0,0,.4)}
.home-age-prompt-card h2{margin:0 36px 12px 0;font-size:1.25rem;line-height:1.35;font-weight:650}
.home-age-prompt-body p{margin:0 0 .75em;font-size:15px;line-height:1.65}
.home-age-prompt-policy{margin-top:4px}
.home-age-prompt-policy a{font-size:14px;color:#e7c4d2;text-decoration:underline}
.home-age-prompt-actions{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.home-age-btn{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:10px 16px;font-size:15px;line-height:1.3;font-weight:650;border-radius:10px;border:1px solid #f0d4de;background:#2a181e;color:#f6eef2;cursor:pointer}
.home-age-btn[data-age-choice="1"]{background:#f0d4de;color:#1a1014}
.home-age-btn[data-age-choice="0"]{background:transparent;color:#f6eef2}
.home-age-prompt-close{position:absolute;top:10px;right:10px;min-width:44px;min-height:44px;padding:8px;border:0;background:transparent;color:#f6eef2;font-size:14px;cursor:pointer}
#home-adult-shelf[hidden],#home-adult-shelf:empty{display:none}
html.home-age-prompt-open,html.home-age-prompt-open body{overflow:hidden}.home-age-prompt-card,.age-overlay-card{opacity:1;visibility:visible;transition:none}
@media (min-width:640px){
  .home-age-prompt-actions{flex-direction:row}
  .home-age-btn{flex:1 1 0}
}
/* home-18-popup shelf OFF: post-confirm column links */
.home-age-btn[data-age-go]{display:flex;align-items:center;justify-content:center;text-decoration:none;background:#f0d4de;color:#1a1014}
.home-age-prompt-stay{margin:14px 0 0;text-align:center}
.home-age-link{min-height:44px;padding:8px 12px;border:0;background:transparent;color:#e7c4d2;font-size:15px;text-decoration:underline;cursor:pointer}

/* h5f1: first-screen 18+ capsules (names only) and unconfirmed 糖心 shelf frame */
.adult-capsules{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0 4px;align-items:center}
.home-hero + .wrap .adult-capsules,.wrap > .adult-capsules{padding-top:0}
body > .adult-capsules,main > .adult-capsules{padding:10px 16px 0}
.adult-capsule{display:inline-flex;align-items:center;gap:.28em;min-height:36px;padding:.28em .85em;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(32,16,22,.72);color:#f6eef2;font-size:14px;font-weight:650;text-decoration:none;line-height:1.2}
.adult-capsule .badge-18{font-size:11px;letter-spacing:.04em}
.adult-capsule:hover,.adult-capsule:focus-visible{border-color:#e7c4d2;background:rgba(80,28,44,.9)}
.home-tx-shelf-gate .home-tx-grid-gate{pointer-events:none}
.home-tx-slot{display:block;aspect-ratio:2/3;border-radius:10px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));border:1px dashed rgba(255,255,255,.14)}

/* hero-restore (desktop home): brand H1, visible slogan typography, featured-cover backdrop, 3 peeks stay visible. */
.brand>h1{font-size:30px;font-weight:600;letter-spacing:.06em;white-space:nowrap;margin:0;padding:0;line-height:inherit;font-family:inherit;color:inherit}
.hero-slogan{font-family:"Noto Serif CJK SC","Songti SC",SimSun,serif;font-size:clamp(38px,3.75vw,56px);font-weight:600;line-height:1.5;letter-spacing:.015em;text-wrap:balance;margin:0}
.hero-copy .hero-intro{margin-top:15px}
.hero-backdrop{opacity:.48}
.hero-backdrop img{filter:blur(18px) saturate(1.05);transform:scale(1.12);object-fit:cover}
@media(min-width:651px){
  .hero-poster.position-1,.hero-poster.position-2{opacity:1;visibility:visible;pointer-events:auto}
}
@media(max-width:1200px){
  .brand>h1{font-size:27px}
  .hero-slogan{font-size:46px}
}
@media(max-width:1100px){
  .brand>h1{font-size:22px}
}
@media(max-width:900px){
  .hero-slogan{font-size:39px}
}
@media(max-width:650px){
  .brand>h1{font-size:24px}
  .hero-slogan{font-size:31px;line-height:1.55;letter-spacing:.025em}
  .hero-slogan br{display:none}
  .hero-copy .hero-intro{font-size:12px;margin-top:6px;line-height:1.8}
}
@media(max-width:360px){
  .hero-slogan{font-size:27px}
}
