.vidhistambh-search {
	--vidhistambh-accent: #070d3b;
	--vidhistambh-highlight: #F63907;
	--vidhistambh-active: #C92E05;
	width: 100%;
	margin: 18px auto;
	box-sizing: border-box;
	font-family: inherit;
}

.vidhistambh-search *,
.vidhistambh-search *::before,
.vidhistambh-search *::after {
	box-sizing: border-box;
}

.vidhistambh-search-card {
	width: min(100%, 860px);
	margin: 0 auto;
	padding: 8px 10px 5px;
	border: 1px solid rgba(7, 13, 59, .08);
	border-radius: 15px;
	background: rgba(255, 255, 255, .98);
	box-shadow: 0 6px 18px rgba(16, 24, 40, .10);
}

.vidhistambh-search-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 43px;
	border: 1px solid #dfe3ea;
	border-radius: 10px;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.vidhistambh-search-input-wrap:focus-within {
	border-color: var(--vidhistambh-accent);
	box-shadow: 0 0 0 3px rgba(7, 13, 59, .07);
}

.vidhistambh-search-icon {
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	margin-left: 12px;
	color: #71809d;
}

.vidhistambh-search-input {
	width: 100%;
	min-width: 0;
	height: 41px;
	padding: 0 45px 0 9px;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #18213a;
	font: inherit;
	font-size: 16px;
	line-height: 1.2;
}

.vidhistambh-search-input::placeholder {
	color: #8190aa;
	opacity: 1;
}

.vidhistambh-inline-search {
	flex: 0 0 44px;
	width: 44px;
	height: 43px;
	display: grid;
	place-items: center;
	margin-left: 6px;
	border: 0;
	border-radius: 10px;
	background: var(--vidhistambh-accent);
	color: #fff;
	cursor: pointer;
	transition: opacity .15s ease, transform .15s ease;
}

.vidhistambh-inline-search:hover { opacity: .92; }
.vidhistambh-inline-search:active { transform: scale(.96); }
.vidhistambh-inline-search svg { width: 21px; height: 21px; display:block; overflow:visible; }

.vidhistambh-clear {
	position: absolute;
	right: 6px;
	display: grid;
	width: 29px;
	height: 29px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #eef1f6;
	color: #4c5871;
	cursor: pointer;
}

.vidhistambh-clear svg {
	width: 14px;
	height: 14px;
}

.vidhistambh-search-top-row {
	display: flex;
	align-items: center;
	width: 100%;
}

.vidhistambh-search-top-row .vidhistambh-search-input-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

.vidhistambh-highlight-slot-mobile {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}

.vidhistambh-highlight-slot-mobile .bh-widget.bh-docked {
	margin: 0 !important;
}

.vidhistambh-btn,
.vidhistambh-match-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	border-radius: 9px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.vidhistambh-btn {
	gap: 6px;
	padding: 0 11px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.vidhistambh-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 3px 9px rgba(16, 24, 40, .12);
}

.vidhistambh-btn:focus-visible,
.vidhistambh-clear:focus-visible {
	outline: 2px solid rgba(7, 13, 59, .25);
	outline-offset: 2px;
}

.vidhistambh-btn svg {
	width: 15px;
	height: 15px;
}

.vidhistambh-btn-primary,
.vidhistambh-btn-icon {
	background: var(--vidhistambh-accent);
	color: #fff;
}

.vidhistambh-btn-icon {
	width: 34px;
	padding: 0;
}

.vidhistambh-btn-secondary {
	background: #f2f4f8;
	border-color: #e0e4eb;
	color: var(--vidhistambh-accent);
}

