/* 豆瓣电影卡片：覆盖 wangEditor / 阅读页默认表格框线 */

.xn-wangeditor-wrap .table-container.kehua-douban-movie-wrap,
.w-e-text-container .table-container.kehua-douban-movie-wrap,
.w-e-text-container [data-slate-editor] .table-container.kehua-douban-movie-wrap,
.w-e-text-container [data-slate-editor] .table-container:has(a[href*="movie.douban.com/subject/"]),
.kehua-article-body .table-container.kehua-douban-movie-wrap,
.kehua-page-read .kehua-article-body .table-container.kehua-douban-movie-wrap,
.message .table-container.kehua-douban-movie-wrap {
	border: none !important;
	padding: 0 !important;
	margin: 16px 0 !important;
	background: transparent !important;
	overflow: visible !important;
	width: 100% !important;
	max-width: 100% !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.xn-wangeditor-wrap .table-container.kehua-douban-movie-wrap[data-selected="true"],
.w-e-text-container [data-slate-editor] .table-container.kehua-douban-movie-wrap[data-selected="true"] {
	box-shadow: none !important;
}

.xn-wangeditor-wrap table.kehua-douban-movie,
.w-e-text-container table.kehua-douban-movie,
.w-e-text-container [data-slate-editor] table.kehua-douban-movie,
.kehua-article-body table.kehua-douban-movie,
.kehua-page-read .kehua-article-body table.kehua-douban-movie,
.kehua-post-message table.kehua-douban-movie,
.message table.kehua-douban-movie {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	background: transparent !important;
	table-layout: auto !important;
	box-shadow: none !important;
}

.xn-wangeditor-wrap table.kehua-douban-movie td,
.xn-wangeditor-wrap table.kehua-douban-movie th,
.w-e-text-container table.kehua-douban-movie td,
.w-e-text-container table.kehua-douban-movie th,
.w-e-text-container [data-slate-editor] table.kehua-douban-movie td,
.w-e-text-container [data-slate-editor] table.kehua-douban-movie th,
.w-e-text-container [data-slate-editor] .table-container:has(a[href*="movie.douban.com/subject/"]) td,
.kehua-article-body table.kehua-douban-movie td,
.kehua-article-body table.kehua-douban-movie th,
.kehua-page-read .kehua-article-body table.kehua-douban-movie td,
.kehua-page-read .kehua-article-body table.kehua-douban-movie th,
.kehua-post-message table.kehua-douban-movie td,
.message table.kehua-douban-movie td,
.message table.kehua-douban-movie th {
	border: none !important;
	padding: 0 0 4px !important;
	vertical-align: top !important;
	min-width: 0 !important;
	min-height: 0 !important;
	background: transparent !important;
	text-align: left !important;
	word-break: break-word !important;
	overflow-wrap: anywhere !important;
	line-height: 1.5 !important;
}

.xn-wangeditor-wrap table.kehua-douban-movie p,
.w-e-text-container table.kehua-douban-movie p,
.w-e-text-container [data-slate-editor] table.kehua-douban-movie p,
.kehua-article-body table.kehua-douban-movie p,
.kehua-page-read .kehua-article-body table.kehua-douban-movie p,
.kehua-read-main .kehua-article-body table.kehua-douban-movie p,
.kehua-post-message table.kehua-douban-movie p,
.message table.kehua-douban-movie p {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.5 !important;
	font-size: inherit !important;
}

/* 阅读页：把详情行做成段落，对齐编辑器里 wangEditor 默认 p { margin: 15px 0 } 的行距 */
.kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) p,
.kehua-page-read .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) p,
.kehua-read-main .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) p,
.kehua-post-message table.kehua-douban-movie tr:first-child td:nth-child(2) p,
.message table.kehua-douban-movie tr:first-child td:nth-child(2) p,
.kehua-article-body table.kehua-douban-movie td[colspan] p,
.kehua-page-read .kehua-article-body table.kehua-douban-movie td[colspan] p {
	margin: 15px 0 !important;
	padding: 0 !important;
	line-height: 1.5 !important;
	font-size: 14px !important;
}

.kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) p:first-child,
.kehua-page-read .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) p:first-child,
.kehua-read-main .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) p:first-child,
.kehua-article-body table.kehua-douban-movie td[colspan] p:first-child {
	margin-top: 0 !important;
}

.kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) p:last-child,
.kehua-page-read .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) p:last-child,
.kehua-read-main .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) p:last-child,
.kehua-article-body table.kehua-douban-movie td[colspan] p:last-child {
	margin-bottom: 0 !important;
}

.xn-wangeditor-wrap table.kehua-douban-movie tr:first-child td:first-child,
.w-e-text-container table.kehua-douban-movie tr:first-child td:first-child,
.w-e-text-container [data-slate-editor] table.kehua-douban-movie tr:first-child td:first-child,
.kehua-article-body table.kehua-douban-movie tr:first-child td:first-child {
	width: 150px !important;
	padding: 0 16px 0 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	vertical-align: top !important;
}

.xn-wangeditor-wrap table.kehua-douban-movie tr:first-child td:first-child a,
.w-e-text-container table.kehua-douban-movie tr:first-child td:first-child a,
.kehua-article-body table.kehua-douban-movie tr:first-child td:first-child a {
	display: inline-block !important;
	font-size: 0 !important;
	line-height: 0 !important;
	vertical-align: top !important;
	text-decoration: none !important;
	width: 135px;
}

.xn-wangeditor-wrap table.kehua-douban-movie tr:first-child td:nth-child(2),
.w-e-text-container table.kehua-douban-movie tr:first-child td:nth-child(2),
.w-e-text-container [data-slate-editor] table.kehua-douban-movie tr:first-child td:nth-child(2),
.kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2),
.kehua-page-read .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2),
.kehua-read-main .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2),
.kehua-post-message table.kehua-douban-movie tr:first-child td:nth-child(2) {
	font-size: 14px !important;
	color: #222;
	padding-top: 0 !important;
	line-height: 1.5 !important;
	vertical-align: top !important;
}

