/* Shared video detail toolbar — theme via --v21-tb-* variables in each theme :root */

.detail-ist,
.v21-video-toolbar {
	background: var(--v21-tb-bg);
	padding: 12px 14px;
	border: 1px solid var(--v21-tb-border);
	border-radius: 0 0 var(--v21-tb-radius) var(--v21-tb-radius);
	box-shadow: 0 0 18px -8px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 12px;
}

.v21-video-toolbar-wrap {
	margin-bottom: 16px;
}

.v21-video-toolbar .v21-rating-block,
.v21-video-toolbar #ajaxRating {
	flex: 1 1 240px;
	min-width: 0;
	order: 1;
}

.v21-toolbar-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-end;
	gap: 6px;
	order: 2;
	margin-left: auto;
}

.v21-rating-row {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px;
}

.v21-rating-text {
	color: var(--v21-tb-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.v21-rating-progress {
	height: 4px;
	background: var(--v21-tb-btn-hover);
	border-radius: 2px;
	overflow: hidden;
	margin-top: 6px;
	width: 100%;
	max-width: 280px;
}

.v21-rating-progress-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--v21-tb-accent-dark), var(--v21-tb-fill), var(--v21-tb-accent-soft));
	border-radius: 2px;
	box-shadow: 0 0 8px var(--v21-tb-glow);
}

.v21-action-btn {
	border: 1px solid var(--v21-tb-border);
	background: var(--v21-tb-btn);
	color: var(--v21-tb-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 8px 12px;
	border-radius: var(--v21-tb-radius);
	cursor: pointer;
	text-transform: uppercase;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
	text-decoration: none;
	display: inline-block;
	line-height: 1.2;
}

.v21-action-btn:hover,
.v21-action-btn.is-active {
	background: var(--v21-tb-btn-hover);
	border-color: var(--v21-tb-accent-dark);
	color: var(--v21-tb-accent-soft);
	box-shadow: 0 0 12px var(--v21-tb-glow);
}

.v21-action-btn--comments {
	background: var(--v21-tb-gradient-btn);
	border-color: var(--v21-tb-accent-dark);
	color: var(--v21-tb-on-accent);
}

.v21-action-btn--comments:hover,
.v21-action-btn--comments.is-active {
	background: var(--v21-tb-gradient-btn);
	border-color: var(--v21-tb-accent-soft);
	color: var(--v21-tb-on-accent);
	box-shadow: 0 0 14px var(--v21-tb-glow);
}

.v21-action-btn--download,
.v21-action-btn--icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	padding: 8px 10px;
	text-transform: none;
}

.v21-download-svg,
.v21-toolbar-icon {
	width: 16px;
	height: 16px;
	display: block;
	flex-shrink: 0;
}

.v21-video-panels {
	border: 1px solid var(--v21-tb-border);
	border-top: 0;
	background: var(--v21-tb-bg-panel);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.v21-video-panel {
	padding: 14px 14px;
	color: var(--v21-tb-text);
}

.v21-video-panel[hidden] {
	display: none !important;
}

.v21-info-grid {
	display: grid;
	gap: 14px;
}

.v21-info-row--stats {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.v21-info-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	min-width: 0;
}

.v21-info-item--views {
	align-items: flex-end;
	text-align: right;
	margin-left: auto;
}

.v21-info-item--block {
	display: block;
}

.v21-info-label {
	display: block;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--v21-tb-muted);
	opacity: 0.48;
	min-width: 0;
}

.v21-info-value {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--v21-tb-text);
}

.v21-info-item--block .v21-info-label {
	margin-bottom: 6px;
}

.v21-info-item--block .v21-info-value {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
}

.v21-info-value a {
	color: var(--v21-tb-accent-soft);
	font-weight: 600;
	text-decoration: none;
}

.v21-info-value a:hover {
	color: var(--v21-tb-text);
	text-decoration: underline;
}

.v21-share-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--v21-tb-muted);
	margin: 0 0 6px;
}

.v21-share-buttons-wrap {
	margin-bottom: 14px;
}

.v21-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.v21-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: var(--v21-tb-radius);
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	color: #fff;
	transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.v21-share-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.v21-share-btn:focus-visible {
	outline: 2px solid var(--v21-tb-accent);
	outline-offset: 2px;
}

.v21-share-svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.v21-share-btn-label {
	white-space: nowrap;
}

.v21-share-btn--whatsapp {
	background: #25d366;
}

.v21-share-btn--facebook {
	background: #1877f2;
}

.v21-share-btn--x {
	background: #0f1419;
	border-color: var(--v21-tb-border);
}

.v21-share-btn--reddit {
	background: #ff4500;
}

