/* =========================
   SHORTS TIME SCROLLBAR
========================= */

.shorts-progress-wrap {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 5px;
	z-index: 12;
}

.shorts-progress {
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	border-radius: 999px;
	background: rgba(255,255,255,.35);
	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;
	cursor: pointer;
}

.shorts-progress::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	cursor: pointer;
}

.shorts-progress::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: rgba(255,255,255,.35);
}


/* =========================
   FULLSCREEN BUTTON
========================= */

.shorts-fullscreen-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 10px 8px;
    color: #fff;
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.shorts-fullscreen-btn svg {
	display: block;
}

.shorts-playlist-btn p {
	max-width: 74px;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.shorts-playlist-context {
	position: absolute;
	top: 16px;
	left: 50%;
	z-index: 30;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: min(70vw, 420px);
	padding: 9px 13px;
	border-radius: 999px;
	transform: translateX(-50%);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.shorts-playlist-context span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}


/* =========================
   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;
}

body.is-fullscreen .video-staand video,
body.is-fullscreen .video-staand .mejs__container video {
	object-fit: contain !important;
	background: #000 !important;
}

/* Newer structure: hide info panel */
body.is-fullscreen .shorts_events .info {
	display: none !important;
}

/* Newer structure: hide every icon item */
body.is-fullscreen .shorts_events .icons > div {
	display: none !important;
}

/* Show only fullscreen button */
body.is-fullscreen .shorts_events .icons > .shorts-fullscreen-btn {
	display: block !important;
}

/* Keep icons rail visible for fullscreen button */
body.is-fullscreen .shorts_events {
	inset: 0 !important;
	pointer-events: none;
}

body.is-fullscreen .shorts_events .icons {
	position: absolute;
	right: 50px;
	bottom: auto;
	pointer-events: auto;
}