/* 编辑器：单元格里是 \n，靠 pre-wrap 排。阅读页入库后是 <br>，单独加行距对齐编辑器 */
.xn-wangeditor-wrap table.kehua-douban-movie tr:first-child td:nth-child(2),
.w-e-text-container table.kehua-douban-movie tr:first-child td:nth-child(2),
.w-e-text-container [data-slate-editor] table.kehua-douban-movie tr:first-child td:nth-child(2) {
	white-space: pre-wrap !important;
}

.kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2),
.kehua-page-read .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2),
.kehua-read-main .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2),
.kehua-post-message table.kehua-douban-movie tr:first-child td:nth-child(2),
.message table.kehua-douban-movie tr:first-child td:nth-child(2) {
	white-space: normal !important;
}

/* 阅读页 <br> 默认挤在一行高里；做成块级，接近编辑器里换行符的行盒 */
.kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) br,
.kehua-page-read .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) br,
.kehua-read-main .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) br,
.kehua-post-message table.kehua-douban-movie tr:first-child td:nth-child(2) br,
.message table.kehua-douban-movie tr:first-child td:nth-child(2) br,
.kehua-article-body table.kehua-douban-movie td[colspan] br,
.kehua-page-read .kehua-article-body table.kehua-douban-movie td[colspan] br {
	display: block !important;
	content: "" !important;
	margin: 0.55em 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	height: 0 !important;
	line-height: 0 !important;
	font-size: 0 !important;
}

.xn-wangeditor-wrap table.kehua-douban-movie tr:first-child td:nth-child(2) *:not(a):not(strong),
.w-e-text-container table.kehua-douban-movie tr:first-child td:nth-child(2) *:not(a):not(strong),
.kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) *:not(a):not(strong),
.kehua-page-read .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) *:not(a):not(strong) {
	font-size: 14px !important;
	line-height: 1.5 !important;
}

.xn-wangeditor-wrap table.kehua-douban-movie img,
.w-e-text-container table.kehua-douban-movie img,
.w-e-text-container [data-slate-editor] table.kehua-douban-movie img,
.kehua-article-body table.kehua-douban-movie img,
img.kehua-douban-poster {
	width: 135px !important;
	max-width: 135px !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	border-radius: 8px;
	display: block !important;
	object-fit: cover;
	vertical-align: top !important;
	cursor: pointer;
}

.xn-wangeditor-wrap table.kehua-douban-movie .w-e-image-container,
.w-e-text-container table.kehua-douban-movie .w-e-image-container {
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 135px !important;
	max-width: 135px !important;
	vertical-align: top !important;
	line-height: 0 !important;
	font-size: 0 !important;
}

.xn-wangeditor-wrap table.kehua-douban-movie tr:first-child td:nth-child(2) a,
.xn-wangeditor-wrap table.kehua-douban-movie tr:first-child td:nth-child(2) a strong,
.w-e-text-container table.kehua-douban-movie tr:first-child td:nth-child(2) a,
.w-e-text-container table.kehua-douban-movie tr:first-child td:nth-child(2) a strong,
.kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) a,
.kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2) a strong {
	color: inherit;
	text-decoration: none;
	font-size: 20px !important;
	font-weight: 700;
	line-height: 1.25 !important;
	display: inline-block;
	vertical-align: top;
}

.xn-wangeditor-wrap table.kehua-douban-movie a:hover,
.kehua-article-body table.kehua-douban-movie a:hover {
	color: var(--color-primary, #0066ff);
	text-decoration: none;
}

.xn-wangeditor-wrap table.kehua-douban-movie td[colspan],
.w-e-text-container table.kehua-douban-movie td[colspan],
.kehua-article-body table.kehua-douban-movie td[colspan],
.kehua-page-read .kehua-article-body table.kehua-douban-movie td[colspan] {
	padding: 14px 0 0 !important;
	font-size: 14px !important;
	line-height: 1.7 !important;
	color: #444;
}

.xn-wangeditor-wrap table.kehua-douban-movie td[colspan],
.w-e-text-container table.kehua-douban-movie td[colspan] {
	white-space: pre-wrap !important;
}

.kehua-article-body table.kehua-douban-movie td[colspan],
.kehua-page-read .kehua-article-body table.kehua-douban-movie td[colspan] {
	white-space: normal !important;
}

.xn-wangeditor-wrap table.kehua-douban-movie td[colspan] strong,
.w-e-text-container table.kehua-douban-movie td[colspan] strong,
.kehua-article-body table.kehua-douban-movie td[colspan] strong {
	display: inline;
	font-size: 16px;
	color: #222;
}

:is(html.kehua-dark, body.kehua-dark) .xn-wangeditor-wrap table.kehua-douban-movie tr:first-child td:nth-child(2),
:is(html.kehua-dark, body.kehua-dark) .kehua-article-body table.kehua-douban-movie tr:first-child td:nth-child(2),
:is(html.kehua-dark, body.kehua-dark) .kehua-article-body table.kehua-douban-movie td[colspan] strong {
	color: var(--color-text, #e4e6eb);
}

:is(html.kehua-dark, body.kehua-dark) .kehua-article-body table.kehua-douban-movie td[colspan] {
	color: #9aa0a6;
}

/* 工具栏「豆」：按 18px 图标光学居中，加粗到笔画能看清 */
.xn-wangeditor-wrap .kehua-douban-toolbar-btn .kehua-douban-toolbar-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	letter-spacing: 0;
	user-select: none;
	transform: translateY(-0.5px);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
