/**
 * Hanfan Mobile Shell — 参考 33dy.tv 类影视站：浅底全宽主栏、分区卡片感、双列海报等高。
 * 仅作用于窄屏；加载顺序由插件 wp_enqueue_scripts priority 2000 保证靠后覆盖主题。
 */

/* 侧栏链接单行省略（不误伤 news 正文） */
#secondary a,
.widget-area a,
.site-sidebar a,
aside.sidebar a,
.hanfan-sidebar a{
	max-width:100%;
	min-width:0;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}

@media (max-width:991.98px){

	:root{
		--hf-shell-page:#f3f4f6;
		--hf-shell-card:#ffffff;
		--hf-shell-text:#16181d;
		--hf-shell-muted:#6b7280;
		--hf-shell-accent:#c62828;
		--hf-shell-radius:12px;
		--hf-shell-pad:14px;
		--hf-shell-gap:12px;
		--hf-shell-shadow:0 2px 14px rgba(15,23,42,.07);
	}

	html{overflow-x:hidden;-webkit-text-size-adjust:100%;}
	body{
		font-size:15px;
		line-height:1.55;
		color:var(--hf-shell-text);
	}

	body.home,
	body.front-page,
	body.blog,
	body.tax-vod_type,
	body.tax-vod_genre,
	body.tax-vod_topic,
	body.post-type-archive-vod{
		background:var(--hf-shell-page)!important;
	}

	body.single-news,
	body.post-type-archive-news,
	body.tax-news_cat{
		background:var(--hf-shell-page)!important;
	}

	img,video,embed,object{max-width:100%;height:auto;}
	iframe{max-width:100%;display:block;}
	body.single-news .entry-content iframe,
	body.single-news .post-content iframe{
		max-width:100%!important;height:auto!important;min-height:180px;
	}

	/* —— 全站内容区：拆掉主题的窄笼 —— */
	.site,
	.site-content,
	#content.site-content,
	#content,
	.content-area,
	.site-main,
	.main-content,
	#main,
	.primary-content{
		width:100%!important;
		max-width:100%!important;
		min-width:0!important;
		box-sizing:border-box!important;
	}

	body:not(.hanfan-play) .container,
	body:not(.hanfan-play) .container-fluid,
	.wrap,
	.hanfan-container{
		width:100%!important;
		max-width:100%!important;
		padding-left:var(--hf-shell-pad)!important;
		padding-right:var(--hf-shell-pad)!important;
		box-sizing:border-box!important;
	}

	/* 首页 / 资讯：flex 主栏可收缩；抵消 Bootstrap .row 负外边距，避免比父级更宽被 html overflow-x 裁掉右侧 */
	body.home .site-content,
	body.front-page .site-content,
	body.post-type-archive-news .site-content,
	body.tax-news_cat .site-content,
	body.single-news .site-content{
		min-width:0!important;
	}
	body.home #primary,
	body.front-page #primary,
	body.home #main,
	body.front-page #main,
	body.post-type-archive-news #primary,
	body.tax-news_cat #primary,
	body.single-news #primary,
	body.post-type-archive-news #main,
	body.tax-news_cat #main,
	body.single-news #main{
		min-width:0!important;
		max-width:100%!important;
	}
	body.home .site-content .row,
	body.front-page .site-content .row,
	body.home #content .row,
	body.front-page #content .row,
	body.home #page > .row,
	body.front-page #page > .row,
	body.home #main .row,
	body.front-page #main .row,
	body.post-type-archive-news .site-content .row,
	body.tax-news_cat .site-content .row,
	body.single-news .site-content .row,
	body.post-type-archive-news #content .row,
	body.tax-news_cat #content .row,
	body.single-news #content .row,
	body.post-type-archive-news #page > .row,
	body.tax-news_cat #page > .row,
	body.single-news #page > .row,
	body.post-type-archive-news #main .row,
	body.tax-news_cat #main .row,
	body.single-news #main .row,
	body.post-type-archive-news #primary .row,
	body.tax-news_cat #primary .row,
	body.single-news #primary .row{
		margin-left:0!important;
		margin-right:0!important;
		max-width:100%!important;
		--bs-gutter-x:0!important;
	}

	/* —— WordPress 主侧栏：强制纵向、全宽（核心修复：不再依赖 .container > .row 结构） —— */
	body.home #primary,
	body.front-page #primary,
	body.blog #primary,
	body.tax-vod_type #primary,
	body.tax-vod_genre #primary,
	body.tax-vod_topic #primary,
	body.post-type-archive-vod #primary,
	body.single-vod #primary,
	body.post-type-archive-news #primary,
	body.tax-news_cat #primary,
	body.single-news #primary{
		width:100%!important;
		max-width:100%!important;
		min-width:0!important;
		flex:0 0 auto!important;
		float:none!important;
		order:1!important;
	}

	body.home #secondary,
	body.front-page #secondary,
	body.blog #secondary,
	body.tax-vod_type #secondary,
	body.tax-vod_genre #secondary,
	body.tax-vod_topic #secondary,
	body.post-type-archive-vod #secondary,
	body.single-vod #secondary,
	body.post-type-archive-news #secondary,
	body.tax-news_cat #secondary,
	body.single-news #secondary{
		width:100%!important;
		max-width:100%!important;
		min-width:0!important;
		flex:0 0 auto!important;
		float:none!important;
		clear:both!important;
		order:10!important;
		margin-top:var(--hf-shell-gap)!important;
		padding-top:var(--hf-shell-gap)!important;
		border-top:1px solid rgba(0,0,0,.06);
	}

	/* 含主侧栏的横向 .row 一律改为纵向（标题区若在 .site-content 内也会被叠起，通常主题标题在外） */
	body.home .site-content .container > .row,
	body.front-page .site-content .container > .row,
	body.blog .site-content .container > .row,
	body.tax-vod_type .site-content .container > .row,
	body.tax-vod_genre .site-content .container > .row,
	body.tax-vod_topic .site-content .container > .row,
	body.post-type-archive-vod .site-content .container > .row,
	body.single-vod .site-content .container > .row,
	body.post-type-archive-news .site-content .container > .row,
	body.tax-news_cat .site-content .container > .row,
	body.single-news .site-content .container > .row,
	body.home #content .container > .row,
	body.tax-vod_type #content .container > .row,
	body.tax-vod_genre #content .container > .row,
	body.tax-vod_topic #content .container > .row,
	body.post-type-archive-vod #content .container > .row,
	body.home .site-main > .container > .row,
	body.tax-vod_type .site-main > .container > .row,
	body.home #primary > .container > .row,
	body.tax-vod_type #primary > .container > .row,
	body.home .site-content > .wrap > .row,
	body.tax-vod_type .site-content > .wrap > .row,
	body.home #primary > .wrap > .row,
	body.tax-vod_type #primary > .wrap > .row{
		display:flex!important;
		flex-direction:column!important;
		flex-wrap:nowrap!important;
		align-items:stretch!important;
		gap:18px!important;
		margin-left:0!important;
		margin-right:0!important;
		width:100%!important;
	}

	body.home .site-content .container > .row > [class*="col"],
	body.front-page .site-content .container > .row > [class*="col"],
	body.tax-vod_type .site-content .container > .row > [class*="col"],
	body.tax-vod_genre .site-content .container > .row > [class*="col"],
	body.tax-vod_topic .site-content .container > .row > [class*="col"],
	body.post-type-archive-vod .site-content .container > .row > [class*="col"],
	body.single-vod .site-content .container > .row > [class*="col"],
	body.post-type-archive-news .site-content .container > .row > [class*="col"],
	body.tax-news_cat .site-content .container > .row > [class*="col"],
	body.single-news .site-content .container > .row > [class*="col"]{
		width:100%!important;
		max-width:100%!important;
		flex:0 0 auto!important;
		padding-left:0!important;
		padding-right:0!important;
	}

	/* Bootstrap：排除小栅格 poster 列，其余栏目在移动端拉满 */
	body.home .site-content .row > [class*="col-"]:not(.col-6):not(.col-4):not(.col-3),
	body.tax-vod_type .site-content .row > [class*="col-"]:not(.col-6):not(.col-4):not(.col-3),
	body.tax-vod_genre .site-content .row > [class*="col-"]:not(.col-6):not(.col-4):not(.col-3),
	body.tax-vod_topic .site-content .row > [class*="col-"]:not(.col-6):not(.col-4):not(.col-3),
	body.post-type-archive-vod .site-content .row > [class*="col-"]:not(.col-6):not(.col-4):not(.col-3),
	body.single-vod .site-content .row > [class*="col-"]:not(.col-6):not(.col-4):not(.col-3){
		width:100%!important;
		max-width:100%!important;
		flex:0 0 auto!important;
	}

	/* —— #primary / #main 内双列海报：CSS Grid（匹配 col-sm-6、col-md-4 等；排除 hf-mobile-split-box 左右分栏） —— */
	body.home #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.front-page #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.tax-vod_type #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.tax-vod_genre #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.tax-vod_topic #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.post-type-archive-vod #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.single-vod #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.home #main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.front-page #main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.home #content .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.front-page #content .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.home .site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.front-page .site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img){
		display:grid!important;
		grid-template-columns:repeat(2,minmax(0,1fr))!important;
		column-gap:var(--hf-shell-gap)!important;
		row-gap:16px!important;
		align-items:start!important;
		margin-left:0!important;
		margin-right:0!important;
		width:100%!important;
		max-width:100%!important;
		min-width:0!important;
	}
	body.home #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.front-page #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.tax-vod_type #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.tax-vod_genre #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.tax-vod_topic #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.post-type-archive-vod #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.single-vod #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.home #main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.front-page #main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.home #content .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.front-page #content .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.home .site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.front-page .site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"]{
		width:100%!important;
		max-width:none!important;
		flex:none!important;
		min-width:0!important;
		padding-left:0!important;
		padding-right:0!important;
		margin:0!important;
		float:none!important;
	}

	body.home #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) .card-img-top,
	body.tax-vod_type #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) .card-img-top,
	body.home #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) img.card-img-top,
	body.tax-vod_type #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) img.card-img-top{
		width:100%!important;
		aspect-ratio:3/4!important;
		object-fit:cover!important;
		height:auto!important;
		display:block!important;
	}

	/* 无 #primary、主内容为 main.site-main 时 */
	body.tax-vod_type main.site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.home main.site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
	body.front-page main.site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img){
		display:grid!important;
		grid-template-columns:repeat(2,minmax(0,1fr))!important;
		column-gap:var(--hf-shell-gap)!important;
		row-gap:16px!important;
		margin-left:0!important;
		margin-right:0!important;
		width:100%!important;
		max-width:100%!important;
		min-width:0!important;
	}
	body.tax-vod_type main.site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.home main.site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
	body.front-page main.site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"]{
		width:100%!important;
		max-width:none!important;
		min-width:0!important;
		padding-left:0!important;
		padding-right:0!important;
		margin:0!important;
		float:none!important;
	}

	/* 无 :has：双列均分 */
	@supports not (selector(:has(*))){
		body.home #primary .row > .col-6,
		body.tax-vod_type #primary .row > .col-6,
		body.tax-vod_genre #primary .row > .col-6,
		body.tax-vod_topic #primary .row > .col-6{
			flex:0 0 calc(50% - 6px)!important;
			width:calc(50% - 6px)!important;
			max-width:calc(50% - 6px)!important;
			box-sizing:border-box!important;
		}
	}

	/* 卡片层次（影视列表） */
	body.home #primary .card,
	body.tax-vod_type #primary .card,
	body.tax-vod_genre #primary .card,
	body.post-type-archive-vod #primary .card{
		background:var(--hf-shell-card);
		border:none!important;
		border-radius:var(--hf-shell-radius)!important;
		box-shadow:var(--hf-shell-shadow)!important;
		overflow:hidden;
	}

	/* —— 资讯列表标题两行 —— */
	body.post-type-archive-news .entry-title,
	body.post-type-archive-news .entry-title a,
	body.tax-news_cat .entry-title,
	body.tax-news_cat .entry-title a,
	body.post-type-archive-news article .entry-title a,
	body.tax-news_cat article .entry-title a,
	body.post-type-archive-news .news-title a,
	body.tax-news_cat .news-title a{
		display:-webkit-box!important;
		-webkit-box-orient:vertical!important;
		-webkit-line-clamp:2!important;
		overflow:hidden!important;
		white-space:normal!important;
		word-break:break-word!important;
		line-height:1.45!important;
	}

	/* —— 资讯详情 / 列表：全宽容器 + 正文字号（解决「很窄」与横向裁切） —— */
	body.single-news .site-main,
	body.single-news #primary,
	body.single-news #main,
	body.single-news #content,
	body.single-news .content-area,
	body.single-news article,
	body.post-type-archive-news .site-main,
	body.post-type-archive-news #primary,
	body.post-type-archive-news #main,
	body.post-type-archive-news #content,
	body.tax-news_cat .site-main,
	body.tax-news_cat #primary,
	body.tax-news_cat #main,
	body.tax-news_cat #content{
		width:100%!important;
		max-width:100%!important;
		min-width:0!important;
	}

	body.single-news .container,
	body.single-news .wrap,
	body.single-news .hanfan-container,
	body.post-type-archive-news .container,
	body.post-type-archive-news .wrap,
	body.post-type-archive-news .hanfan-container,
	body.tax-news_cat .container,
	body.tax-news_cat .wrap,
	body.tax-news_cat .hanfan-container{
		max-width:100%!important;
		width:100%!important;
		padding-left:var(--hf-shell-pad)!important;
		padding-right:var(--hf-shell-pad)!important;
		box-sizing:border-box!important;
	}

	body.single-news .entry-header,
	body.single-news .entry-content,
	body.single-news .post-content,
	body.single-news .article-content{
		max-width:100%!important;
		width:100%!important;
		margin-left:0!important;
		margin-right:0!important;
		padding-left:0!important;
		padding-right:0!important;
		box-sizing:border-box!important;
	}

	body.single-news .entry-content,
	body.single-news .post-content{
		font-size:17px!important;
		line-height:1.85!important;
		color:#1f2937!important;
		overflow:visible!important;
		max-height:none!important;
		word-break:break-word!important;
		overflow-wrap:anywhere!important;
	}

	body.single-news .entry-content *,
	body.single-news .post-content *{
		max-width:100%!important;
	}
	body.single-news .entry-content figure,
	body.single-news .post-content figure{
		max-width:100%!important;
		margin-left:0!important;
		margin-right:0!important;
	}
	body.single-news .entry-content iframe,
	body.single-news .entry-content embed,
	body.single-news .entry-content video,
	body.single-news .post-content iframe,
	body.single-news .post-content embed,
	body.single-news .post-content video{
		max-width:100%!important;
		width:100%!important;
	}

	body.single-news .entry-content p,
	body.single-news .post-content p{
		margin-bottom:1em!important;
	}

	body.single-news .entry-title,
	body.single-news h1.entry-title{
		font-size:1.35rem!important;
		line-height:1.4!important;
		font-weight:700!important;
		word-break:break-word!important;
		padding-bottom:8px!important;
		border-bottom:1px solid rgba(0,0,0,.08);
		margin-bottom:14px!important;
	}

	body.single-news .entry-content img,
	body.single-news .post-content img{
		width:auto!important;
		max-width:100%!important;
		height:auto!important;
		border-radius:8px!important;
	}

	/* —— 播放页 —— */
	body.hanfan-play #primary,
	body.hanfan-play .content-area{
		padding-left:0!important;
		padding-right:0!important;
	}
	body.hanfan-play .hf33-play-wrap{
		max-width:100%!important;
		padding-left:var(--hf-shell-pad)!important;
		padding-right:var(--hf-shell-pad)!important;
		box-sizing:border-box!important;
	}
	body.hanfan-play .hf33-player-frame{
		position:relative!important;
		width:100%!important;
		overflow:hidden!important;
		border-radius:var(--hf-shell-radius)!important;
		box-shadow:var(--hf-shell-shadow)!important;
	}
	body.hanfan-play .hf33-player-frame iframe{
		position:absolute!important;
		left:0!important;
		top:0!important;
		width:100%!important;
		height:100%!important;
		max-width:none!important;
		border:0!important;
	}
	body.hanfan-play .hf33-lines-scroll{
		display:flex!important;
		flex-wrap:nowrap!important;
		gap:8px!important;
		overflow-x:auto!important;
		-webkit-overflow-scrolling:touch;
		padding-bottom:6px!important;
	}
	body.hanfan-play .hf33-lines-scroll .btn{
		flex:0 0 auto!important;
		margin:0!important;
	}
	body.hanfan-play .hf33-eps-panel{
		max-height:min(42vh,320px)!important;
		overflow-y:auto!important;
		-webkit-overflow-scrolling:touch;
	}

	/* 排行等列表行 */
	body.tax-vod_type [class*="rank"] li,
	body.tax-vod_type [class*="hot"] li,
	body.tax-vod_type [class*="update"] li,
	body.post-type-archive-vod [class*="rank"] li{
		display:flex!important;
		align-items:center!important;
		gap:8px!important;
		min-width:0!important;
	}
	body.tax-vod_type [class*="rank"] li a,
	body.post-type-archive-vod [class*="rank"] li a{
		flex:1 1 auto!important;
		min-width:0!important;
		overflow:hidden!important;
		text-overflow:ellipsis!important;
		white-space:nowrap!important;
	}
}