.v21-share-input,
.v21-share-textarea,
.v21-comment-input,
.v21-comment-textarea {
	width: 100%;
	border: 1px solid var(--v21-tb-border);
	border-radius: var(--v21-tb-radius);
	padding: 8px 10px;
	font-size: 14px;
	margin-bottom: 10px;
	box-sizing: border-box;
	background: var(--v21-tb-input-bg);
	color: var(--v21-tb-text);
}

.v21-share-input:focus,
.v21-share-textarea:focus,
.v21-comment-input:focus,
.v21-comment-textarea:focus {
	outline: none;
	border-color: var(--v21-tb-accent);
	box-shadow: 0 0 0 2px var(--v21-tb-glow);
}

.v21-comment-form {
	margin-bottom: 14px;
}

.v21-comment-emoji {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.v21-emoji-btn {
	border: 1px solid var(--v21-tb-border);
	background: var(--v21-tb-btn);
	border-radius: var(--v21-tb-radius);
	width: 34px;
	height: 34px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.v21-emoji-btn:hover {
	background: var(--v21-tb-btn-hover);
	border-color: var(--v21-tb-accent-dark);
	transform: scale(1.06);
}

.v21-comment-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.v21-simple-captcha {
	flex: 1 1 240px;
}

.simple-captcha {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.simple-captcha-label {
	font-size: 13px;
	color: var(--v21-tb-text-muted, #9aa0a6);
}

.simple-captcha-code {
	display: inline-block;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.18em;
	padding: 4px 10px;
	background: var(--v21-tb-panel-bg, rgba(0, 0, 0, 0.25));
	border: 1px solid var(--v21-tb-border, rgba(255, 255, 255, 0.12));
	border-radius: var(--v21-tb-radius, 8px);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--v21-tb-text, inherit);
}

.simple-captcha-input {
	min-width: 100px;
	flex: 1 1 100px;
}

.v21-comment-submit {
	border: 1px solid var(--v21-tb-accent-dark);
	background: var(--v21-tb-gradient-btn);
	color: var(--v21-tb-on-accent);
	font-weight: 700;
	padding: 8px 14px;
	border-radius: var(--v21-tb-radius);
	cursor: pointer;
}

.v21-comment-submit:hover {
	box-shadow: 0 0 12px var(--v21-tb-glow);
}

.v21-comment-message {
	color: var(--v21-tb-accent-soft);
	font-size: 13px;
	margin-bottom: 8px;
}

.v21-comment-message .text-danger,
.v21-comment-message label.text-danger {
	color: #ff6b6b;
	font-weight: 600;
}

.v21-comment-message .text-success,
.v21-comment-message label.text-success {
	color: var(--v21-tb-accent-soft);
	font-weight: 600;
}

.v21-comment-list {
	margin-top: 4px;
}

.v21-comment-empty {
	margin: 0;
	padding: 16px 12px;
	text-align: center;
	color: var(--v21-tb-muted);
	font-size: 14px;
	border: 1px dashed var(--v21-tb-border);
	border-radius: var(--v21-tb-radius);
	background: var(--v21-tb-bg);
}

.v21-comment-thread,
.v21-comment-replies {
	list-style: none;
	margin: 0;
	padding: 0;
}

.v21-comment-thread {
	display: grid;
	gap: 12px;
}

.v21-comment-item {
	margin: 0;
	padding: 0;
}

.v21-comment {
	border: 1px solid var(--v21-tb-border);
	border-radius: var(--v21-tb-radius);
	background: var(--v21-tb-bg);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.v21-comment-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	background: var(--v21-tb-btn);
	border-bottom: 1px solid var(--v21-tb-border);
}

.v21-comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.v21-comment-avatar {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--v21-tb-on-accent);
	background: var(--v21-tb-gradient-btn);
	box-shadow: 0 0 10px var(--v21-tb-glow);
}

.v21-comment-identity {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.v21-comment-author {
	font-style: normal;
	font-size: 14px;
	font-weight: 700;
	color: var(--v21-tb-text);
	line-height: 1.2;
}

.v21-comment-date {
	font-size: 12px;
	color: var(--v21-tb-muted);
	line-height: 1.2;
}

.v21-comment-reply-btn {
	flex-shrink: 0;
	border: 1px solid var(--v21-tb-border);
	background: transparent;
	color: var(--v21-tb-accent-soft);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	border-radius: var(--v21-tb-radius);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.v21-comment-reply-btn:hover {
	background: var(--v21-tb-btn-hover);
	border-color: var(--v21-tb-accent-dark);
	color: var(--v21-tb-text);
	box-shadow: 0 0 8px var(--v21-tb-glow);
}

.v21-comment-body {
	padding: 12px 14px;
	font-size: 14px;
	color: var(--v21-tb-text);
	font-family: system-ui, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
	line-height: 1.6;
	word-break: break-word;
}

.v21-comment-replies {
	margin-top: 10px;
	margin-left: 14px;
	padding-left: 14px;
	border-left: 2px solid var(--v21-tb-border);
	display: grid;
	gap: 10px;
}

.v21-comment-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--v21-tb-border);
}

.v21-comment-page,
.v21-comment-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: var(--v21-tb-radius);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.v21-comment-page {
	background: var(--v21-tb-gradient-btn);
	color: var(--v21-tb-on-accent);
	border: 1px solid var(--v21-tb-accent-dark);
}

.v21-comment-page-link {
	background: var(--v21-tb-btn);
	color: var(--v21-tb-accent-soft);
	border: 1px solid var(--v21-tb-border);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.v21-comment-page-link:hover {
	background: var(--v21-tb-btn-hover);
	border-color: var(--v21-tb-accent-dark);
	color: var(--v21-tb-text);
}

.v21-comment-list a,
.v21-comment-list .comment-page-link {
	color: inherit;
}

.v21-rating-block .ajax_rating {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	vertical-align: middle;
	line-height: 1;
}

#ajaxRating.rating-loading {
	opacity: 0.75;
	pointer-events: none;
}

.v21-rating-block .ajax_rating .like,
.v21-rating-block .ajax_rating .unlike {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 50%;
	font-style: normal;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	flex-shrink: 0;
	transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.v21-rating-block .rating-svg {
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	pointer-events: none;
}

.v21-rating-block .ajax_rating .like,
.v21-rating-block .ajax_rating .unlike {
	background: var(--v21-tb-btn);
	border: 1px solid var(--v21-tb-border);
	color: var(--v21-tb-muted);
}

.v21-rating-block .ajax_rating:hover .like,
.v21-rating-block .ajax_rating:hover .unlike {
	border-color: var(--v21-tb-accent-dark);
	color: var(--v21-tb-accent-soft);
	box-shadow: 0 0 8px var(--v21-tb-glow);
}

.v21-rating-block .ajax_rating.like.is-active .like,
.v21-rating-block .ajax_rating.unlike.is-active .unlike {
	background: var(--v21-tb-gradient-btn);
	border-color: var(--v21-tb-accent-soft);
	color: var(--v21-tb-on-accent);
	box-shadow: 0 0 10px var(--v21-tb-glow);
}

.v21-rating-block .ajax_rating[aria-disabled="true"] {
	opacity: 0.75;
	cursor: default;
	pointer-events: none;
}

.v21-video-toolbar #ajaxRating,
.v21-rating-block#ajaxRating {
	flex: 1 1 240px;
	min-width: 0;
	max-width: 100%;
	display: block;
}

.detail-stats {
	display: none;
}

.detail-ist #ajaxRating {
	display: block;
	width: 100%;
	max-width: 320px;
}

@media (max-width: 768px) {
	.v21-video-toolbar,
	.detail-ist {
		padding: 10px 8px;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 8px;
	}

	.v21-video-toolbar .v21-rating-block,
	.v21-video-toolbar #ajaxRating {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		order: 1;
	}

	.v21-rating-progress {
		max-width: 100%;
	}

	.v21-toolbar-actions {
		flex: 0 0 auto;
		width: 100%;
		margin-left: 0;
		order: 2;
		display: flex;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 4px;
	}

	.v21-action-btn {
		flex: 1 1 0;
		min-width: 0;
		width: auto;
		text-align: center;
		padding: 8px 3px;
		font-size: 9px;
		letter-spacing: 0.02em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.v21-action-btn--icon,
	.v21-action-btn--download {
		flex: 0 0 auto;
		min-width: 36px;
		padding: 8px 10px;
		overflow: visible;
	}

	.v21-video-panels {
		border-top: 1px solid var(--v21-tb-border);
	}

	.v21-video-panel {
		padding: 12px 8px;
	}

	.v21-share-buttons {
		flex-wrap: nowrap;
		gap: 4px;
	}

	.v21-share-btn {
		flex: 1 1 0;
		min-width: 0;
		justify-content: center;
		min-height: 34px;
		padding: 6px 4px;
		gap: 4px;
		font-size: 9px;
		letter-spacing: 0;
		border-radius: 6px;
	}

	.v21-share-btn:hover {
		transform: none;
	}

	.v21-share-svg {
		width: 14px;
		height: 14px;
	}

	.v21-share-btn-label {
		overflow: hidden;
		text-overflow: ellipsis;
		min-width: 0;
	}
}

@media (max-width: 400px) {
	.v21-share-btn-label {
		display: none;
	}

	.v21-share-btn {
		padding: 8px 2px;
	}

	.v21-share-svg {
		width: 16px;
		height: 16px;
	}
}
