.king-template-shorts .king-body-in {
	padding-top: 12px;
}

.king-template-shorts .king-main-in {
	padding: 0;
}

.king-template-shorts form:has(.king-shorts) {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - 96px);
	position: relative;
	padding: 12px 0;
}

.king-shorts.owl-carousel {
	width: min(360px, calc(100vw - 48px)) !important;
	margin: 0 auto;
	position: relative;
}

.king-shorts.owl-loaded {
	display: block !important;
}

.king-shorts.owl-carousel .owl-stage-outer {
	border-radius: 16px;
	overflow: hidden;
}

.king-shorts.owl-carousel .owl-item {
	display: flex;
	justify-content: center;
	padding: 0 !important;
	background: transparent;
}

.shorts-item {
	width: 100% !important;
	max-width: 360px;
	display: block !important;
	position: relative;
	margin: 0 auto;
}

.shorts-item-in {
	width: 100%;
	aspect-ratio: 9 / 16;
	max-height: calc(100vh - 120px);
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border: 8px solid #fff;
}

.shorts-item-in .short-video,
.shorts-item-in .short-youtube,
.shorts-item-in .short-embed {
	width: 100% !important;
	height: 100% !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: block;
	background: #000;
}

.shorts-item-in .short-youtube iframe {
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

.short-sound-hint {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 6;
	border: 0;
	border-radius: 999px;
	padding: 10px 18px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	backdrop-filter: blur(6px);
	pointer-events: auto;
}

.short-sound-hint i {
	margin-right: 6px;
}

body.shorts-sound-on .short-sound-hint {
	display: none;
}

.shorts-item-in .short-embed iframe {
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.shorts-item-in .short-video.video-js {
	height: 100% !important;
	padding-top: 0 !important;
}

.shorts-item-in .short-video .vjs-tech {
	object-fit: cover;
}

.shorts-item-inright {
	position: absolute;
	right: 10px;
	bottom: 72px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	pointer-events: none;
	gap: 4px;
}

.shorts-item-inright a,
.shorts-item-inright .king-voting,
.shorts-item-inright button,
.shorts-item-inright .short-comment-toggle,
.shorts-item-inright .short-share-toggle {
	pointer-events: auto;
}

.shorts-item-inright a {
	color: #fff !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
	margin: 8px 0 0;
	width: auto;
	min-width: 44px;
	font-size: 22px;
}

.shorts-item-inright a span {
	font-size: 11px;
	font-weight: 600;
}

.short-reactions {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: auto;
	z-index: 12;
}

.short-reaction-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
	font-size: 22px;
	cursor: pointer;
}

.short-reaction-total {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
}

.short-reaction-total-empty {
	display: none;
}

.short-reaction-picker {
	display: none;
	position: absolute;
	left: 50%;
	bottom: 56px;
	right: auto;
	z-index: 25;
	pointer-events: none;
	transform: translateX(-50%);
}

.shorts-item > .short-reaction-picker.is-open {
	display: block;
	pointer-events: auto;
}

.reactions-short {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 36px);
	gap: 4px;
	margin: 0;
	padding: 6px;
	background: rgba(0, 0, 0, 0.78);
	border-radius: 14px;
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
	width: max-content;
}

.reactions-short .reaction-item[id$="reac1"]:before { content: "\f585"; }
.reactions-short .reaction-item[id$="reac2"]:before { content: "\f584"; }
.reactions-short .reaction-item[id$="reac3"]:before { content: "\f588"; }
.reactions-short .reaction-item[id$="reac4"]:before { content: "\f567"; }
.reactions-short .reaction-item[id$="reac5"]:before { content: "\f5c2"; }
.reactions-short .reaction-item[id$="reac6"]:before { content: "\f5a5"; }
.reactions-short .reaction-item[id$="reac7"]:before { content: "\f5b4"; }
.reactions-short .reaction-item[id$="reac8"]:before { content: "\f556"; }

.short-comment-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
	font-size: 22px;
	cursor: pointer;
}

