/* Utility */
.hidden {
	display: none !important;
}

.video-page {
	display: flex;
	gap: 24px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

.video-page__main {
	flex: 1;
	min-width: 0;
	max-width: 900px;
}

.video-page__sidebar {
	width: 340px;
	flex-shrink: 0;
}

.video-player {
	position: relative;
	width: 100%;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.video-player__wrapper {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
}

.video-player__wrapper > .player-wrap,
.video-player__wrapper > .video-player__overlay,
.video-player__wrapper > .video-player__overlay-preview,
.video-player__wrapper > .embed-wrap {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

.player-wrap .video-js {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	display: block !important;
}

.player-wrap .video-js video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block !important;
}

.player-wrap .vjs-poster {
	background-size: cover;
}

.player-wrap .vjs-tech {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Video.js color customization */
.video-js .vjs-big-play-button {
	background-color: rgba(227, 68, 73, 0.9);
	border: none;
	border-radius: 50%;
	width: 70px;
	height: 70px;
	line-height: 70px;
	margin-top: -35px;
	margin-left: -35px;
}

.video-js .vjs-big-play-button:hover,
.video-js .vjs-big-play-button:focus,
.video-js .vjs-big-play-button:active {
	background-color: #c73a3f;
}

.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
	background-color: #e34449;
}

.video-js .vjs-control-bar {
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.video-js .vjs-time-tooltip {
	background-color: #e34449;
}

.video-js .vjs-play-progress:before {
	color: #e34449;
}

.video-js .vjs-control:focus:before,
.video-js .vjs-control:hover:before {
	color: #e34449;
	text-shadow: none;
}

.video-js .vjs-menu li.vjs-selected,
.video-js .vjs-menu li.vjs-selected:focus,
.video-js .vjs-menu li.vjs-selected:hover {
	background-color: #e34449;
	color: #fff;
}

.video-js .vjs-menu li:focus,
.video-js .vjs-menu li:hover {
	background-color: rgba(227, 68, 73, 0.2);
}

.video-js .vjs-loading-spinner {
	border-color: rgba(227, 68, 73, 0.8);
}

.video-player__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(20px);
	z-index: 10;
}

.video-player__overlay-preview {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.3;
}

.video-player__overlay-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 32px;
	max-width: 360px;
}

.video-player__overlay-icon {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e34449 0%, #c73a3f 100%);
	border-radius: 50%;
	margin-bottom: 20px;
}

.video-player__overlay-icon svg {
	width: 28px;
	height: 28px;
	fill: #ffffff;
}

.video-player__overlay-title {
	font-size: 20px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 12px 0;
}

.video-player__overlay-features {
	list-style: none;
	padding: 0;
	margin: 0 0 24px 0;
}

.video-player__overlay-features li {
	font-size: 14px;
	color: #a0a0a0;
	padding: 6px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.video-player__overlay-features li::before {
	content: "✓";
	color: #4ade80;
	font-weight: 600;
}

.video-player__overlay-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	padding: 0 32px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #e34449 0%, #c73a3f 100%);
	border: none;
	border-radius: 24px;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.video-player__overlay-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(227, 68, 73, 0.4);
}

.video-player__overlay-login {
	margin-top: 16px;
	font-size: 14px;
	color: #808080;
}

.video-player__overlay-login a {
	color: #e34449;
	text-decoration: none;
}

.video-player__overlay-login a:hover {
	text-decoration: underline;
}

/* Bottom bar overlay (simple version) */
.video-player__preview {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-player__bottom-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
	z-index: 10;
}

.video-player__bottom-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background: #e34449;
	border-radius: 24px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.video-player__bottom-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.video-player__bottom-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 20px rgba(227, 68, 73, 0.5);
}

.video-info {
	padding: 20px 0;
}

.video-info__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #2a2a2a;
}

.video-info__title {
	font-size: 20px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.video-info__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #808080;
}

.video-info__meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.video-info__meta span::before {
	content: "•";
	margin-right: 4px;
}

.video-info__meta span:first-child::before {
	display: none;
}

.video-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.video-actions .btn-favourites {
	display: contents;
	list-style: none;
	margin: 0;
	padding: 0;
}

.video-actions .btn-favourites li {
	display: contents;
}

.video-action {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	background: #2a2a2a;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.video-action:hover {
	background: #3a3a3a;
}

.video-action svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.video-action--like.voted {
	background: #e34449;
	color: #fff;
}

.video-action--like.voted svg {
	fill: #fff;
}

.video-action--like.voted:hover {
	background: #c73a3f;
}

.video-action--like.vote-animate {
	animation: like-pulse 0.3s ease;
}

@keyframes like-pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.15); }
	100% { transform: scale(1); }
}

.video-action--save.is-active {
	color: #e34449;
}

.video-action--save.is-active svg {
	fill: #e34449;
}

.video-action--icon {
	padding: 10px;
}

.video-action--icon span {
	display: none;
}

.video-details {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px 0;
	border-bottom: 1px solid #2a2a2a;
}

.video-detail-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	color: #ffffff;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 8px;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.video-detail-link:hover {
	border-color: #e34449;
	background: rgba(227, 68, 73, 0.1);
}

.video-detail-link svg {
	width: 16px;
	height: 16px;
	fill: #808080;
}

