.page-shorts {
	overflow: hidden;
	background: #000;
}

.page-shorts .top-links,
.page-shorts .container > .header,
.page-shorts .container > nav,
.page-shorts .footer-margin,
.page-shorts .footer {
	display: none !important;
}

.page-shorts .container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.page-shorts .shorts-page {
	position: fixed;
	inset: 0;
	height: 100vh;
	height: 100dvh;
	--shorts-bg: #000;
	--shorts-text: #f7f8fa;
	--shorts-glass: rgba(12, 12, 14, 0.62);
	--shorts-glass-strong: rgba(7, 7, 9, 0.82);
	--shorts-border: rgba(255, 255, 255, 0.22);
	--shorts-chip-bg: rgba(255, 255, 255, 0.16);
	--shorts-chip-bg-hover: rgba(255, 255, 255, 0.24);
	--shorts-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior-y: contain;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	background: var(--shorts-bg);
	z-index: 999;
	-webkit-overflow-scrolling: touch;
}

.page-shorts .shorts-page::-webkit-scrollbar {
	display: none;
}

.page-shorts .shorts-feed,
.page-shorts .shorts-cards {
	margin: 0;
	padding: 0;
}

.page-shorts .shorts-card {
	position: relative;
	height: 100vh;
	height: 100dvh;
	min-height: 100svh;
	scroll-snap-align: start;
	overflow: hidden;
	background: var(--shorts-bg);
}

.page-shorts .shorts-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 50% 105%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 48%),
		linear-gradient(to bottom, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.02) 26%, rgba(0, 0, 0, 0.44) 100%);
	z-index: 10;
}

.page-shorts .shorts-player-slot,
.page-shorts .shorts-player-block,
.page-shorts .shorts-player-block .player-wrap,
.page-shorts .shorts-player-block .no-player,
.page-shorts .shorts-player-block .embed-wrap {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	padding-bottom: 0 !important;
}

.page-shorts .shorts-player-block .player-wrap {
	padding-bottom: 0 !important;
}

.page-shorts .shorts-prewarm-slot {
	position: absolute;
	width: 1px;
	height: 1px;
	left: -200vw;
	top: -200vh;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}

.page-shorts .shorts-player-block .player-wrap > [id^="kt_player"],
.page-shorts .shorts-player-block .embed-wrap iframe,
.page-shorts .shorts-player-block .no-player img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.page-shorts .shorts-player-block .player-wrap .kt-player,
.page-shorts .shorts-player-block .player-wrap video,
.page-shorts .shorts-player-block .player-wrap object,
.page-shorts .shorts-player-block .player-wrap iframe {
	width: 100% !important;
	height: 100% !important;
}

.page-shorts .shorts-player-block .player-wrap .kt-player .fp-engine,
.page-shorts .shorts-player-block .player-wrap .kt-player video.fp-engine,
.page-shorts .shorts-player-block .player-wrap .fp-engine,
.page-shorts .shorts-player-block .player-wrap .vjs-tech {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.page-shorts .shorts-player-block .player-wrap .kt-player .fp-ui:before {
	background: none !important;
	background-image: none !important;
	opacity: 0 !important;
}

.page-shorts .shorts-player-block .player-wrap video::-webkit-media-controls-play-button,
.page-shorts .shorts-player-block .player-wrap video::-webkit-media-controls-start-playback-button {
	display: none !important;
	-webkit-appearance: none;
}

.page-shorts .shorts-poster-wrap,
.page-shorts .shorts-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-shorts .shorts-poster-wrap {
	overflow: hidden;
	background: #000;
	transition: opacity 120ms var(--shorts-ease);
}

.page-shorts .shorts-poster {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center center !important;
}

.page-shorts .shorts-player-block .kt-player .fp-poster img,
.page-shorts .shorts-player-block .fp-poster img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center center !important;
}

.page-shorts .shorts-card.is-active[data-player-ready="1"] .shorts-poster-wrap {
	opacity: 0;
	pointer-events: none;
}

.page-shorts .shorts-player-block .fp-controls,
.page-shorts .shorts-player-block .fp-play,
.page-shorts .shorts-player-block .fp-stop,
.page-shorts .shorts-player-block .fp-screen,
.page-shorts .shorts-player-block .fp-volume,
.page-shorts .shorts-player-block .fp-waiting,
.page-shorts .shorts-player-block .fp-time-elapsed,
.page-shorts .shorts-player-block .fp-time-duration,
.page-shorts .shorts-player-block .fp-timeline,
.page-shorts .shorts-player-block .fp-settings,
.page-shorts .shorts-player-block .fp-speed,
.page-shorts .shorts-player-block .fp-menu,
.page-shorts .shorts-player-block .fp-message,
.page-shorts .shorts-player-block .fp-ui-inline,
.page-shorts .shorts-player-block .fp-ui-block,
.page-shorts .shorts-player-block .fp-time {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
}