.short-share-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
	font-size: 22px;
	cursor: pointer;
}

.short-share-toggle span {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
}

.short-comment-count {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
}

.shorts-comments-panel {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 40;
	pointer-events: none;
}

.shorts-comments-panel.is-open {
	display: block;
	pointer-events: auto;
}

.shorts-comments-sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 72%;
	display: flex;
	flex-direction: column;
	background: rgba(18, 18, 20, 0.94);
	border-radius: 18px 18px 0 0;
	backdrop-filter: blur(12px);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	animation: shortsCommentsIn 0.22s ease-out;
}

@keyframes shortsCommentsIn {
	from {
		transform: translateY(100%);
		opacity: 0.6;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.shorts-comments-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	flex: 0 0 auto;
}

.shorts-comments-title {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.shorts-comments-close {
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
}

.shorts-comments-body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.shorts-comments-inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.shorts-comments-list {
	flex: 1 1 auto;
	padding: 8px 14px 0;
}

.shorts-comment-item {
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shorts-comment-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.shorts-comment-avatar img,
.shorts-comment-avatar .king-avatar-image {
	width: 28px !important;
	height: 28px !important;
	border-radius: 50%;
	object-fit: cover;
}

.shorts-comment-who {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.shorts-comment-who a {
	color: #fff;
}

.shorts-comment-when {
	color: rgba(255, 255, 255, 0.55);
	font-size: 11px;
	margin-left: auto;
	white-space: nowrap;
}

.shorts-comment-text {
	color: rgba(255, 255, 255, 0.92);
	font-size: 14px;
	line-height: 1.45;
	word-break: break-word;
}

.shorts-comment-text p {
	margin: 0 0 6px;
}

.shorts-comment-error {
	color: #ffb4b4;
	font-size: 12px;
	margin-bottom: 4px;
}

.shorts-comments-empty {
	color: rgba(255, 255, 255, 0.65);
	text-align: center;
	padding: 28px 12px;
	font-size: 14px;
}

.shorts-comments-empty i {
	display: block;
	font-size: 28px;
	margin-bottom: 8px;
	opacity: 0.7;
}

.shorts-comments-loader {
	display: flex;
	justify-content: center;
	padding: 28px 0;
}

.shorts-comments-form {
	flex: 0 0 auto;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.35);
}

.shorts-comments-panel .shorts-comment-form {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
}

.shorts-comments-panel .shorts-comment-form textarea {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	resize: none;
	overflow: hidden;
	border: 0 !important;
	border-radius: 22px;
	padding: 11px 16px;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.14) !important;
	color: #fff !important;
	box-shadow: none !important;
	min-height: 44px;
	max-height: 120px;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.shorts-comments-panel .shorts-comment-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.45);
	opacity: 1;
}

.shorts-comments-panel .shorts-comment-form textarea:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.2) !important;
	box-shadow: 0 0 0 2px rgba(246, 148, 35, 0.35) !important;
}

.shorts-comments-panel .shorts-comment-submit {
	flex: 0 0 auto;
	border: 0 !important;
	border-radius: 22px;
	min-width: 88px;
	height: 44px;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	background: #f69423 !important;
	color: #fff !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.shorts-comments-panel .shorts-comment-submit:hover:not(:disabled) {
	background: #e8871a !important;
}

.shorts-comments-panel .shorts-comment-submit:active:not(:disabled) {
	transform: scale(0.98);
}

.shorts-comments-panel .shorts-comment-submit:disabled {
	opacity: 0.55;
	cursor: default;
}

.shorts-comments-form .shorts-comment-error {
	margin: 0 0 8px;
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(247, 0, 71, 0.2);
	color: #ffb4c8;
	font-size: 12px;
	line-height: 1.4;
}

.king-night .shorts-comments-panel .shorts-comment-form textarea {
	background: rgba(255, 255, 255, 0.14) !important;
	color: #fff !important;
	border-color: transparent !important;
}

.shorts-comments-login {
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	text-align: center;
	padding: 6px 0;
}

.shorts-comments-login a {
	color: #f69423;
}

