@media (min-width: 992px) {
	body.single .video-player .responsive-player {
		max-height: 80vh;
		max-width: calc( 80vh * 16 / 9 );
		margin-left: auto;
		margin-right: auto;
	}
}

body.single #video-tabs .tracking-desktop {
	display: inline-block;
	width: auto;
	background: none !important;
	border: none !important;
	border-bottom: 3px solid #555 !important;
	box-shadow: none !important;
	border-radius: 0;
	color: #fff;
	font-size: inherit;
	font-weight: normal;
	line-height: inherit;
	padding: 0 2em 0.75em;
	margin: 0;
	vertical-align: bottom;
}

body.single #video-tabs .tracking-desktop:hover {
	border-bottom-color: #999;
}

body.single .video-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.5em;
}

body.single .video-meta-row #video-views {
	margin: 0;
	padding: 0 0 0.75em;
}

body.single #video-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	width: auto;
	float: none;
}

body.single .tracking-mobile-wrap {
	display: none;
}

@media (min-width: 768px) and (max-width: 991.98px) {
	body.single .title-block h1.entry-title {
		font-size: 1.25em;
		text-align: left;
	}
}

@media only screen and (max-width: 767.98px) {
	body.single .title-block h1.entry-title {
		font-size: 1.05em;
		text-align: left;
	}
}

@media only screen and (max-width: 991.98px) {
	.under-video-block .show-more-related a.button {
		display: table;
		margin: 10px auto;
	}

	body.single #video-tabs .tracking-desktop {
		display: none !important;
	}

	body.single #video-share {
		display: block;
	}

	body.single .tracking-mobile-wrap {
		display: block;
		margin: 0 0 0 auto;
	}

	body.single .tracking-mobile {
		display: inline-block;
		width: auto;
		border-radius: var(--rt-radius-sm, 4px);
		font-size: 1em;
		font-weight: normal;
		padding: 0.4em 0.8em;
		margin: 0;
		text-align: center;
		vertical-align: middle;
	}
}

body.single #video-about {
	float: none;
	width: 100%;
	clear: both;
	padding-bottom: 1.25em;
}

body.single #video-about,
body.single #video-actors,
body.single #video-studios,
body.single #video-tags,
body.single #video-author,
body.single #video-date {
	text-align: left;
}

body.single #video-author,
body.single #video-date,
body.single #video-actors,
body.single #video-studios,
body.single #video-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4em;
	margin: 0 0 0.75em;
	padding: 0;
	min-height: 1.8em;
	line-height: 1.4;
}

body.single #video-about > *:last-child {
	margin-bottom: 0;
}

body.single #video-studios .tags-list,
body.single #video-tags .tags-list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.4em;
}

body.single #video-studios.tags,
body.single #video-tags.tags {
	margin-top: 0;
}

body.single #video-studios .label,
body.single #video-tags .label {
	margin: 0;
}

body.single #video-studios i,
body.single #video-tags i {
	color: #eee;
}

body.single .title-block {
	margin: 1.25em 0;
}

@media only screen and (max-width: 767.98px) {
	body.single .video-meta-row #video-tabs {
		display: none;
	}

	/* Tabs are hidden here: give the row the same bottom gap as the title block's
	   side padding (12px) so the tracking button isn't flush with the bottom edge,
	   and centre the views count against the button. */
	body.single .video-meta-row {
		align-items: center;
		padding-bottom: 12px;
	}

	/* Views text matches the Download/Visit Source button text size (shared value in assets/css/colors.css). */
	body.single .video-meta-row #video-views {
		padding-bottom: 0;
		font-size: var(--rtc-mobile-control-font-size, 12.5px);
	}

	/* Same size as the player's mobile Server button (shared values in assets/css/colors.css). */
	body.single .tracking-mobile {
		display: inline-flex;
		align-items: center;
		gap: var(--rtc-mobile-control-gap, 0.4em);
		box-sizing: border-box;
		height: auto;
		min-height: var(--rtc-mobile-control-height, 34px);
		padding: var(--rtc-mobile-control-padding, 0.4em 0.7em);
		font-size: var(--rtc-mobile-control-font-size, 12.5px);
		font-weight: 500;
		line-height: 1.2;
	}

	body.single .tracking-mobile svg {
		flex: 0 0 auto;
		width: var(--rtc-control-icon-size, 1.15em);
		height: var(--rtc-control-icon-size, 1.15em);
	}
}

/* Tablet (tabs still shown, bottom-aligned with their underline): lift only the
   tracking button so its bottom gap matches the 12px side gap. */
@media only screen and (min-width: 768px) and (max-width: 991.98px) {
	body.single .tracking-mobile-wrap {
		margin-bottom: 12px;
	}
}
