/* Own advertising: the same content width as the source site. */
.owned-site-ads{clear:both;margin:18px 0 22px}.owned-preserved-banner{margin-bottom:18px}.shu-header-ad{display:block}.shu-header-ad img{display:block;width:100%;height:auto;max-height:100px;object-fit:fill}.owned-line-wrap .shu-entry{border:1px solid #eee;border-radius:5px;padding:12px;background:#fff}.owned-line-wrap h2{font-size:16px;margin:0 0 12px}.owned-line-wrap .shu-entry>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.owned-line-wrap .shu-entry a{display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:5px;background:#ff9500;color:#fff;font-size:17px;font-weight:700}.shu-ad-floats{position:fixed;right:12px;top:min(calc(28% + 160px),calc(100% - 336px));display:flex;flex-direction:column;gap:28px;z-index:990}.shu-ad-floats a,.shu-ad-floats img{display:block;width:70px;height:70px}.owned-preroll{position:absolute;inset:0;z-index:20;background:#111;display:flex;align-items:center;justify-content:center}.owned-preroll>a{display:block;width:100%;height:100%}.owned-preroll img{width:100%;height:100%;object-fit:contain}.owned-preroll>span{position:absolute;top:10px;right:10px;padding:6px 10px;background:#000b;color:white;border-radius:4px;pointer-events:none}
@media(max-width:767px){.owned-site-ads{margin:12px 0 16px}.owned-preserved-banner{margin-bottom:12px}.owned-line-wrap .shu-entry>div{gap:6px}.owned-line-wrap .shu-entry a{min-height:44px;font-size:14px}.shu-ad-floats{right:4px;top:min(calc(30% + 120px),calc(100% - 208px));gap:22px}.shu-ad-floats a,.shu-ad-floats img{width:48px;height:48px}}

#ys-player{position:relative;background:#000}#ys-player .owned-video-frame{position:relative;aspect-ratio:16/9}#player{position:absolute;inset:0;width:100%;height:100%;background:#000}.owned-player-status{position:absolute;inset:40% 5% auto;text-align:center;color:#fff;pointer-events:none}.owned-qr{position:relative;margin:10px 0}.owned-qr img{width:120px;height:120px;background:white}.owned-qr summary{cursor:pointer}.owned-floating{position:fixed!important;right:85px;bottom:15px;width:460px!important;z-index:998;box-shadow:0 4px 20px #0008}.owned-float-close{display:none;position:absolute;right:5px;top:5px;z-index:30;background:#111a;color:white;border:0;padding:8px}.owned-floating .owned-float-close{display:block}@media(max-width:767px){.owned-floating{position:static!important;width:100%!important}}
.owned-categories{display:flex;flex-wrap:wrap;gap:8px}.owned-categories .btn{margin:0}.owned-desc-toggle{border:0;background:none;color:#e91348;cursor:pointer;padding:0}.owned-synopsis p{white-space:pre-wrap;line-height:1.8}.ys-vodlist__text li .pull-right{max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ys-content__thumb .v-thumb{display:block}.owned-full[hidden]{display:none}
/* Align advertising to the source panels' outer edges and tighten gaps. */
.owned-site-ads{margin:-10px 0 8px}
.owned-site-ads>.container{padding-left:0;padding-right:0}
.owned-site-ads .owned-preserved-banner{margin-top:0;margin-bottom:8px}
.owned-line-wrap .shu-entry{padding:8px}
.owned-line-wrap h2{margin:0 0 6px}
@media(max-width:1024px){.owned-site-ads{margin:8px 0}}

/* Own the three gaps without collapsed margins or source clearing spacers. */
body > .navbar,body > .ff-nav,body > .owned-ad-anchor{margin-bottom:0}
.owned-site-ads{display:flex;flex-direction:column;gap:10px;margin:0;padding:10px 0}
.owned-site-ads > .container{margin-top:0;margin-bottom:0}
.owned-site-ads + .ff-clearfix{display:none;height:0;margin:0;padding:0}
.owned-site-ads + .container,.owned-site-ads + .ff-clearfix + .container{margin-top:0}

/* The local player frame supplies its own aspect ratio. */
#ys-player.play-box{padding:0;height:auto}
#ys-player .owned-video-frame{width:100%;aspect-ratio:16/9}
#ys-player video{object-fit:contain}

.owned-logo-lockup{display:inline-flex;flex-direction:column;width:4em;font-size:22px;line-height:1.2}
.owned-logo-name{display:block;white-space:nowrap}
.owned-logo-domain{display:flex;justify-content:space-between;width:100%;font-family:Arial,sans-serif;font-size:11px;line-height:14px;white-space:nowrap}
.owned-logo-domain>span{display:block}
.ff-nav .owned-logo-lockup{font-size:25px}

.owned-friend-links{display:flex;flex-wrap:wrap;gap:12px 24px;padding:0 0 15px}.owned-friend-links a{color:#555}

/* Fourth-site source layout integration. */
.owned-site-ads{display:block;margin:0;padding:10px 0}
.owned-site-ads>.container{margin-top:0;margin-bottom:0}
.owned-site-ads .owned-preserved-banner{margin-bottom:10px}
.head-placeholder{margin-bottom:0!important}
.owned-site-ads + .banner,.owned-site-ads + .container{margin-top:0}
#ys-player.owned-video-frame{position:relative;width:100%;height:auto;aspect-ratio:16/9;padding:0;background:#000}
#ys-player video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.owned-hero-tab{border:0;background:none;color:inherit;cursor:pointer}
.banner-pic>.swiper-wrapper{display:block;position:relative;width:100%;height:100%}
.banner-pic>.swiper-wrapper>.swiper-slide{position:absolute;inset:0;display:none;width:100%;height:100%;background-size:cover;background-position:center 25%}
.banner-pic>.swiper-wrapper>.owned-slide-active{display:block}
.banner-pic .swiper-lazy-preloader{display:none}
.more-box{position:relative;line-height:1.8}
.more-box p{max-height:5.4em;overflow:hidden}.more-box.owned-expanded p{max-height:none}
.owned-desc-toggle{display:block;color:inherit;background:none;border:0;cursor:pointer}
.ewave-page a{display:inline-block;padding:8px 12px;margin:3px}
.ewave-playlist-content.active{display:flex!important}

.owned-site-ads>.container{padding-left:var(--theme-gap,15px);padding-right:var(--theme-gap,15px)}

/* Keep the source hero in document flow so its category strip cannot overlap ads. */
.banner-box,.banner-box .banner-pic{height:auto}
.banner-pic>.swiper-wrapper{height:40vw}
.banner-box .banner-pic a{padding-bottom:0!important;height:100%}
.banner{margin-top:0}

/* Display the small API artwork intact instead of enlarging a cropped fragment. */
.banner-pic>.swiper-wrapper{height:460px}
.banner-pic>.swiper-wrapper>.swiper-slide{background:linear-gradient(110deg,#fff1f7 0%,#f7f1ff 55%,#f7f9ff 100%);text-decoration:none}
.owned-hero-body{height:100%;max-width:1170px;margin:auto;display:flex;align-items:center;gap:40px;padding:25px 280px 80px 35px;box-sizing:border-box}
.owned-hero-poster{display:block;width:220px;height:320px;object-fit:contain;flex:none;filter:drop-shadow(0 8px 15px #4b164522)}
.owned-hero-copy{min-width:0;max-width:580px;color:#262131}
.owned-hero-copy h3{font-size:30px;font-weight:700;line-height:1.35;margin:12px 0}
.owned-hero-type,.owned-hero-note{font-size:14px;color:#746879}
.owned-hero-summary{font-size:15px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin:16px 0}
.owned-hero-watch{display:inline-block;padding:9px 20px;border-radius:5px;background:var(--theme-color,#f43b94);color:white;font-size:15px}
.banner-box .nav-name{height:auto;min-height:150px;top:20%;background:none}
.banner-box .nav-name .name{font-size:15px;color:#5f5164;text-align:left;padding:0 12px}
@media(max-width:1199px){.owned-hero-body{padding-right:40px;max-width:970px}.banner-box .nav-name{display:none}}
@media(max-width:767px){.banner-pic>.swiper-wrapper{height:240px}.owned-hero-body{gap:20px;padding:20px 20px 35px;align-items:center}.owned-hero-poster{width:110px;height:165px}.owned-hero-copy h3{font-size:22px;margin:8px 0}.owned-hero-summary{display:none}.owned-hero-type,.owned-hero-note{font-size:12px}.owned-hero-watch{font-size:13px;padding:7px 12px}}

/* Match the source carousel frame: desktop 33%, <=700px 40%. */
.banner-pic>.swiper-wrapper{height:33vw}
.owned-hero-body{padding-top:20px;padding-bottom:80px}
.owned-hero-poster{height:100%;max-height:320px;width:auto;max-width:28%;object-fit:contain}
@media(max-width:767px){
 .banner-pic>.swiper-wrapper{height:33vw}
 .owned-hero-body{padding:10px 20px;gap:18px}
 .owned-hero-poster{height:100%;max-height:none;max-width:30%;width:auto}
 .owned-hero-copy h3{font-size:clamp(16px,4vw,22px)}
 .owned-hero-copy .owned-hero-note{margin:4px 0}
 .owned-hero-watch{padding:5px 10px;font-size:12px}
}
@media(max-width:700px){.banner-pic>.swiper-wrapper{height:40vw}}

/* Apply the source's dark palette on phone layouts before first paint. */
@media(max-width:767px){
 :root{--bg-color-1:#121212;--bg-color-2:#25252b;--bg-color-3:#32323c;--text-color-1:#f0f0f0;--text-color-2:#6c6c6c;--text-color-3:#fff;color-scheme:dark}
 .banner-pic>.swiper-wrapper>.swiper-slide{background:linear-gradient(110deg,#18151d,#25202b 55%,#171922)}
 .owned-hero-copy{color:#f0f0f0}
 .owned-hero-type,.owned-hero-note{color:#b7aebb}
 .owned-line-wrap .shu-entry{background:var(--bg-color-2);border-color:#36363d}
 .owned-line-wrap h2{color:#f0f0f0}
 .owned-friend-links a{color:#ccc}
}

/* Phone carousel uses the source's edge-to-edge image presentation. */
@media(max-width:767px){
 .banner,.banner-box,.banner-box .banner-pic,.banner-pic>.swiper-wrapper{width:100%;max-width:none;border-radius:0}
 .owned-hero-body{position:relative;width:100%;max-width:none;height:100%;padding:0;display:block}
 .owned-hero-poster{position:absolute;inset:0;display:block;width:100%;max-width:none;height:100%;max-height:none;object-fit:cover;object-position:center 25%;filter:none}
 .owned-hero-copy{display:none}
}

/* Desktop uses the same full-width image carousel as the source. */
.banner,.banner-box,.banner-box .banner-pic,.banner-pic>.swiper-wrapper{width:100%;max-width:none;border-radius:0}
.owned-hero-body{position:relative;width:100%;max-width:none;height:100%;padding:0;display:block}
.owned-hero-poster{position:absolute;inset:0;display:block;width:100%;max-width:none;height:100%;max-height:none;object-fit:cover;object-position:center 25%;filter:none}
.owned-hero-copy{display:none}
.banner-box .nav-name .name{color:#fff;text-shadow:0 1px 4px #000,0 0 8px #000}

/* Phone hero aligns with the next content panel's outer edges. */
@media(max-width:767px){
 .banner>.banner-box{width:calc(100% - 2 * var(--theme-gap,10px));margin-left:auto;margin-right:auto}
 .banner-pic>.swiper-wrapper{height:auto;aspect-ratio:100 / 33}
}
@media(min-width:576px) and (max-width:767px){.banner>.banner-box{width:calc(560px - 2 * var(--theme-gap,10px))}}
@media(max-width:700px){.banner-pic>.swiper-wrapper{aspect-ratio:5 / 2}}

/* Desktop hero shares the content panels' container edges. */
@media(min-width:768px){
 .banner{height:auto}
 .banner>.banner-box{width:calc(750px - 2 * var(--theme-gap,15px));margin-left:auto;margin-right:auto}
 .banner-pic>.swiper-wrapper{height:auto;aspect-ratio:100 / 33}
 .banner-box .nav-name{left:auto;right:15px;margin-left:0;transform:none}
}
@media(min-width:992px){.banner>.banner-box{width:calc(970px - 2 * var(--theme-gap,15px))}}
@media(min-width:1200px){.banner>.banner-box{width:calc(1170px - 2 * var(--theme-gap,15px))}}
@media(min-width:1400px){.banner>.banner-box{width:calc(1495px - 2 * var(--theme-gap,15px))}}

/* Native synopsis rows: collapse the whole block, not every paragraph. */
.more-box.owned-source-synopsis{padding-bottom:26px;max-height:180px;overflow:hidden}
.more-box.owned-source-synopsis p{max-height:none;overflow:visible}
.more-box.owned-source-synopsis.owned-expanded{max-height:none}
.owned-source-synopsis>.owned-desc-toggle{position:absolute;bottom:0;left:0;right:0;width:100%;text-align:center;background:var(--bg-color-2,#fff);line-height:26px}
.ewave-player-fixed-placeholder{display:none}
.vod-player .qrcode-box .ewave-qrcode>img{display:block;width:100%;height:100%;object-fit:contain}

.more-box.owned-source-synopsis{max-height:none;overflow:visible;padding-bottom:0}