body.shorts-comments-open .shorts-item:not(:has(.shorts-comments-panel.is-open)) .shorts-item-in,
body.shorts-share-open .shorts-item:not(:has(.shorts-share-panel.is-open)) .shorts-item-in {
	filter: brightness(0.72);
}

.shorts-share-panel {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 40;
	pointer-events: none;
}

.shorts-share-panel.is-open {
	display: block;
	pointer-events: auto;
}

.shorts-share-sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 58%;
	display: flex;
	flex-direction: column;
	background: rgba(18, 18, 20, 0.94);
	border-radius: 18px 18px 0 0;
	backdrop-filter: blur(12px);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	animation: shortsCommentsIn 0.22s ease-out;
}

.shorts-share-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	flex: 0 0 auto;
}

.shorts-share-title {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.shorts-share-close {
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
}

.shorts-share-body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px));
}

.shorts-share-icons {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.shorts-share-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff !important;
	font-size: 24px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.shorts-share-icon:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff !important;
	transform: translateY(-1px);
}

.shorts-share-copy-label {
	display: block;
	color: rgba(255, 255, 255, 0.75);
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 8px;
}

.shorts-share-copy-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.shorts-share-url {
	flex: 1 1 auto;
	min-width: 0;
	border: 0 !important;
	border-radius: 12px;
	padding: 11px 12px;
	font-size: 13px;
	line-height: 1.35;
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	box-shadow: none !important;
}

.shorts-share-copy-btn {
	flex: 0 0 auto;
	border: 0 !important;
	border-radius: 12px;
	height: 40px;
	padding: 0 14px;
	font-size: 12px;
	font-weight: 700;
	background: #f69423 !important;
	color: #fff !important;
	cursor: pointer;
	white-space: nowrap;
}

.shorts-share-copied {
	display: none;
	margin-top: 8px;
	color: #fbd971;
	font-size: 12px;
	font-weight: 600;
}

.shorts-share-copied.is-visible {
	display: block;
}

.reactions-short li {
	display: block;
	position: relative;
	width: 36px;
	height: 36px;
	margin: 0 !important;
	padding: 0;
	background-color: rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	flex: none;
}

/* Shorts reactions: override question-page bar chart sizing */
.reactions-short.reactions li,
.shorts-item .reactions-short li {
	height: 36px;
	width: 36px;
	margin: 0 !important;
	display: block;
	flex-direction: row;
	justify-content: center;
}

.reactions-short.reactions li:before,
.shorts-item .reactions-short li:before {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 18px;
	color: #fff;
	pointer-events: none;
	z-index: 1;
}

.reactions-short li.voted,
.reactions-short li:hover {
	background-color: rgba(251, 217, 113, 0.28);
}

.reactions-short li.voted:before,
.reactions-short li:hover:before {
	color: #fbd971;
}

.reactions-short .reaction-in,
.reactions-short .reaction-percent,
.reactions-short .reaction-result,
.reactions-short .reaction-voted {
	display: none;
}

.reactions-short .reaction {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	font-size: 0;
	line-height: 0;
	width: 100%;
	height: 100%;
	border-radius: 10px;
	cursor: pointer;
	z-index: 2;
}

.shorts-item-inright .short-reactions,
.shorts-item-inright .short-reaction-toggle,
.shorts-item-inright .short-reaction-picker {
	pointer-events: auto;
}

.shorts-item-inright .king-voting {
	flex-direction: column;
	align-items: center;
	margin: 0 !important;
	height: auto;
	width: auto;
}

.shorts-item-inright .king-vote-buttons-netup,
.shorts-item-inright .king-vote-buttons-netdown {
	display: flex;
	justify-content: center;
}

.shorts-item-inright .king-vote-buttons-netup button,
.shorts-item-inright .king-vote-buttons-netdown button {
	background: rgba(0, 0, 0, 0.45) !important;
	color: #fff !important;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	line-height: 44px;
	backdrop-filter: blur(6px);
}