.vidhistambh-btn:disabled {
	opacity: .38;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.vidhistambh-match-count {
	min-width: 63px;
	padding: 0 9px;
	border: 1px solid #e0e4eb;
	background: #f7f8fa;
	color: #18213a;
}

.vidhistambh-count-divider {
	padding: 0 4px;
	color: #8a94a8;
}

.vidhistambh-status {
	min-height: 15px;
	margin: 6px 3px 0;
	color: #667085;
	font-size: 11px;
	text-align: center;
}

.vidhistambh-status:empty {
	display: none;
}

mark.vidhistambh-highlight {
	padding: .03em .1em;
	border-radius: 3px;
	background: var(--vidhistambh-highlight);
	color: inherit;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

mark.vidhistambh-highlight.vidhistambh-active {
	background: #C92E05 !important;
	box-shadow: 0 0 0 2px rgba(255, 183, 77, .22);
}

/* Floating mode: compact, unobtrusive, and still usable on mobile. */
.vidhistambh-floating-search {
	position: fixed;
	z-index: 9998;
	bottom: 12px;
	width: min(var(--vidhistambh-floating-width, 330px), calc(100vw - 24px));
	pointer-events: none;
}

.vidhistambh-floating-search .vidhistambh-search {
	margin: 0;
	pointer-events: auto;
}

.vidhistambh-floating-search .vidhistambh-search-card {
	padding: 8px;
	border-radius: 13px;
	box-shadow: 0 10px 28px rgba(16, 24, 40, .18);
}

.vidhistambh-floating-search.bottom_left {
	left: 12px;
}

.vidhistambh-floating-search.bottom_center {
	left: 50%;
	transform: translateX(-50%);
}

.vidhistambh-floating-search.bottom_right {
	right: 12px;
}

@media (max-width: 640px) {
	.vidhistambh-search-card {
		padding: 7px 8px 6px;
		border-radius: 13px;
	}

	.vidhistambh-search-input {
		font-size: 16px;
		height: 38px;
	}

	.vidhistambh-search-input-wrap {
		min-height: 38px;
	}

	.vidhistambh-inline-search {
		flex: 0 0 38px;
		width: 38px;
		height: 38px;
	}

	.vidhistambh-search-top-row {
		gap: 6px;
	}

	.vidhistambh-floating-search {
		left: 10px !important;
		right: 10px !important;
		bottom: 10px;
		width: auto !important;
		max-width: calc(100vw - 20px) !important;
		transform: none !important;
	}
}



/* Reader toolbar — canonical two-row layout. */
.vidhistambh-search-actions {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	flex-wrap: nowrap;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	box-sizing: border-box;
	overflow: visible;
}

.vidhistambh-search-actions > .vidhistambh-highlight-slot-mobile {
	flex: 0 1 auto;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	box-sizing: border-box;
}

.vidhistambh-search-actions > .vidhistambh-highlight-slot-mobile > .bh-widget.bh-docked {
	max-width: 100%;
	min-width: 0;
}

.vidhistambh-search-actions > .vidhistambh-btn-icon {
	flex: 0 0 30px;
	width: 30px;
	min-width: 30px;
	height: 34px;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.vidhistambh-search-actions > .vidhistambh-match-count {
	flex: 0 0 40px;
	width: 40px;
	min-width: 40px;
	height: 34px;
	margin: 0;
	padding: 0 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	white-space: nowrap;
}

.vidhistambh-search-actions > .vidhistambh-comment-page {
	flex: 0 0 30px;
	width: 30px;
	min-width: 30px;
	height: 34px;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border: 1px solid var(--vidhistambh-accent, #070d3b);
	border-radius: 9px;
	background: var(--vidhistambh-accent, #070d3b);
	color: #fff;
	text-decoration: none;
}

.vidhistambh-search-actions > .vidhistambh-comment-page svg {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	color: inherit;
	stroke: currentColor;
}

.vidhistambh-search-actions > .vidhistambh-btn-secondary {
	flex: 0 0 auto;
	width: auto;
	min-width: 82px;
	height: 34px;
	margin: 0;
	padding: 0 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	gap: 5px;
	white-space: nowrap;
}

.vidhistambh-search-actions > .vidhistambh-btn-secondary svg {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.vidhistambh-search-actions > .vidhistambh-btn-secondary .vidhistambh-top-label {
	display: inline;
	white-space: nowrap;
	line-height: 1;
}

@media (max-width: 640px) {
	.vidhistambh-search-actions {
		gap: 5px;
		width: 100%;
		max-width: 100%;
	}

	.vidhistambh-search-actions > .vidhistambh-highlight-slot-mobile {
		flex: 1 1 auto;
		min-width: 0;
	}

	.vidhistambh-search-actions > .vidhistambh-highlight-slot-mobile > .bh-widget.bh-docked,
	.vidhistambh-search-actions > .vidhistambh-highlight-slot-mobile > .bh-widget.bh-docked .bh-pen-toggle {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.vidhistambh-search-actions > .vidhistambh-btn-icon {
		flex: 0 0 30px;
		width: 30px;
		min-width: 30px;
		height: 34px;
	}

	.vidhistambh-search-actions > .vidhistambh-match-count {
		flex: 0 0 40px;
		width: 40px;
		min-width: 40px;
		height: 34px;
		font-size: 12px;
	}

	.vidhistambh-search-actions > .vidhistambh-comment-page {
		flex: 0 0 30px;
		width: 30px;
		min-width: 30px;
		height: 34px;
	}

	.vidhistambh-search-actions > .vidhistambh-btn-secondary {
		flex: 0 0 auto;
		width: auto;
		min-width: 64px;
		height: 34px;
		padding: 0 7px;
		gap: 4px;
		white-space: nowrap;
	}

	.vidhistambh-search-actions > .vidhistambh-btn-secondary .vidhistambh-top-label {
		display: inline;
		font-size: 12px;
		line-height: 1;
	}
}

@media (max-width: 480px) {
	.vidhistambh-search-actions {
		gap: 4px;
	}

	.vidhistambh-search-actions > .vidhistambh-highlight-slot-mobile > .bh-widget.bh-docked .bh-pen-toggle {
		padding: 0 8px;
		height: 32px;
		gap: 4px;
	}

	.vidhistambh-search-actions > .vidhistambh-btn-icon {
		flex: 0 0 28px;
		width: 28px;
		min-width: 28px;
		height: 32px;
	}

	.vidhistambh-search-actions > .vidhistambh-comment-page {
		flex: 0 0 28px;
		width: 28px;
		min-width: 28px;
		height: 32px;
	}

	.vidhistambh-search-actions > .vidhistambh-match-count {
		flex: 0 0 36px;
		width: 36px;
		min-width: 36px;
		height: 32px;
		font-size: 11px;
		padding: 0 2px;
	}

	.vidhistambh-search-actions > .vidhistambh-btn-secondary {
		min-width: 48px;
		height: 32px;
		padding: 0 6px;
		font-size: 11.5px;
		gap: 3px;
	}
}

@media (max-width: 380px) {
	.vidhistambh-search-actions {
		gap: 3px;
	}

	.vidhistambh-search-actions > .vidhistambh-highlight-slot-mobile > .bh-widget.bh-docked .bh-pen-label {
		display: none;
	}

	.vidhistambh-search-actions > .vidhistambh-highlight-slot-mobile > .bh-widget.bh-docked .bh-pen-toggle {
		padding: 0 6px;
		width: 30px;
		min-width: 30px;
		justify-content: center;
	}

	.vidhistambh-search-actions > .vidhistambh-btn-icon {
		flex: 0 0 26px;
		width: 26px;
		min-width: 26px;
		height: 30px;
	}

	.vidhistambh-search-actions > .vidhistambh-comment-page {
		flex: 0 0 26px;
		width: 26px;
		min-width: 26px;
		height: 30px;
	}

	.vidhistambh-search-actions > .vidhistambh-match-count {
		flex: 0 0 34px;
		width: 34px;
		min-width: 34px;
		height: 30px;
		font-size: 10.5px;
	}

	.vidhistambh-search-actions > .vidhistambh-btn-secondary {
		min-width: 32px;
		padding: 0 6px;
		height: 30px;
	}

	.vidhistambh-search-actions > .vidhistambh-btn-secondary .vidhistambh-top-label {
		display: none;
	}
}