.page-shorts .shorts-home-link {
	position: absolute;
	top: calc(env(safe-area-inset-top, 0px) + 14px);
	left: 14px;
	z-index: 24;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 10px;
	min-height: 40px;
	border-radius: 999px;
	border: 1px solid var(--shorts-border);
	background: var(--shorts-glass);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
	text-decoration: none;
	transition: transform 120ms var(--shorts-ease), background 120ms var(--shorts-ease), border-color 120ms var(--shorts-ease);
}

.page-shorts .shorts-home-link:hover,
.page-shorts .shorts-home-link:focus {
	opacity: 0.95;
}

.page-shorts .shorts-home-logo {
	display: block;
	width: auto;
	height: 24px;
	max-width: min(44vw, 172px);
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.68));
	transition: transform 120ms var(--shorts-ease), opacity 120ms var(--shorts-ease);
}

.page-shorts .shorts-volume-toggle {
	position: absolute;
	top: calc(env(safe-area-inset-top, 0px) + 14px);
	right: 14px;
	z-index: 24;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 13px;
	border: 1px solid var(--shorts-border);
	border-radius: 999px;
	background: var(--shorts-glass);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
	color: var(--shorts-text);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 120ms var(--shorts-ease), border-color 120ms var(--shorts-ease), transform 100ms var(--shorts-ease);
}

.page-shorts .shorts-volume-toggle:hover,
.page-shorts .shorts-volume-toggle:focus {
	background: var(--shorts-glass-strong);
	border-color: rgba(255, 255, 255, 0.36);
}

.page-shorts .shorts-volume-toggle.is-muted {
	background: rgba(6, 6, 8, 0.76);
}

.page-shorts .shorts-volume-toggle:active,
.page-shorts .shorts-home-link:active .shorts-home-logo,
.page-shorts .shorts-chip:active {
	transform: scale(0.98);
}

.page-shorts .shorts-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 18;
	padding: 22px 14px calc(env(safe-area-inset-bottom, 0px) + 34px);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0));
	pointer-events: none;
	transform: translateY(12px);
	opacity: 0.94;
	transition: transform 160ms var(--shorts-ease), opacity 160ms var(--shorts-ease);
}

.page-shorts .shorts-title {
	margin: 0 0 10px;
	color: var(--shorts-text);
	font-size: 19px;
	line-height: 1.32;
	font-weight: 700;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
	pointer-events: auto;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.page-shorts .shorts-title-link {
	color: inherit;
	text-decoration: none;
	display: inline;
}

.page-shorts .shorts-title-link:hover,
.page-shorts .shorts-title-link:focus {
	text-decoration: underline;
}

.page-shorts .shorts-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	pointer-events: auto;
	max-width: min(92vw, 640px);
}

.page-shorts .shorts-chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 11px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: var(--shorts-text);
	background: var(--shorts-chip-bg);
	border: 1px solid var(--shorts-border);
	text-shadow: none;
	transition: background 120ms var(--shorts-ease), border-color 120ms var(--shorts-ease), transform 100ms var(--shorts-ease);
}

.page-shorts .shorts-chip:hover,
.page-shorts .shorts-chip:focus {
	background: var(--shorts-chip-bg-hover);
	border-color: rgba(255, 255, 255, 0.34);
}

.page-shorts .shorts-feed-footer {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 56px;
	padding: 8px 12px;
	background: #000;
}

.page-shorts .shorts-feed-status,
.page-shorts .shorts-empty {
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.page-shorts .shorts-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.65);
	text-align: center;
	padding: 18px;
}

.page-shorts .shorts-player-loading {
	position: absolute;
	inset: 0;
	z-index: 19;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	pointer-events: none;
	background: rgba(0, 0, 0, 0.34);
	color: rgba(255, 255, 255, 0.94);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
}

.page-shorts .shorts-player-error {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
	background: rgba(0, 0, 0, 0.55);
	text-align: center;
}

.page-shorts .shorts-card.is-active .shorts-overlay {
	transform: translateY(0);
	opacity: 1;
}

.page-shorts .shorts-card.is-active .shorts-home-link,
.page-shorts .shorts-card.is-active .shorts-volume-toggle {
	opacity: 1;
}

@media (max-height: 720px) {
	.page-shorts .shorts-title {
		font-size: 16px;
		margin-bottom: 8px;
	}

	.page-shorts .shorts-chip {
		font-size: 11px;
		padding: 5px 9px;
	}

	.page-shorts .shorts-overlay {
		padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
	}
}

@media (min-width: 980px) {
	.page-shorts .shorts-card {
		display: flex;
		justify-content: center;
	}

	.page-shorts .shorts-player-slot,
	.page-shorts .shorts-poster-wrap {
		max-width: 560px;
		margin: 0 auto;
	}

	.page-shorts .shorts-overlay {
		max-width: 560px;
		margin: 0 auto;
		left: 0;
		right: 0;
	}

	.page-shorts .shorts-home-link {
		left: calc(50% - 280px + 14px);
	}

	.page-shorts .shorts-volume-toggle {
		right: calc(50% - 280px + 14px);
	}
}