.shorts-item-inright .king-vote-count {
	background: transparent !important;
	color: #fff !important;
	width: auto;
	height: auto;
	line-height: 1.2;
	font-size: 12px;
	min-height: 0;
	padding: 0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.shorts-item-inright .king-netvote-count-pad {
	display: none;
}

.shorts-item-youtube {
	display: block !important;
	max-width: 360px;
}

.shorts-item-youtube .shorts-item-in {
	width: 100%;
}

.shorts-item-youtube .shorts-item-inright {
	position: absolute;
	right: 10px;
	bottom: 72px;
	align-self: auto;
	padding-bottom: 0 !important;
}

.shorts-item-youtube .shorts-item-inright a,
.shorts-item-youtube .short-reaction-toggle,
.shorts-item-youtube .short-comment-toggle,
.shorts-item-youtube .short-share-toggle {
	color: #fff !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.shorts-item-youtube .shorts-item-inright .king-vote-buttons-netup button,
.shorts-item-youtube .shorts-item-inright .king-vote-buttons-netdown button {
	background: rgba(0, 0, 0, 0.45) !important;
	color: #fff !important;
	backdrop-filter: blur(6px);
}

.shorts-item-youtube .shorts-item-inright .king-vote-count {
	color: #fff !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.king-shorts + .shorts-nav,
.king-shorts .shorts-nav {
	position: absolute;
	left: -54px;
	right: auto;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	pointer-events: none;
}

.shorts-nav button {
	pointer-events: auto;
	background: rgba(255, 255, 255, 0.9);
	width: 42px;
	height: 42px;
	margin: 8px 0;
	border-radius: 50%;
	font-size: 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 520px) {
	.king-shorts.owl-carousel {
		width: min(320px, calc(100vw - 32px)) !important;
	}

	.king-shorts + .shorts-nav,
	.king-shorts .shorts-nav {
		left: 8px;
		position: fixed;
	}

	.shorts-item-in {
		max-height: calc(100vh - 100px);
	}

	.shorts-item > .short-reaction-picker {
		bottom: 48px;
	}
}

.king-night .king-template-shorts .king-body-wrapper,
.king-night .king-template-shorts .king-body-in,
.king-night .king-template-shorts .king-main,
.king-night .king-template-shorts .king-footer {
	background: #0c0b0d;
}

.king-night .shorts-item-youtube .shorts-item-inright a {
	color: #d7d7d7 !important;
}

.king-night .shorts-item-youtube .shorts-item-inright .king-vote-buttons-netup button,
.king-night .shorts-item-youtube .shorts-item-inright .king-vote-buttons-netdown button {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}

.king-night .short-reaction-toggle {
	color: #d7d7d7 !important;
}

.king-night .reactions-short {
	background: rgba(12, 11, 13, 0.92);
}

.mfp-short-quick .mfp-content {
	max-width: none;
	padding: 0;
}

.mfp-short-quick .mfp-close {
	color: #fff;
	opacity: 0.85;
	right: 8px;
	top: 8px;
	z-index: 60;
}

.mfp-short-quick .shorts-quick-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	min-width: min(360px, calc(100vw - 48px));
}

.mfp-short-quick .shorts-quick-error {
	color: #fff;
	padding: 24px;
	text-align: center;
	font-size: 15px;
}

.mfp-short-quick .shorts-quick-modal {
	width: min(360px, calc(100vw - 48px));
	position: relative;
	margin: 0 auto;
}

.mfp-short-quick .shorts-quick-modal .shorts-item {
	max-width: 100%;
}

.mfp-short-quick .shorts-quick-modal form {
	margin: 0;
}

.mfp-short-quick .shorts-quick-open {
	display: block;
	margin-top: 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.mfp-short-quick .shorts-quick-open:hover {
	color: #fff;
	text-decoration: underline;
}

.mfp-short-quick .shorts-item > .short-reaction-picker {
	z-index: 45;
}

@media (max-width: 520px) {
	.mfp-short-quick .shorts-quick-modal {
		width: min(320px, calc(100vw - 32px));
	}
}