.video-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.video-tag {
	padding: 6px 12px;
	font-size: 12px;
	color: #a0a0a0;
	background: transparent;
	border: 1px solid #2a2a2a;
	border-radius: 16px;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.video-tag:hover {
	color: #e34449;
	border-color: #e34449;
}

.video-description {
	padding: 16px 0;
	border-bottom: 1px solid #2a2a2a;
}

.video-description__text {
	font-size: 14px;
	line-height: 1.6;
	color: #a0a0a0;
	margin: 0;
}

.video-screenshots {
	padding: 16px 0;
	border-bottom: 1px solid #2a2a2a;
}

.video-screenshots__title {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 12px 0;
}

.video-screenshots__grid {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 8px;
	scrollbar-width: thin;
	scrollbar-color: #2a2a2a transparent;
}

.video-screenshots__grid::-webkit-scrollbar {
	height: 6px;
}

.video-screenshots__grid::-webkit-scrollbar-track {
	background: transparent;
}

.video-screenshots__grid::-webkit-scrollbar-thumb {
	background: #2a2a2a;
	border-radius: 3px;
}

.video-screenshot {
	flex-shrink: 0;
	width: 160px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.video-screenshot:hover {
	transform: scale(1.05);
}

.video-screenshot img {
	width: 100%;
	height: auto;
	display: block;
}

.video-comments {
	padding: 20px 0;
}

.video-comments__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.video-comments__title {
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	margin: 0;
}

.video-comments__count {
	font-size: 14px;
	color: #808080;
}

.video-comments__form {
	margin-bottom: 24px;
}

.video-comments__input-wrapper {
	position: relative;
}

.video-comments__input {
	width: 100%;
	padding: 14px 16px;
	padding-right: 100px;
	font-size: 14px;
	color: #ffffff;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 12px;
	resize: none;
	transition: border-color 0.15s ease;
}

.video-comments__input:focus {
	outline: none;
	border-color: #e34449;
}

.video-comments__input::placeholder {
	color: #606060;
}

.video-comments__submit {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	background: #e34449;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.video-comments__submit:hover {
	background: #c73a3f;
}

.video-comments__premium-notice {
	padding: 16px;
	text-align: center;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 12px;
	margin-bottom: 24px;
}

.video-comments__premium-notice p {
	font-size: 14px;
	color: #808080;
	margin: 0 0 12px 0;
}

.video-comments__premium-notice a {
	color: #e34449;
	text-decoration: none;
	font-weight: 500;
}

.video-comments__premium-notice a:hover {
	text-decoration: underline;
}

.video-comments__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.video-comment {
	display: flex;
	gap: 12px;
}

.video-comment__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #2a2a2a;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.video-comment__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-comment__avatar svg {
	width: 20px;
	height: 20px;
	fill: #606060;
}

.video-comment__content {
	flex: 1;
	min-width: 0;
}

.video-comment__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.video-comment__author {
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
}

.video-comment__author:hover {
	color: #e34449;
}

.video-comment__date {
	font-size: 12px;
	color: #606060;
}

.video-comment__text {
	font-size: 14px;
	line-height: 1.5;
	color: #a0a0a0;
	margin: 0;
	word-wrap: break-word;
}

.video-comments__empty {
	text-align: center;
	padding: 32px;
	color: #606060;
	font-size: 14px;
}

.sidebar-related {
}

.sidebar-related__title {
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 16px 0;
}

.sidebar-related__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sidebar-video {
	display: flex;
	gap: 12px;
	text-decoration: none;
	padding: 8px;
	margin: -8px;
	border-radius: 8px;
	transition: background-color 0.15s ease;
}

.sidebar-video:hover {
	background: rgba(255, 255, 255, 0.05);
}

.sidebar-video__thumb {
	position: relative;
	width: 140px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
}

.sidebar-video__thumb img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
}

.sidebar-video__duration {
	position: absolute;
	bottom: 4px;
	right: 4px;
	padding: 2px 6px;
	font-size: 11px;
	font-weight: 600;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 4px;
}

.sidebar-video__info {
	flex: 1;
	min-width: 0;
}

.sidebar-video__title {
	font-size: 13px;
	font-weight: 500;
	color: #ffffff;
	margin: 0 0 6px 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sidebar-video__meta {
	font-size: 12px;
	color: #808080;
}

@media (max-width: 1024px) {
	.video-page {
		flex-direction: column;
	}

	.video-page__main {
		max-width: none;
	}

	.video-page__sidebar {
		width: 100%;
	}

	.sidebar-related__list {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 8px;
	}

	.sidebar-video {
		flex-direction: column;
		width: 200px;
		flex-shrink: 0;
	}

	.sidebar-video__thumb {
		width: 100%;
	}
}

.video-report {
	padding: 16px 0;
	border-bottom: 1px solid #2a2a2a;
}

.video-report__wrapper {
	padding: 16px;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 12px;
}

.video-report__title {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 12px 0;
}

.video-report__options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.video-report__option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #a0a0a0;
	cursor: pointer;
}

.video-report__option input[type="radio"] {
	accent-color: #e34449;
}

.video-report__option:hover {
	color: #ffffff;
}

@media (max-width: 640px) {
	.video-page {
		padding: 0 16px;
	}

	.video-info__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.video-actions {
		width: 100%;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 8px;
	}

	.video-action span {
		display: none;
	}

	.video-action {
		padding: 10px;
	}

	.video-action--like span {
		display: inline;
	}

	.video-info__title {
		font-size: 18px;
	}

	.video-details {
		gap: 8px;
	}

	.video-detail-link {
		padding: 6px 10px;
		font-size: 12px;
	}

	.sidebar-video {
		width: 160px;
	}

	.video-player__bottom-btn {
		padding: 10px 20px;
		font-size: 13px;
	}
}