@media (max-width:575.98px){
	:root{
		--hf-shell-pad:12px;
		--hf-shell-gap:10px;
	}
	body.single-news .entry-content{
		font-size:16px!important;
	}
}

/* =====================================================================
 * v9.1.6 强制移动端布局补丁：只在手机/窄屏生效
 * 目标：
 * 1) 首页模块不再横向溢出导致内容显示不全；
 * 2) 主分类页子分类/推荐区在移动端只显示左侧两列海报，隐藏右侧推荐/排行/状态文字列；
 * 3) 资讯页/详情页宽度、图片、侧栏自动适配。
 * ===================================================================== */
@media (max-width: 768px){
    html,
    body{
        width:100%!important;
        max-width:100%!important;
        overflow-x:hidden!important;
    }
    body{
        margin:0!important;
        padding:0!important;
        -webkit-text-size-adjust:100%;
    }

    body *{
        box-sizing:border-box!important;
    }

    /* 解除主题常见固定宽度/负边距导致的手机横向裁切 */
    #page,.site,.site-content,#content,.content-area,#primary,#main,.site-main,
    .container,.container-fluid,.wrap,.wrapper,.content,.main,.main-box,
    .layout,.layout-box,.module,.module-main,.module-content,.module-box,
    .panel,.panel-body,.stui-pannel,.stui-pannel__bd,.myui-panel,.myui-panel-box,
    .hl-container,.hl-row-box,.hanfan-container{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }

    body.home .site-content,
    body.front-page .site-content,
    body.tax-vod_type .site-content,
    body.tax-vod_genre .site-content,
    body.tax-vod_topic .site-content,
    body.post-type-archive-vod .site-content,
    body.post-type-archive-news .site-content,
    body.tax-news_cat .site-content,
    body.single-news .site-content{
        padding-left:10px!important;
        padding-right:10px!important;
        overflow:visible!important;
    }

    /* 首页专用：主栏与面板勿横向裁切；再次清零 .row 负边距（主题常在 768 以下仍保留 Bootstrap 默认值） */
    body.home #primary,
    body.front-page #primary,
    body.home #main,
    body.front-page #main,
    body.home .site-main,
    body.front-page .site-main,
    body.single-news #primary,
    body.single-news #main,
    body.single-news .site-main,
    body.post-type-archive-news #primary,
    body.post-type-archive-news #main,
    body.post-type-archive-news .site-main,
    body.tax-news_cat #primary,
    body.tax-news_cat #main,
    body.tax-news_cat .site-main{
        min-width:0!important;
        max-width:100%!important;
        overflow-x:visible!important;
    }
    body.home .site-content .row,
    body.front-page .site-content .row,
    body.home #content .row,
    body.front-page #content .row,
    body.home #page > .row,
    body.front-page #page > .row,
    body.home #main .row,
    body.front-page #main .row,
    body.home #primary .row,
    body.front-page #primary .row,
    body.single-news .site-content .row,
    body.single-news #content .row,
    body.single-news #page > .row,
    body.single-news #main .row,
    body.single-news #primary .row,
    body.post-type-archive-news .site-content .row,
    body.post-type-archive-news #content .row,
    body.post-type-archive-news #page > .row,
    body.post-type-archive-news #main .row,
    body.post-type-archive-news #primary .row,
    body.tax-news_cat .site-content .row,
    body.tax-news_cat #content .row,
    body.tax-news_cat #page > .row,
    body.tax-news_cat #main .row,
    body.tax-news_cat #primary .row{
        margin-left:0!important;
        margin-right:0!important;
        max-width:100%!important;
        --bs-gutter-x:0!important;
    }
    body.home .stui-pannel__bd,
    body.home .stui-pannel_bd,
    body.home .myui-panel_bd,
    body.home .myui-panel__bd,
    body.front-page .stui-pannel__bd,
    body.front-page .stui-pannel_bd,
    body.front-page .myui-panel_bd,
    body.front-page .myui-panel__bd,
    body.single-news .stui-pannel__bd,
    body.single-news .stui-pannel_bd,
    body.single-news .myui-panel_bd,
    body.single-news .myui-panel__bd,
    body.post-type-archive-news .stui-pannel__bd,
    body.post-type-archive-news .stui-pannel_bd,
    body.tax-news_cat .stui-pannel__bd,
    body.tax-news_cat .stui-pannel_bd{
        max-width:100%!important;
        overflow-x:visible!important;
        overflow:visible!important;
    }

    /* 首页：含海报+排行的横向模块改成上下结构，避免右侧内容被屏幕裁掉 */
    body.home .hf-mobile-split-box,
    body.front-page .hf-mobile-split-box{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        overflow:visible!important;
        white-space:normal!important;
    }
    body.home .hf-mobile-split-box > .hf-mobile-poster-zone,
    body.front-page .hf-mobile-split-box > .hf-mobile-poster-zone,
    body.home .hf-mobile-split-box > .hf-mobile-rank-zone,
    body.front-page .hf-mobile-split-box > .hf-mobile-rank-zone{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        float:none!important;
        clear:both!important;
        margin-left:0!important;
        margin-right:0!important;
    }
    body.home .hf-mobile-split-box > .hf-mobile-rank-zone,
    body.front-page .hf-mobile-split-box > .hf-mobile-rank-zone{
        margin-top:12px!important;
    }

    /* 主分类页：子分类推荐区只保留两列海报，右侧推荐/排行/状态列隐藏 */
    body.tax-vod_type .hf-mobile-hide-zone,
    body.tax-vod_genre .hf-mobile-hide-zone,
    body.tax-vod_topic .hf-mobile-hide-zone,
    body.post-type-archive-vod .hf-mobile-hide-zone,
    body.archive .hf-mobile-hide-zone{
        display:none!important;
    }
    body.tax-vod_type .hf-mobile-split-box,
    body.tax-vod_genre .hf-mobile-split-box,
    body.tax-vod_topic .hf-mobile-split-box,
    body.post-type-archive-vod .hf-mobile-split-box{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        overflow:visible!important;
    }
    body.tax-vod_type .hf-mobile-split-box > .hf-mobile-poster-zone,
    body.tax-vod_genre .hf-mobile-split-box > .hf-mobile-poster-zone,
    body.tax-vod_topic .hf-mobile-split-box > .hf-mobile-poster-zone,
    body.post-type-archive-vod .hf-mobile-split-box > .hf-mobile-poster-zone{
        width:100%!important;
        max-width:100%!important;
        float:none!important;
        clear:both!important;
        margin:0!important;
        padding-left:0!important;
        padding-right:0!important;
    }

    /* 主题常见 bootstrap 栅格：移动端全部回归全宽，避免 6/8/9 + 3/4 仍然左右排 */
    body.home .hf-mobile-split-box > [class*="col-"],
    body.front-page .hf-mobile-split-box > [class*="col-"],
    body.tax-vod_type .hf-mobile-split-box > [class*="col-"],
    body.tax-vod_genre .hf-mobile-split-box > [class*="col-"],
    body.tax-vod_topic .hf-mobile-split-box > [class*="col-"],
    body.post-type-archive-vod .hf-mobile-split-box > [class*="col-"]{
        flex:0 0 100%!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        float:none!important;
    }

    /* 海报列表：两列，严格不超出屏幕 */
    .hf-mobile-poster-zone .row,
    .hf-mobile-poster-zone ul,
    .hf-mobile-poster-zone .vod-list,
    .hf-mobile-poster-zone .vodlist,
    .hf-mobile-poster-zone .stui-vodlist,
    .hf-mobile-poster-zone .myui-vodlist,
    .hf-mobile-poster-zone .module-list,
    .hf-mobile-poster-zone .module-items,
    .hf-mobile-poster-zone [class*="vodlist"],
    .hf-mobile-poster-zone [class*="vod-list"],
    .hf-mobile-poster-zone [class*="module-list"]{
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:12px!important;
        width:100%!important;
        max-width:100%!important;
        margin-left:0!important;
        margin-right:0!important;
        padding-left:0!important;
        padding-right:0!important;
        overflow:visible!important;
        white-space:normal!important;
    }
    .hf-mobile-poster-zone .row > *,
    .hf-mobile-poster-zone ul > li,
    .hf-mobile-poster-zone .vod-list > *,
    .hf-mobile-poster-zone .vodlist > *,
    .hf-mobile-poster-zone .stui-vodlist > *,
    .hf-mobile-poster-zone .myui-vodlist > *,
    .hf-mobile-poster-zone .module-list > *,
    .hf-mobile-poster-zone .module-items > *{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        flex:none!important;
        float:none!important;
        margin:0!important;
        padding-left:0!important;
        padding-right:0!important;
    }

    /* 若主题没有被 JS 标记，也用结构选择器兜底：一行里有图片列 + 无图片文字列时，分类页隐藏文字列 */
    body.tax-vod_type .row:has(> [class*="col"] img) > [class*="col"]:not(:has(img)),
    body.tax-vod_genre .row:has(> [class*="col"] img) > [class*="col"]:not(:has(img)),
    body.tax-vod_topic .row:has(> [class*="col"] img) > [class*="col"]:not(:has(img)),
    body.post-type-archive-vod .row:has(> [class*="col"] img) > [class*="col"]:not(:has(img)){
        display:none!important;
    }
    /* 仅「海报+排行」分栏行叠成上下块；勿作用于纯海报双列 .row，否则会破坏两列均分 */
    body.home .hf-mobile-split-box.row:has(> [class*="col"] img) > [class*="col"],
    body.front-page .hf-mobile-split-box.row:has(> [class*="col"] img) > [class*="col"]{
        width:100%!important;
        max-width:100%!important;
        flex:0 0 100%!important;
        float:none!important;
        clear:both!important;
    }

    /* ≤768px 再盖一层：确保首页双列铺满屏宽（部分主题后加载 Bootstrap 会冲掉 991 段） */
    body.home #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
    body.front-page #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
    body.home #main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
    body.front-page #main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
    body.home #content .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
    body.front-page #content .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
    body.home .site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img),
    body.front-page .site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img){
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        column-gap:var(--hf-shell-gap,12px)!important;
        row-gap:16px!important;
        align-items:start!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin-left:0!important;
        margin-right:0!important;
    }
    body.home #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
    body.front-page #primary .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
    body.home #main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
    body.front-page #main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
    body.home #content .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
    body.front-page #content .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
    body.home .site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"],
    body.front-page .site-main .row:not(.hf-mobile-split-box):has(> [class*="col-"]:nth-child(2)):has(> [class*="col-"] img) > [class*="col-"]{
        width:100%!important;
        max-width:none!important;
        min-width:0!important;
        flex:none!important;
        float:none!important;
        margin:0!important;
        padding-left:0!important;
        padding-right:0!important;
    }

    /* 无 Bootstrap .row、主题为 ul/li 海报列表时：双列铺满 */
    body.home #primary ul.vod-list,
    body.home #primary ul.myui-vodlist,
    body.home #primary ul.stui-vodlist,
    body.home #content ul.vod-list,
    body.home #content ul.myui-vodlist,
    body.home #content ul.stui-vodlist,
    body.home #main ul.vod-list,
    body.home .site-main ul.vod-list,
    body.front-page #primary ul.vod-list,
    body.front-page #primary ul.myui-vodlist,
    body.front-page #primary ul.stui-vodlist,
    body.front-page #content ul.vod-list,
    body.front-page #main ul.vod-list,
    body.front-page .site-main ul.vod-list{
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:12px!important;
        width:100%!important;
        max-width:100%!important;
        margin-left:0!important;
        margin-right:0!important;
        padding-left:0!important;
        padding-right:0!important;
        list-style:none!important;
    }
    body.home #primary ul.vod-list > li,
    body.home #primary ul.myui-vodlist > li,
    body.home #primary ul.stui-vodlist > li,
    body.home #content ul.vod-list > li,
    body.home #content ul.myui-vodlist > li,
    body.home #content ul.stui-vodlist > li,
    body.home #main ul.vod-list > li,
    body.home .site-main ul.vod-list > li,
    body.front-page #primary ul.vod-list > li,
    body.front-page #primary ul.myui-vodlist > li,
    body.front-page #primary ul.stui-vodlist > li,
    body.front-page #content ul.vod-list > li,
    body.front-page #main ul.vod-list > li,
    body.front-page .site-main ul.vod-list > li{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        float:none!important;
        margin:0!important;
    }

    /* 所有海报图片统一等宽等高比例，解决左小右大 */
    .hf-mobile-poster-zone img,
    body.home .vod-list img,
    body.home .vodlist img,
    body.home .stui-vodlist img,
    body.home .myui-vodlist img,
    body.front-page .vod-list img,
    body.front-page .vodlist img,
    body.tax-vod_type .vod-list img,
    body.tax-vod_type .vodlist img,
    body.tax-vod_type .stui-vodlist img,
    body.tax-vod_type .myui-vodlist img{
        width:100%!important;
        max-width:100%!important;
        aspect-ratio:3/4!important;
        height:auto!important;
        object-fit:cover!important;
        display:block!important;
        border-radius:8px!important;
    }
    .hf-mobile-poster-zone a,
    .hf-mobile-poster-zone .title,
    .hf-mobile-poster-zone h3,
    .hf-mobile-poster-zone h4,
    .hf-mobile-poster-zone p{
        max-width:100%!important;
        overflow:hidden!important;
        text-overflow:ellipsis!important;
        white-space:nowrap!important;
        word-break:keep-all!important;
    }

    /* 横向标签/子分类按钮允许换行，不再撑出屏幕 */
    body.tax-vod_type .tags,
    body.tax-vod_type .tag-list,
    body.tax-vod_type .type-list,
    body.tax-vod_type .category-list,
    body.tax-vod_type .nav-tabs,
    body.tax-vod_type [class*="type"],
    body.tax-vod_type [class*="tag"]{
        max-width:100%!important;
        overflow:hidden!important;
        white-space:normal!important;
    }

    /* 资讯列表/详情：移动端主栏全宽，侧栏下移；正文区域不横向裁切 */
    body.post-type-archive-news #primary,
    body.tax-news_cat #primary,
    body.single-news #primary,
    body.post-type-archive-news #main,
    body.tax-news_cat #main,
    body.single-news #main,
    body.post-type-archive-news #content,
    body.tax-news_cat #content,
    body.single-news #content,
    body.post-type-archive-news .content-area,
    body.tax-news_cat .content-area,
    body.single-news .content-area,
    body.post-type-archive-news .site-main,
    body.tax-news_cat .site-main,
    body.single-news .site-main{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        float:none!important;
        clear:both!important;
    }
    body.single-news .container,
    body.single-news .wrap,
    body.post-type-archive-news .container,
    body.post-type-archive-news .wrap,
    body.tax-news_cat .container,
    body.tax-news_cat .wrap{
        max-width:100%!important;
        width:100%!important;
        padding-left:var(--hf-shell-pad,12px)!important;
        padding-right:var(--hf-shell-pad,12px)!important;
        box-sizing:border-box!important;
    }
    body.post-type-archive-news #secondary,
    body.tax-news_cat #secondary,
    body.single-news #secondary,
    body.post-type-archive-news aside,
    body.tax-news_cat aside,
    body.single-news aside{
        width:100%!important;
        max-width:100%!important;
        float:none!important;
        clear:both!important;
        margin-top:16px!important;
    }
    body.single-news .entry-content,
    body.single-news .post-content,
    body.single-news article,
    body.single-news .article,
    body.post-type-archive-news article,
    body.tax-news_cat article{
        width:100%!important;
        max-width:100%!important;
        overflow-x:visible!important;
        overflow-y:visible!important;
        word-break:break-word!important;
        overflow-wrap:anywhere!important;
    }
    body.single-news img,
    body.post-type-archive-news img,
    body.tax-news_cat img{
        max-width:100%!important;
        height:auto!important;
    }
}


