.kol-vidz-shell {
	--kol-vidz-header-offset: 60px;
	--kol-vidz-bottom-offset: calc(var(--bbm-height, 50px) + 2px);
	position: relative;
	min-height: calc(100svh - var(--kol-vidz-header-offset) - var(--kol-vidz-bottom-offset));
	padding: 0;
	background: #050505;
	color: #fff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.kol-bbm-minimized .kol-vidz-shell {
	--kol-vidz-bottom-offset: 2px;
	padding-bottom: 0;
}

.kol-vidz-stage {
	width: min(100%, 540px);
	height: min(calc(100svh - var(--kol-vidz-header-offset) - var(--kol-vidz-bottom-offset)), 900px);
	position: relative;
	background: #000;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
	transition: transform 0.3s ease;
}

@media (min-width: 701px) {
	.kol-vidz-shell {
		padding-right: 96px;
	}

	.kol-vidz-stage {
		margin-right: 76px;
	}

	.kol-vidz-card {
		overflow: visible;
	}

	.kol-vidz-media-wrap {
		overflow: hidden;
	}
}

.kol-vidz-card,
.kol-vidz-media-wrap,
.kol-vidz-media {
	width: 100%;
	height: 100%;
}

.kol-vidz-card {
	position: relative;
	overflow: hidden;
	background: #000;
	touch-action: pan-y;
}

@media (min-width: 701px) {
	.kol-vidz-card {
		overflow: visible;
	}
}

.kol-vidz-media {
	display: block;
	border: 0;
	object-fit: contain;
	background: #000;
}

