/* Scoped visual cleanup: spacing and surfaces provide hierarchy, without stacked frames. */
body.th789-theme-compat :is(.header-wrapper,#masthead,.header-bg-container,.th789-age-topbar,.th789-theme-header-block,.th789-featured-strip-wrap,.th789-featured-strip-viewport,.th789-trending-wrap,.th789-video-grid-wrap,.xxxav-home-copy>section,.xxxav-faq,.xxxav-footer-card,.th789-single-shell,.th789-single-main,.th789-single-sidebar,.th789-single-content,.th789-single-hero){border:0!important;box-shadow:none!important}
body.th789-theme-compat :is(.th789-theme-header-block,.th789-featured-strip-wrap,.th789-trending-wrap,.th789-video-grid-wrap,.xxxav-home-copy>section,.xxxav-faq,.xxxav-footer-card){background:transparent!important;border-radius:0!important}
body.th789-theme-compat :is(.th789-video-card,.th789-featured-strip-card,.th789-actor-card){border:0!important;box-shadow:none!important;border-radius:10px!important;overflow:hidden;transform:none!important}
body.th789-theme-compat :is(.th789-video-card,.th789-featured-strip-card) :is(a,h3){color:#30242d!important;text-shadow:none!important}
body.th789-theme-compat :is(.th789-video-card,.th789-featured-strip-card) :is(.th789-video-card-body,.th789-video-card-content,.th789-video-body){background:#fff!important}
body.th789-theme-compat :is(.top-divider,.xxxav-divider){display:none!important}
body.th789-theme-compat .th789-theme-header-block{padding:20px 0!important;margin:0 0 16px!important}
body.th789-theme-compat :is(.th789-featured-strip-wrap,.th789-trending-wrap,.th789-video-grid-wrap){padding:0!important;margin:24px auto!important;min-width:0}
body.th789-theme-compat .xxxav-home-copy{gap:24px!important;margin:32px auto!important}
body.th789-theme-compat .xxxav-home-copy>section{padding:0!important}
body.th789-theme-compat .xxxav-faq details{border:0!important;border-bottom:1px solid #e5dfe3!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
body.th789-theme-compat .xxxav-faq summary{padding:14px 0!important;min-height:44px;color:#30242d!important}
body.th789-theme-compat :is(.xxxav-home-copy,.xxxav-footer-card) p{white-space:pre-line}
body.th789-theme-compat .th789-story-ticker-bar,body.th789-theme-compat .th789-story-ticker-bar.is-sticky{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;z-index:auto!important;border:0!important;box-shadow:none!important;margin:16px 0 0!important}
body.th789-theme-compat .th789-age-side{position:relative!important;inset:auto!important;transform:none!important;writing-mode:horizontal-tb!important;width:auto!important;max-width:100%!important;margin:16px auto!important;padding:8px 16px!important;display:flex!important;justify-content:center;gap:8px;box-shadow:none!important;border:0!important;z-index:auto!important}
body.th789-theme-compat :is(.th789-theme-content,.th789-single-shell){min-width:0;max-width:100%;box-sizing:border-box}
body.th789-theme-compat .xxxav-unified-taxonomy{display:block!important;width:100%;min-width:0;margin:20px 0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
body.th789-theme-compat .th789-category-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
body.th789-theme-compat .xxxav-unified-taxonomy__title{margin:0!important;color:#30242d!important;font-size:18px!important}
body.th789-theme-compat .th789-category-heading>span{font-size:12px;color:#685c64;margin-right:auto}
body.th789-theme-compat .xxxav-unified-taxonomy__list{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%;margin:0!important;padding:2px 2px 10px!important;scrollbar-width:thin;scrollbar-color:#a99aa3 transparent;overscroll-behavior-x:contain}
body.th789-theme-compat .xxxav-unified-taxonomy__link{display:inline-flex!important;align-items:center;flex:0 0 auto;min-height:44px!important;padding:9px 14px!important;border:0!important;border-radius:8px!important;background:#f0e9ee!important;color:#382b34!important;box-shadow:none!important;white-space:nowrap;font-size:14px!important;text-decoration:none!important;font-weight:500!important;transform:none!important}
body.th789-theme-compat .xxxav-unified-taxonomy__link:is(:hover,.is-active){background:#76264e!important;color:#fff!important}
body.th789-theme-compat [data-category-scroll]{border:0!important;box-shadow:none!important;background:#eee6ec!important;color:#382b34!important;border-radius:7px!important;min-width:40px;min-height:40px;padding:4px 10px!important;margin:0!important;font-size:23px!important;line-height:1!important}
body.th789-theme-compat [data-category-scroll]:disabled{opacity:.35}
body.th789-theme-compat #header :is(.nav-icon>a,.header-nav a,.mobile-nav a){color:#fff!important;text-shadow:none!important}
body.th789-theme-compat #header .nav-dropdown a{color:#30242d!important;background:#fff!important}
body #th789-site-menu{box-sizing:border-box;width:min(400px,calc(100% - 24px));max-height:calc(100dvh - 40px);margin:20px auto 20px 12px;padding:18px;border:0;border-radius:12px;background:#fff;color:#30242d;box-shadow:0 16px 60px #0003;overflow:auto}
body #th789-site-menu:not([open]){display:none!important}
body #th789-site-menu::backdrop{background:#12101888}
body #th789-site-menu .th789-menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;top:-18px;background:#fff;padding:10px 0;z-index:1}
body #th789-site-menu h2{color:#30242d!important;font-size:20px!important;margin:0!important}
body #th789-site-menu button{min-width:44px;min-height:44px;border:0!important;box-shadow:none!important;border-radius:8px!important;background:#eee6ec!important;color:#30242d!important;margin:0!important;padding:8px!important}
body #th789-site-menu a{display:block!important;min-height:44px;box-sizing:border-box;padding:10px 12px!important;color:#30242d!important;background:#fff!important;line-height:1.5!important;font-size:15px!important;white-space:normal!important;text-decoration:none!important;border:0!important;border-radius:7px!important;box-shadow:none!important;text-transform:none!important}
body #th789-site-menu a:is(:hover,.is-active){background:#76264e!important;color:#fff!important}
body #th789-site-menu ul{display:block!important;position:static!important;opacity:1!important;visibility:visible!important;list-style:none;margin:0;padding:0;box-shadow:none!important;border:0!important}
body #th789-site-menu ul ul{padding-left:14px}
body #th789-site-menu li{margin:0!important;border:0!important}
body #th789-site-menu .th789-menu-categories{display:grid;gap:4px}
body :is(#th789-site-menu,.xxxav-unified-taxonomy) :is(a,button):focus-visible{outline:3px solid #2463b3!important;outline-offset:2px}
@media(max-width:600px){body.th789-theme-compat .th789-theme-content>.row>.col{padding-left:12px!important;padding-right:12px!important}body.th789-theme-compat .xxxav-home-copy{display:block!important}body.th789-theme-compat .xxxav-home-copy>section{margin-bottom:24px}body.th789-theme-compat .th789-category-heading>span{display:none}}

body .th789-live-count{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;min-height:44px;padding:10px 12px;background:#f6f2f5;color:#40343d;font:13px/1.5 system-ui,sans-serif;box-sizing:border-box}body .th789-live-count>span:first-child{color:#777}body .th789-live-count[data-available="1"]>span:first-child{color:#21844f}body .th789-live-count small{font-size:11px;color:#685c64}

/* Search and mobile navigation use the same simple, accessible controls. */
body.th789-dialog-open{overflow:hidden}
body #th789-site-menu .th789-menu-category-title{font-size:15px!important;color:#685c64!important;margin:20px 0 8px!important}
body #th789-search-dialog{box-sizing:border-box;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 32px);margin:16px auto;padding:20px;border:0;border-radius:12px;background:#fff;color:#30242d;box-shadow:0 16px 60px #0003;overflow:auto}
body #th789-search-dialog:not([open]){display:none!important}
body #th789-search-dialog::backdrop{background:#12101888}
body #th789-search-dialog .th789-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
body #th789-search-dialog h2{font-size:20px!important;color:#30242d!important;margin:0!important}
body #th789-search-dialog [data-search-close]{min-height:44px;min-width:44px;margin:0!important;padding:8px!important;border:0!important;border-radius:8px!important;background:#eee6ec!important;color:#30242d!important;box-shadow:none!important}
body .th789-search-form{margin:0 0 16px!important;padding:0!important;width:100%;min-width:0}
body .th789-search-form label{display:block;font-size:14px!important;font-weight:600!important;color:#30242d!important;margin:0 0 8px!important}
body .th789-search-form>div{display:flex;gap:8px;min-width:0}
body .th789-search-form input[type=search]{flex:1;min-width:0;width:100%;height:46px;margin:0!important;padding:10px 12px!important;box-sizing:border-box;border:1px solid #a89aa3!important;border-radius:8px!important;background:#fff!important;color:#30242d!important;box-shadow:none!important;font:16px/1.4 system-ui!important}
body .th789-search-form button{flex:0 0 auto;min-height:46px;min-width:72px;margin:0!important;padding:10px 14px!important;border:0!important;border-radius:8px!important;background:#76264e!important;color:#fff!important;font:600 15px/1.4 system-ui!important;box-shadow:none!important;letter-spacing:0!important}
body .th789-search-form :is(input,button):focus-visible,body #th789-search-dialog button:focus-visible{outline:3px solid #2463b3!important;outline-offset:2px}
body.th789-theme-compat .header-search:has([aria-controls="th789-search-dialog"])>.nav-dropdown{display:none!important}
body.th789-theme-compat .th789-search-page{width:100%;max-width:1200px;margin:auto;padding:24px 20px;box-sizing:border-box}
body.th789-theme-compat .th789-search-heading{max-width:740px;padding:0;border:0;box-shadow:none;background:transparent}
body.th789-theme-compat .th789-search-heading h1{font-size:clamp(22px,3vw,30px);line-height:1.4;margin:0 0 18px;color:#30242d;overflow-wrap:anywhere}
body.th789-theme-compat .th789-search-heading p{color:#685c64;font-size:14px;margin:12px 0}
body.th789-theme-compat .th789-search-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
body.th789-theme-compat .th789-search-result{display:block;text-decoration:none!important;height:100%}
body.th789-theme-compat .th789-search-result .th789-video-thumb{aspect-ratio:16/9;position:relative;display:block;overflow:hidden;background:#e9e2e7}
body.th789-theme-compat .th789-search-result img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
body.th789-theme-compat .th789-search-result h2{margin:0;color:#30242d!important;font-size:16px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
body.th789-theme-compat .th789-search-result .th789-video-body{padding:12px}
body.th789-theme-compat .th789-search-placeholder{display:grid;place-items:center;width:100%;height:100%;color:#786570;font-size:32px}
body.th789-theme-compat .th789-search-empty{padding:24px 0;color:#30242d}
body.th789-theme-compat .th789-search-page .nav-links{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:28px 0}
body.th789-theme-compat .th789-search-page .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;box-sizing:border-box;border:0!important;border-radius:8px!important;box-shadow:none!important;background:#eee6ec;color:#30242d}
body.th789-theme-compat .th789-search-page .page-numbers.current{background:#76264e;color:#fff}
@media(max-width:850px){body.th789-theme-compat .th789-search-results{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){body.th789-theme-compat .th789-search-page{padding:18px 12px}body.th789-theme-compat .th789-search-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.th789-theme-compat .th789-search-result h2{font-size:14px}body.th789-theme-compat .th789-search-result .th789-video-body{padding:10px}}
@media(max-width:340px){body.th789-theme-compat .th789-search-results{grid-template-columns:1fr}}
body.th789-theme-compat .th789-theme-content,body.th789-theme-compat .th789-theme-content :is(.row,.col,.xxxav-unified-taxonomy,.xxxav-unified-taxonomy__list,.th789-theme-header-block,.th789-theme-header-block>div){box-sizing:border-box;min-width:0;max-width:100%!important}
body.th789-theme-compat .th789-theme-content .th789-theme-header-block :is(h1,h2,a){color:#30242d!important;text-shadow:none!important;white-space:normal!important;overflow-wrap:anywhere}
body.th789-theme-compat .th789-theme-content .th789-theme-header-block p{color:#685c64!important;text-shadow:none!important;white-space:normal!important;overflow-wrap:anywhere}
body.th789-theme-compat .xxxav-unified-taxonomy .xxxav-unified-taxonomy__list{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;box-sizing:border-box}
body.th789-theme-compat .xxxav-unified-taxonomy a.xxxav-unified-taxonomy__link.is-active,body.th789-theme-compat .xxxav-unified-taxonomy a.xxxav-unified-taxonomy__link:hover{color:#fff!important;background:#76264e!important}
body.th789-theme-compat #header [aria-controls="th789-site-menu"],body.th789-theme-compat #header [aria-controls="th789-search-dialog"]{color:#fff!important;background:transparent!important;border:0!important;box-shadow:none!important;min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
body.th789-theme-compat #header [aria-controls="th789-site-menu"]::after,body.th789-theme-compat #header [aria-controls="th789-search-dialog"]::after{display:none!important}
body #th789-site-menu .th789-search-form button{background:#76264e!important;color:#fff!important;min-height:46px;padding:10px 14px!important}
body.th789-theme-compat .th789-search-page{padding:24px 20px!important}
body.th789-theme-compat .th789-search-page .th789-search-result .th789-video-thumb{border:0!important;border-radius:0!important;box-shadow:none!important}
body.th789-theme-compat .th789-search-page .th789-search-result h2{font-size:16px!important;line-height:1.5!important;font-weight:600!important;text-align:left!important;margin:0!important}
@media(max-width:600px){body.th789-theme-compat .th789-search-page{padding:18px 12px!important}body.th789-theme-compat .th789-search-page .th789-search-result h2{font-size:14px!important}}

/* 5.8.1: one quiet pink palette, stable touch layout, no fixed age overlay. */
body.th789-theme-compat{--th789-ui-accent:var(--th789-primary,#cc1468);--th789-ui-ink:#30242d;overflow-x:clip;overscroll-behavior-x:none;-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}
body.th789-theme-compat :is(#wrapper,#main,#content,.th789-single-shell,.th789-single-main,.th789-single-sidebar){min-width:0;max-width:100%;box-sizing:border-box}
body.th789-theme-compat :is(button,a,summary){touch-action:manipulation;-webkit-tap-highlight-color:#cc14681a}
body.th789-theme-compat :is(.th789-age-topbar,.th789-age-side){position:static!important;inset:auto!important;margin:0!important;transform:none!important;border-radius:0!important;box-shadow:none!important;background:#fff1f7!important;color:#752749!important;width:100%!important;box-sizing:border-box;padding:8px 16px!important;font-size:12px!important;line-height:1.5!important;white-space:normal!important}
body.th789-theme-compat .th789-age-topbar__inner{display:flex!important;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;max-width:1200px;margin:auto;min-width:0}
body.th789-theme-compat .th789-age-topbar__message{overflow-wrap:anywhere;color:#752749!important;min-width:0}
body.th789-theme-compat :is(.th789-age-badge,.th789-age-side__mark){display:inline-flex;align-items:center;justify-content:center;flex:none;background:#a91355!important;color:#fff!important;border:0!important;border-radius:7px!important;padding:3px 8px;font:700 12px/1.4 system-ui}
body.th789-theme-compat .th789-age-side__text{writing-mode:horizontal-tb!important;color:#752749!important}
body :is(#th789-site-menu,#th789-search-dialog){border-radius:18px;overscroll-behavior:contain}
body.th789-theme-compat :is(.xxxav-unified-taxonomy__link,.th789-search-page .page-numbers){border-radius:12px!important}
body .th789-search-form button,body #th789-site-menu .th789-search-form button,body.th789-theme-compat .xxxav-unified-taxonomy a.xxxav-unified-taxonomy__link:is(.is-active,:hover),body.th789-theme-compat .th789-search-page .page-numbers.current,body #th789-site-menu a:is(.is-active,:hover){background:#a91355!important;color:#fff!important}
body.th789-theme-compat :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #a91355!important;outline-offset:3px}
@media(max-width:767px){
 body.th789-theme-compat :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px!important}
 body.th789-theme-compat :is(.th789-single-content,.xxxav-home-copy,.xxxav-footer-card){overflow-wrap:anywhere}
 body.th789-theme-compat .th789-age-topbar__inner{gap:6px 8px}
 body.th789-theme-compat .th789-age-topbar__divider{display:none!important}
 body.th789-theme-compat .th789-age-topbar__message{flex:1 1 220px}
 body.th789-theme-compat .th789-age-topbar__official{font-size:11px!important}
 body.th789-theme-compat .th789-viewer-start>.th789-play-mark{transform:scale(.84)}
 body :is(#th789-site-menu,#th789-search-dialog){max-height:calc(100dvh - 32px - env(safe-area-inset-bottom));padding:16px}
}
@media(prefers-reduced-motion:reduce){body.th789-theme-compat :is(button,a){transition:none!important}}

body.th789-theme-compat .th789-age-topbar__official{color:#752749!important;white-space:normal!important;text-shadow:none!important}
body.th789-theme-compat .th789-age-topbar__dot{background:#a91355!important;box-shadow:none!important}
body.th789-theme-compat .th789-age-side{flex-direction:row!important;min-height:0!important;pointer-events:auto}
body.th789-theme-compat .th789-age-side::before{display:none!important}
body.th789-theme-compat .th789-age-side__text{transform:none!important;margin:0!important;font-size:12px!important;text-shadow:none!important}
body.th789-theme-compat .th789-age-side__mark{box-shadow:none!important;text-shadow:none!important}

/* 5.8.2: fixed age rail and a single, unwrapped sharing row. */
body.th789-theme-compat.th789-age-rail{--th789-rail-width:max(40px,calc(env(safe-area-inset-left) + 36px));padding-left:0!important;box-sizing:border-box}
body.th789-theme-compat .th789-age-side{position:fixed!important;left:max(4px,env(safe-area-inset-left))!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;width:38px!important;min-width:0!important;max-width:38px!important;min-height:0!important;height:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;z-index:90!important;pointer-events:none!important;overflow:visible!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:1px!important;user-select:none}
body.th789-theme-compat .th789-age-side__mark{min-width:0!important;min-height:0!important;width:100%!important;height:auto!important;padding:0!important;font:800 11px/1.2 system-ui!important;color:#a91355!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-shadow:0 1px 2px #fff!important}
body.th789-theme-compat .th789-age-side__logo{display:block!important;width:100%!important;height:auto!important;aspect-ratio:1;object-fit:contain!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important}
body.th789-theme-compat .th789-age-side__text{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
body.th789-theme-compat .th789-single-actions{display:block!important;width:100%!important;max-width:480px;margin:12px 0!important}
body.th789-theme-compat .th789-share-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;width:100%!important;max-width:480px;min-width:0;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
body.th789-theme-compat .th789-share-row>:is(a,button){display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;min-width:0!important;width:100%!important;min-height:44px!important;margin:0!important;padding:8px 3px!important;border:0!important;border-radius:10px!important;background:#fff1f7!important;color:#a91355!important;font:600 12px/1.2 system-ui!important;white-space:nowrap!important;text-decoration:none!important;text-transform:none!important;letter-spacing:0!important;text-shadow:none!important;box-shadow:none!important;transform:none!important;touch-action:manipulation}
body.th789-theme-compat .th789-share-row>:is(a,button):hover{background:#f9ddeb!important}
body.th789-theme-compat .th789-share-row>:is(a,button):focus-visible{outline:2px solid #a91355!important;outline-offset:2px}
@media(max-width:600px){body.th789-theme-compat.th789-age-rail{--th789-rail-width:max(32px,calc(env(safe-area-inset-left) + 29px))}body.th789-theme-compat .th789-age-side__mark{font-size:10px!important}body.th789-theme-compat .th789-share-row>:is(a,button){font-size:11px!important}}

/* 5.8.3: reclaim nested single-page gutters on narrow phones. */
@media(max-width:600px){
 body.th789-theme-compat .th789-theme-single>.row{padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;width:100%!important}
 body.th789-theme-compat .th789-theme-single>.row>.col{padding-left:0!important;padding-right:0!important}
 body.th789-theme-compat .th789-single-shell{padding-left:8px!important;padding-right:8px!important}
 body.th789-theme-compat .th789-single-hero{padding:8px!important}
 body.th789-theme-compat .th789-share-row{gap:4px!important}
 body.th789-theme-compat .th789-share-row>a,body.th789-theme-compat .th789-share-row>button{padding-left:0!important;padding-right:0!important;min-width:0!important}
}

/* 5.8.4: fixed and in-flow headers share the same rail; no horizontal jump. */
body.th789-theme-compat.th789-age-rail #header .header-wrapper.stuck{left:0!important;right:0!important;width:100%!important;max-width:none!important;box-sizing:border-box}
body.th789-theme-compat .th789-share-row>:is(a,button){gap:6px!important;color:#fff!important;transition:filter .15s ease!important}
body.th789-theme-compat .th789-share-row>.th789-share-line{background:#06c755!important}
body.th789-theme-compat .th789-share-row>.th789-share-x{background:#14171a!important}
body.th789-theme-compat .th789-share-row>.th789-share-facebook{background:#0866ff!important}
body.th789-theme-compat .th789-share-row>.th789-share-copy{background:#a91355!important}
body.th789-theme-compat .th789-share-row>:is(a,button):hover{filter:brightness(.9)}
body.th789-theme-compat .th789-share-icon{display:block!important;flex:0 0 22px;width:22px!important;height:22px!important;max-width:none!important;margin:0!important}
@media(max-width:480px){body.th789-theme-compat .th789-share-label{position:absolute!important;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}body.th789-theme-compat .th789-share-icon{flex-basis:24px;width:24px!important;height:24px!important}}
@media(prefers-reduced-motion:reduce){body.th789-theme-compat .th789-share-row>:is(a,button){transition:none!important}}

/* 5.8.5: reserve the age rail in content only, never shift the full-bleed header. */
body.th789-theme-compat.th789-age-rail #main,
body.th789-theme-compat.th789-age-rail #footer{padding-left:var(--th789-rail-width)!important;box-sizing:border-box}
body.th789-theme-compat #header .header-inner{height:100%!important;min-height:0!important}

/* 5.8.6: balanced content, a light featured rail and a compact viewport ticker. */
body.th789-theme-compat.th789-age-rail #main,body.th789-theme-compat.th789-age-rail #footer{padding-right:var(--th789-rail-width)!important}
body.th789-theme-compat .th789-featured-strip-viewport{background:linear-gradient(135deg,#fff8fc,#fce6f1)!important;border-radius:14px!important;box-shadow:inset 0 0 0 1px #efb5d0, inset 0 0 18px #f7c9df70!important;padding:12px!important;scroll-behavior:auto!important;scroll-snap-type:none!important;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
body.th789-theme-compat .th789-featured-strip-track{scroll-snap-type:none!important}
body.th789-theme-compat .th789-featured-strip-card{flex-shrink:0;background:#fff!important}
body.th789-theme-compat .th789-story-ticker-bar{background:#fff0f7!important;color:#641b3d!important;backdrop-filter:none!important}
body.th789-theme-compat .th789-story-ticker-bar.is-sticky{position:fixed!important;inset:auto 0 0!important;width:auto!important;margin:0!important;z-index:95!important;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -2px 12px #7e28551a!important}
body.th789-has-sticky-ticker{padding-bottom:calc(var(--th789-ticker-height,56px) + 12px)!important}
body.th789-theme-compat .th789-story-ticker-label{background:#a91355!important;color:#fff!important;border:0!important;padding:8px 10px!important;align-self:stretch;font-size:11px!important}
body.th789-theme-compat .th789-story-ticker-label *{color:#fff!important}
body.th789-theme-compat .th789-story-ticker-track{padding:6px 10px!important;gap:10px!important;animation-name:th789TickerClean!important;animation-duration:var(--th789-story-speed,36s)!important}
body.th789-theme-compat .th789-story-ticker-item{height:36px!important;min-height:36px!important;max-width:300px!important;flex-shrink:0;padding:3px 9px!important;gap:7px!important;background:#fff!important;border:0!important;border-radius:9px!important;box-shadow:none!important;color:#641b3d!important}
body.th789-theme-compat .th789-story-ticker-item img{width:40px!important;height:28px!important;object-fit:cover;border-radius:5px!important}
body.th789-theme-compat .th789-story-ticker-title{color:#641b3d!important;font-size:12px!important;text-shadow:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.th789-theme-compat .th789-story-ticker-chip,body.th789-theme-compat .th789-story-ticker-chip *{color:#a91355!important;background:#fce4ef!important;font-size:10px!important}
body.th789-theme-compat .th789-story-ticker-bar:is(:hover,:focus-within,.is-motion-paused) .th789-story-ticker-track{animation-play-state:paused!important}
body:has(.th789-viewer.is-theater) .th789-story-ticker-bar,body:has(dialog[open]) .th789-story-ticker-bar{visibility:hidden!important}
@keyframes th789TickerClean{to{transform:translate3d(calc(-1 * var(--th789-ticker-loop,50%)),0,0)}}
@media(max-width:480px){body.th789-theme-compat .th789-story-ticker-label{max-width:70px;white-space:normal!important;line-height:1.25!important;padding:6px!important}body.th789-theme-compat .th789-story-ticker-item{max-width:240px!important}}
@media(prefers-reduced-motion:reduce){body.th789-theme-compat .th789-story-ticker-track{animation:none!important;will-change:auto!important}body.th789-theme-compat .th789-story-ticker-viewport{overflow-x:auto!important}}

/* Keep the administrator's inline edit affordance from stretching the ticker. */
body.th789-theme-compat .th789-story-ticker-label{position:relative;height:48px!important;max-height:48px!important;box-sizing:border-box}
body.th789-theme-compat .th789-story-ticker-label>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0;max-height:2.6em}
body.th789-theme-compat .th789-story-ticker-label>.th789-inline-edit{position:absolute!important;right:2px!important;bottom:1px!important;top:auto!important;min-height:16px!important;height:16px!important;padding:0 3px!important;margin:0!important;font-size:9px!important;line-height:16px!important;border-radius:3px!important}
body.th789-theme-compat .th789-story-ticker-label:has(>.th789-inline-edit)>span{margin-bottom:10px}

body .th789-app-install{text-align:center;max-width:600px;margin:16px auto;padding:0 24px;color:#641b3d;font:13px/1.6 system-ui}
body .th789-app-install button{min-height:44px;margin:0;padding:8px 14px;border:1px solid #edb7d0;border-radius:10px;background:#fff0f7;color:#811342;font:600 13px/1.4 system-ui;text-transform:none;letter-spacing:0;box-shadow:none}
body .th789-app-install p{font:13px/1.7 system-ui;color:#641b3d;margin:8px 0;overflow-wrap:anywhere}
body .th789-app-install [hidden],body .th789-app-install[hidden]{display:none!important}
body .th789-return-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
body #th789-app-help{text-align:left;margin-top:12px;padding:12px;background:#fff6fa;border-radius:12px}
body #th789-app-help details{border:0;border-bottom:1px solid #f0dce6;padding:0;background:transparent;box-shadow:none}
body #th789-app-help summary{padding:12px 0;cursor:pointer;min-height:44px;box-sizing:border-box;font-weight:600;color:#641b3d}
body #th789-app-help a{color:#8b1850;text-decoration:underline}
body .th789-home-link{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body .th789-home-link code{font-size:12px;white-space:normal;overflow-wrap:anywhere;max-width:100%}
body .th789-home-link [role=status]{font-size:12px}
body.th789-age-pending{overflow:hidden!important}
body #th789-age-confirm{box-sizing:border-box;width:min(430px,calc(100% - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:24px;border:1px solid #efc6d9;border-radius:20px;background:#fff8fb;color:#57223d;text-align:center;box-shadow:0 18px 60px #5c15352b;overflow:auto;font:15px/1.65 system-ui}
body #th789-age-confirm:not([open]){display:none!important}
body #th789-age-confirm::backdrop{background:#fff3fa}
body #th789-age-confirm[data-fallback][open]{position:fixed;inset:0;z-index:2147483647;box-shadow:0 0 0 100vmax #fff3fa}
body #th789-age-confirm h2{margin:12px 0 8px;font:700 23px/1.35 system-ui;color:#641b3d;text-shadow:none}
body #th789-age-confirm p{margin:8px 0 18px;color:#684457;font:14px/1.7 system-ui}
body .th789-age-confirm-badge{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#f9dbea;color:#9b1551;font:800 27px/1 system-ui}
body #th789-age-confirm button{width:100%;min-height:48px;white-space:normal;border:0;border-radius:12px;padding:12px;background:#ae185b;color:#fff;font:600 15px/1.5 system-ui;margin:0;box-shadow:none;text-transform:none;letter-spacing:0}
body #th789-age-confirm .th789-age-exit{display:block;padding:12px 0;min-height:44px;box-sizing:border-box;color:#713a55;font-size:13px;text-decoration:underline}
body #th789-age-confirm small{display:block;color:#745768;font-size:12px}
body #th789-age-confirm :is(button,a):focus-visible,body #th789-return-invite button:focus-visible{outline:3px solid #2863b7;outline-offset:3px}
body #th789-return-invite{position:fixed;right:16px;bottom:calc(64px + env(safe-area-inset-bottom,0px));z-index:99990;box-sizing:border-box;width:min(350px,calc(100% - 32px));padding:16px;border:1px solid #efc6d9;border-radius:16px;background:#fff8fb;color:#641b3d;box-shadow:0 8px 28px #68143a24;font:14px/1.5 system-ui;text-align:left}
body #th789-return-invite[hidden],body #th789-age-storage-status[hidden]{display:none!important}
body #th789-return-invite p{margin:6px 0 10px;color:#684457;font:13px/1.6 system-ui}
body #th789-return-invite>div{display:flex;gap:8px;flex-wrap:wrap}
body #th789-return-invite button{margin:0;min-height:44px;padding:9px 14px;border:0;border-radius:10px;background:#ae185b;color:#fff;font:600 13px/1.5 system-ui;text-transform:none;letter-spacing:0;box-shadow:none}
body #th789-return-invite [data-return-later]{background:#f5e6ed;color:#641b3d}
body #th789-return-invite small{display:block;margin-top:8px;color:#745768;font-size:11px}
body #th789-age-storage-status{margin:12px auto;max-width:600px;padding:8px 16px;color:#641b3d;font:13px/1.6 system-ui}
body .th789-age-nojs{position:fixed;inset:0;z-index:2147483647;display:grid;place-content:center;padding:24px;background:#fff6fa;color:#641b3d;font:16px/1.7 system-ui}

body.th789-theme-compat .th789-story-ticker-bar .th789-story-ticker-item:is(.is-new,.is-hot) .th789-story-ticker-chip,body.th789-theme-compat .th789-story-ticker-bar .th789-story-ticker-item:is(.is-new,.is-hot) .th789-story-ticker-chip *{color:#811342!important;background:#fce4ef!important;text-shadow:none!important}

body.th789-theme-compat .footer-nav{display:flex!important;flex-wrap:wrap;gap:4px 8px!important;justify-content:center!important;margin:0!important}body.th789-theme-compat .footer-nav>li{margin:0!important}body.th789-theme-compat .footer-nav>li>a{display:inline-flex!important;align-items:center;min-height:32px;padding:4px 6px!important;line-height:1.4!important}

/* Final layout pass: consistent desktop edges, wider mobile content and concise copy. */
body.th789-theme-compat #header .header-inner{max-width:1360px!important;margin-left:auto!important;margin-right:auto!important}
body.th789-theme-compat #main :is(.th789-theme-header-block,.xxxav-unified-taxonomy){width:100%!important;max-width:1360px!important;margin-left:auto!important;margin-right:auto!important}
body.th789-theme-compat .th789-theme-header-block{padding:16px 0!important;text-align:center!important}
body.th789-theme-compat .th789-theme-header-block :is(h1,p){max-width:85ch;margin-left:auto!important;margin-right:auto!important}
body.th789-theme-compat .xxxav-unified-taxonomy__list{justify-content:safe center}
body.th789-theme-compat .xxxav-home-copy{gap:20px!important;margin:20px auto!important}
body.th789-theme-compat .xxxav-footer-section{padding-top:16px!important;padding-bottom:16px!important}
body.th789-theme-compat .xxxav-footer-card{padding-top:0!important;padding-bottom:0!important}
body.th789-theme-compat :is(.xxxav-home-copy>section,.xxxav-footer-card) h2{font-size:clamp(17px,2vw,22px)!important;line-height:1.45!important;margin:0 0 8px!important}
body.th789-theme-compat :is(.xxxav-home-copy>section,.xxxav-footer-card) p{font-size:14px!important;line-height:1.7!important;margin:8px 0!important;color:#55424d!important}
body.th789-theme-compat .th789-copy-folded>p:first-of-type{display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.th789-theme-compat .th789-copy-folded>p:not(:first-of-type),body.th789-theme-compat .th789-copy-folded>p:not(:first-of-type)+.th789-inline-edit{display:none!important}
body.th789-theme-compat .th789-copy-toggle{min-height:36px!important;margin:4px 0 0!important;padding:5px 10px!important;border:0!important;border-radius:8px!important;box-shadow:none!important;background:#fce4ef!important;color:#811342!important;font:600 13px/1.4 system-ui!important;letter-spacing:0!important;text-transform:none!important}
@media(max-width:767px){
 body.th789-theme-compat.th789-age-rail{--th789-rail-width:max(20px,calc(env(safe-area-inset-left) + 20px))}
 body.th789-theme-compat .th789-age-side{left:max(2px,env(safe-area-inset-left))!important;width:28px!important;max-width:28px!important;height:auto!important}
 body.th789-theme-compat .th789-age-side__mark{font-size:10px!important}
 body.th789-theme-compat .th789-theme-content>.row{padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;width:100%!important}
 body.th789-theme-compat .th789-theme-content>.row>.col{padding-left:0!important;padding-right:0!important}
 body.th789-theme-compat .xxxav-footer-section{padding-left:20px!important;padding-right:20px!important}
 body.th789-theme-compat .xxxav-footer-card{padding-left:0!important;padding-right:0!important}
 body.th789-theme-compat .xxxav-home-copy>section{margin-bottom:16px!important}
}

/* Stable header branding and a short, lightweight glass highlight on pointer hover. */
/* One continuous footer surface: nested theme columns must not repeat the gradient. */
body.th789-theme-compat #footer.footer-wrapper{background:linear-gradient(110deg,#64103d 0%,#aa145c 58%,#d82179 100%)!important;border:0!important;color:#fff!important}
body.th789-theme-compat #footer :is(.absolute-footer,.footer-primary,.footer-secondary,.footer-text){background:transparent!important;border:0!important;box-shadow:none!important}
body.th789-theme-compat #footer .absolute-footer{padding:18px 0!important}
body.th789-theme-compat #footer .absolute-footer>.container{display:flex!important;align-items:center;justify-content:space-between;gap:16px 28px;max-width:1360px!important;margin:auto!important;padding:0!important}
body.th789-theme-compat #footer .footer-primary{flex:1;min-width:0;float:none!important;text-align:left!important;order:0}
body.th789-theme-compat #footer .footer-secondary{flex:0 0 auto;float:none!important;margin:0!important;padding:0!important;order:1}
body.th789-theme-compat #footer .footer-nav{justify-content:flex-start!important;gap:2px 8px!important}
body.th789-theme-compat #footer .footer-nav a{color:#fff!important;opacity:.94;font-size:12px!important;border:0!important;text-shadow:none!important}
body.th789-theme-compat #footer .footer-nav a:is(:hover,:focus-visible){opacity:1;text-decoration:underline;text-underline-offset:4px}
body.th789-theme-compat #footer .copyright-footer{margin-top:5px;font-size:12px;line-height:1.6;color:#ffe6f2!important}
body.th789-theme-compat #footer #histats_counter{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-width:116px;padding:10px 14px;border:1px solid #ffffff45;border-radius:14px;background:#ffffff14;box-shadow:inset 0 1px #ffffff18;line-height:1}
body.th789-theme-compat #footer #histats_counter::before{content:"สถิติผู้ชม · Histats";color:#fff;font:500 11px/1.4 system-ui,sans-serif;white-space:nowrap}
body.th789-theme-compat #footer #histatsC{position:static!important;line-height:1}
body.th789-theme-compat #footer #histatsC a{display:block;padding:2px}
body.th789-theme-compat #footer #histatsC img{display:block;width:80px;height:20px;max-width:100%;border-radius:5px;filter:hue-rotate(235deg) saturate(.7);box-shadow:0 2px 8px #36072026}
body.th789-theme-compat .th789-live-count{background:#fff2f8!important;border-top:0!important;min-height:42px;padding:9px 16px;color:#64344c;font-size:12px;gap:6px 9px}
body.th789-theme-compat .th789-live-count small{color:#79566a;font-size:10px}
body.th789-theme-compat .th789-live-count>span:first-child{font-size:10px;color:#9a8891}
body.th789-theme-compat .th789-live-count[data-available="1"]>span:first-child{color:#b31a65;animation:th789LiveGlow 2.8s ease-in-out 3}
@keyframes th789LiveGlow{50%{opacity:.55;text-shadow:0 0 8px #df5498}}
@media(max-width:767px){
 body.th789-theme-compat #footer .absolute-footer>.container{flex-direction:column;gap:13px}
 body.th789-theme-compat #footer .footer-primary{text-align:center!important;width:100%}
 body.th789-theme-compat #footer .footer-nav{justify-content:center!important;gap:0 5px!important}
 body.th789-theme-compat #footer #histats_counter{flex-direction:row;gap:9px;padding:8px 12px;min-width:0}
}
@media(prefers-reduced-motion:reduce){body.th789-theme-compat .th789-live-count>span:first-child{animation:none!important}}

body.th789-theme-compat #header #masthead{height:70px!important;min-height:70px!important}
body.th789-theme-compat #header .header-logo,body.th789-theme-compat #header .header-logo-dark{height:70px!important;max-height:70px!important;width:auto!important;object-fit:contain;transition:none!important}
@media(max-width:767px){body.th789-theme-compat #header #masthead{height:64px!important;min-height:64px!important}body.th789-theme-compat #header .header-logo,body.th789-theme-compat #header .header-logo-dark{height:56px!important;max-height:56px!important}}
body.th789-theme-compat .th789-viewer .th789-viewer-logo{width:120px!important;max-width:22%!important;max-height:44px!important;top:4px!important}
@media(max-width:600px){body.th789-theme-compat .th789-viewer .th789-viewer-logo{max-height:36px!important}}

/* The card stays still. Only sampled image pixels move under the pointer. */
body.th789-theme-compat :is(.th789-video-card,.th789-featured-strip-card,.th789-recommend-card,.th789-single-related-card):is(:hover,:focus-within){transform:none!important}
body.th789-theme-compat :is(.th789-video-card,.th789-featured-strip-card)::after{display:none!important}
body.th789-theme-compat :is(.th789-video-thumb,.th789-featured-strip-thumb,.th789-recommend-thumb,.th789-single-related-thumb){position:relative!important;overflow:hidden!important;transform:none!important;isolation:isolate}
body.th789-theme-compat :is(.th789-video-thumb,.th789-featured-strip-thumb,.th789-recommend-thumb,.th789-single-related-thumb) img{transform:none!important;object-position:50% 50%;transition:none!important}
body.th789-theme-compat canvas.th789-liquid-canvas{position:absolute!important;display:block;pointer-events:none!important;z-index:1;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;opacity:0}
@media(prefers-reduced-motion:reduce){body.th789-theme-compat canvas.th789-liquid-canvas{display:none!important}}

/* 5.8.13: a clear age + optional installation action, with a compact fallback. */
body #th789-age-confirm button[data-age-only]{margin-top:8px;background:transparent!important;background-image:none!important;color:#713a55!important;box-shadow:none!important;border:0!important;font-size:13px;text-decoration:underline}
body #th789-shortcut-dialog{box-sizing:border-box;width:min(400px,calc(100% - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:24px;border:1px solid #efc6d9;border-radius:20px;background:#fff8fb;color:#57223d;text-align:center;box-shadow:0 18px 60px #5c15352b;overflow:auto;font:15px/1.65 system-ui}
body #th789-shortcut-dialog:not([open]){display:none!important}
body #th789-shortcut-dialog::backdrop{background:#fff3fa}
body #th789-shortcut-dialog[open]{position:fixed;inset:0;z-index:2147483647}
body #th789-shortcut-dialog h2{margin:0 0 12px;color:#641b3d;font:700 21px/1.4 system-ui}
body #th789-shortcut-dialog p{color:#684457;font:15px/1.7 system-ui}
body #th789-shortcut-dialog button{display:block;width:100%;min-height:48px;border:0;border-radius:12px;padding:12px;background:#ae185b;color:white;font:600 15px/1.5 system-ui;white-space:normal;margin:8px 0;text-transform:none;letter-spacing:0}
body #th789-shortcut-dialog button[hidden]{display:none!important}
body #th789-shortcut-dialog small{display:block;color:#745768;font:12px/1.6 system-ui}
body #th789-shortcut-dialog button:focus-visible{outline:3px solid #2863b7;outline-offset:3px}

body #th789-shortcut-platform{display:block;width:100%;max-width:100%;min-height:44px;margin:6px 0 12px;padding:8px;border:1px solid #e6b9ce;border-radius:10px;background:#fff;color:#57223d;font:14px system-ui;box-sizing:border-box}
body #th789-shortcut-dialog label{display:block;text-align:left;font:13px/1.5 system-ui;color:#684457}
body #th789-shortcut-dialog #th789-shortcut-status{padding:10px;border-radius:10px;background:#f9e2ee;font-size:13px}
body #th789-shortcut-dialog button[aria-disabled="true"]{opacity:.6;cursor:wait}
