/* ===== Shorts page shell ===== */
.pt_footer {
	display: none;
}

body {
	background: #0b0b0f;
	overflow: hidden;
}

.container {
	width: 100%;
	padding: 0;
}

.roww,
.col-md-6w {
	height: 100vh;
	height: 100dvh;
}

.swiper {
	height: 100vh;
	height: 100dvh;
}

.swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #0b0b0f;
	position: relative;
}

/* ===== Background blur layer ===== */
.vid_bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.vid_bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(28px);
	transform: scale(1.08);
	opacity: 0.28;
}

.vid_bg > div {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.18) 40%, rgba(0,0,0,.72)),
		radial-gradient(circle at center, rgba(255,255,255,.04), transparent 55%);
}

/* ===== Main video card ===== */
.videocontainer {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 520px;
	height: 100vh;
	height: 100dvh;
	margin: 0 auto;
	background: #000;
	overflow: hidden;
}

.video-staand {
	position: relative;
	width: 100%;
	height: 100%;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-staand video,
.video-staand .mejs__container,
.video-staand .mejs__mediaelement,
.video-staand .mejs__layers,
.video-staand .mejs__overlay,
.video-staand .mejs__poster,
.video-staand .mejs__container .mejs__inner {
	width: 100% !important;
	height: 100% !important;
	background: #000 !important;
}

.video-staand video {
	object-fit: cover;
}

/* ===== MediaElement cleanup ===== */
.video-staand .mejs__controls {
	background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0)) !important;
	padding-bottom: 8px;
}

.video-staand .mejs__button > button {
	filter: brightness(1.1);
}

.video-staand .mejs__time {
	color: #fff !important;
}

/* ===== Progress bar ===== */
.shorts-progress-wrap {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 94px;
	z-index: 12;
}

.shorts-progress {
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	border-radius: 999px;
	background: rgba(255,255,255,0.22);
	outline: none;
	cursor: pointer;
	transition: opacity .2s ease;
}

.shorts-progress:hover {
	opacity: 1;
}

.shorts-progress::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	box-shadow: 0 0 0 3px rgba(255,255,255,.12);
	cursor: pointer;
}

.shorts-progress::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	box-shadow: 0 0 0 3px rgba(255,255,255,.12);
	cursor: pointer;
}

.shorts-progress::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: rgba(255,255,255,0.22);
}

/* ===== Right side actions ===== */
.shorts_events {
	position: absolute;
	inset: 0;
	z-index: 10;
	pointer-events: none;
}

.shorts_events > p {
	display: none;
}

.shorts_events > div {
	position: absolute;
	right: 12px;
	bottom: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	pointer-events: auto;
}

.shorts_events > div > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	color: #fff;
	text-align: center;
}

.shorts_events .pointer,
.shorts_events .like-btn-{{ID}},
.shorts_events .dislike-btn-{{ID}} {
	cursor: pointer;
}

.shorts_events svg {
	width: 27px;
	height: 27px;
	filter: drop-shadow(0 3px 10px rgba(0,0,0,.35));
}

.shorts_events p {
	margin: 5px 0 0;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* ===== User avatar in actions rail ===== */
.user_avatar {
	margin-bottom: 4px;
}

.user_avatar a {
	display: block;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255,255,255,.12);
	border: 2px solid rgba(255,255,255,.22);
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.user_avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ===== Bottom-left meta area created with existing structure ===== */
/* We use the slide title from page title, but can reserve space visually */
.videocontainer::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 180px;
	background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
	z-index: 3;
	pointer-events: none;
}

/* ===== Fullscreen button ===== */
.shorts-fullscreen-btn {
	width: 44px;
	height: 44px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.shorts-fullscreen-btn:hover {
	background: rgba(255,255,255,.14);
}

.shorts-fullscreen-btn svg {
	display: block;
}

/* ===== Active states ===== */
.like-btn-{{ID}}.active svg,
.dislike-btn-{{ID}}.active svg {
	transform: scale(1.04);
}

.like-btn-{{ID}}.active svg path {
	fill: #ff4d6d;
}

.dislike-btn-{{ID}}.active svg path {
	fill: #8ab4ff;
}

/* ===== Title row at top ===== */
.pt_shorts_page_title {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 30;
	width: min(520px, calc(100% - 24px));
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2px;
	pointer-events: none;
}

.pt_shorts_page_title > span,
.pt_shorts_page_title > a {
	pointer-events: auto;
}

.pt_shorts_page_title > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.pt_shorts_page_title > span svg {
	width: 20px;
	height: 20px;
}

.pt_shorts_page_title .btn.btn-main {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 8px 14px;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.12);
	box-shadow: 0 8px 30px rgba(0,0,0,.15);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

/* ===== Comments modal polish ===== */
#shorts_comments_modal .modal-dialog {
	width: min(680px, calc(100% - 20px));
	margin: 24px auto;
}

#shorts_comments_modal .modal-content {
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.08);
	box-shadow: 0 25px 80px rgba(0,0,0,.35);
}

#shorts_comments_modal .modal-header,
#shorts_comments_modal .modal-body {
	background: #121317;
	color: #fff;
}

#shorts_comments_modal .modal-header {
	border-bottom: 1px solid rgba(255,255,255,.08);
}

#shorts_comments_modal .close {
	opacity: 1;
	color: #fff;
}

#shorts_comments_modal textarea.form-control {
	min-height: 46px;
	border-radius: 16px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.08);
	color: #fff;
}

#shorts_comments_modal .btn-main {
	border-radius: 14px;
}

/* ===== Navigation arrows ===== */
.swiper-button-next,
.swiper-button-prev {
	color: rgba(255,255,255,.8);
	transform: scale(.78);
}

.swiper-button-next:after,
.swiper-button-prev:after {
	font-size: 26px;
	font-weight: 700;
}

/* ===== Desktop premium card feel ===== */
@media (min-width: 992px) {
	.videocontainer {
		height: calc(100vh - 30px);
		height: calc(100dvh - 30px);
		margin-top: 15px;
		margin-bottom: 15px;
		border-radius: 24px;
		box-shadow:
			0 25px 90px rgba(0,0,0,.42),
			0 0 0 1px rgba(255,255,255,.05);
	}

	.shorts_events > div {
		right: 16px;
		bottom: 26px;
	}

	.shorts-progress-wrap {
		left: 16px;
		right: 16px;
		bottom: 102px;
	}
}

/* ===== Tablet ===== */
@media (max-width: 991px) {
	.pt_shorts_page_title {
		width: calc(100% - 18px);
		top: 10px;
	}

	.pt_shorts_page_title > span {
		font-size: 16px;
	}

	.shorts_events > div {
		right: 10px;
		bottom: 16px;
		gap: 12px;
	}

	.shorts_events svg {
		width: 25px;
		height: 25px;
	}

	.shorts-progress-wrap {
		left: 12px;
		right: 12px;
		bottom: 88px;
	}
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
	.videocontainer {
		max-width: 100%;
		border-radius: 0;
		box-shadow: none;
	}

	.pt_shorts_page_title .btn.btn-main {
		padding: 7px 12px;
		font-size: 13px;
	}

	.user_avatar a {
		width: 38px;
		height: 38px;
	}

	.shorts_events p {
		font-size: 11px;
	}
}

/* ===== Fullscreen state ===== */
body.is-fullscreen .videocontainer {
	max-width: 100% !important;
	width: 100% !important;
	height: 100vh !important;
	height: 100dvh !important;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}