/**
 * FMW Video — Plyr.js overrides and custom player styles.
 * Designed for LeadPath's dark/accent colour scheme.
 */

/* Player container */
.fmw-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

.fmw-player .plyr,
.fmw-player .plyr__video-wrapper {
	width: 100%;
	height: 100%;
}

.fmw-player__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Plyr accent colour override — LeadPath accent */
.fmw-player .plyr--video {
	border-radius: 0;
}

.fmw-player .plyr--video .plyr__control--overlaid,
.fmw-player .plyr--video .plyr__control:hover {
	background: rgba(255, 255, 255, 0.15);
}

:root {
	--plyr-color-main: #ff6b5b;
}

/* Thumbnail overlay */
.fmw-player__poster {
	position: absolute;
	inset: 0;
	z-index: 10;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fmw-player__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fmw-player__play {
	position: absolute;
	background: none;
	border: none;
	cursor: pointer;
}

.fmw-player__play-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: #000;
	color: #fff;
	transition: transform 0.2s, background 0.2s;
}

.fmw-player__play:hover .fmw-player__play-icon {
	transform: scale(1.05);
}

@media (min-width: 768px) {
	.fmw-player__play-icon {
		width: 96px;
		height: 96px;
	}
}

/* Playlist sidebar */
.fmw-playlist {
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-y: auto;
	max-height: 100%;
}

.fmw-playlist__item {
	display: flex;
	gap: 12px;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.05);
	cursor: pointer;
	text-align: left;
	transition: background 0.2s, border-color 0.2s;
	width: 100%;
}

.fmw-playlist__item:hover {
	background: rgba(255, 255, 255, 0.1);
}

.fmw-playlist__item.is-active {
	border-color: #ff6b5b;
	background: rgba(232, 255, 107, 0.1);
}

.fmw-playlist__thumb {
	position: relative;
	width: 120px;
	flex-shrink: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
}

.fmw-playlist__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fmw-playlist__duration {
	position: absolute;
	bottom: 4px;
	right: 4px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 11px;
	padding: 1px 5px;
	border-radius: 0;
	line-height: 1.4;
}

.fmw-playlist__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 0;
}

.fmw-playlist__title {
	font-weight: 500;
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
}

.fmw-playlist__cat {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