.kol-vidz-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 22px 18px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.kol-vidz-caption-display {
	background: color-mix(in srgb, var(--kol-vidz-caption-bg, #000000) 78%, transparent);
	border-radius: 6px;
	bottom: 104px;
	box-decoration-break: clone;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
	box-sizing: border-box;
	color: var(--kol-vidz-caption-color, #ffffff);
	display: none;
	font-size: clamp(18px, 2.15vw, 28px);
	font-weight: 800;
	left: 50%;
	line-height: 1.22;
	max-width: min(86%, 720px);
	padding: 8px 14px;
	pointer-events: none;
	position: absolute;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
	transform: translateX(-50%);
	white-space: pre-wrap;
	z-index: 5;
}

.kol-vidz-caption-display.is-visible {
	display: block;
}

.kol-vidz-caption-pos-upper {
	bottom: auto;
	top: 76px;
}

.kol-vidz-caption-pos-middle {
	bottom: auto;
	top: 50%;
	transform: translate(-50%, -50%);
}

.kol-vidz-caption-display.kol-vidz-caption-pos-custom {
	bottom: auto;
	left: var(--kol-vidz-caption-x, 50%);
	top: var(--kol-vidz-caption-y, 78%);
	transform: translate(-50%, -50%);
}

.kol-vidz-caption-size-small {
	font-size: clamp(15px, 1.65vw, 21px);
}

.kol-vidz-caption-size-large {
	font-size: clamp(24px, 2.8vw, 36px);
}

.kol-vidz-caption-style-outline {
	background: transparent;
	box-shadow: none;
	color: var(--kol-vidz-caption-color, #ffffff);
	text-shadow: 0 3px 2px #000000, 0 -1px 2px #000000, 2px 0 2px #000000, -2px 0 2px #000000;
}

.kol-vidz-caption-style-plain {
	background: transparent;
	box-shadow: none;
	padding-inline: 4px;
}

.kol-vidz-overlay h2 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.25;
	color: #fff;
}

.kol-vidz-overlay p,
.kol-vidz-stats {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
}

.kol-vidz-rail {
	position: absolute;
	right: -76px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	z-index: 8;
	color: #fff;
	margin: 0;
	padding: 0;
	font-size: 13px;
	white-space: normal;
}

.kol-vidz-rail .kol-pec-icon {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 52px;
	padding: 0;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	color: #fff !important;
	box-shadow: none !important;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

@media (min-width: 701px) {
	.kol-vidz-rail .kol-pec-icon {
		color: inherit !important;
		text-shadow: none;
	}

	.kol-vidz-rail .kol-pec-count,
	.kol-vidz-rail .bmp-share-lite-rail-label {
		text-shadow: none !important;
	}

	.kol-vidz-rail .kol-pec-icon-symbol {
		background: rgba(255, 255, 255, 0.92) !important;
		box-shadow: none !important;
		backdrop-filter: none !important;
	}
}

.kol-vidz-rail .kol-pec-icon-symbol {
	display: grid !important;
	place-items: center !important;
	width: 52px !important;
	height: 52px !important;
	min-width: 52px !important;
	min-height: 52px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: rgba(20, 20, 20, 0.64) !important;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24) !important;
	backdrop-filter: blur(6px) !important;
	transition: transform 0.18s ease, background 0.18s ease !important;
}

.kol-vidz-rail .kol-pec-count {
	display: block !important;
	font-size: 12px !important;
	line-height: 1;
	font-weight: 900 !important;
	color: #fff !important;
	text-align: center !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.kol-vidz-rail .bmp-share-lite-rail-label {
	display: block !important;
	margin-top: 3px !important;
	text-align: center !important;
}

.kol-vidz-rail .bmp-share-lite-popover-toggle {
	display: grid !important;
	place-items: center !important;
	margin: 0 !important;
}

.kol-vidz-rail .kol-vidz-captions .kol-pec-icon-symbol {
	font-size: 12px !important;
	font-weight: 900 !important;
	letter-spacing: 0 !important;
}

.kol-vidz-rail .kol-pec-svg-icon {
	display: block !important;
	width: 22px !important;
	height: 22px !important;
	color: #fff !important;
	margin: 0 !important;
	transform: none !important;
}

@media (min-width: 701px) {
	.kol-vidz-rail {
		right: -70px;
		gap: 10px;
	}

	.kol-vidz-rail .kol-pec-icon {
		min-width: 48px;
		gap: 4px;
	}

	.kol-vidz-rail .kol-pec-icon-symbol {
		width: 46px !important;
		height: 46px !important;
		min-width: 46px !important;
		min-height: 46px !important;
	}

	.kol-vidz-rail .kol-pec-svg-icon {
		width: 20px !important;
		height: 20px !important;
	}

	.kol-vidz-rail .kol-pec-count,
	.kol-vidz-rail .bmp-share-lite-rail-label {
		font-size: 14px !important;
		line-height: 1.1 !important;
	}
}

.kol-vidz-rail .kol-vidz-views {
	cursor: default;
}

.kol-vidz-rail .kol-vidz-vote.is-liked {
	background: transparent !important;
	color: #fff !important;
}

.kol-vidz-rail .kol-vidz-vote:hover .kol-pec-icon-symbol,
.kol-vidz-rail .kol-vidz-comments:hover .kol-pec-icon-symbol,
.kol-vidz-rail .bmp-share-lite-rail-share:hover .kol-pec-icon-symbol,
.kol-vidz-rail .bmp-share-lite-rail-share:focus-within .kol-pec-icon-symbol {
	transform: scale(1.06) !important;
	background: rgba(20, 20, 20, 0.78) !important;
}

.kol-vidz-rail .kol-vidz-vote.is-liked .kol-pec-svg-icon {
	color: #ef4444 !important;
}

.kol-vidz-rail .kol-vidz-vote.is-liked .kol-pec-count {
	color: #fff !important;
}

.kol-vidz-rail .bmp-share-lite-popover {
	position: relative;
}

.kol-vidz-rail .bmp-share-lite-popover-panel {
	right: 58px;
	left: auto;
	top: 0;
}

.kol-vidz-nav {
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}

.kol-vidz-actions {
	position: absolute;
	right: max(14px, calc((100vw - 540px) / 2 - 72px));
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	z-index: 5;
}

.kol-vidz-nav:hover {
	background: rgba(255, 255, 255, 0.28);
}

.kol-vidz-loading,
.kol-vidz-missing,
.kol-vidz-history-empty {
	padding: 32px;
	text-align: center;
	color: #777;
}

.kol-vidz-history-list {
	display: grid;
	gap: 12px;
}

.kol-vidz-history-item {
	display: flex;
	gap: 12px;
	align-items: center;
	text-decoration: none;
	padding: 10px;
	border-radius: 8px;
	background: rgba(127, 127, 127, 0.08);
}

.kol-vidz-history-thumb {
	width: 112px;
	aspect-ratio: 16 / 9;
	background: #111 center / cover no-repeat;
	border-radius: 6px;
	flex: 0 0 auto;
}

.kol-vidz-history-meta {
	display: grid;
	gap: 4px;
}

.kol-vidz-history-meta strong {
	color: inherit;
}

.kol-vidz-history-meta em {
	font-style: normal;
	color: #777;
	font-size: 12px;
}

.kol-vidz-caption-modal {
	align-items: center;
	background: rgba(15, 23, 42, 0.68);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 100020;
}

.kol-vidz-caption-panel {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
	box-sizing: border-box;
	color: #111827;
	max-width: 760px;
	padding: 22px;
	position: relative;
	width: min(100%, 760px);
}

.kol-vidz-caption-panel h2 {
	font-size: 22px;
	line-height: 1.2;
	margin: 0 42px 4px 0;
}

.kol-vidz-caption-title {
	color: #64748b;
	font-size: 13px;
	margin: 0 0 14px;
}

.kol-vidz-caption-close {
	align-items: center;
	background: #f1f5f9;
	border: 1px solid #dbe3ec;
	border-radius: 999px;
	color: #111827;
	cursor: pointer;
	display: flex;
	font-size: 22px;
	height: 34px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 18px;
	top: 18px;
	width: 34px;
}

.kol-vidz-caption-preview {
	background: color-mix(in srgb, var(--kol-vidz-caption-bg, #000000) 78%, transparent);
	border-radius: 6px;
	color: var(--kol-vidz-caption-color, #ffffff);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 14px;
	min-height: 84px;
	padding: 24px 28px;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.92);
}

.kol-vidz-caption-preview.kol-vidz-caption-style-outline,
.kol-vidz-caption-preview.kol-vidz-caption-style-plain {
	background: #050505;
}

.kol-vidz-caption-style-controls {
	align-items: end;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0 0 12px;
}

.kol-vidz-caption-style-controls label {
	color: #334155;
	display: grid;
	font-size: 12px;
	font-weight: 700;
	gap: 5px;
}

.kol-vidz-caption-style-controls select,
.kol-vidz-caption-style-controls input[type="color"] {
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-sizing: border-box;
	height: 36px;
	width: 100%;
}

.kol-vidz-caption-editor {
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-sizing: border-box;
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
	line-height: 1.5;
	min-height: 260px;
	padding: 12px;
	resize: vertical;
	width: 100%;
}

.kol-vidz-caption-editor:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
	outline: 0;
}

.kol-vidz-caption-status {
	color: #475569;
	font-size: 13px;
	margin-top: 10px;
	min-height: 20px;
}

.kol-vidz-caption-status[data-status="error"] {
	color: #b91c1c;
}

.kol-vidz-caption-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 14px;
}

html.light-mode .kol-vidz-shell {
	background: #f4f7fb;
	color: #111827;
}

html.dark-mode .kol-vidz-shell {
	background: #050505;
	color: #fff;
}

html.light-mode .kol-vidz-stage {
	background: #fff;
	box-shadow: 0 18px 56px rgba(15, 23, 42, 0.18);
}

html.dark-mode .kol-vidz-stage {
	background: #000;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

html.light-mode .kol-vidz-card,
html.light-mode .kol-vidz-media-wrap {
	background: #fff;
}

html.dark-mode .kol-vidz-card,
html.dark-mode .kol-vidz-media-wrap {
	background: #000;
}

html.light-mode .kol-vidz-nav {
	background: #ffffff;
	color: #111827;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

html.dark-mode .kol-vidz-nav {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	box-shadow: none;
}

html.light-mode .kol-vidz-nav:hover {
	background: #e8eef6;
}

html.dark-mode .kol-vidz-nav:hover {
	background: rgba(255, 255, 255, 0.28);
}

html.light-mode .kol-vidz-rail .kol-pec-icon {
	color: #111827 !important;
	text-shadow: none;
}

html.dark-mode .kol-vidz-rail .kol-pec-icon {
	color: #fff !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

html.light-mode .kol-vidz-rail .kol-pec-icon-symbol {
	background: rgba(255, 255, 255, 0.92) !important;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18) !important;
}

html.dark-mode .kol-vidz-rail .kol-pec-icon-symbol {
	background: rgba(20, 20, 20, 0.64) !important;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24) !important;
}

html.light-mode .kol-vidz-rail .kol-pec-svg-icon,
html.light-mode .kol-vidz-rail .kol-pec-count {
	color: #111827 !important;
	text-shadow: none;
}

html.dark-mode .kol-vidz-rail .kol-pec-svg-icon,
html.dark-mode .kol-vidz-rail .kol-pec-count {
	color: #fff !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

html.light-mode .kol-vidz-rail .kol-vidz-vote:hover .kol-pec-icon-symbol,
html.light-mode .kol-vidz-rail .kol-vidz-comments:hover .kol-pec-icon-symbol,
html.light-mode .kol-vidz-rail .bmp-share-lite-rail-share:hover .kol-pec-icon-symbol,
html.light-mode .kol-vidz-rail .bmp-share-lite-rail-share:focus-within .kol-pec-icon-symbol {
	background: #ffffff !important;
}

html.dark-mode .kol-vidz-rail .kol-vidz-vote:hover .kol-pec-icon-symbol,
html.dark-mode .kol-vidz-rail .kol-vidz-comments:hover .kol-pec-icon-symbol,
html.dark-mode .kol-vidz-rail .bmp-share-lite-rail-share:hover .kol-pec-icon-symbol,
html.dark-mode .kol-vidz-rail .bmp-share-lite-rail-share:focus-within .kol-pec-icon-symbol {
	background: rgba(20, 20, 20, 0.78) !important;
}

html.light-mode .kol-vidz-loading,
html.light-mode .kol-vidz-missing,
html.light-mode .kol-vidz-history-empty,
html.light-mode .kol-vidz-history-meta em {
	color: #64748b;
}

html.dark-mode .kol-vidz-loading,
html.dark-mode .kol-vidz-missing,
html.dark-mode .kol-vidz-history-empty,
html.dark-mode .kol-vidz-history-meta em {
	color: #8b949e;
}

html.light-mode .kol-vidz-history-item {
	background: rgba(15, 23, 42, 0.06);
}

html.dark-mode .kol-vidz-history-item {
	background: rgba(255, 255, 255, 0.08);
}

body .kol-vidz-editor.kol-search-results-page,
.kol-vidz-editor {
	--kol-vidz-editor-sidebar-width: 300px;
	--kol-vidz-editor-gap: 24px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px;
	color: #111827;
}

.kol-vidz-editor .kol-search-layout,
.kol-vidz-editor-layout {
	position: relative;
	min-height: 70vh;
	padding-left: calc(var(--kol-vidz-editor-sidebar-width) + var(--kol-vidz-editor-gap));
}

.kol-vidz-editor .kol-search-sidebar,
.kol-vidz-editor-sidebar {
	position: fixed;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px);
	left: max(16px, calc((100vw - 1180px) / 2));
	z-index: 30;
	width: var(--kol-vidz-editor-sidebar-width);
	max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 32px);
	overflow-y: auto;
	border: 1px solid rgba(148, 163, 184, 0.38);
	border-radius: 8px;
	background: #fff;
	padding: 16px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.kol-vidz-editor .kol-search-main,
.kol-vidz-editor-main {
	min-width: 0;
}

.kol-vidz-editor .kol-filter-drawer-toggle,
.kol-vidz-editor .kol-filter-drawer-close,
.kol-vidz-editor .kol-filter-drawer-backdrop,
.kol-vidz-editor-menu-toggle,
.kol-vidz-editor-menu-close,
.kol-vidz-editor-backdrop {
	display: none;
}

.kol-vidz-editor .kol-search-sidebar-title,
.kol-vidz-editor-sidebar-title {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.2;
}

.kol-vidz-editor .kol-filter-section {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.kol-vidz-editor .kol-filter-section-title {
	margin: 0 0 10px;
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.kol-vidz-editor-upload {
	display: grid;
	gap: 8px;
	margin-bottom: 18px;
}

.kol-vidz-editor-upload-btn {
	width: 100%;
	min-height: 44px;
	border: 0;
	border-radius: 8px;
	background: #16a34a;
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.kol-vidz-editor-upload-status {
	min-height: 18px;
	color: #64748b;
	font-size: 12px;
	line-height: 1.35;
}

.kol-vidz-editor-nav {
	display: grid;
	gap: 8px;
}

.kol-vidz-editor .kol-filter-item.kol-vidz-editor-nav-item,
.kol-vidz-editor-nav-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 44px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: #334155;
	padding: 0 12px;
	text-align: left;
	font-weight: 800;
	cursor: pointer;
}

.kol-vidz-editor .kol-filter-item.kol-vidz-editor-nav-item:hover,
.kol-vidz-editor .kol-filter-item.kol-vidz-editor-nav-item.active,
.kol-vidz-editor-nav-item:hover,
.kol-vidz-editor-nav-item.active {
	border-color: rgba(22, 163, 74, 0.35);
	background: #ecfdf5;
	color: #166534;
}

.kol-vidz-editor-nav-item strong {
	font-size: 12px;
}

.kol-vidz-editor-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.kol-vidz-editor-head h2 {
	margin: 0;
	font-size: 28px;
	line-height: 1.15;
}

.kol-vidz-editor-head p,
.kol-vidz-editor-note,
.kol-vidz-editor-status,
.kol-vidz-editor-empty {
	color: #64748b;
}

.kol-vidz-editor-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.kol-vidz-editor-card {
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.4);
	border-radius: 8px;
	background: #050505;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.kol-vidz-editor-preview {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(520px, 72vh, 820px);
	background: #050505;
	touch-action: none;
}

.kol-vidz-editor-preview video {
	display: block;
	width: min(100%, 430px);
	height: min(72vh, 760px);
	max-height: 820px;
	aspect-ratio: 9 / 16;
	object-fit: contain;
	border-radius: 12px;
	background: #050505;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.kol-vidz-editor-preview-nav {
	position: absolute;
	inset: 48px 24px auto;
	z-index: 5;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}

.kol-vidz-editor-round,
.kol-vidz-editor-play,
.kol-vidz-editor-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
}

.kol-vidz-editor-round {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	pointer-events: auto;
}

.kol-vidz-editor-round.is-primary {
	background: #f43f5e;
}

.kol-vidz-editor-round .dashicons,
.kol-vidz-editor-play .dashicons {
	width: auto;
	height: auto;
	font-size: 28px;
	line-height: 1;
}

.kol-vidz-editor-transport {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 22px;
	z-index: 5;
	display: grid;
	grid-template-columns: auto auto auto 1fr;
	align-items: center;
	gap: 2px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 18px;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

.kol-vidz-editor-play {
	justify-self: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #fff;
	color: #050505;
	pointer-events: auto;
}

.kol-vidz-editor-time-separator {
	opacity: 0.5;
}

.kol-vidz-editor-body {
	display: grid;
	gap: 14px;
	padding: 16px;
	background: #fff;
}

.kol-vidz-editor-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.kol-vidz-editor-pill {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.kol-vidz-editor-pill.is-draft {
	background: #dcfce7;
	color: #166534;
}

.kol-vidz-editor-pill.is-published {
	background: #dbeafe;
	color: #1d4ed8;
}

.kol-vidz-editor-label {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #1f2937;
}

.kol-vidz-editor-label input,
.kol-vidz-editor-controls select,
.kol-vidz-editor-controls input[type="color"],
.kol-vidz-editor .kol-vidz-caption-editor {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #111827;
}

.kol-vidz-editor .kol-vidz-caption-preview {
	position: absolute;
	z-index: 4;
	left: 50%;
	bottom: 92px;
	transform: translateX(-50%);
	width: min(78%, 560px);
	min-height: 0;
	border-radius: 8px;
	display: block;
	margin: 0;
	pointer-events: auto;
	cursor: grab;
	user-select: none;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
	display: none;
	white-space: pre-wrap;
}

.kol-vidz-editor .kol-vidz-caption-preview.is-visible {
	display: block;
}

.kol-vidz-editor .kol-vidz-caption-preview.kol-vidz-caption-pos-upper {
	bottom: auto;
	top: 76px;
	transform: translateX(-50%);
}

.kol-vidz-editor .kol-vidz-caption-preview.kol-vidz-caption-pos-middle {
	bottom: auto;
	top: 50%;
	transform: translate(-50%, -50%);
}

.kol-vidz-editor .kol-vidz-caption-preview.is-dragging {
	cursor: grabbing;
}

.kol-vidz-caption-pos-custom,
.kol-vidz-editor .kol-vidz-caption-preview.kol-vidz-caption-pos-custom {
	left: var(--kol-vidz-caption-x, 50%);
	top: var(--kol-vidz-caption-y, 78%);
	bottom: auto;
	transform: translate(-50%, -50%);
}

.kol-vidz-editor-toolstrip {
	display: flex;
	gap: 6px;
	align-items: center;
	overflow-x: auto;
	padding: 4px 0 2px;
	scrollbar-width: thin;
}

.kol-vidz-editor-tool {
	flex: 0 0 92px;
	min-height: 88px;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 7px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: #171717;
	color: #f8fafc;
	padding: 10px 8px;
	font-weight: 800;
	font-size: 13px;
	cursor: pointer;
}

.kol-vidz-editor-tool .dashicons {
	width: auto;
	height: auto;
	font-size: 26px;
	line-height: 1;
}

.kol-vidz-editor-tool.is-active,
.kol-vidz-editor-tool:hover {
	border-color: rgba(244, 63, 94, 0.55);
	background: #262626;
	color: #fff;
}

.kol-vidz-editor-tool.button-primary {
	background: #f43f5e;
	border-color: #f43f5e;
	color: #fff;
}

.kol-vidz-editor-caption-panel {
	position: absolute;
	z-index: 8;
	left: var(--kol-vidz-panel-x, 16px);
	top: var(--kol-vidz-panel-y, 16px);
	width: min(460px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	display: grid;
	gap: 10px;
	overflow: auto;
	padding: 12px;
	border: 1px solid rgba(203, 213, 225, 0.95);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.96);
	color: #111827;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.26);
	backdrop-filter: blur(12px);
}

.kol-vidz-editor-caption-panel.is-minimized {
	display: none;
}

.kol-vidz-caption-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 28px;
	cursor: move;
	user-select: none;
}

.kol-vidz-caption-panel-head strong {
	font-size: 14px;
	line-height: 1;
}

.kol-vidz-caption-panel-min {
	width: 28px;
	height: 28px;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #f8fafc;
	color: #111827;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.kol-vidz-caption-enabled {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 800;
	color: #111827;
}

.kol-vidz-caption-enabled input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.kol-vidz-caption-panel-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

.kol-vidz-caption-panel-status {
	overflow: hidden;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kol-vidz-caption-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}

.kol-vidz-caption-tabs button {
	min-height: 34px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
	color: #334155;
	font-weight: 800;
	cursor: pointer;
}

.kol-vidz-caption-tabs button.is-active,
.kol-vidz-caption-tabs button:hover {
	border-color: rgba(244, 63, 94, 0.55);
	background: #fff1f2;
	color: #be123c;
}

.kol-vidz-caption-tab-panel {
	display: none;
	min-width: 0;
}

.kol-vidz-caption-tab-panel.is-active {
	display: block;
}

.kol-vidz-caption-style-controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.kol-vidz-caption-style-controls label {
	min-width: 0;
}

.kol-vidz-caption-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.kol-vidz-caption-actions button {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
	color: #111827;
	font-weight: 900;
	cursor: pointer;
}

.kol-vidz-caption-actions button:hover {
	border-color: rgba(244, 63, 94, 0.55);
	background: #fff1f2;
	color: #be123c;
}

.kol-vidz-caption-actions button:disabled {
	cursor: wait;
	opacity: 0.55;
}

.kol-vidz-caption-actions .dashicons {
	width: auto;
	height: auto;
	font-size: 20px;
	line-height: 1;
}

.kol-vidz-caption-coord {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
}

.kol-vidz-editor .kol-vidz-caption-raw-editor {
	display: none !important;
}

.kol-vidz-cue-edit-label {
	margin: 0;
}

.kol-vidz-cue-editor {
	width: 100%;
	min-height: 118px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	padding: 12px;
	font-size: clamp(18px, 2.15vw, 28px);
	font-weight: 800;
	line-height: 1.22;
	text-align: center;
	resize: vertical;
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

.kol-vidz-editor-timeline {
	position: relative;
	display: block;
	height: 54px;
	margin: 0;
	background: #0f172a;
	overflow: hidden;
}

.kol-vidz-editor-timeline-shell {
	position: relative;
	display: grid;
	gap: 8px;
	padding: 12px 80px 14px;
	background: #050505;
	color: #e5e7eb;
	--kol-vidz-playhead: 0%;
	--kol-vidz-playhead-x: 80px;
}

.kol-vidz-editor-ruler {
	position: relative;
	display: flex;
	justify-content: space-between;
	height: 20px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.kol-vidz-editor-video-track {
	position: relative;
	height: 58px;
	overflow: hidden;
	border-radius: 8px;
	background-color: #111827;
	background-image: var(--kol-vidz-track-thumb);
	background-repeat: repeat-x;
	background-size: auto 100%;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	cursor: pointer;
}

.kol-vidz-editor-video-track::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.32));
}

.kol-vidz-editor-add {
	position: absolute;
	right: 10px;
	top: 50%;
	z-index: 2;
	width: 48px;
	height: 48px;
	transform: translateY(-50%);
	border-radius: 12px;
	background: #fff;
	color: #050505;
	font-size: 36px;
	font-weight: 600;
	line-height: 1;
}

.kol-vidz-editor-playhead {
	position: absolute;
	z-index: 6;
	left: var(--kol-vidz-playhead-x);
	top: 32px;
	bottom: 10px;
	width: 4px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 255, 255, 0.75);
	pointer-events: none;
}

.kol-vidz-editor-playhead::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -8px;
	width: 12px;
	height: 12px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.kol-vidz-editor-cue {
	position: absolute;
	top: 8px;
	height: 38px;
	border: 1px solid rgba(147, 197, 253, 0.85);
	border-radius: 8px;
	background: rgba(129, 140, 248, 0.72);
	color: #172554;
	padding: 0 10px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.kol-vidz-editor-cue.is-active {
	border-color: #fff;
	background: #c7d2fe;
}

.kol-vidz-editor-cue span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kol-vidz-editor-timeline-empty {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 12px;
	color: #94a3b8;
	font-size: 12px;
}

.kol-vidz-editor .kol-vidz-caption-editor {
	min-height: 120px;
	padding: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.5;
}

.kol-vidz-editor-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.kol-vidz-editor-danger {
	border-color: #fecaca !important;
	background: #fff1f2 !important;
	color: #b91c1c !important;
}

html.dark-mode .kol-vidz-editor {
	color: #f8fafc;
}

html.dark-mode .kol-vidz-editor-card {
	border-color: rgba(148, 163, 184, 0.25);
	background: #111827;
}

html.dark-mode .kol-vidz-editor .kol-search-sidebar,
html.dark-mode .kol-vidz-editor-sidebar {
	border-color: rgba(148, 163, 184, 0.25);
	background: #111827;
}

html.dark-mode .kol-vidz-editor .kol-filter-item.kol-vidz-editor-nav-item,
html.dark-mode .kol-vidz-editor-nav-item {
	color: #dbeafe;
}

html.dark-mode .kol-vidz-editor .kol-filter-item.kol-vidz-editor-nav-item:hover,
html.dark-mode .kol-vidz-editor .kol-filter-item.kol-vidz-editor-nav-item.active,
html.dark-mode .kol-vidz-editor-nav-item:hover,
html.dark-mode .kol-vidz-editor-nav-item.active {
	border-color: rgba(74, 222, 128, 0.35);
	background: rgba(22, 101, 52, 0.28);
	color: #bbf7d0;
}

html.dark-mode .kol-vidz-editor-tool {
	border-color: rgba(255, 255, 255, 0.08);
	background: #171717;
	color: #f8fafc;
}

html.dark-mode .kol-vidz-editor-tool.is-active,
html.dark-mode .kol-vidz-editor-tool:hover {
	border-color: rgba(244, 63, 94, 0.55);
	background: #262626;
	color: #fff;
}

html.dark-mode .kol-vidz-editor-label,
html.dark-mode .kol-vidz-editor-label input,
html.dark-mode .kol-vidz-editor-controls select,
html.dark-mode .kol-vidz-editor-controls input[type="color"],
html.dark-mode .kol-vidz-editor .kol-vidz-caption-editor,
html.dark-mode .kol-vidz-cue-editor {
	color: #f8fafc;
}

html.dark-mode .kol-vidz-editor-label input,
html.dark-mode .kol-vidz-editor-controls select,
html.dark-mode .kol-vidz-editor .kol-vidz-caption-editor,
html.dark-mode .kol-vidz-cue-editor {
	border-color: #334155;
	background: #0f172a;
}

html.dark-mode .kol-vidz-editor-caption-panel {
	border-color: rgba(51, 65, 85, 0.95);
	background: rgba(15, 23, 42, 0.96);
	color: #f8fafc;
}

html.dark-mode .kol-vidz-caption-enabled {
	color: #f8fafc;
}

html.dark-mode .kol-vidz-caption-panel-status {
	color: #94a3b8;
}

html.dark-mode .kol-vidz-caption-panel-min {
	border-color: #334155;
	background: #111827;
	color: #f8fafc;
}

html.dark-mode .kol-vidz-caption-tabs button,
html.dark-mode .kol-vidz-caption-actions button {
	border-color: #334155;
	background: #0f172a;
	color: #f8fafc;
}

html.dark-mode .kol-vidz-caption-tabs button.is-active,
html.dark-mode .kol-vidz-caption-tabs button:hover,
html.dark-mode .kol-vidz-caption-actions button:hover {
	border-color: rgba(244, 63, 94, 0.55);
	background: rgba(244, 63, 94, 0.16);
	color: #fecdd3;
}

@media (max-width: 900px) {
	body.kol-vidz-editor-menu-open {
		overflow: hidden;
	}

	.kol-vidz-editor {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 8px;
	}

	.kol-vidz-editor-main {
		min-width: 0;
	}

	.kol-vidz-editor-head {
		align-items: flex-start;
		margin-bottom: 10px;
	}

	.kol-vidz-editor-head h2 {
		font-size: 22px;
	}

	.kol-vidz-editor-preview {
		min-height: min(70vh, 660px);
	}

	.kol-vidz-editor-preview video {
		width: min(100%, 360px);
		height: min(64vh, 640px);
		border-radius: 10px;
	}

	.kol-vidz-editor-preview-nav {
		inset: 22px 14px auto;
	}

	.kol-vidz-editor-round {
		width: 48px;
		height: 48px;
	}

	.kol-vidz-editor-transport {
		left: 16px;
		right: 16px;
		bottom: 14px;
		font-size: 15px;
	}

	.kol-vidz-editor-play {
		width: 48px;
		height: 48px;
	}

	.kol-vidz-editor-caption-panel {
		left: var(--kol-vidz-panel-x, 8px);
		top: var(--kol-vidz-panel-y, 8px);
		width: calc(100% - 16px);
		max-height: min(70vh, calc(100% - 16px));
	}

	.kol-vidz-caption-panel-top {
		align-items: flex-start;
		flex-direction: column;
	}

	.kol-vidz-caption-panel-status {
		width: 100%;
		text-align: left;
	}

	.kol-vidz-caption-style-controls,
	.kol-vidz-caption-actions {
		grid-template-columns: 1fr;
	}

	.kol-vidz-editor .kol-search-layout,
	.kol-vidz-editor-layout {
		padding-left: 0;
	}

	.kol-vidz-editor .kol-filter-drawer-toggle,
	.kol-vidz-editor-menu-toggle {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 35;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 48px;
		height: 44px;
		margin: 0 0 10px;
		border: 1px solid #8a8d91;
		border-radius: 8px;
		background: #fff;
		color: #334155;
		font-weight: 800;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	}

	.kol-vidz-editor .kol-filter-drawer-close,
	.kol-vidz-editor-menu-close {
		position: absolute;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 10px);
		right: 10px;
		z-index: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 50%;
		background: #e4e6eb;
		color: #050505;
		font-size: 18px;
		cursor: pointer;
	}

	.kol-vidz-editor .kol-filter-drawer-backdrop,
	.kol-vidz-editor-backdrop {
		position: fixed;
		inset: 0;
		z-index: 998;
		display: block;
		background: rgba(0, 0, 0, 0.42);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.22s ease;
	}

	.kol-vidz-editor .kol-filter-drawer-backdrop[hidden],
	.kol-vidz-editor-backdrop[hidden] {
		display: block !important;
	}

	.kol-vidz-editor.kol-vidz-editor-menu-open .kol-filter-drawer-backdrop,
	.kol-vidz-editor.kol-vidz-editor-menu-open .kol-vidz-editor-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	.kol-vidz-editor .kol-search-sidebar,
	.kol-vidz-editor-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 999;
		width: min(86vw, 340px);
		max-width: 340px;
		height: 100vh;
		max-height: 100vh;
		min-height: 0;
		padding: calc(var(--wp-admin--admin-bar--height, 0px) + 16px) 14px 24px;
		border-radius: 0;
		border-top: 0;
		border-bottom: 0;
		box-shadow: 10px 0 30px rgba(0, 0, 0, 0.24);
		transform: translateX(-105%);
		transition: transform 0.24s ease;
		will-change: transform;
		overscroll-behavior: contain;
	}

	.kol-vidz-editor.kol-vidz-editor-menu-open .kol-search-sidebar,
	.kol-vidz-editor.kol-vidz-editor-menu-open .kol-vidz-editor-sidebar {
		transform: translateX(0);
	}

	.kol-vidz-editor .kol-search-sidebar-title,
	.kol-vidz-editor-sidebar-title {
		margin-right: 44px;
	}

	.kol-vidz-editor-grid {
		grid-template-columns: 1fr;
	}

	.kol-vidz-editor-toolstrip {
		position: sticky;
		bottom: calc(var(--bbm-height, 50px) + 2px);
		z-index: 6;
		margin: 0 -8px -8px;
		background: rgba(5, 5, 5, 0.96);
		border: 0;
		border-radius: 0;
		padding: 8px 8px max(8px, env(safe-area-inset-bottom));
	}

	body.kol-bbm-minimized .kol-vidz-editor-toolstrip {
		bottom: 2px;
	}

	html.dark-mode .kol-vidz-editor-toolstrip {
		background: rgba(5, 5, 5, 0.96);
	}

	.kol-vidz-editor-tool {
		flex: 0 0 86px;
		min-width: 86px;
		min-height: 82px;
		padding: 8px 6px;
	}

	.kol-vidz-editor-timeline {
		height: 50px;
	}

	.kol-vidz-editor-timeline-shell {
		padding: 10px 24px 12px;
	}

	.kol-vidz-editor-video-track {
		height: 52px;
	}

	.kol-vidz-editor-playhead {
		top: 30px;
	}

	.kol-vidz-editor .kol-vidz-caption-preview {
		width: min(86%, 360px);
	}
}

@media (max-width: 700px) {
	.kol-vidz-shell {
		--kol-vidz-header-offset: 0px;
		--kol-vidz-bottom-offset: calc(var(--bbm-height, 50px) + 2px);
		min-height: calc(100svh - var(--kol-vidz-bottom-offset));
		width: 100vw;
		padding-bottom: 0;
		margin-right: calc(50% - 50vw);
		margin-left: calc(50% - 50vw);
	}

	body.kol-bbm-minimized .kol-vidz-shell {
		--kol-vidz-bottom-offset: 2px;
	}

	.kol-vidz-stage {
		width: 100vw;
		height: calc(100svh - var(--kol-vidz-bottom-offset));
	}

	.kol-vidz-actions {
		right: 10px;
		display: none;
	}

	.kol-vidz-rail {
		right: 10px;
		gap: 8px;
	}

	.kol-vidz-rail .kol-pec-icon {
		min-width: 48px;
	}

	.kol-vidz-rail .kol-pec-icon-symbol {
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		min-height: 48px !important;
	}

	.kol-vidz-nav {
		width: 42px;
		height: 42px;
	}

	body.kol-apes-sidebar-open .kol-vidz-stage {
		transform: translateX(calc(-1 * var(--kol-apes-open-sidebar-width, 84vw)));
	}
}