/* v9.1.8：移动端首页 + 资讯详情最终宽度兜底。只在手机/平板窄屏生效。 */
@media screen and (max-width:991.98px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important;}
  body.home,body.front-page,body.single-news,body.post-type-archive-news,body.tax-news_cat{min-width:0!important;}
  body.home *,body.front-page *,body.single-news *,body.post-type-archive-news *,body.tax-news_cat *{box-sizing:border-box!important;}

  body.home #page,body.front-page #page,body.single-news #page,body.post-type-archive-news #page,body.tax-news_cat #page,
  body.home .site,body.front-page .site,body.single-news .site,body.post-type-archive-news .site,body.tax-news_cat .site,
  body.home .site-content,body.front-page .site-content,body.single-news .site-content,body.post-type-archive-news .site-content,body.tax-news_cat .site-content,
  body.home #content,body.front-page #content,body.single-news #content,body.post-type-archive-news #content,body.tax-news_cat #content,
  body.home #primary,body.front-page #primary,body.single-news #primary,body.post-type-archive-news #primary,body.tax-news_cat #primary,
  body.home #main,body.front-page #main,body.single-news #main,body.post-type-archive-news #main,body.tax-news_cat #main,
  body.home main,body.front-page main,body.single-news main,body.post-type-archive-news main,body.tax-news_cat main,
  body.home .container,body.front-page .container,body.single-news .container,body.post-type-archive-news .container,body.tax-news_cat .container,
  body.home .wrap,body.front-page .wrap,body.single-news .wrap,body.post-type-archive-news .wrap,body.tax-news_cat .wrap,
  body.home section,body.front-page section,body.single-news section,body.post-type-archive-news section,body.tax-news_cat section,
  body.home article,body.front-page article,body.single-news article,body.post-type-archive-news article,body.tax-news_cat article{
    width:100%!important;max-width:100%!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;float:none!important;clear:both!important;
  }
  body.home .container,body.front-page .container,body.single-news .container,body.post-type-archive-news .container,body.tax-news_cat .container,
  body.home .wrap,body.front-page .wrap,body.single-news .wrap,body.post-type-archive-news .wrap,body.tax-news_cat .wrap{padding-left:12px!important;padding-right:12px!important;}
  body.home .row,body.front-page .row,body.single-news .row,body.post-type-archive-news .row,body.tax-news_cat .row{max-width:100%!important;margin-left:0!important;margin-right:0!important;}
  body.home [style*="width"],body.front-page [style*="width"],body.single-news [style*="width"],body.post-type-archive-news [style*="width"],body.tax-news_cat [style*="width"]{max-width:100%!important;}

  body.single-news .entry-content,body.single-news .post-content,body.single-news .article-content,body.single-news .article,body.single-news #mp-editor,
  body.post-type-archive-news .entry-content,body.tax-news_cat .entry-content{
    width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;word-break:break-word!important;overflow-wrap:anywhere!important;font-size:16px!important;line-height:1.75!important;
  }
  body.single-news .entry-content p,body.single-news .post-content p,body.single-news .article-content p,body.single-news #mp-editor p{max-width:100%!important;margin-left:0!important;margin-right:0!important;}
  body.single-news img,body.post-type-archive-news img,body.tax-news_cat img,body.home img,body.front-page img{max-width:100%!important;height:auto!important;}
  body.single-news iframe,body.single-news video,body.single-news embed,body.single-news object{width:100%!important;max-width:100%!important;height:auto!important;}
  body.single-news table,body.single-news pre{display:block!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;}
}


