/* Approved mobile HTML, integrated with existing site behavior. */
:root,html[data-site-theme="dark"]{--v2-bg:#121018;--v2-panel:#201a2a;--v2-line:#493352;--v2-text:#f8f3ff;--v2-muted:#aaa2b5;--v2-accent:#d6b2ff;--v2-gradient:linear-gradient(115deg,#a97af5,#e59bce);--peach-paper:#121018;--peach-card:#201a2a;--peach-ink:#f8f3ff;--peach-muted:#aaa2b5;--peach-border:#493352;--peach-selected:#382440;--peach-accent:#d6b2ff;--peach-accent-text:#ead1fa;--peach-header-start:#251a30;--peach-header-end:#18131f;--peach-shadow:none}
html body.template-ui{background:var(--v2-bg);color:var(--v2-text);font-family:-apple-system,BlinkMacSystemFont,'Noto Sans TC',sans-serif;font-size:14px;color-scheme:dark}
body.template-ui .readbox,body.template-ui .my-page.figma-ui{background:var(--v2-bg);color:var(--v2-text)}
body.template-ui .readbox.has-bottom-tabs{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}
body.template-ui .readbox.home-feed-container{padding-bottom:0}
body.template-ui a{color:inherit}
body.template-ui :is(button,a,input,select):focus-visible{outline:2px solid #e6b8ff;outline-offset:3px}
body.template-ui .bottom-tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:41.4rem;box-sizing:border-box;display:flex;z-index:30;background:#18131ff5;border-top:1px solid #34263f;padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));backdrop-filter:blur(15px);box-shadow:none}
body.template-ui .bottom-tabs a{flex:1;min-width:0;height:49px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;line-height:14px;color:#aaa2b5;border-radius:7px;font-weight:400}
body.template-ui .bottom-tabs svg{height:21px;width:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.template-ui .bottom-tabs a[aria-current="page"]{background:linear-gradient(180deg,#a671ca26,transparent);color:#e6b8ff}
body.template-ui .v2-header{height:65px;padding:0 16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #28202f;box-sizing:border-box}
.v2-header svg,.v2-account-shortcuts svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.v2-search{display:flex;align-items:center;gap:10px;background:#241c2e;border:1px solid #44344f;border-radius:8px;padding:0 12px;height:40px;flex:1;min-width:0;color:#aaa2b5}
.v2-search input{min-width:0;width:100%;font-size:12px;border:0;background:transparent;color:#f3e6ff;outline:none}
.v2-search input::placeholder{color:#aaa2b5}
.v2-notification{width:34px;height:44px;display:grid;place-items:center;color:#bda9c8!important}
body.template-ui .v2-theater{background:var(--v2-bg);min-height:100%;padding-bottom:24px}
.v2-carousel{position:relative;overflow:hidden;margin:18px 16px 0;border-radius:12px;background:#211927;touch-action:pan-y;cursor:pointer}
.v2-carousel-track{position:relative;aspect-ratio:16/9}
.v2-carousel-slide{position:absolute;inset:0;width:100%;height:100%;isolation:isolate}
.v2-carousel-slide[hidden]{display:none}
.v2-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;filter:brightness(.65)}
.v2-carousel-slide:after{position:absolute;content:'';inset:0;background:linear-gradient(90deg,#17121be6,transparent),linear-gradient(0deg,#110b18cc,transparent 75%);z-index:-1}
.v2-hero-image{z-index:-2}
.v2-hero-copy{padding:18px 18px 42px;position:relative;height:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px}
.v2-hero-badge{background:var(--v2-gradient);color:#271333;font-size:10px;border-radius:4px;padding:4px 8px}
body.template-ui .v2-hero-copy h1{font-size:26px;line-height:1.35;font-weight:800;margin:0;max-width:50%;flex-shrink:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#fff}
.v2-hero-copy p{font-size:11px;color:#d3c3df;margin:0}
.v2-hero-copy .v2-hero-description{max-width:50%;flex-shrink:0;font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.v2-hero-actions{display:flex;gap:8px;margin-top:4px}
.v2-primary,.v2-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;box-sizing:border-box;font-size:12px;font-weight:600;border-radius:7px;border:0;cursor:pointer}
body.template-ui .v2-primary{background:var(--v2-gradient);color:#21132d}
.v2-secondary{background:#34233e;border:1px solid #73518c;color:#f0dfff}
.v2-carousel-dots{position:absolute;bottom:4px;left:12px;display:flex;gap:1px}
.v2-carousel-dots button{width:27px;height:32px;display:grid;place-items:center;background:transparent;border:0;padding:0}
.v2-carousel-dots button:after{content:'';width:7px;height:4px;background:#ffffff55;border-radius:8px}
.v2-carousel-dots button[aria-current="true"]:after{width:20px;background:#f0b6f5}
.v2-theater-library{padding:18px 16px 0}
.v2-chips{display:flex;overflow-x:auto;gap:4px;align-items:center;border-top:1px solid #34263f;padding-top:18px;scrollbar-width:thin}
.v2-chips a{flex:none;white-space:nowrap;padding:9px 14px;color:#c0b5cd!important;font-size:13px;border-radius:6px;min-height:38px;box-sizing:border-box}
.v2-chips a.active{background:linear-gradient(110deg,#dcc3ff,#f2c1de);color:#321842!important}
.v2-library-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 0 20px}
.v2-quick-links{display:flex;gap:10px;font-size:11px;color:#bda9c8}
.v2-quick-links a{min-height:36px;display:flex;align-items:center}
.v2-library-filters{display:flex;gap:7px;margin-left:auto}
.v2-library-filters select{max-width:108px;min-height:36px;padding:6px;color:#e0cfe9;border:1px solid #554065;border-radius:6px;background:#261c30;font-size:11px}
.v2-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px;padding:0}
.v2-poster{min-width:0;position:relative}
.v2-poster-image{display:block;aspect-ratio:2/2.7;position:relative;overflow:hidden;border-radius:9px;background:#25202d}
.v2-poster-image img{width:100%;height:100%;object-fit:cover;display:block}
.v2-poster-image:after{content:'';position:absolute;inset:70% 0 0;background:linear-gradient(transparent,#100c1899);pointer-events:none}
.v2-status-badge{position:absolute;top:9px;left:8px;z-index:1;background:#20132fd9;border:1px solid #cfaae555;color:#f3e6ff;font-size:10px;padding:4px 6px;border-radius:4px}
.v2-save{position:absolute;top:8px;right:7px;z-index:2;background:#1119;color:#fff;border:0;border-radius:50%;width:32px;height:32px;font-size:21px;display:grid;place-items:center}
.v2-save svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
.v2-save.is-followed{background:#704592;color:#ffe5ff}
.v2-poster-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:500;line-height:1.6;margin:10px 0 7px;color:#f4eaf9!important}
.v2-episode-label{display:inline-block;border:1px solid #62526d;border-radius:5px;background:#302a3d;color:#ded4ee;padding:5px 7px;font-size:10px;line-height:1.4}
.v2-poster-tags{font-size:10px;color:#a89ab6;line-height:1.6;margin:8px 0 0}
.v2-empty{color:var(--v2-muted);padding:40px 16px;text-align:center;line-height:1.8}
.v2-theater-pagination{min-height:1px;text-align:center;color:var(--v2-muted)}
.v2-theater-pagination:not(:empty){padding:14px 0;font-size:13px}
/* My page retains account binding IDs and the original dialog handlers. */
html body.template-ui .my-page.figma-ui .my-page.figma-ui{padding:0 0 28px;background:#121018}
html body.template-ui .my-page.figma-ui .my-shell{padding:18px 16px 0}
html body.template-ui .my-page.figma-ui .my-profile-card{background:none;border:0;box-shadow:none;padding:20px 0;margin:0 0 14px;gap:15px;min-height:100px}
html body.template-ui .my-page.figma-ui .my-avatar{width:56px;height:56px;background:linear-gradient(135deg,#6a4291,#a55788);border:0;box-shadow:none}
html body.template-ui .my-page.figma-ui #userinfo_name{color:#f8f3ff;font-size:22px;line-height:1.4;max-width:100%}
html body.template-ui .my-page.figma-ui .my-profile-main{padding:0}
html body.template-ui .my-page.figma-ui .my-profile-top{display:block}
html body.template-ui .my-page.figma-ui #vip_container{color:#bda9c8;font-size:12px}
html body.template-ui .my-page.figma-ui .my-profile-card>.my-chevron{display:none}
html body.template-ui .my-page.figma-ui .my-vip-banner{background:linear-gradient(125deg,#352146,#542b4a);border:1px solid #8b5b98;border-radius:12px;padding:20px 16px;min-height:126px;margin-bottom:20px}
html body.template-ui .my-page.figma-ui .my-vip-banner:after{display:none}
html body.template-ui .my-page.figma-ui .my-vip-title{color:#f9e8ff;font-size:20px}
html body.template-ui .my-page.figma-ui .my-vip-title img{display:none}
html body.template-ui .my-page.figma-ui .my-vip-desc{color:#dbc4e3;font-size:12px}
html body.template-ui .my-page.figma-ui #openVipBtn{background:var(--v2-gradient);color:#21132d;border-radius:7px;box-shadow:none;width:auto;min-width:80px;height:40px;font-size:12px;padding:0 12px;white-space:nowrap}
.v2-account-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0 30px;border:1px solid #493352;background:#211a2b;border-radius:12px;padding:18px 0}
.v2-account-shortcuts a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;border-right:1px solid #493352;color:#eac8ff!important;min-height:46px;font-size:11px}
.v2-account-shortcuts a:last-child{border:0}
.v2-section-title{font-size:21px;color:#f7ecff;font-weight:700;margin:20px 0 16px}
.v2-services>a,.v2-services>button{width:100%;min-height:59px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid #3b2c47;padding:14px 0;text-align:left;background:transparent;color:#f8f3ff!important;font-size:14px;box-sizing:border-box}
.v2-services :is(a,button)>span:last-child{color:#bda9c8;font-size:11px}
.v2-about-intro{margin:15px 16px;color:#bda9c8;font-size:12px}
.v2-about .v2-services{margin:15px 20px 30px}
.v2-likes .v2-library-grid{padding:20px 16px}
.v2-follow-intro{padding:24px 16px 10px}
.v2-follow-intro h1{font-size:26px;line-height:1.5;margin:8px 0;color:#f8f3ff}
.v2-follow-intro p{color:#aaa2b5;font-size:12px;margin:8px 0}
.v2-eyebrow{font-size:10px!important;letter-spacing:3px;color:#dcbbff!important}
body.template-ui .v2-follow .record-topbar{display:none}
body.template-ui .v2-follow .record-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
body.template-ui .v2-follow .record-card{display:block;padding:0;border:0;background:transparent;box-shadow:none;overflow:hidden}
body.template-ui .v2-follow .record-avatar{width:100%;height:auto;aspect-ratio:2/2.7;border-radius:9px;object-fit:cover}
body.template-ui .v2-follow .record-info{padding:10px 0;position:relative}
body.template-ui .v2-follow .record-name{font-size:14px;color:#f4eaf9}
body.template-ui .v2-follow .record-action{bottom:0;right:auto;left:0;min-height:30px;font-size:11px}
body.template-ui .v2-follow .record-pagination{grid-column:1/-1}
/* Feed geometry and event hooks stay with the existing player. */
html body.template-ui .feed-actions{bottom:140px;gap:12px;right:10px}
html body.template-ui .feed-actions button{width:48px;min-height:48px;gap:6px;font-size:10px;padding:3px;color:#f7ebff}
html body.template-ui .feed-actions svg{width:27px;height:27px;stroke-width:1.7}
html body.template-ui .feed-actions button[aria-pressed="true"]{color:#e6b8ff}
html body.template-ui .feed-actions .feed-sound{position:static;background:transparent;border:0;box-shadow:none;border-radius:0;display:flex}
html body.template-ui .feed-sound[hidden]{display:flex}
html body.template-ui .feed-header{display:none}
html body.template-ui .feed-watch{background:var(--v2-gradient);color:#21132d;border:0;border-radius:7px}
html body.template-ui .feed-watchbar{padding:0 20px}
html body.template-ui .feed-watch-arrow{color:#21132d}
html body.template-ui .feed-watch-label>svg{fill:none;stroke:#21132d}
html body.template-ui .feed-title-text{font-weight:800;font-size:26px}
html body.template-ui .feed-primary-tag{color:#f6d7ff;background:#492c57c9;border:1px solid #ca96df70;border-radius:5px}
html body.template-ui .feed-info{left:25px;right:65px}
/* Integrate remaining account, discovery and player sheets in one palette. */
html body.template-ui :is(.activation-dialog,.cs-dialog,.logout-dialog,.my-more-drawer,.readpopbox,.episode-sheet){background:#23192d;color:#f8f3ff;border-color:#684678}
html body.template-ui :is(.pop_login_container,.pop_register_container,.pop_retry_container,.pop_retry_next_container){
    background:var(--v2-panel);
    color:var(--v2-text);
}
html body.template-ui .pop_login_title{color:var(--v2-text)}
html body.template-ui .pop_login_tool{color:var(--v2-accent)}
html body.template-ui :is(.activation-btn.submit,.pop_login_btn,.auth_pop_login_btn){background:var(--v2-gradient);color:#21132d}
html body.template-ui :is(.activation-input-shell,.pop_login_item){background:#302139;border-color:#765783}
html body.template-ui .pop_login_item input{background:transparent;color:var(--v2-text)}
html body.template-ui .pop_login_item input::placeholder{color:var(--v2-muted)}
html body.template-ui .figma-episodes .pop-info h3{color:#f8f3ff}
html body.template-ui .figma-episodes .pop-header{border-color:#5d406f}
html body.template-ui .figma-episodes .pop-info .tags span{background:#392747;color:#eee0f5}
html body.template-ui .figma-episodes .tab-item{color:#c5b2d1}
html body.template-ui .figma-episodes .tab-item.active{color:#e6b8ff}
html body.template-ui .figma-episodes .tab-item.active:after{background:#d6b2ff}
html body.template-ui .figma-episodes .chapter-grid li{background:#392747;border-color:#6f4b83;color:#eee0f5}
html body.template-ui .figma-episodes .chapter-grid li.playing{background:var(--v2-gradient);border-color:#ddb1f7;color:#24162e}
html body.template-ui .figma-episodes .intro-pane{color:#dfc9e9}
html body.template-ui .figma-episodes .follow-btn{background:var(--v2-gradient);color:#21132d}
html body.template-ui .figma-episodes .follow-btn.not-follow{background:#392747;color:#eee0f5}
html body.template-ui .episode-access-hint{background:#36243f;border-color:#805990;color:#f0d8fc}
html body.template-ui .episode-access-hint>button{background:var(--v2-gradient);color:#21132d}
html body.template-ui .site-compliance-footer-links{display:none}
html body.template-ui .site-compliance-footer{background:#121018;border-color:#28202f;padding-top:12px}
html body.template-ui .site-footer-copyright{font-size:10px;line-height:1.8;color:#81748b}
html body.template-ui .record-back{display:grid;place-items:center;font-size:26px;color:#eee0f5}
html body.template-ui .feed-comments-panel,html body.template-ui #feed-comments{color:#f8f3ff}
@media(min-width:900px){html body.template-ui .bottom-tabs{max-width:1160px}.v2-theater-library{padding:24px 30px}.v2-header{padding:0 30px!important}.v2-library-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px}.v2-carousel{margin:24px 30px 0}.v2-hero-copy{padding:35px 35px 48px}.v2-hero-copy h1{font-size:38px!important}.v2-follow-intro{padding-inline:30px}body.template-ui .v2-follow .record-list{grid-template-columns:repeat(4,minmax(0,1fr))}html body.template-ui .my-shell{max-width:760px;margin:auto}html body.template-ui .my-page .my-shell{display:block}.v2-about .v2-services{max-width:760px;margin-inline:auto}}
@media(max-width:360px){.v2-quick-links{gap:8px}.v2-library-tools{gap:4px}.v2-library-filters select{max-width:90px;font-size:10px}.v2-hero-copy h1{font-size:23px!important}.v2-account-shortcuts a{font-size:10px}.v2-episode-label{font-size:9px;padding:4px}}

html body.template-ui .readform{background:#121018}
html body.template-ui .figma-episodes .safari-pop-style{background:#23192d!important;color:#f8f3ff;color-scheme:dark}
html body.template-ui .figma-episodes .page-nav span{background:#392747;color:#cdb8d9}
html body.template-ui .figma-episodes .page-nav span.now{background:var(--v2-gradient);color:#24162e}
html body.template-ui .playbottom{background:#251a30f5;border-top:1px solid #684678;color:#f5e6ff}
html body.template-ui .playbottom .playchange{color:#f5e6ff}
html body.template-ui .safari-progress-bar,html body.template-ui .safari-knob{background:#d6b2ff!important}
html body.template-ui #feed-comments{background:#23192d;color:#f8f3ff}
html body.template-ui .feed-comments-header{border-color:#493352}
html body.template-ui .feed-comments-header button{color:#ead1fa}
html body.template-ui .feed-comment-head strong,html body.template-ui .feed-comment-reply-head strong{color:#dbc4e3}
html body.template-ui .feed-comment-text,html body.template-ui .feed-comment-reply p{color:#f8f3ff}
html body.template-ui .feed-comment-item,html body.template-ui .feed-comment-reply+.feed-comment-reply{border-color:#493352}
html body.template-ui .feed-comment-replies{background:#302139}
html body.template-ui .feed-comment-avatar{background:var(--v2-gradient);color:#21132d}
html body.template-ui #feed-comment-form{background:#23192d;border-color:#493352}
html body.template-ui #feed-comment-form textarea{background:#302139;border-color:#765783;color:#eee0f5}
html body.template-ui #feed-comment-submit{background:var(--v2-gradient);color:#21132d}
html body.template-ui #feed-comment-status{color:#bda9c8}
html body.template-ui #feed-comment-more{background:#392747;color:#e6b8ff}

/* Feed caption matches the approved four-row template; reserve navigation height. */
html body.template-ui.template-feed .home-feed-container{padding-bottom:0}
html body.template-ui.template-feed .feed-page{height:calc(100% - 64px - env(safe-area-inset-bottom,0px))}
html body.template-ui.template-feed .site-compliance-footer{display:none}
html body.template-ui.template-feed .bottom-tabs{height:calc(64px + env(safe-area-inset-bottom,0px));max-width:41.4rem;bottom:0;border-radius:0;padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px))}
html body.template-ui.template-feed .feed-slide:after{content:'';position:absolute;inset:45% 0 0;z-index:1;background:linear-gradient(transparent,rgba(0,0,0,.9));pointer-events:none}
html body.template-ui.template-feed .feed-info{position:absolute;bottom:24px;left:25px;right:65px;z-index:3;display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:0;background:none;pointer-events:none}
html body.template-ui.template-feed .feed-meta{display:block;align-self:flex-start;max-width:100%;box-sizing:border-box;padding:5px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #ca96df70;border-radius:5px;background:#492c57c9;color:#f6d7ff;font-size:11px;font-weight:600;line-height:1.7;letter-spacing:1px}
html body.template-ui.template-feed .feed-title-link{display:block;margin:0;color:#fff!important;pointer-events:auto}
html body.template-ui.template-feed .feed-title-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;text-overflow:ellipsis;font-size:26px;font-weight:800;line-height:1.4;color:#fff;text-shadow:0 1px 5px #0006}
html body.template-ui.template-feed .feed-info .feed-description{display:-webkit-box;width:92%;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:3.6em;overflow:hidden;text-overflow:ellipsis;white-space:normal;overflow-wrap:anywhere;color:#f1e5f6;font-size:12px;line-height:1.8;margin:0;text-shadow:0 1px 4px #0008}
html body.template-ui.template-feed .feed-watch{display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;width:92%;height:46px;min-height:46px;margin:8px 0 0;padding:0 12px;border:0;border-radius:7px;background:var(--v2-gradient);color:#21132d!important;font-size:12px;font-weight:700;line-height:1.5;pointer-events:auto}
html body.template-ui.template-feed .feed-watch-label{display:flex;align-items:center;gap:6px;min-width:0}
html body.template-ui.template-feed .feed-watch svg{width:18px;height:18px;flex:none;fill:none;stroke:#21132d;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.template-ui.template-feed .feed-watch .feed-watch-arrow{width:22px;height:22px}
@media(max-width:360px){html body.template-ui.template-feed .feed-info{left:20px;right:64px;gap:10px}html body.template-ui.template-feed .feed-title-text{font-size:23px}html body.template-ui.template-feed .feed-watch{padding:0 10px;font-size:11px}}
@media(max-height:650px){html body.template-ui.template-feed .feed-info{bottom:20px;gap:8px}html body.template-ui.template-feed .feed-title-text{font-size:22px}html body.template-ui.template-feed .feed-watch{margin-top:4px;height:44px;min-height:44px}}
@media(min-width:900px){html body.template-ui.template-feed .bottom-tabs{bottom:16px;width:min(540px,calc(100% - 64px));max-width:540px;border-radius:0 0 24px 24px}}
/* Playback detail: transparent header, purple footer, native chapter sheet. */
html body.template-ui.template-player{--player-footer-height:calc(74px + env(safe-area-inset-bottom,0px))}
html body.template-ui.template-player .readbox{overflow:hidden;background:#000}
html body.template-ui.template-player .site-compliance-footer{display:none}
html body.template-ui.template-player .playbody{height:calc(100% - var(--player-footer-height));padding:0;margin:0}
html body.template-ui.template-player .v2-player-header{position:absolute;top:0;left:0;right:0;z-index:40;display:grid;grid-template-columns:80px minmax(0,1fr) 80px;align-items:center;gap:6px;min-height:62px;padding:calc(8px + env(safe-area-inset-top,0px)) 12px 8px;box-sizing:border-box;background:transparent;color:#fff;text-shadow:0 1px 5px #0009;pointer-events:none}
html body.template-ui.template-player .v2-player-back{display:flex;align-items:center;min-height:40px;color:#f8f3ff;font-size:14px;font-weight:600;pointer-events:auto}
html body.template-ui.template-player .v2-player-counter{min-width:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600}
html body.template-ui.template-player .v2-player-follow{min-height:36px;padding:6px 8px;border:1px solid #c795d9;border-radius:7px;color:#f5e6ff;background:#34203d66;font-size:12px;font-weight:600;pointer-events:auto}
html body.template-ui.template-player .v2-player-follow:disabled{opacity:.6}
html body.template-ui.template-player .v2-player-bar{position:absolute;bottom:0;left:0;right:0;top:auto;z-index:40;height:var(--player-footer-height);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid #684678;background:#251a30f5;color:#f5e6ff}
html body.template-ui.template-player .v2-player-bar-copy{min-width:0;flex:1}
html body.template-ui.template-player .v2-player-bar-copy strong{display:block;font-size:13px;font-weight:700;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.template-ui.template-player .v2-player-bar-copy p{margin:5px 0 0;color:#c5b2d1;font-size:10px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.template-ui.template-player .v2-player-all-episodes{flex:none;min-height:44px;padding:4px 0 4px 8px;border:0;background:transparent;color:#f5e6ff;font-size:12px;font-weight:600;white-space:nowrap}
html body.template-ui.template-player .v2-player-all-episodes span{font-size:9px;margin-left:4px}
html body.template-ui.template-player .v2-player-picker{z-index:1000;background:rgba(0,0,0,.48)}
html body.template-ui.template-player .v2-player-picker .readpopbg{border:0;background:transparent;padding:0}
html body.template-ui.template-player .v2-player-sheet{display:flex;flex-direction:column;height:65dvh;min-height:0;max-height:calc(100dvh - var(--episode-keyboard,0px));overflow:hidden;overscroll-behavior:contain;padding:0;transform:translateY(calc(-1 * var(--episode-keyboard,0px)));border:0;border-radius:18px 18px 0 0!important;background:#23192d!important;color:#f8f3ff;box-shadow:0 -12px 40px #0003}
html body.template-ui.template-player .v2-sheet-handle{height:4px;width:32px;margin:0 auto 14px;border-radius:5px;background:#666}
html body.template-ui.template-player .v2-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
html body.template-ui.template-player .v2-sheet-heading h2{font-size:20px;font-weight:700;line-height:1.5;margin:0;color:#f8f3ff;min-width:0;overflow-wrap:anywhere}
html body.template-ui.template-player .v2-sheet-heading button{flex:none;width:40px;height:40px;border:0;padding:0;background:transparent;color:#c5b2d1;font-size:28px;line-height:1}
html body.template-ui.template-player .v2-sheet-meta{margin:8px 0 18px;color:#cdb8d9;font-size:12px;line-height:1.8}
html body.template-ui.template-player .v2-player-intro{margin:0 0 16px;padding:0 12px;border:1px solid #5d406f;background:#36243f;border-radius:9px}
html body.template-ui.template-player .v2-player-intro summary{min-height:42px;box-sizing:border-box;padding:12px 0;cursor:pointer;color:#f0d8fc;font-size:13px;font-weight:600}
html body.template-ui.template-player .v2-player-intro p{margin:0;padding:0 0 12px;font-size:12px;line-height:1.85;color:#dfc9e9;white-space:pre-wrap;overflow-wrap:anywhere}
html body.template-ui.template-player .v2-episode-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px 8px}
html body.template-ui.template-player .v2-episode-button{position:relative;min-width:0;min-height:44px;padding:8px 2px;border:1px solid #6f4b83;border-radius:6px;background:#392747;color:#eee0f5;font-size:13px;line-height:1.4}
html body.template-ui.template-player .v2-episode-button.playing{background:var(--v2-gradient);border-color:#ddb1f7;color:#24162e}
html body.template-ui.template-player .v2-episode-vip{position:absolute;top:2px;right:2px;border-radius:2px;padding:1px 2px;background:#f5dfb8;color:#704820;font-size:7px;line-height:1.2;font-weight:700}
html body.template-ui.template-player .v2-episode-pages{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0 0 14px;text-align:left}
html body.template-ui.template-player .v2-episode-pages button{min-height:32px;padding:4px 10px;border:1px solid #6f4b83;border-radius:6px;color:#cdb8d9;background:#392747;font-size:12px}
html body.template-ui.template-player .v2-episode-pages button.is-current{background:var(--v2-gradient);color:#24162e}
html body.template-ui.template-player .v2-sheet-status{padding:20px 0;color:#cdb8d9;font-size:13px;text-align:center;line-height:1.8}
html body.template-ui.template-player .v2-sheet-status button{margin-left:10px;padding:6px 12px;border:1px solid #6f4b83;border-radius:6px;background:#392747;color:#f0d8fc}
@media(max-width:360px){html body.template-ui.template-player .v2-player-header{grid-template-columns:70px minmax(0,1fr) 70px;padding-inline:10px}html body.template-ui.template-player .v2-player-counter{font-size:11px}html body.template-ui.template-player .v2-player-bar{gap:8px;padding-inline:12px}html body.template-ui.template-player .v2-player-bar-copy strong{font-size:12px}html body.template-ui.template-player .v2-player-all-episodes{font-size:11px}html body.template-ui.template-player .v2-episode-grid{gap:8px 6px}}

/* One consistent header for My likes, viewing history and membership orders. */
html body.template-ui .v2-account-header{position:relative;display:flex;align-items:center;justify-content:center;height:calc(68px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 68px 0;box-sizing:border-box;background:transparent;border-bottom:1px solid #34263f}
html body.template-ui .v2-account-back{position:absolute;left:14px;top:calc(12px + env(safe-area-inset-top,0px));width:44px;height:44px;display:grid;place-items:center;border:1px solid #493352;border-radius:12px;background:#211a2b;color:#ead1fa;box-sizing:border-box}
html body.template-ui .v2-account-back svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.template-ui .v2-account-title{min-width:0;width:100%;margin:0;text-align:center;font-size:18px;line-height:26px;font-weight:700;color:#f8f3ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* About introduction and legal pages share the account navigation header. */
html body.template-ui .v2-about-copy{margin:18px 16px 22px;padding:18px;border:1px solid #493352;border-radius:12px;background:#211a2b;color:#dfc9e9}
html body.template-ui .v2-about-copy p{margin:0;font-size:13px;line-height:1.95;overflow-wrap:anywhere;user-select:text}
html body.template-ui.page-home-copyright .v2-account-header{position:sticky;top:0;z-index:20;background:var(--v2-bg)}
html body.template-ui.page-home-copyright .copyrightbody{width:auto;max-width:100%;box-sizing:border-box;margin:20px;padding:20px;line-height:1.9;overflow-wrap:anywhere;user-select:text;display:flow-root}
html body.template-ui.page-home-copyright .copyrightbody>:first-child{margin-top:0;padding-top:0}
html body.template-ui.page-home-copyright .copyrightbody>:last-child{margin-bottom:0}
@media(min-width:900px){html body.template-ui .v2-about-copy{max-width:760px;margin-inline:auto}}

/* Logout confirmation follows the shared purple dialog palette. */
html body.template-ui .logout-dialog-body{border-bottom-color:var(--v2-line)}
html body.template-ui .logout-dialog-actions button{background:#392747;color:var(--v2-text);cursor:pointer}
html body.template-ui .logout-dialog-actions button+button{border-left-color:var(--v2-line)}
html body.template-ui .logout-dialog-actions button.confirm{background:var(--v2-gradient);color:#21132d}
html body.template-ui .logout-account-info{margin-top:18px;padding:14px 12px;border:1px solid var(--v2-line);border-radius:9px;background:#19131f}
html body.template-ui .logout-account-label{font-size:12px;line-height:1.6;color:#bda9c8}
html body.template-ui .logout-account-email{margin:7px 0 12px;font-size:14px;line-height:1.7;color:var(--v2-text);overflow-wrap:anywhere;user-select:text}
html body.template-ui .logout-copy-email{padding:8px 14px;border:1px solid #805696;border-radius:7px;background:#392747;color:#ead1fa;font-size:13px;cursor:pointer}
html body.template-ui .logout-copy-email:disabled{opacity:.5;cursor:default}
html body.template-ui .logout-account-reminder{margin:14px 0 0;color:#dfc9e9;font-size:12px;line-height:1.8}
html body.template-ui .logout-copy-status{margin-top:8px;color:#d6b2ff;font-size:12px;line-height:1.7}
html body.template-ui .v2-account-info>.v2-account-header{position:sticky;top:0;z-index:20;background:var(--v2-bg)}
html body.template-ui .v2-account-info-content{max-width:760px;margin:auto;padding:22px 16px 32px;box-sizing:border-box}
html body.template-ui .v2-account-info-card{padding:22px 18px;border:1px solid var(--v2-line);border-radius:14px;background:var(--v2-panel)}
html body.template-ui .v2-account-info-card h2{margin:0 0 8px;font-size:18px;line-height:1.6;color:var(--v2-text)}
html body.template-ui .v2-account-info-card dl{margin:0}
html body.template-ui .v2-account-info-card dl>div{display:grid;grid-template-columns:minmax(72px,.7fr) minmax(0,1.5fr);gap:16px;padding:18px 0;border-bottom:1px solid var(--v2-line);font-size:14px;line-height:1.8}
html body.template-ui .v2-account-info-card dl>div:last-child{border-bottom:0;padding-bottom:0}
html body.template-ui .v2-account-info-card dt{color:var(--v2-muted)}
html body.template-ui .v2-account-info-card dd{margin:0;color:var(--v2-text);overflow-wrap:anywhere;user-select:text}
html body.template-ui .v2-account-info-state{text-align:center;padding:40px 8px;color:#baa9c6;font-size:14px;line-height:1.8}
html body.template-ui .v2-account-info-state p{margin:0 0 18px}
html body.template-ui .v2-account-info [hidden]{display:none}
html body.template-ui .v2-account-password-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;text-decoration:none;color:var(--v2-text);font-size:15px;line-height:1.8}
html body.template-ui .v2-account-password-entry>span:last-child{color:#c9a9dc;font-size:24px;line-height:1}
html body.template-ui .v2-password-card{margin-top:0}
html body.template-ui .v2-password-description{margin:8px 0 20px;color:#baa9c6;font-size:13px;line-height:1.8}
html body.template-ui .v2-password-card label{display:block;margin:16px 0 8px;color:#dfc9e9;font-size:13px;line-height:1.6}
html body.template-ui .v2-password-card input[type=password]{display:block;width:100%;min-height:46px;padding:11px 12px;box-sizing:border-box;border:1px solid #684678;border-radius:8px;background:#19131f;color:var(--v2-text);font-size:16px}
html body.template-ui .v2-password-card input::placeholder{color:#aaa2b5;font-size:13px}
html body.template-ui .v2-password-result{margin:14px 0;color:#e6b8ff;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
html body.template-ui .v2-password-card button{width:100%;min-height:44px}
html body.template-ui .v2-password-card button:disabled{opacity:.6;cursor:wait}
html body.template-ui .logout-dialog-actions button:active{background:#493352}
html body.template-ui .logout-dialog-actions button.confirm:active{background:var(--v2-gradient);filter:brightness(.9)}

/* Dedicated customer support page. */
html body.template-ui .v2-contact-card{margin:20px 16px;padding:22px 20px;background:var(--v2-panel);border:1px solid var(--v2-line);border-radius:14px;overflow-wrap:anywhere}
html body.template-ui .v2-contact-card h2{margin:0 0 12px;font-size:18px;line-height:1.5;color:var(--v2-text)}
html body.template-ui .v2-contact-card p{margin:0 0 20px;color:#cdb8d9;font-size:14px;line-height:1.9}
html body.template-ui .v2-contact-email{padding:16px;background:#30213c;border:1px solid #684678;border-radius:10px;display:flex;flex-direction:column;gap:9px}
html body.template-ui .v2-contact-email span{font-size:12px;color:#cdb8d9}
html body.template-ui .v2-contact-email a{font-size:17px;line-height:1.5;color:var(--v2-accent);text-decoration:underline;user-select:text}
html body.template-ui .v2-contact-email+p{margin-top:20px}

/* Membership plans */
.v2-membership {
    min-height: 100dvh;
    background: radial-gradient(ellipse at 100% 0%, #2d1f35 0, transparent 43%), var(--v2-bg);
}
.v2-membership-content {
    box-sizing: border-box;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px clamp(14px, 4.7vw, 24px) 30px;
    color: var(--v2-text);
}
.v2-membership-perks h2 {
    margin: 0;
    color: #bba6c5;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .4px;
}
.v2-membership-perks ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0 18px;
    padding: 0;
    list-style: none;
}
.v2-membership-perks li {
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #eadcf0;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.v2-membership-perks li > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #ba8dd61b;
    color: #d6b2ec;
}
.v2-membership-perks svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.v2-plan-card {
    box-sizing: border-box;
    min-width: 0;
    border: 1px solid #392f43;
    border-radius: 14px;
    background: #211b2a;
}
.v2-plan-card h2, .v2-plan-card h3 {
    margin: 0;
    color: var(--v2-text);
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.v2-plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: #f1d6ef;
    line-height: 1.15;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}
.v2-plan-price strong {
    min-width: 0;
    font-size: clamp(18px, 5.8vw, 30px);
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}
.v2-plan-original {
    color: #a89ab0;
    font-size: 10px;
    overflow-wrap: anywhere;
}
.v2-plan-featured {
    margin: 0 0 22px;
    padding: clamp(14px, 4.7vw, 22px);
    border-color: #5c3e6b;
    border-radius: 19px;
    background: linear-gradient(125deg, #352343, #282030);
}
.v2-plan-featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.v2-plan-featured h2 { font-size: clamp(16px, 4.3vw, 22px); }
.v2-plan-featured-header p, .v2-plan-upgrade p {
    margin: 7px 0 0;
    color: #c5accb;
    font-size: 12px;
    line-height: 1.5;
}
.v2-plan-amount { text-align: right; }
.v2-plan-featured .v2-plan-amount { flex: none; max-width: 55%; }
.v2-plan-featured .v2-plan-price { justify-content: flex-end; color: var(--v2-text); }
.v2-plan-featured .v2-plan-price span { color: #d8b8db; font-size: 18px; }
.v2-plan-featured .v2-plan-price strong { font-size: clamp(30px, 9.1vw, 48px); }
.v2-plan-upgrade {
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid #f2d9ff1e;
}
.v2-plan-upgrade strong { color: #f1cfab; font-size: clamp(13px, 3.5vw, 17px); }
.v2-plan-upgrade p { color: #c6a8bc; }
.v2-membership .v2-plan-featured .v2-primary {
    width: 100%;
    min-height: 44px;
    margin-top: 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(105deg, #bf91e5, #dd9ac6);
    color: #22142b;
    font-size: 14px;
}
.v2-membership-options-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.v2-membership-options-heading h2, .v2-plan-single h2 { margin: 0; font-size: 14px; }
.v2-membership-options-heading span, .v2-plan-duration { color: #b8a4c1; font-size: 11px; }
.v2-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 2.2vw, 12px);
}
.v2-plan-grid .v2-plan-card {
    display: flex;
    flex-direction: column;
    padding: clamp(9px, 2.5vw, 14px);
    padding-top: 15px;
}
.v2-plan-grid h3 { font-size: clamp(13px, 3.55vw, 18px); }
.v2-plan-duration { margin: 4px 0 0; line-height: 1.5; }
.v2-plan-grid .v2-plan-price { margin: 15px 0 4px; }
.v2-plan-grid .v2-plan-original { margin-top: 2px; }
.v2-plan-offer { margin-top: 4px; color: #e5bf9b; font-size: 10px; overflow-wrap: anywhere; }
.v2-membership .v2-plan-card .v2-secondary {
    box-sizing: border-box;
    min-height: 40px;
    padding: 5px 3px;
    border: 1px solid #573e65;
    border-radius: 9px;
    background: #392945;
    color: #edd6ef;
    font-size: clamp(11px, 2.8vw, 14px);
    text-align: center;
}
.v2-plan-grid .v2-secondary { margin-top: auto; }
.v2-plan-grid .v2-plan-card > :nth-last-child(2) { margin-bottom: 20px; }
.v2-plan-single {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
}
.v2-plan-single .v2-secondary { grid-column: 1 / -1; }
.v2-membership-note {
    margin: 22px 0 0;
    color: #b0a0b9;
    font-size: 11px;
    line-height: 1.65;
}
.v2-membership-note p { margin: 0 0 6px; }
.v2-membership-note details p { margin: 6px 0 0; }
.v2-membership-note summary { list-style: none; cursor: pointer; }
.v2-membership-note summary::-webkit-details-marker { display: none; }
.v2-membership-note summary span { color: #d6b2ec; text-decoration: underline; }
.v2-membership-currency { margin: 24px 0 0; color: #a091aa; font-size: 11px; text-align: center; }

/* Profile nickname uses the available width. */
html body.template-ui .my-page.figma-ui .my-profile-top{display:flex;flex-direction:row;align-items:baseline;flex-wrap:nowrap;gap:0;min-width:0}
html body.template-ui .my-page.figma-ui #userinfo_name{flex:0 1 auto;min-width:0}


/* Keep membership navigation visible while its plans scroll. */
html body.template-ui .v2-membership>.v2-account-header{position:sticky;top:0;z-index:20;background:var(--v2-bg)}

/* Search uses the same back button as account secondary pages, in its search row. */
html body.template-ui .search-page.figma-ui .search-hero>.v2-account-back{position:static;flex:0 0 44px;width:44px;height:44px;margin:0}

/* The top search affordance opens the dedicated search page as a whole. */
html body.template-ui a.v2-search{text-decoration:none;cursor:pointer}
html body.template-ui .v2-search>span{min-width:0;font-size:12px;color:#aaa2b5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* In-page filter menus stay anchored to their triggers under browser/device scaling. */
html body.template-ui .v2-filter-dropdown{position:relative;flex:none}
html body.template-ui .v2-filter-dropdown>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:6px 9px;box-sizing:border-box;list-style:none;cursor:pointer;color:#e0cfe9;border:1px solid #554065;border-radius:6px;background:#261c30;font-size:11px}
html body.template-ui .v2-filter-dropdown>summary::-webkit-details-marker{display:none}
html body.template-ui .v2-filter-dropdown>summary svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.template-ui .v2-filter-dropdown[open]{z-index:25}
html body.template-ui .v2-filter-dropdown[open]>summary{border-color:#ad7dd0;color:#ead1fa}
html body.template-ui .v2-filter-dropdown>summary:focus-visible{outline:2px solid #e6b8ff;outline-offset:3px}
html body.template-ui .v2-filter-options{position:absolute;top:calc(100% + 6px);right:0;z-index:30;min-width:132px;max-width:calc(100vw - 32px);max-height:220px;overflow-y:auto;padding:5px;margin:0;box-sizing:border-box;background:#271d32;border:1px solid #684678;border-radius:9px;box-shadow:0 10px 28px #0007}
html body.template-ui .v2-filter-dropdown.opens-up>.v2-filter-options{top:auto;bottom:calc(100% + 6px)}
html body.template-ui .v2-filter-options>a{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:40px;padding:8px 11px;box-sizing:border-box;border-radius:5px;color:#e0cfe9;font-size:12px;white-space:nowrap;text-decoration:none}
html body.template-ui .v2-filter-options>a[aria-current="true"]{background:#543565;color:#f5dbff}
html body.template-ui .v2-filter-options>a[aria-current="true"]:after{content:'✓';color:#e0afff}
html body.template-ui .v2-filter-options>a:hover{background:#3d294a}

/* Admin-delivered notices follow the site's purple dialog palette. */
html body.template-ui .sugar-notice{display:flex!important;flex-direction:column;width:calc(100% - 32px);max-width:420px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);padding:24px 20px 20px;box-sizing:border-box;border:1px solid #684678;border-radius:16px;background:linear-gradient(135deg,#30203c,#201a2a 70%);color:var(--v2-text);box-shadow:0 18px 60px #0007}
html body.template-ui .sugar-notice-title-container{flex:none;width:100%;margin:0;padding:0 30px;box-sizing:border-box;display:block}
html body.template-ui .sugar-notice-title{width:100%;margin:0;padding:0;color:#f8f3ff;font-size:18px;font-weight:700;line-height:1.6;text-align:center;overflow-wrap:anywhere;max-height:96px;overflow:auto}
html body.template-ui .sugar-notice-content{flex:0 1 auto;min-height:0;max-height:none;width:100%;margin:18px 0 0;padding:0 2px;box-sizing:border-box;font-size:14px;line-height:1.9;color:#dfc9e9;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:#805696 #251a30;user-select:text}
html body.template-ui .sugar-notice-content :is(p,div,span,li,h1,h2,h3,h4,h5,h6){color:inherit}
html body.template-ui .sugar-notice-content p{margin:0 0 12px;line-height:inherit}
html body.template-ui .sugar-notice-content>:last-child{margin-bottom:0}
html body.template-ui .sugar-notice-content img{max-width:100%;height:auto;border-radius:8px}
html body.template-ui .sugar-notice-content a{color:#d6b2ff;text-decoration:underline}
html body.template-ui .sugar-notice-content::-webkit-scrollbar{width:5px;height:5px}
html body.template-ui .sugar-notice-content::-webkit-scrollbar-track{background:#251a30}
html body.template-ui .sugar-notice-content::-webkit-scrollbar-thumb{background:#805696;border-radius:6px}
html body.template-ui .sugar-notice-btn{flex:none;position:static;width:100%;min-height:44px;height:auto;margin:20px 0 0;padding:10px 16px;box-sizing:border-box;border:0;border-radius:8px;background:var(--v2-gradient);color:#21132d;font-size:14px;font-weight:600;line-height:1.6;text-align:center;white-space:normal}
html body.template-ui .sugar-notice-close{position:absolute;right:10px;top:10px;width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid #60416f;border-radius:10px;background:#35243f;color:#dfc9e9;cursor:pointer}
html body.template-ui .sugar-notice-close svg{position:static;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

/* Personal inbox uses the account secondary-page navigation and purple cards. */
html body.template-ui .v2-notification{position:relative}
html body.template-ui .v2-inbox-count{position:absolute;right:-4px;top:1px;min-width:16px;min-height:16px;padding:1px 4px;box-sizing:border-box;border-radius:10px;background:var(--v2-gradient);color:#24162e;font-size:9px;font-weight:700;line-height:14px;text-align:center}
html body.template-ui .v2-inbox-count[hidden]{display:none}
html body.template-ui .v2-inbox-page>.v2-account-header{position:sticky;top:0;z-index:20;background:var(--v2-bg)}
html body.template-ui .v2-inbox-content{padding:20px 16px 32px;max-width:760px;margin:auto;box-sizing:border-box}
html body.template-ui .v2-inbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;color:#baa9c6;font-size:12px}
html body.template-ui .v2-inbox-toolbar button{background:transparent;border:0;padding:8px 0;color:var(--v2-accent);font-size:12px}
html body.template-ui .v2-inbox-list{display:grid;gap:14px}
html body.template-ui .v2-inbox-card{display:block;position:relative;padding:18px;border:1px solid var(--v2-line);border-radius:12px;background:var(--v2-panel);text-decoration:none}
html body.template-ui .v2-inbox-card.is-unread{border-color:#9162a9}
html body.template-ui .v2-inbox-card.is-unread:before{content:'';position:absolute;right:12px;top:12px;width:6px;height:6px;border-radius:50%;background:#dda3f1}
html body.template-ui .v2-inbox-meta{display:flex;justify-content:space-between;gap:12px;color:#b8a4c5;font-size:11px;line-height:1.6}
html body.template-ui .v2-inbox-card .v2-inbox-meta{padding-right:4px}
html body.template-ui .v2-inbox-card h2{margin:10px 0 7px;color:var(--v2-text);font-size:16px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
html body.template-ui .v2-inbox-card p{margin:0;font-size:13px;line-height:1.8;color:#cbb5d7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
html body.template-ui .v2-inbox-status{padding:50px 12px;text-align:center;font-size:14px;color:#baa9c6;line-height:2}
html body.template-ui .v2-inbox-status button{margin-top:14px}
html body.template-ui .v2-inbox-more{width:100%;margin-top:20px}
html body.template-ui .v2-inbox-message{padding:20px;border:1px solid var(--v2-line);border-radius:12px;background:var(--v2-panel)}
html body.template-ui .v2-inbox-message h2{margin:18px 0;color:var(--v2-text);font-size:21px;line-height:1.6;overflow-wrap:anywhere}
html body.template-ui .v2-inbox-message-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:2;color:#dfc9e9;user-select:text}
html body.template-ui .v2-inbox-target{margin-top:24px;width:100%}
html body.template-ui .v2-inbox-content [hidden]{display:none}

/* Advertising slides are independent of drama metadata and playback actions. */
.v2-carousel-ad:after{display:none}
.v2-ad-image{display:block;width:100%;height:100%;object-fit:fill;background:#17121b}
.v2-ad-link{position:absolute;inset:0;z-index:1}
.v2-carousel-ad[data-carousel-target=""]{cursor:default}

/* Keep drama text and actions within the same 16:9 frame on small screens. */
@media(max-width:750px){
 .v2-hero-copy{padding:12px 14px 26px;gap:5px}
 body.template-ui .v2-hero-copy h1{font-size:22px;line-height:1.25}
 .v2-hero-badge{font-size:9px;line-height:1.4;padding:2px 6px}
 .v2-hero-copy p{font-size:10px;line-height:1.4}
 .v2-hero-copy .v2-hero-description{font-size:11px;line-height:1.45}
 .v2-hero-actions{gap:6px;margin-top:0}
 .v2-hero-actions :is(.v2-primary,.v2-secondary){min-height:30px;padding:5px 9px;font-size:11px;line-height:18px}
}
@media(max-width:400px){
 .v2-hero-copy{padding:10px 12px 22px;gap:4px}
 body.template-ui .v2-hero-copy h1{font-size:20px;line-height:1.2}
 .v2-hero-copy .v2-hero-description{font-size:10px;line-height:1.4}
}
@media(max-width:360px){
 .v2-hero-copy{padding:8px 10px 20px;gap:3px}
 body.template-ui .v2-hero-copy h1{font-size:16px!important;line-height:1.2}
 .v2-hero-badge{font-size:8px;padding:2px 5px}
 .v2-hero-copy p{font-size:9px;line-height:1.3}
 .v2-hero-copy .v2-hero-description{font-size:9px;line-height:1.3}
 .v2-hero-actions :is(.v2-primary,.v2-secondary){min-height:26px;padding:4px 7px;font-size:10px;line-height:16px}
}

html body.template-ui .feed-platform-label{padding:2px 5px;border:1px solid #805696;border-radius:4px;color:#d6b2ff;font-size:9px;line-height:1.4;white-space:nowrap}

html body.template-ui .v2-contact-line{margin-top:20px;padding:16px;background:#30213c;border:1px solid #684678;border-radius:10px}
html body.template-ui .v2-contact-line h3{margin:0 0 8px;font-size:15px;color:var(--v2-text)}
html body.template-ui .v2-contact-line p{margin:0 0 14px;font-size:13px}
html body.template-ui .v2-line-add-friend{display:inline-flex;max-width:100%;border-radius:5px;overflow:hidden}
html body.template-ui .v2-line-add-friend img{display:block;width:108px;height:36px;max-width:100%;object-fit:contain}
html body.template-ui .logout-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}

/* Activity occupies its own row above the four primary tabs. */
html body.template-ui .plan-activity-banner[hidden]{display:none}
html body.template-ui .plan-activity-banner{position:fixed;z-index:29;display:flex;align-items:center;gap:10px;box-sizing:border-box;height:52px;padding:0 16px;border-block:1px solid #b88b36;background:linear-gradient(110deg,#3c3022,#2e2632);color:#ffdc83;text-decoration:none;box-shadow:0 -4px 18px #0003;font-size:13px;font-weight:700;line-height:1.5}
.plan-activity-label{flex:none;border:1px solid #e2b74f;border-radius:20px;padding:4px 9px;font-size:12px;white-space:nowrap}
.plan-activity-window{flex:1;min-width:0;overflow:hidden}
.plan-activity-text{display:flex;gap:32px;width:max-content;white-space:nowrap}
.plan-activity-copy,.plan-activity-repeat{display:block;flex:none;min-width:var(--plan-activity-copy-width,0px)}
.plan-activity-repeat[hidden]{display:none}
.plan-activity-banner svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.plan-activity-banner:focus-visible{outline:2px solid #ffe5a7;outline-offset:-3px}
html body.template-ui.has-plan-activity .readbox.has-bottom-tabs{padding-bottom:var(--plan-activity-space,142px)}
html body.template-ui.template-feed.has-plan-activity .readbox.home-feed-container{padding-bottom:0}
html body.template-ui.template-feed.has-plan-activity .feed-page{height:var(--plan-activity-feed-height,calc(100% - 116px - env(safe-area-inset-bottom,0px)))}

html body.template-ui.template-player .v2-episode-button.is-selected{outline:2px solid #edbaff;outline-offset:1px}
.v2-episode-picker-header{flex:none;padding:10px 14px 0}
.v2-episode-picker-header .v2-sheet-meta{margin-bottom:12px}
.v2-episode-picker-tabs{display:flex;gap:20px;border-bottom:1px solid #493352}
.v2-episode-picker-tabs button{min-height:44px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:#c5b2d1;font-size:15px;font-weight:600}
.v2-episode-picker-tabs button[aria-pressed="true"]{border-bottom-color:#edbaff;color:#edbaff}
.v2-episode-picker-tabs button:disabled{opacity:.5}
.v2-episode-picker-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 14px calc(14px + env(safe-area-inset-bottom,0px))}
.v2-episode-play-selection{display:block;min-height:40px;margin:14px 0 0;padding:4px 12px;border:1px solid #865ea1;border-radius:8px;background:#4c345d;color:#f8ecff;font-size:13px}
.v2-episode-comments{display:flex;flex:1;min-height:0;flex-direction:column;font-size:1.4rem}
.v2-episode-comments-heading{display:flex;flex:none;min-height:40px;align-items:center;margin:0;padding:4px 14px;border-bottom:1px solid #493352;color:#f8f3ff;font-size:16px}

/* Keep both sound states bright and distinct over the playing video. */
html body.template-ui .feed-actions .feed-sound svg{color:var(--v2-accent);fill:none;stroke:currentColor;stroke-width:2.4;filter:drop-shadow(0 1px 3px #000)}
html body.template-ui .feed-actions .feed-sound .feed-sound-speaker{fill:currentColor;stroke-width:1.5}
html body.template-ui .feed-actions .feed-sound .feed-sound-slash{stroke-width:3;paint-order:stroke;stroke:var(--v2-accent);filter:drop-shadow(0 0 1px #000)}
html body.template-ui .feed-actions .feed-sound .feed-sound-enabled{display:none}
html body.template-ui .feed-actions .feed-sound[aria-pressed="true"] .feed-sound-muted{display:none}
html body.template-ui .feed-actions .feed-sound[aria-pressed="true"] .feed-sound-enabled{display:block}

/* The sound control is icon-only; its accessible label remains available. */
html body.template-ui .feed-actions .feed-sound>span{display:none}

/* Locked episode cover; header navigation and episode selection remain available. */
html body.template-ui.template-player .v2-vip-gate{position:absolute;inset:0 0 var(--player-footer-height);z-index:35;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#121018;padding:72px 22px 30px;box-sizing:border-box}
.v2-vip-gate-cover,.v2-vip-gate-shade{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.v2-vip-gate-cover{object-fit:cover;opacity:1;filter:blur(6px) saturate(.95);transform:scale(1.04)}
.v2-vip-gate-shade{background:linear-gradient(180deg,#22152b33,#24152a66 40%,#1c112980 80%,#12101899);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.v2-vip-gate-content{position:relative;width:100%;max-width:330px;text-align:center;padding:26px 20px;border:0;border-radius:0;background:transparent;box-shadow:none;box-sizing:border-box;color:#f8f3ff;text-shadow:0 2px 12px #0006}
.v2-vip-gate-badge{display:inline-flex;align-items:center;gap:7px;color:#e5bcff;font-size:12px;font-weight:700;letter-spacing:2px}
.v2-vip-gate-badge svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.v2-vip-gate-content h2{margin:17px 0 12px;font-size:23px;line-height:1.5;color:#f8f3ff;font-weight:700}
.v2-vip-gate-content p{margin:0 0 25px;color:#d6c1e1;font-size:14px;line-height:1.9}
.v2-vip-gate-checkout{width:100%;min-height:50px;padding:12px;border:0;border-radius:12px;background:var(--v2-gradient);color:#21132d;font-size:16px;font-weight:700;cursor:pointer}
.v2-vip-gate-checkout:disabled{opacity:.65;cursor:wait}
.v2-vip-gate-content small{display:block;margin-top:16px;color:#cab5d8;font-size:10px;line-height:1.6}
.v2-vip-gate button:focus-visible{outline:2px solid #f8f3ff;outline-offset:3px}
@media(max-height:650px){.v2-vip-gate-content{padding:18px}.v2-vip-gate-content h2{font-size:20px;margin:10px 0}.v2-vip-gate-content p{margin-bottom:16px}.v2-vip-gate-content small{margin-top:8px}}

html body.template-ui.template-player .v2-vip-gate{touch-action:pan-x}

html body.template-ui .v2-follow>.v2-account-header{position:sticky;top:0;z-index:20;background:var(--v2-bg,#121018)}

/* Episode likes use the same account-backed state on discovery and playback. */
html body.template-ui.template-player .v2-player-bar-copy{min-width:0;flex:1}
html body.template-ui.template-player .v2-episode-like{display:flex;flex:none;align-items:center;gap:4px;min-height:44px;border:0;background:transparent;color:#f5e6ff;font-size:12px;padding:4px}
html body.template-ui.template-player .v2-episode-like svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
html body.template-ui.template-player .v2-episode-like[aria-pressed="true"]{color:#e6b8ff}
html body.template-ui.template-player .v2-episode-like[aria-pressed="true"] svg{fill:currentColor}
html body.template-ui .feed-actions button[data-episode-like][aria-pressed="true"] svg{fill:currentColor}
