.video_tools .video_meta_pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	height: 34px;
	padding: 3px 10px;
	background: #424c55;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	overflow: hidden;
	line-height: 1.2;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.video_tools .video_meta_pill .wrap_image,
.video_tools .video_meta_pill .no-thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	margin: 0 0 0 -6px;
	border-radius: 50%;
	overflow: hidden;
}

.video_tools .video_meta_pill .wrap_image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video_tools .video_meta_pill .custom-brand {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.video_tools .video_meta_pill span,
.video_tools .video_meta_pill .name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.video_tools .video_meta_pill:hover,
.video_tools .item.video_meta_pill:hover,
.video_tools .btn_link.video_meta_pill:hover {
	background: #55d566;
	border-color: #55d566;
	color: #fff !important;
}

.video_tools .video_meta_pill:hover span,
.video_tools .video_meta_pill:hover .name,
.video_tools .video_meta_pill:hover .custom-svg,
.video_tools .item.video_meta_pill:hover span,
.video_tools .item.video_meta_pill:hover .name,
.video_tools .item.video_meta_pill:hover .custom-svg {
	color: #fff !important;
}

.video_tools .tag_item_download {
	background: #424c55;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.video_tools .tag_item_download:hover {
	background: #55d566;
	border-color: #55d566;
	color: #fff;
}

.video_tools .video_suggest_panel {
	clear: both;
	width: 100%;
	margin-top: 12px;
	padding: 12px;
	background: rgba(41, 47, 52, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
}

.video_tools .video_suggest_panel .popup_form {
	margin: 0 0 12px;
	padding: 0;
	background: transparent;
}

.video_tools .video_suggest_panel .popup_form:last-child {
	margin-bottom: 0;
}

.video_tools .video_suggest_panel .row-form {
	margin-bottom: 8px;
}

	.video_tools .video_suggest_panel .submit-holder {
		margin-top: 8px;
		position: relative;
		z-index: 1060;
	}

	.video_tools .video_suggest_panel .submit-holder .btn_action,
	.video_tools .video_suggest_panel .submit-holder button {
		position: relative;
		z-index: 1061;
		pointer-events: auto;
	}

.video_tools .tag_vote_chip {
	display: inline-flex;
	align-items: center;
	position: relative;
	vertical-align: middle;
	margin: 0 5px 5px 0;
	background: #424c55;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	overflow: hidden;
	--tag-progress: 0%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.video_tools .tag_vote_chip:hover {
	background: #55d566;
	border-color: #55d566;
}

.video_tools .tag_vote_chip.is-tag-overflow-hidden,
.video_tools .tag_suggestion_chip.is-tag-overflow-hidden {
	display: none;
}

.video_tools .tag_item_load_more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 5px 5px 0;
	padding: 9px 12px;
	min-width: 132px;
	min-height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: #424c55;
	color: #fff;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.video_tools .tag_item_load_more:hover {
	background: #55d566;
	border-color: #55d566;
	color: #fff;
}

.video_tools .tag_vote_chip.is-harden-pressure,
.video_tools .tag_vote_chip.is-harden-pressure:hover {
	background: #424c55;
	border-color: rgba(95, 211, 159, 0.38);
}

.video_tools .tag_vote_chip.is-removal-pressure,
.video_tools .tag_vote_chip.is-removal-pressure:hover {
	background: #424c55;
	border-color: rgba(206, 95, 93, 0.4);
}

.video_tools .tag_vote_chip .tag_item {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 9px 12px;
	background: transparent;
	border: 0;
	border-radius: 8px 0 0 8px;
	box-shadow: none;
	white-space: nowrap;
}

.video_tools .tag_vote_chip .tag_item:hover {
	background: transparent;
	color: #fff;
}

.video_tools .tag_vote_chip:hover .tag_item,
.video_tools .tag_vote_chip:hover .tag_vote_btn {
	color: #fff;
}

.video_tools .video_meta_vote_chip {
	margin: 0 5px 6px 0;
	vertical-align: middle;
}

.video_tools .video_meta_vote_chip .video_meta_pill,
.video_tools .video_meta_vote_chip .item.video_meta_pill,
.video_tools .video_meta_vote_chip .btn_link.video_meta_pill {
	position: relative;
	z-index: 1;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 8px 0 0 8px;
	box-shadow: none;
}

.video_tools .video_meta_vote_chip .video_meta_pill:hover,
.video_tools .video_meta_vote_chip .item.video_meta_pill:hover,
.video_tools .video_meta_vote_chip .btn_link.video_meta_pill:hover {
	background: transparent;
	border-color: transparent;
}

.video_tools .tag_vote_controls {
	display: inline-flex;
	position: relative;
	z-index: 1;
	align-self: stretch;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
	border-radius: 0 8px 8px 0;
}

.video_tools .tag_vote_chip:hover .tag_vote_controls {
	border-left-color: rgba(255, 255, 255, 0.22);
}

.video_tools .tag_vote_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	min-width: 22px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #a8b7c5;
	font-size: 9px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.video_tools .tag_vote_btn:first-child {
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.video_tools .tag_vote_chip:hover .tag_vote_btn:first-child {
	border-right-color: rgba(255, 255, 255, 0.22);
}

.video_tools .tag_vote_btn:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.video_tools .tag_vote_btn.is-active {
	background: #55d566;
	color: #fff;
}

.video_tools .tag_vote_up.is-active {
	background: #2f7d5d;
	color: #fff;
}

.video_tools .tag_vote_down.is-active {
	background: #55d566;
	color: #fff;
}

.video_tools .tag_vote_progress {
	position: absolute;
	z-index: 0;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	max-width: 100%;
	background: rgba(95, 211, 159, 0.18);
	border-right: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: none;
	pointer-events: none;
	transition: width 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.video_tools .tag_vote_chip.is-removal-pressure .tag_vote_progress {
	background: rgba(151, 82, 82, 0.46);
	box-shadow: none;
}

.video_tools .tag_vote_chip.is-harden-pressure .tag_vote_progress {
	background: rgba(77, 150, 118, 0.42);
	box-shadow: none;
}

.video_tools .tag_vote_chip.is-hardened {
	border-color: rgba(95, 211, 159, 0.62);
	box-shadow: 0 0 0 1px rgba(95, 211, 159, 0.16);
}

.video_tools .tag_vote_chip.is-hardened .tag_item {
	color: #d9f8ea;
}

.video_tools .tag_vote_chip.is-hardened .tag_vote_up {
	color: #d9f8ea;
}

.video_tools .tag_vote_chip.is-hardened .tag_vote_up.is-active {
	background: #2f7d5d;
	color: #fff;
}

.video_tools .tag_vote_chip.is-loading {
	opacity: 0.75;
}

.video_tools .tag_vote_chip.is-loading .tag_vote_btn {
	pointer-events: none;
}

.video_tools .tag_vote_chip.is-loading .tag_vote_btn:not(.is-active) {
	color: rgba(255, 255, 255, 0.45);
}

.video_tools .tag_vote_chip.is-saved {
	border-color: rgba(95, 211, 159, 0.72);
}

.video_tools .tag_vote_chip.has-error {
	border-color: rgba(236, 121, 111, 0.86);
}

.video_tools .tag_vote_chip::after {
	content: attr(data-feedback);
	position: absolute;
	z-index: 2;
	right: 0;
	top: calc(100% + 4px);
	padding: 3px 7px;
	border-radius: 5px;
	background: rgba(13, 19, 26, 0.96);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-2px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.video_tools .tag_vote_chip.is-loading::after,
.video_tools .tag_vote_chip.is-saved::after,
.video_tools .tag_vote_chip.has-error::after {
	opacity: 1;
	transform: translateY(0);
}

.video_tools .tag_vote_chip.has-error::after {
	background: #55d566;
}

.video_tools .tag_vote_chip.is-removed {
	opacity: 0;
	transform: scale(0.92);
}

.video_tools .tag_suggestion_chip {
	opacity: 0.72;
	border-style: dashed;
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(66, 76, 85, 0.78);
}

.video_tools .tag_suggestion_chip:hover {
	opacity: 0.92;
	background: #424c55;
	border-color: rgba(255, 255, 255, 0.32);
}

.video_tools .tag_suggestion_chip .tag_suggestion_item {
	color: rgba(255, 255, 255, 0.72);
	cursor: default;
}

.video_tools .tag_suggestion_chip .tag_vote_progress {
	background: rgba(255, 255, 255, 0.11);
	box-shadow: none;
}

.video_tools .tag_suggestion_chip .tag_suggestion_support.is-active {
	background: #2f7d5d;
	color: #fff;
}

.video_tools .tag_suggestion_chip .tag_suggestion_support[data-vote="-1"].is-active {
	background: #55d566;
	color: #fff;
}

@media screen and (max-width: 960px) {
	.video_tools .tag_vote_chip .tag_item {
		padding: 5px 10px;
	}
}

.upload-status {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px;
	text-align: center;
	background: rgba(18, 23, 27, 0.84);
	color: #fff;
}

.upload-status::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(135deg, rgba(66, 76, 85, 0.75), rgba(32, 34, 36, 0.9));
}

.upload-status__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 5px 10px;
	border-radius: 6px;
	background: #424c55;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.upload-status__text,
.upload-status__meta {
	max-width: 90%;
	color: rgba(255, 255, 255, 0.78);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.upload-status__progress {
	width: min(180px, 82%);
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
}

.upload-status__progress span {
	display: block;
	height: 100%;
	min-width: 4px;
	max-width: 100%;
	border-radius: inherit;
	background: #37bf91;
}

.upload-status--processing .upload-status__label {
	background: #2f7d5d;
}

.upload-status--review .upload-status__label,
.upload-status--inactive .upload-status__label {
	background: #536171;
}

.upload-status--error .upload-status__label,
.upload-status--removed .upload-status__label {
	background: #55d566;
}

.upload-success-note {
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.playlist_watch_page .heading {
	margin-bottom: 18px;
}

.playlist_watch_layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	gap: 18px;
	width: 100%;
}

.playlist_watch_main {
	min-width: 0;
}

.playlist_watch_main .video_container {
	margin-bottom: 0;
}

.playlist_watch_page .video_tools .tab-content {
	margin-top: 8px;
}

.playlist_watch_page .video_tools .tabs-menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	padding: 8px 0 0;
}

.playlist_watch_page .video_tools .tabs-menu .playlist_tabs {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.playlist_watch_page .video_tools .tabs-menu .tab {
	display: flex;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.playlist_watch_page .video_tools .tabs-menu .toggle-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	min-height: 36px;
	margin-left: 0;
	padding: 8px 12px;
	line-height: 1.2;
}

.playlist_watch_page .video_tools .tabs-menu .toggle-button.active {
	background-color: #55d566;
	color: #fff;
}

.playlist_sidebar {
	position: sticky;
	top: 12px;
	max-height: calc(64vh - 24px);
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: linear-gradient(to bottom,rgb(59 68 75 / .45) 0,rgb(59 68 75 / .45) 20%,rgb(59 68 75 / .7) 70%,rgb(59 68 75 / .2) 100%);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.playlist_sidebar_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist_sidebar_title {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	gap: 8px;
	min-width: 0;
}

.playlist_sidebar_toolbar {
	display: flex;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist_sidebar_toolbar .playlist_control {
	width: 100%;
}

.playlist_sidebar_head strong {
	flex: 0 0 auto;
	min-width: 28px;
	padding: 4px 8px;
	text-align: center;
	color: #fff;
	background: #55d566;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1;
}

.playlist_control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 86px;
	min-height: 30px;
	padding: 6px 10px;
	color: #dce5ee;
	background: #3b444b;
	border: 0;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.playlist_control[aria-pressed="true"] {
	color: #fff;
	background: #55d566;
}

.playlist_manage_controls {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 4px;
}

.playlist_manage_controls .toggle-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	min-height: 34px;
	margin: 0;
	line-height: 1;
	vertical-align: middle;
}

.playlist_manage_controls .checkbox-container {
	align-self: center;
	flex: 0 0 24px;
	width: 24px;
	min-width: 24px;
	padding: 0;
}

.playlist_manage_controls .btn {
	flex: 1 1 0;
	min-width: 0;
	padding: 8px 10px;
	text-align: center;
}

.playlist_order_field {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	margin: 0;
	padding: 0 8px;
	color: #a8b6c2;
	background: #424c55;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.playlist_order_field input {
	width: 58px;
	height: 26px;
	min-height: 26px;
	margin: 0;
	padding: 4px 6px;
	color: #fff;
	background: #424c55;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.playlist_order_field.disabled {
	opacity: 0.65;
}

.playlist_sidebar_items.thumbs {
	flex: 1 1 auto;
	margin: 0;
	padding: 8px;
	overflow-x: hidden;
	overflow-y: auto;
}

.playlist_sidebar .item.thumb {
	display: block;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
}

.playlist_sidebar .item.thumb + .item.thumb {
	margin-top: 6px;
}

.playlist_sidebar .th {
	display: grid;
	float: none;
	grid-template-columns: 116px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	width: auto;
	margin: 0;
	min-height: 72px;
	padding: 6px;
	border-radius: 8px;
	background: transparent;
	transition: background-color 0.2s ease;
}

.playlist_sidebar .th.selected,
.playlist_sidebar .th:hover {
	background: #424c55;
}

.playlist_sidebar .th.selected .thumb_title {
	color: #fff;
}

.playlist_sidebar .img.wrap_image {
	position: relative;
	width: 116px;
	height: 65px;
	padding: 0;
	overflow: hidden;
	border-radius: 6px;
	background: #000;
}

.playlist_sidebar .img.wrap_image img,
.playlist_sidebar .img.wrap_image video {
	position: static;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.playlist_sidebar .img.wrap_image .time,
.playlist_sidebar .img.wrap_image .custom-play {
	position: absolute;
}

.playlist_sidebar .playlist_sidebar_body {
	min-width: 0;
}

.playlist_sidebar .thumb_title {
	display: -webkit-box;
	max-height: 38px;
	overflow: hidden;
	color: #dce5ee;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	white-space: normal;
	text-overflow: clip;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.playlist_sidebar .thumb_info {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 5px;
	color: #8b9ba9;
	font-size: 11px;
	line-height: 1.2;
}

.playlist_sidebar .thumb_info .added,
.playlist_sidebar .thumb_info .views {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.playlist_sidebar .pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	flex: 0 0 auto;
	margin: 0;
	padding: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist_sidebar .pagination .item {
	display: flex;
	margin: 0;
	min-width: 34px;
	min-height: 34px;
}

.playlist_sidebar .pagination a,
.playlist_sidebar .pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 34px;
	margin: 0;
	padding: 7px 10px;
	color: #dce5ee;
	background: #3b444b;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.playlist_sidebar .pagination .active span,
.playlist_sidebar .pagination a:hover {
	color: #fff;
	background: #55d566;
}

.playlist_sidebar .pagination .pager {
	flex: 0 0 34px;
	width: 34px;
}

.playlist_sidebar .pagination .custom-svg {
	width: 14px;
	height: 14px;
	color: currentColor;
}

@media screen and (max-width: 1180px) {
	.playlist_watch_layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}

	.playlist_sidebar .th {
		grid-template-columns: 104px minmax(0, 1fr);
	}

	.playlist_sidebar .img.wrap_image {
		width: 104px;
		height: 59px;
	}
}

@media screen and (max-width: 960px) {
	.playlist_watch_layout {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.playlist_watch_page .playlist_watch_main .player,
	.playlist_watch_page .playlist_watch_main .player-holder,
	.playlist_watch_page .playlist_watch_main .player-wrap {
		border-radius: 0;
	}

	.playlist_sidebar {
		position: relative;
		top: auto;
		width: 100%;
		max-height: none;
	}

	.playlist_sidebar_items.thumbs {
		max-height: 48vh;
	}
}

	@media screen and (max-width: 560px) {
	.playlist_sidebar_head {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		padding: 10px;
	}

	.playlist_control {
		flex: 1 1 0;
		width: 100%;
	}

	.playlist_sidebar_items.thumbs {
		padding: 6px;
		max-height: 420px;
	}

	.playlist_sidebar .th {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 8px;
		min-height: 62px;
		padding: 5px;
	}

	.playlist_sidebar .img.wrap_image {
		width: 96px;
		height: 54px;
	}

	.playlist_sidebar .thumb_title {
		font-size: 12px;
		line-height: 1.35;
	}

	.playlist_sidebar .thumb_info {
		gap: 6px;
		font-size: 10px;
	}
}

/* The header profile dropdown (.dropdown, z-index:98) sits in the root stacking
   context and is covered by page fields that stack higher -- .sort (100),
   .filters_wrap (101) and open select2 fields (.select2-container--open, 99999).
   It is most visible in the narrow/sidebar layout, where the open account menu
   overlaps those fields. Lift the whole profile box (and thus its dropdown) above
   them while it is open. Closed state is unaffected. */
.box_profile.open {
	z-index: 100000;
}

/* Mobile thumbnails support a press-and-hold video preview (see initKVSPlayTrailer).
   Suppress the iOS long-press "callout" (save image / open link) menu so the hold
   plays the preview instead. -webkit-touch-callout is inert on desktop; the Android
   long-press menu is handled by a contextmenu handler in custom.js. A quick tap is
   unaffected, so single-tap still opens the video. */
.thumbs .item.thumb .th {
	-webkit-touch-callout: none;
}


/* ===== Native ad spots ===== */
/* In-feed native ad takes the full row inside the album grid. */
.thumbs .item.thumb.adv-in-feed { width: 100%; box-sizing: border-box; padding: 4px 6px; }
.thumbs .item.thumb.adv-in-feed:empty { display: none; }
/* Shared backdrop so each ad slot reads as an intentional panel instead of popping in.
   Reserves vertical space (min-height) to cut layout shift while the creative loads. */
.adv-in-feed .adv-spot,
.adv-album-inner .adv-spot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 8px;
}
.adv-in-feed .adv-spot::before,
.adv-album-inner .adv-spot::before {
	content: "Advertisement";
	display: block;
	margin-bottom: 8px;
	font: 600 10px/1 sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
}
.adv-in-feed .adv-spot,
.adv-album-inner .adv-spot { margin-bottom: 20px; }
/* Keep empty slots fully collapsed (the generated label doesn't affect :empty matching). */
.adv-in-feed .adv-spot:empty,
.adv-album-inner .adv-spot:empty { display: none; }
/* Inner-album native ad (between album header and previews). */
.adv-album-inner { margin: 14px 0; text-align: center; }
.adv-album-inner:empty { display: none; }

/* Native ad styled as an album card (4th slot). Unlike the full-row .adv-in-feed
   ad, this one mimics a real album thumbnail: the creative (an iframe) fills the
   portrait 3/4 cover edge-to-edge, with a title row below so its height matches
   the neighbouring album cards and the grid row stays aligned. */
.thumbs .item.thumb.adv-card .th { cursor: default; position: relative; }
/* Small "Ad" badge over the top-left of the cover so the slot reads as advertising.
   Lives outside .wrap_image (anchored to .th) so the empty-collapse rule below still
   fires; pointer-events:none keeps clicks falling through to the creative. */
.thumbs .item.thumb.adv-card .adv-card__badge {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 2;
	padding: 2px 7px;
	font: 700 10px/1.4 sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 0, 0, 0.65);
	border-radius: 4px;
	pointer-events: none;
}
/* Strip the panel chrome the shared .adv-spot rule adds (padding, border, backdrop,
   min-height and the "Advertisement" label) so the cover reads as a clean thumbnail. */
.thumbs .item.thumb.adv-card .wrap_image .adv-spot {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}
.thumbs .item.thumb.adv-card .wrap_image .adv-spot::before { content: none; }
/* The iframe (or ins/script-injected node) the creative drops in fills the cover. */
.thumbs .item.thumb.adv-card .wrap_image iframe,
.thumbs .item.thumb.adv-card .wrap_image ins,
.thumbs .item.thumb.adv-card .wrap_image .adv-spot > * {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
}
/* When the spot has no active creative the insert resolves to nothing, leaving
   .wrap_image empty — collapse the whole card so no blank cell appears. */
.thumbs .item.thumb.adv-card:has(.wrap_image:empty) { display: none; }

/* Album titles: fixed 2-line box (titles often contain a literal "..." so the clamp ellipsis
   isn't a reliable signal). height = 2 x line-height with NO vertical padding, so the box is
   exactly two lines tall and a 3rd line can never bleed through. Full title shows via the
   native tooltip on the link (hover on desktop, long-press on mobile). */
.thumbs .item.thumb .thumb_title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 10px;
  padding: 0 8px;                   /* no vertical padding: box stays exactly 2 lines tall */
  background: transparent;          /* transparent backdrop — sits inside the card frame */
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  height: 2.6em;                    /* exactly 2 lines (2 x 1.3) — can never spill to a 3rd */
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* Card frame wraps the cover AND the title together. */
.thumbs .item.thumb .th {
  display: block;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(8, 12, 19, 0.45);
  overflow: hidden;
}

/* ===== Albums-only overrides (added by conversion) ===== */
/* Album card meta row: polished single line — left-aligned stats with dot
   separators (not edge-to-edge), aligned under the 2-line title (padding 0 8px). */
.thumb_info.thumb_info--album {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0 8px 10px;
  margin-top: 2px;
  font-size: 12px;
  color: #8b9ba9;
}
.thumb_info.thumb_info--album .added,
.thumb_info.thumb_info--album .rating,
.thumb_info.thumb_info--album .views {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
/* dot separator before every stat after the first */
.thumb_info.thumb_info--album .rating::before,
.thumb_info.thumb_info--album .views::before {
  content: "\00b7";
  margin-right: 8px;
  color: #5a6b78;
  font-weight: 700;
}
/* slightly bolder, consistently sized icons */
.thumb_info.thumb_info--album svg.custom-svg {
  width: 13px;
  height: 13px;
  margin-right: 4px;
  opacity: .95;
}

/* 5-column album grid */
.thumbs .item.thumb { width: 20%; }
@media (max-width: 1280px){ .thumbs .item.thumb { width: 25%; } }
@media (max-width: 1024px){ .thumbs .item.thumb { width: 33.333%; } }
@media (max-width: 680px){  .thumbs .item.thumb { width: 50%; } }
@media (max-width: 440px){  .thumbs .item.thumb { width: 100%; } }
/* Album covers: portrait 224.17 x 317.89 card. Fills the column up to 224.17px wide
   (so wide index columns stay capped/centered as before, while the narrower columns in
   the member-profile two-column layout scale the cover DOWN instead of overflowing). */
.thumbs .item.thumb .wrap_image {
  padding-bottom: 0 !important;
  width: 100%;
  max-width: none;               /* fill the column so the title below lines up with the cover */
  height: auto;
  aspect-ratio: 3 / 4 !important; /* portrait comic cover (matches the 240x320 source) */
  margin: 0;
  overflow: hidden;
  border-radius: 8px 8px 0 0;     /* card (.th) frames the outside; cover meets the title below */
  background-color: #212121;
}
.thumbs .item.thumb .wrap_image::after { display: none; }
.thumbs .item.thumb .wrap_image img {
  position: static; width: 100%; height: 100%; max-width: none; max-height: none;
  -webkit-transform: none; transform: none; display: block; margin: 0;
  -o-object-fit: cover; object-fit: cover !important;
}
/* Match the clean comic-card look: no video play-triangle, no duration-style pill. */
.thumbs .item.thumb .wrap_image .icon-play-button { display: none !important; }
.thumbs .item.thumb .wrap_image .time { display: none !important; }
/* Title sits below the cover, left-aligned (full card width). */

/* Breathing room between the Filters & Sorting panel and the album grid below it */
.filters-panel--below { margin-bottom: 24px; }


/* ============================================================
   ALBUM DETAIL — gallery layout (cover + meta panel + page grid)
   ============================================================ */

/* --- info card: cover left, metadata right --- */
.album-hero {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin: 0 0 18px;
  padding: 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.album-hero__cover {
  flex: 0 0 auto;
  width: 260px;
  max-width: 40%;
}
.album-hero__cover .wrap_image {
  width: 100%;
  aspect-ratio: 224.17 / 317.89;
  border-radius: 8px;
  overflow: hidden;
  background-color: #212121;
}
.album-hero__cover .wrap_image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.album-hero__meta {
  flex: 1 1 auto;
  min-width: 0;
}
.album-hero__title {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}
.album-hero__id {
  margin: 0 0 16px;
  color: #8b9ba9;
  font-weight: 700;
  font-size: 14px;
}

/* --- metadata rows (label + wrapped chips) --- */
.album-meta-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
}
.album-meta-row__label {
  flex: 0 0 auto;
  min-width: 92px;
  padding-top: 5px;
  color: #8b9ba9;
  font-weight: 700;
  font-size: 13px;
}
.album-meta-row__values {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.album-hero__meta .tag_item {
  margin: 0 6px 6px 0;
  background: #424c55;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6edf3;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.album-hero__meta .tag_item:hover {
  background: #55d566;
  border-color: #55d566;
  color: #fff;
}
.album-hero__meta .meta_count {
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #b9c6d2;
  font-size: 11px;
  font-weight: 700;
}
.album-hero__meta .tag_item:hover .meta_count { color: #fff; }
.album-hero__meta .meta_plain { color: #d6dee6; }
.album-hero__meta .meta_plain .icon-eye { color: #8b9ba9; margin-right: 3px; }

/* --- tags "load more" --- */
.album-meta-row__values .tag_vote_chip--overflow { display: none; }
.album-meta-row__values .tag_item_load_more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px 5px 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #424c55;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.album-meta-row__values .tag_item_load_more:hover {
  background: #55d566;
  border-color: #55d566;
  color: #fff;
}
.album-meta-row__values .tag_item_load_more__count { color: #b9c6d2; font-weight: 700; }
.album-meta-row__values .tag_item_load_more:hover .tag_item_load_more__count { color: #fff; }

/* --- "suggest tags/categories/artists" panel (album view) --- */
.album-suggest-row .album-meta-row__label { min-height: 0; }
.album-suggest-toggle { text-decoration: none; }
.album-suggest-panel {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  box-sizing: border-box;
  background: rgba(41, 47, 52, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.album-suggest-panel .row-form { margin: 0 0 12px; }
.album-suggest-panel .title-item.label {
  margin: 0 0 6px;
  color: #8b9ba9;
  font-weight: 700;
  font-size: 13px;
}
.album-suggest-panel .submit-holder { margin-top: 12px; }
.album-suggest-panel .btn_action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #424c55;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.album-suggest-panel .btn_action:hover { background: #55d566; border-color: #55d566; }
.album-suggest-panel .form-error-ajax { margin: 0 0 8px; color: #e98b8b; font-weight: 600; }
.album-suggest-panel .block-success { margin: 0 0 8px; color: #7fdf95; font-weight: 600; }

/* --- actions: rating / favourite / download --- */
.album-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.album-hero__actions .action_rating,
.album-hero__actions .btn-favourites,
.album-hero__actions .album-download { margin: 0; }
.album-download { display: flex; flex-wrap: wrap; gap: 8px; }
.album-hero__actions .album-download .tag_item_download { margin: 0; }

/* --- page-thumbnail grid: 8 columns, first 16 (2 rows) then Load more --- */
.album-pages .album-holder .images {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  align-items: start;
}
/* override stock theme rule that hides all but the first 3 thumbs */
.album-pages .album-holder .images a,
.album-pages .album-holder .images a:first-child,
.album-pages .album-holder .images a:nth-child(2),
.album-pages .album-holder .images a:nth-child(3) {
  display: block;
}
.album-pages .album-holder .images .item {
  width: 100%;
  margin: 0;
}
.album-pages .album-holder .images .item.album-page--overflow { display: none; }
.album-pages .album-holder .images .item .thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4; /* uniform 240x320 portrait cards */
  object-fit: cover;
  padding: 0;
  border-radius: 6px;
  background-color: #212121;
}

.album-load-more-holder { margin-top: 14px; text-align: center; }
.album-load-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #424c55;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.album-load-more:hover { background: #55d566; border-color: #55d566; }
.album-load-more__count { color: #b9c6d2; font-weight: 700; }
.album-load-more:hover .album-load-more__count { color: #fff; }

@media (max-width: 1280px) { .album-pages .album-holder .images { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1024px) { .album-pages .album-holder .images { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 760px) {
  .album-hero { flex-direction: column; align-items: center; text-align: center; }
  .album-hero__cover { width: 220px; max-width: 70%; }
  .album-hero__meta { width: 100%; }
  .album-meta-row { flex-direction: column; align-items: stretch; gap: 4px; }
  /* In the stacked layout the label sits ABOVE its values, so drop the side-by-side
     min-width and the inherited center-align that was offsetting it from the chips. */
  .album-meta-row__label { min-width: 0; padding-top: 0; text-align: left; }
  .album-meta-row__values { justify-content: flex-start; }
  .album-hero__actions { justify-content: center; }
  .album-pages .album-holder .images { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) { .album-pages .album-holder .images { grid-template-columns: repeat(3, 1fr); } }

/* --- comments: styled card matching the gallery design --- */
.content_general .comments-block {
  margin-top: 18px;
  padding: 18px 20px 22px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.content_general .comments-block .block-comments > form > .field-label {
  display: block;
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}
.content_general .comments-block .block-comments > form > .hint { color: #8b9ba9; font-size: 13px; }
.content_general .comments-block .toggle-button {
  float: right;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #55d566;
  color: #fff;
  font-weight: 700;
}
.content_general .comments-block .toggle-button:hover { background: #b94f4d; }
.content_general .comments-block .block-new-comment {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.content_general .comments-block .textarea,
.content_general .comments-block .textfield {
  background: #222a30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e6edf3;
  padding: 10px 12px;
}
.content_general .comments-block .textarea { width: 100%; }
.content_general .comments-block .textfield { min-width: 240px; }
.content_general .comments-block .textfield::placeholder { color: #8b9ba9; }
.content_general .comments-block .submit {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #ce5f5d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.content_general .comments-block .submit:hover { background: #b94f4d; border-color: #b94f4d; }
.content_general .comments-block .list-comments { margin-top: 16px; }
/* Neutralize the base video-theme card (.list-comments .row{background;margin-right:auto!important}) that bled into album comments. */
.content_general .comments-block .list-comments .item.row {
  background: transparent !important;
  margin: 0 !important;
  border-radius: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.content_general .comments-block .list-comments .item.row:first-of-type { margin-top: 0 !important; }
/* Form rows + submit area spacing (was unstyled, pushing controls out of alignment). */
.content_general .comments-block .block-new-comment .row { margin-bottom: 12px; }
.content_general .comments-block .block-new-comment .row .field-label { display: block; margin: 0 0 4px; color: #c4d0da; font-size: 13px; }
.content_general .comments-block .block-new-comment .bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.content_general .comments-block form::after { content: ""; display: block; clear: both; }
.content_general .comments-block .notice { padding: 14px 0; color: #8b9ba9; }
.content_general .comments-block .comment-inner { display: flex; align-items: flex-start; gap: 12px; }
.content_general .comments-block .user-logo .wrap_image {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #424c55;
}
.content_general .comments-block .user-logo .wrap_image img { width: 100%; height: 100%; object-fit: cover; }
.content_general .comments-block .comment-info { flex: 1 1 auto; min-width: 0; }
.content_general .comments-block .comment-info .inner a { color: #fff; font-weight: 700; }
.content_general .comments-block .comment-info .date { color: #8b9ba9; font-size: 12px; margin-top: 2px; }
.content_general .comments-block .coment-text { margin-top: 6px; color: #d6dee6; line-height: 1.5; }
.content_general .comments-block .item.dim-comment { opacity: 0.55; }

/* ============================ Album image viewer ============================ */
html.av-noscroll, html.av-noscroll body { overflow: hidden; }
.album-viewer { display: none; }
.album-viewer.av-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #0c0f12;
}
.album-viewer.av-bg-dark  { background: #0c0f12; }
.album-viewer.av-bg-grey  { background: #6c757d; }
.album-viewer.av-bg-light { background: #f3f4f6; }

.album-viewer__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  flex: 0 0 auto;
}
.album-viewer.av-bg-light .album-viewer__bar { background: rgba(0, 0, 0, 0.78); }
.album-viewer__title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.album-viewer__counter { color: #b9c6d2; font-size: 14px; }
.album-viewer__tools { margin-left: auto; display: flex; gap: 6px; }
.album-viewer .av-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.album-viewer .av-btn:hover { background: #55d566; border-color: #55d566; }
.album-viewer .av-btn--close:hover { background: #ce5f5d; border-color: #ce5f5d; }

.album-viewer__adv { flex: 0 0 auto; min-height: 0; text-align: center; }
.album-viewer__adv:empty { display: none; }
.album-viewer__adv--top { padding: 6px 0 2px; }
.album-viewer__adv--bottom { padding: 2px 0 6px; }

.album-viewer__stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
.album-viewer__canvas {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}
.album-viewer__canvas.av-zoomed { cursor: grab; }
.album-viewer__canvas.av-dragging { cursor: grabbing; }
.album-viewer__img {
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}
.album-viewer__canvas.av-fit-fit .album-viewer__img      { max-width: 100%; max-height: 88vh; width: auto; height: auto; }
.album-viewer__canvas.av-fit-width .album-viewer__img    { width: 100%; max-width: 1400px; height: auto; max-height: none; }
.album-viewer__canvas.av-fit-original .album-viewer__img { width: auto; height: auto; max-width: none; max-height: none; }
.album-viewer__canvas.av-fit-width,
.album-viewer__canvas.av-fit-original {
  width: 100%;
  height: 100%;
  overflow: auto;
  align-items: flex-start;
  justify-content: center;
}

.album-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 72px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  border-radius: 8px;
}
.album-viewer__nav:hover { background: rgba(0, 0, 0, 0.7); }
.album-viewer__nav--prev { left: 10px; }
.album-viewer__nav--next { right: 10px; }

.album-viewer__bar--bottom { justify-content: center; gap: 22px; font-size: 13px; color: #c4d0da; }
.album-viewer__jump input {
  width: 64px;
  margin-left: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.album-viewer__toggle { cursor: pointer; }

.album-viewer__spinner {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #55d566;
  border-radius: 50%;
  display: none;
  animation: av-spin 0.8s linear infinite;
}
.album-viewer.av-loading .album-viewer__spinner { display: block; }
@keyframes av-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .album-viewer__title { display: none; }
  .album-viewer .av-btn { min-width: 34px; padding: 0 7px; font-size: 14px; }
  .album-viewer__nav { width: 40px; height: 60px; font-size: 20px; }
}