/* v9.1.8.1：只在 v9.1.8 基础上补两个点：横图缩略图填满、资讯正文自适应。不修改首页移动端整体布局。 */
@media screen and (max-width:991.98px){
  body.home .module-item-pic, body.home .module-poster-item-pic, body.home .stui-vodlist__thumb, body.home .myui-vodlist__thumb, body.home .vodlist_thumb, body.home .vodlist-thumb, body.front-page .module-item-pic, body.front-page .module-poster-item-pic, body.front-page .stui-vodlist__thumb, body.front-page .myui-vodlist__thumb, body.front-page .vodlist_thumb, body.front-page .vodlist-thumb{
    overflow:hidden!important; background-size:cover!important; background-position:center center!important; background-repeat:no-repeat!important;
  }
  body.home .module-item-pic > img, body.home .module-poster-item-pic > img, body.home .stui-vodlist__thumb > img, body.home .myui-vodlist__thumb > img, body.home .vodlist_thumb > img, body.home .vodlist-thumb > img, body.front-page .module-item-pic > img, body.front-page .module-poster-item-pic > img, body.front-page .stui-vodlist__thumb > img, body.front-page .myui-vodlist__thumb > img, body.front-page .vodlist_thumb > img, body.front-page .vodlist-thumb > img{
    width:100%!important; height:100%!important; max-width:none!important; min-height:100%!important; object-fit:cover!important; object-position:center center!important; display:block!important;
  }
  #mp-editor, article#mp-editor, .article#mp-editor{
    width:100%!important; max-width:100%!important; min-width:0!important; margin-left:0!important; margin-right:0!important; box-sizing:border-box!important; overflow-x:hidden!important; word-break:break-word!important; overflow-wrap:anywhere!important; font-size:16px!important; line-height:1.75!important;
  }
  #mp-editor *, article#mp-editor *, .article#mp-editor *{max-width:100%!important; box-sizing:border-box!important;}
  #mp-editor p, article#mp-editor p, .article#mp-editor p{width:auto!important; max-width:100%!important; margin-left:0!important; margin-right:0!important; white-space:normal!important; word-break:break-word!important; overflow-wrap:anywhere!important;}
  #mp-editor img, article#mp-editor img, .article#mp-editor img{width:auto!important; max-width:100%!important; height:auto!important; display:inline-block!important;}
  #mp-editor iframe, #mp-editor video, #mp-editor embed, #mp-editor object, article#mp-editor iframe, article#mp-editor video, .article#mp-editor iframe, .article#mp-editor video{width:100%!important; max-width:100%!important; min-width:0!important;}
  #mp-editor table, #mp-editor pre, article#mp-editor table, article#mp-editor pre, .article#mp-editor table, .article#mp-editor pre{display:block!important; width:100%!important; max-width:100%!important; overflow-x:auto!important; -webkit-overflow-scrolling:touch!important;}
  body:has(#mp-editor) #page, body:has(#mp-editor) .site, body:has(#mp-editor) .site-content, body:has(#mp-editor) #content, body:has(#mp-editor) #primary, body:has(#mp-editor) #main, body:has(#mp-editor) main, body:has(#mp-editor) .container, body:has(#mp-editor) .wrap, body:has(#mp-editor) article{
    width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box!important; overflow-x:hidden!important;
  }
}

