/* v40l8e2 (revision of 40l8e, owner t239s / t240u): 选剧 first-screen fit, rank-card width, tab-bar unselected pill.
   Night: brand pink on a deep near-black. Day: #fff / #F7F7F8 background, #141414 text, same brand pink as accent, light-grey cards.
   Video and player surfaces stay dark (feed.css / style-cold). No inline styles (CSP style-src 'self'). */
:root{
  --th-bg:#0d0b0c;--th-fg:#f4f1f2;--th-sub:#b8a9ae;--th-line:#ffffff14;--th-card:#161214;--th-pill:#ff2d6f;
  --th-pill-ink:#fff;--th-tabbar:#0d0b0ce8;--th-shadow:0 8px 24px #00000066;
}
html[data-theme=light]{
  --th-bg:#f7f7f8;--th-fg:#141414;--th-sub:#6b6b73;--th-line:#e6e6e9;--th-card:#fff;--th-pill:#e8336b;
  --th-pill-ink:#fff;--th-tabbar:#fffffff0;--th-shadow:0 6px 18px #14141414;
}
/* Hand-designed day palette for 选剧 / 我的 / 抽屉 / 底栏. Overrides the generated theme-light sheet. Video surfaces stay dark. */
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]){
  --discover-bg:#f7f7f8;--discover-panel:#fff;--discover-border:#e6e6e9;--discover-fg:#141414;--discover-sub:#6b6b73;
  --discover-rose:#e8336b;--accent:#e8336b;--bg:#f7f7f8;--panel:#fff;--ink:#141414;--muted:#6b6b73;--focus:#e8336b;
  color-scheme:light;background:#f7f7f8;color:#141414;
}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) body,
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .discovery{background:#f7f7f8;color:#141414}
html[data-theme=light][data-view=discover][data-feed-tab=theater] .feed-topbar{background:#f7f7f8f2;color:#141414}
html[data-theme=light][data-view=discover][data-feed-tab=theater] .feed-tabs a{color:#6b6b73}
html[data-theme=light][data-view=discover][data-feed-tab=theater] .feed-tabs a[aria-current]{color:#141414}
html[data-theme=light][data-view=discover][data-feed-tab=theater] .feed-tabs a[aria-current]::after{background:#e8336b}
html[data-theme=light][data-view=discover][data-feed-tab=theater] .feed-topbar .nav-burger,
html[data-theme=light][data-view=discover][data-feed-tab=theater] .th-search-btn,
html[data-theme=light][data-view=discover][data-feed-tab=theater] .feed-inbox{color:#141414}
html[data-theme=light] .nav-drawer{background:#fff;color:#141414;border-right:1px solid #e6e6e9;box-shadow:8px 0 28px #1414141a}
html[data-theme=light] .drawer-search{background:#f7f7f8;border-color:#e6e6e9}
html[data-theme=light] .drawer-search button{background:#e8336b;color:#fff}
html[data-theme=light] .drawer-list a:hover,html[data-theme=light] .drawer-list a:active{background:#1414140a}
html[data-theme=light] .drawer-theme{border-color:#e6e6e9}
html[data-theme=light] .drawer-theme-switch{background:#d4d4d8}
html[data-theme=light] .drawer-theme[aria-pressed=true] .drawer-theme-switch{background:#e8336b}
html[data-theme=light] .drawer-links a{color:#6b6b73}
html[data-theme=light] .nav-backdrop{background:#14141455}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .nav-burger{color:#141414}
html[data-theme=light] .discover-header{border-bottom-color:#e6e6e9}

/* Theater page padding (14px sides so three 112px 精选榜 cards fit in 390). Top bar is sticky from feed.css.
   First-screen spacing is tight so 新剧上线 posters+titles clear the tab bar on 390×844, including the unconfirmed age-note. */
html[data-view="discover"][data-feed-tab="theater"] .theater-home{padding:2px 14px calc(var(--nav-h,70px) + 20px)}
/* discover-wrap still uses --discover-gap (~16–18px at 390) on the theater tab; that plus 14px clipped 精选榜 #3. Feed tab already zeroes this padding. */
html[data-view="discover"][data-feed-tab="theater"] .discover-wrap{padding-left:0;padding-right:0;max-width:none}
html[data-view="discover"][data-feed-tab="theater"]{background:var(--th-bg)}
.th-search-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;padding:0;border:0;border-radius:12px;background:none;color:inherit;cursor:pointer}
.th-search-btn:focus-visible{outline:2px solid var(--th-pill);outline-offset:2px}
.th-searchbar{display:flex;align-items:center;gap:8px;margin:4px 0 12px}
.th-searchbar .discover-find{flex:1;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;margin:0;border:1px solid var(--th-line);border-radius:12px;background:var(--th-card)}
.th-searchbar .discover-find svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;opacity:.7}
.th-searchbar .discover-find input{flex:1;min-width:0;height:44px;border:0;background:none;color:inherit;font-size:16px;outline:none;padding:0}
.th-search-cancel{flex:none;min-height:44px;padding:0 8px;border:0;background:none;color:var(--th-sub);font-size:15px;font-weight:600}
.th-age-note{margin:0 0 6px;font-size:12px;line-height:1.45;color:var(--th-sub)}
button.th-age-note{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:10px 0;border:0;background:transparent;text-align:left;font:inherit;color:var(--th-sub);text-decoration:underline;cursor:pointer}
button.th-age-note:hover,button.th-age-note:focus-visible{color:var(--th-fg,#f6eef2)}

.th-tabs{display:flex;align-items:center;gap:8px;overflow:auto;scrollbar-width:none;margin:0 0 6px;border:0;white-space:nowrap}
.th-tabs::-webkit-scrollbar{display:none}
.th-tabs button{flex:none;min-height:34px;padding:0 13px;border:0;border-radius:999px;background:transparent;color:var(--th-sub);font-size:13px;font-weight:650}
.th-tabs button[aria-pressed=true]{background:var(--th-fg);color:var(--th-bg);font-weight:800}
.th-tabs button[aria-pressed=true]::after{display:none}
.th-tabs .badge-18{margin-left:4px;border-color:currentColor;color:inherit;height:16px;min-width:28px;font-size:10px}
html[data-theme=light] .th-tabs button[aria-pressed=true]{background:#141414;color:#fff}

/* Banner / carousel — shorter than 16/9 so the first 新剧上线 row fits above the tab bar. */
.th-banner{position:relative;margin:0 0 8px}
.th-banner-track{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;border-radius:16px}
.th-banner-track::-webkit-scrollbar{display:none}
.th-slide{position:relative;flex:0 0 100%;scroll-snap-align:start;aspect-ratio:2.3/1;min-height:140px;overflow:hidden;color:#fff;text-decoration:none;background:#1a1216}
.th-slide-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%;filter:blur(18px) saturate(1.15);transform:scale(1.12);opacity:.55}
.th-slide-shade{position:absolute;inset:0;background:linear-gradient(90deg,#0a0708f0 0%,#0a0708a8 42%,#0a070822 100%)}
.th-slide>.th-poster{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:80px;height:120px;border-radius:10px;box-shadow:0 8px 22px #00000080;z-index:1}
.th-slide-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:4px;height:100%;padding:10px 108px 12px 14px;box-sizing:border-box}
.th-chip{display:inline-flex;align-items:center;min-height:18px;padding:0 7px;border-radius:4px;background:#ffffff22;font-size:11px;font-weight:700;letter-spacing:.02em}
.th-chip.is-adult{background:#ff2d6f}
.th-slide-title{margin:0;font-size:17px;font-weight:800;letter-spacing:-.02em;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.th-slide-meta,.th-slide-sum{font-size:12px;color:#ffffffcc;line-height:1.4}
.th-slide-sum{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.th-play{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:0 12px;margin-top:0;border-radius:999px;background:var(--th-pill);color:var(--th-pill-ink);font-size:12px;font-weight:800}
.th-play svg{width:14px;height:14px;fill:currentColor}
.th-dots{position:absolute;left:0;right:0;bottom:6px;display:flex;justify-content:center;gap:5px;pointer-events:none;z-index:2}
.th-dots i{width:5px;height:5px;border-radius:50%;background:#ffffff55}
.th-dots i.is-on{width:14px;border-radius:3px;background:#fff}

/* Section rails */
.th-sec{margin:0 0 8px}
.th-head{display:flex;align-items:center;justify-content:space-between;min-height:28px;margin:0 0 4px}
.th-head h2{margin:0;font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--th-fg)}
.th-more{color:var(--th-sub);font-size:13px;font-weight:600;text-decoration:none;min-height:36px;display:inline-flex;align-items:center}
.th-rail{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 0 2px;margin:0;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.th-rail::-webkit-scrollbar{display:none}
/* Exactly three cards in the 390 content box; do not peek a 4th card. */
.th-rail .th-card,.th-rank .th-card{flex:0 0 calc((100% - 20px) / 3);max-width:calc((100% - 20px) / 3);scroll-snap-align:start}

/* Poster card */
.th-card{display:grid;gap:6px;min-width:0;color:var(--th-fg);text-decoration:none}
.th-poster{position:relative;display:block;aspect-ratio:2/3;border-radius:10px;overflow:hidden;background:#1c1618;box-shadow:0 2px 8px #00000033}
html[data-theme=light] .th-poster{background:#ececef;box-shadow:0 2px 8px #14141412}
.th-poster img{width:100%;height:100%;object-fit:cover;display:block}
.th-fallback{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:10px 8px 12px;background:linear-gradient(165deg,#3a1a28 0%,#1a0d14 58%,#0d0b0c 100%);color:#fff}
html[data-theme=light] .th-fallback{background:linear-gradient(165deg,#ffd6e2 0%,#f3e4ea 55%,#ececef 100%);color:#141414}
.th-fb-logo{display:grid;place-items:center;width:36px;height:36px;margin:auto}
.th-fb-logo svg{width:36px;height:36px}
.th-fb-mark{fill:#ff2d6f}
html[data-theme=light] .th-fb-mark{fill:#e8336b}
.th-fb-logo g{stroke:#fff}
html[data-theme=light] .th-fb-logo g{stroke:#fff}
.th-fb-title{font-size:12px;font-weight:700;line-height:1.3;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.th-title{font-size:13px;font-weight:650;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.th-sub{font-size:11px;color:var(--th-sub);line-height:1.3}
.th-tag,.th-eps{position:absolute;z-index:1;font-size:10px;font-weight:800;line-height:1;letter-spacing:.02em}
.th-tag{top:6px;left:6px;min-height:16px;padding:3px 5px;border-radius:4px;background:#00000088;color:#fff}
.th-tag.is-adult{background:#ff2d6f}
.th-eps{right:6px;bottom:6px;padding:3px 5px;border-radius:4px;background:#00000088;color:#fff}
.th-rank-no{position:absolute;left:0;bottom:0;z-index:1;min-width:22px;height:22px;padding:0 5px;border-radius:0 8px 0 10px;background:#000000b3;color:#fff;font-size:13px;font-weight:800;display:grid;place-items:center}
.th-rank-no.is-top{background:var(--th-pill);color:#fff}

/* 3-column grid */
.th-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
.th-grid .th-card{display:grid}
.discover-empty{margin:16px 0;text-align:center;color:var(--th-sub);font-size:13px}
.discover-more{display:block;width:100%;min-height:44px;margin:8px 0 0;border:1px solid var(--th-line);border-radius:12px;background:transparent;color:var(--th-fg);font-weight:700}

/* Community teaser */
.th-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.th-post{display:grid;gap:6px;min-width:0;color:var(--th-fg);text-decoration:none}
.th-post-thumb{display:block;aspect-ratio:16/10;border-radius:10px;overflow:hidden;background:#1c1618}
html[data-theme=light] .th-post-thumb{background:#ececef}
.th-post-thumb img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;opacity:1;visibility:visible;filter:none;mix-blend-mode:normal;background:transparent}
.th-post-thumb.is-avatar{aspect-ratio:1;border-radius:50%;width:48px;height:48px;margin:4px auto 0}
.th-post-title{font-size:12px;font-weight:650;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.th-post-meta{font-size:11px;color:var(--th-sub)}

/* v40n6 4-item tab bar: 选剧 / 随心看 (logo + label) / 我的 / 搜索. Min 44px targets, labels ≥14px. */
.tx-tabbar,.player-bottom.tx-tabbar,.discover-bottom.tx-tabbar{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:center;justify-items:stretch;text-align:center;
  height:calc(62px + env(safe-area-inset-bottom,0px));padding:0 8px env(safe-area-inset-bottom,0px);
  background:var(--th-tabbar);border:0;border-top:1px solid var(--th-line);border-radius:0;backdrop-filter:blur(16px);
  width:min(100%,480px);
}
.tx-tabbar .tx-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;min-width:44px;padding:4px 2px;color:var(--th-sub);font-size:14px;font-weight:650;text-decoration:none;background:none;border:0}
.tx-tabbar .tx-tab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tx-tabbar .tx-tab[aria-current]{color:var(--th-pill,#ff2d6f);font-weight:800}
.tx-tabbar .tx-tab[aria-current]::after,.tx-tabbar a[aria-current]::after,.player-bottom.tx-tabbar a[aria-current]::after{display:none}
.tx-tab-hero{display:flex!important;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0;background:none;border:0;text-decoration:none}
/* Unselected 随心看 is an outline so 推荐 does not look like 随心看 is current. Selected (#/ 随心看) stays the solid raised pink pill. */
.tx-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 18px;border-radius:999px;background:transparent;color:var(--th-pill);border:2px solid var(--th-pill);font-size:14px;font-weight:800;letter-spacing:.02em;box-shadow:none;transform:none;box-sizing:border-box}
html[data-theme=light] .tx-pill{box-shadow:none}
.tx-pill-icon{width:16px;height:16px;fill:currentColor;stroke:none}
.tx-tab-hero[aria-current] .tx-pill{background:var(--th-pill);color:var(--th-pill-ink);border-color:var(--th-pill);box-shadow:0 8px 20px #ff2d6f88;transform:translateY(-6px)}
html[data-theme=light] .tx-tab-hero[aria-current] .tx-pill{box-shadow:0 8px 20px #e8336b44}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .tx-pill{box-shadow:none}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .tx-tab-hero[aria-current] .tx-pill{box-shadow:0 8px 20px #e8336b44}
/* Feed (推荐) and 随心看 player stay dark even in day mode; the tab bar still uses the same raised pink pill. */
html[data-theme=light][data-view=discover][data-feed-tab=feed] .tx-tabbar,
html[data-theme=light][data-view=player] .tx-tabbar{--th-tabbar:#0d0b0ce8;--th-line:#ffffff14;--th-fg:#f4f1f2;--th-sub:#b8a9ae;--th-pill:#ff2d6f}
html[data-view=discover][data-feed-tab=feed] .tx-tabbar,
html[data-view=player] .tx-tabbar{--th-tabbar:#0d0b0ce8;--th-line:#ffffff14}

/* 我的: visual pass only (same features, tighter cards, day-safe colours). */
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-hero-card,
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-header-card{background:#fff;border:1px solid #e6e6e9;box-shadow:0 4px 14px #1414140d;color:#141414}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-name{color:#141414}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-quick,
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-inbox-entry,
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-empty{background:#fff;border-color:#e6e6e9;color:#141414}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-quick svg,
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-inbox-entry svg{stroke:#e8336b}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-download-entry,
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-feedback-entry,
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-points-faq-entry,
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-task-entry{background:#fff;border-color:#e6e6e9;color:#141414}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-avatar-btn{border-color:#e6e6e9;background:#f0f0f2}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-type-toggle{background:#f7f7f8;border-color:#e6e6e9}
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-fine-print,
html[data-theme=light][data-view=discover]:not([data-feed-tab=feed]) .mine-sub{color:#6b6b73}
.mine-hero-card,.mine-header-card{border:1px solid var(--th-line);box-shadow:none}
.mine-shelf-head h2{font-size:17px;font-weight:700}
#discover-profile{color:var(--th-fg)}

/* v40l8e2: logged-out 我的 first screen — 继续观看 (title + card) must clear the tab bar on 390×844. */
#discover-profile{padding:6px 16px calc(var(--nav-h,70px) + 20px)}
.mine-logged-out{gap:8px}
.mine-hero-card{padding:12px 16px 12px}
.mine-hero-mark{width:36px;height:36px;border-radius:12px;margin-bottom:6px}
.mine-hero-mark svg{width:20px;height:20px}
.mine-hero-card h2{font-size:18px}
.mine-hero-card p,.mine-sub{margin:4px 0 0;line-height:1.45}
.mine-auth-form{gap:8px;margin:0}
.mine-shelves{gap:14px;margin-top:4px}
.mine-shelf-head{margin-bottom:6px}
.mine-points-faq-entry{margin:0 0 4px;min-height:40px}

/* v40n3: 立即播放 sits on the hero poster; 随心刷 is a quiet section title only. */
.th-slide{position:relative}
.th-slide-info{display:block;position:absolute;inset:0;z-index:1;color:inherit;text-decoration:none}
.th-slide-info .th-poster{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:80px;height:120px;border-radius:10px;box-shadow:0 8px 22px #00000080}
.th-hero-play{position:absolute;right:16px;bottom:18px;z-index:2;display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:0 12px;border-radius:999px;background:var(--th-pill,#ff2d6f);color:var(--th-pill-ink,#fff);font-size:12px;font-weight:800;text-decoration:none;box-shadow:0 4px 12px #00000066}
.th-hero-play svg{width:14px;height:14px;fill:currentColor}
#th-feed-sec{margin-top:4px}
#th-feed-sec .th-head{padding-bottom:2px}
/* h5f2: keep 18+ category tabs, capsules, and drawer links visible while unconfirmed.
   Only the JS-filled works rail stays hidden; the empty gate shelf is a different id. */
html[data-hide-adult="1"] #th-tx-sec{display:none !important}
.work-ssr{padding:16px 16px calc(var(--nav-h,70px) + 24px)}
html[data-view="work"] .work-ssr{display:block}
html[data-view="work"] #theater-home,
html[data-view="work"] #feed-home,
html[data-view="player"] #theater-home{display:none}
.work-ssr-body h1{font-size:1.25rem;margin:8px 0}
.work-ssr-cover{width:120px;height:180px;object-fit:cover;border-radius:10px}
.work-ssr-synopsis{font-size:14px;line-height:1.55;color:var(--th-sub,#c9b3bd)}
.work-ssr-eps{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}
.work-ssr-eps a,.work-ssr-eps span{display:inline-block;padding:6px 10px;border-radius:8px;background:#ffffff14;color:inherit;text-decoration:none}
.watch-ssr{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}


/* v40n6: 随心看 logo+label, bottom search sheet */
/* v40n6f: 随心看 pink/raised only when aria-current (fullscreen feed). 选剧/首页 must highlight 选剧. */
.tx-feed-mark{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;transform:none}
.tx-feed-mark img{width:28px;height:28px;border-radius:8px;background:transparent;box-shadow:none;opacity:.75}
.tx-feed-mark span{font-size:14px;font-weight:650;color:var(--th-sub,#b8a9ae);line-height:1.2}
.tx-tab-hero[aria-current] .tx-feed-mark{transform:translateY(-8px)}
.tx-tab-hero[aria-current] .tx-feed-mark img{background:#fff;box-shadow:0 0 0 2px var(--th-pill,#ff2d6f),0 6px 14px #ff2d6f55;opacity:1}
.tx-tab-hero[aria-current] .tx-feed-mark span{font-weight:800;color:var(--th-pill,#ff2d6f);line-height:1.2}
/* v40n6d: hide must clear the tab-bar offset (bottom is 62px + safe-area). 110% of the sheet height is not enough and left a peek. */
.th-searchbar.mobile-search-sheet{position:fixed;left:0;right:0;bottom:calc(62px + env(safe-area-inset-bottom,0px));z-index:45;display:flex;align-items:center;gap:8px;width:min(100%,480px);margin:0 auto;padding:10px 12px;background:var(--th-tabbar,#1a1218);border-top:1px solid var(--th-line,#3a2a34);box-shadow:0 -10px 28px #0008;transform:translateY(calc(100% + 62px + env(safe-area-inset-bottom,0px) + 24px));transition:transform .28s ease;pointer-events:none}
.th-searchbar.mobile-search-sheet.is-open{transform:translateY(0);pointer-events:auto}
.th-searchbar.mobile-search-sheet[hidden]{display:flex!important;transform:translateY(calc(100% + 62px + env(safe-area-inset-bottom,0px) + 24px));pointer-events:none}
.th-searchbar.mobile-search-sheet .discover-find{flex:1;margin:0}
.th-searchbar.mobile-search-sheet input{min-height:44px;font-size:16px}
.th-searchbar.mobile-search-sheet .th-search-cancel{min-height:44px;font-size:16px;border:0;background:transparent;color:var(--th-sub,#c4b5bd)}
@media (prefers-reduced-motion:reduce){.th-searchbar.mobile-search-sheet{transition:none}}

/* v40n6b: 选剧顶部 banner 用封面 object-fit:cover 铺满，不再靠低透明度留出空黑底 */
.th-slide-bg{opacity:1;filter:none;transform:none;object-fit:cover;object-position:center center;width:100%;height:100%}
.th-slide-shade{background:linear-gradient(180deg,#0000 0%,#0000 42%,#0a0708aa 70%,#0a0708e8 100%)}
.th-poster img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}

/* 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}
@media (min-width:640px){
  .home-age-prompt-actions{flex-direction:row}
  .home-age-btn{flex:1 1 0}
}
#home-adult-shelf .th-sub-line{margin:0 0 8px;font-size:12px;line-height:1.4;color:var(--th-muted,#b9a8ae)}
/* 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 on the H5 theater (names only, no covers) */
.th .adult-capsules,.theater-home .adult-capsules{display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px 4px}
.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}
.th-tx-gate .th-rail,.th-tx-gate .home-tx-grid-gate{pointer-events:none}
.th-tx-slot,.home-tx-slot{display:block;flex:0 0 28%;max-width:120px;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)}

/* 40w1: the work document shows its own detail. The whole player column is hidden; the status sentence is left unchanged. */
html[data-view="work"] body{display:block!important;min-height:100dvh;height:auto!important;overflow:auto!important;margin:0;background:#180c12}
html[data-view="work"] :is(.phone,.desktop-brand,.desktop-next){display:none!important}
html[data-view="work"] .discovery{min-height:0;height:auto;background:transparent}
html[data-view="work"] :is(.discover-header,#discover-home,#discover-profile,#inbox-page,#community-page){display:none!important}
html[data-view="work"] .discover-bottom{display:grid!important}
html[data-view="work"] .work-ssr{display:block!important;position:relative;z-index:1;min-height:100dvh;box-sizing:border-box;overflow:visible;padding:16px 16px calc(66px + env(safe-area-inset-bottom,0px) + 24px)}

/* Detail play link only. The shared absolute pin stays on the home hero. */
html[data-view="work"] a.work-ssr-play{
  position:static;
  right:auto;
  bottom:auto;
  z-index:auto;
  display:inline-flex;
  margin:12px 0 8px;
}

.th-slide-bg { filter: blur(12px); transform: scale(1.12); opacity: .65; }