/* v9.1.8.2 — 资讯内容页移动端二次适配：不改首页，只修 #mp-editor/资讯正文横向被裁切 */
@media (max-width: 991.98px){
  body:has(#mp-editor),
  body.hanfan-news-mobile-page{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
  }
  body:has(#mp-editor) #page,
  body:has(#mp-editor) .site,
  body:has(#mp-editor) .site-content,
  body:has(#mp-editor) #content,
  body:has(#mp-editor) .content-area,
  body:has(#mp-editor) #primary,
  body:has(#mp-editor) #main,
  body:has(#mp-editor) main,
  body:has(#mp-editor) .container,
  body:has(#mp-editor) .container-fluid,
  body:has(#mp-editor) .wrap,
  body:has(#mp-editor) .row,
  body.hanfan-news-mobile-page #page,
  body.hanfan-news-mobile-page .site,
  body.hanfan-news-mobile-page .site-content,
  body.hanfan-news-mobile-page #content,
  body.hanfan-news-mobile-page .content-area,
  body.hanfan-news-mobile-page #primary,
  body.hanfan-news-mobile-page #main,
  body.hanfan-news-mobile-page main,
  body.hanfan-news-mobile-page .container,
  body.hanfan-news-mobile-page .container-fluid,
  body.hanfan-news-mobile-page .wrap,
  body.hanfan-news-mobile-page .row{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  body:has(#mp-editor) .container,
  body:has(#mp-editor) .container-fluid,
  body:has(#mp-editor) .wrap,
  body.hanfan-news-mobile-page .container,
  body.hanfan-news-mobile-page .container-fluid,
  body.hanfan-news-mobile-page .wrap{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  body:has(#mp-editor) .row,
  body.hanfan-news-mobile-page .row{
    display:block!important;
    --bs-gutter-x:0!important;
  }
  body:has(#mp-editor) .row > [class*="col"],
  body.hanfan-news-mobile-page .row > [class*="col"],
  body:has(#mp-editor) #primary,
  body:has(#mp-editor) #secondary,
  body.hanfan-news-mobile-page #primary,
  body.hanfan-news-mobile-page #secondary{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:0 0 auto!important;
    float:none!important;
    display:block!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  body:has(#mp-editor) .entry-content,
  body:has(#mp-editor) .post-content,
  body:has(#mp-editor) .article-content,
  body:has(#mp-editor) article,
  body:has(#mp-editor) #mp-editor,
  body.hanfan-news-mobile-page .entry-content,
  body.hanfan-news-mobile-page .post-content,
  body.hanfan-news-mobile-page .article-content,
  body.hanfan-news-mobile-page article,
  body.hanfan-news-mobile-page #mp-editor{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
    white-space:normal!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
  }
  body:has(#mp-editor) #mp-editor *,
  body.hanfan-news-mobile-page #mp-editor *{
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body:has(#mp-editor) #mp-editor p,
  body.hanfan-news-mobile-page #mp-editor p{
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    white-space:normal!important;
  }
  body:has(#mp-editor) #mp-editor img,
  body:has(#mp-editor) #mp-editor video,
  body:has(#mp-editor) #mp-editor iframe,
  body:has(#mp-editor) #mp-editor embed,
  body:has(#mp-editor) #mp-editor object,
  body.hanfan-news-mobile-page #mp-editor img,
  body.hanfan-news-mobile-page #mp-editor video,
  body.hanfan-news-mobile-page #mp-editor iframe,
  body.hanfan-news-mobile-page #mp-editor embed,
  body.hanfan-news-mobile-page #mp-editor object{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    height:auto!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body:has(#mp-editor) #mp-editor iframe,
  body:has(#mp-editor) #mp-editor video,
  body.hanfan-news-mobile-page #mp-editor iframe,
  body.hanfan-news-mobile-page #mp-editor video{
    width:100%!important;
  }
  body:has(#mp-editor) #mp-editor table,
  body:has(#mp-editor) #mp-editor pre,
  body.hanfan-news-mobile-page #mp-editor table,
  body.hanfan-news-mobile-page #mp-editor pre{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    white-space:pre-wrap!important;
  }
}
