/* ==========================================================================
   Media Playlist (.sentio-mp)
   ==========================================================================
   Extracted from frontend.css during the Batch 8 mechanical extraction
   (2026-04-18). Behavior-preserving.
   Supports self-hosted audio/video + YouTube (IFrame API) + Vimeo (Player SDK).
   Uses window.SentioShared.loadYTApi / loadVimeoApi helpers (shared handle
   `sentio-shared` declared in get_script_depends()).
   ========================================================================== */

   #15 Media Playlist
   ========================================================================== */

.sentio-mp {
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	font-family: inherit;
}

/* Layout: horizontal — prefix_class on widget wrapper */
.sentio-mp--horizontal .sentio-mp {
	flex-direction: row;
	align-items: stretch;
}

.sentio-mp--horizontal .sentio-mp__player {
	flex: 0 0 340px;
	min-width: 280px;
	overflow: hidden;
}

.sentio-mp--horizontal .sentio-mp__tracklist {
	flex: 1 1 0%;
	min-width: 200px;
}

.sentio-mp--horizontal .sentio-mp__lyrics {
	flex: 0 0 320px;
	min-width: 260px;
}

.sentio-mp--horizontal .sentio-mp__video-wrap {
	width: 100%;
	border-radius: 8px;
}

/* Layout: vertical — player full width, tracklist below */
.sentio-mp--vertical .sentio-mp__player {
	width: 100%;
}

.sentio-mp--vertical .sentio-mp__video-wrap {
	width: calc(100% + 48px);
	margin-left: -24px;
	margin-right: -24px;
	border-radius: 0;
}

/* Player */
.sentio-mp__player {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 30px 24px 20px;
	background-color: #1A1A2E;
	gap: 14px;
}

/* Artwork */
.sentio-mp__artwork {
	width: 200px;
	height: 200px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	position: relative;
}

.sentio-mp__artwork img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s;
}

.sentio-mp--playing .sentio-mp__artwork img {
	transform: scale(1.03);
}

.sentio-mp__artwork-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.05);
	font-size: 60px;
	color: rgba(255,255,255,0.15);
}

/* Video container */
.sentio-mp__video-wrap {
	width: 100%;
	position: relative;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	display: none;
	flex-shrink: 0;
	aspect-ratio: 16 / 9;
}

.sentio-mp__video-wrap video,
.sentio-mp__video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	display: block;
	border: 0;
}

/* Info */
.sentio-mp__info {
	text-align: center;
	min-width: 0;
	width: 100%;
}

.sentio-mp__title {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sentio-mp__artist {
	font-size: 13px;
	color: #aaa;
	margin-top: 2px;
}

/* Progress */
.sentio-mp__progress-wrap {
	width: 100%;
}

.sentio-mp__progress-track {
	width: 100%;
	height: 4px;
	background-color: rgba(255,255,255,0.15);
	border-radius: 2px;
	cursor: pointer;
	position: relative;
}

.sentio-mp__progress-fill {
	height: 100%;
	background-color: #6EC1E4;
	border-radius: 2px;
	width: 0%;
	transition: width 0.1s linear;
	pointer-events: none;
}

.sentio-mp__progress-track:hover {
	height: 6px;
}

/* Differentiator #2: Waveform Progress Bar */
.sentio-mp__waveform {
	width: 100%;
	height: 40px;
	cursor: pointer;
	position: relative;
}

.sentio-mp__waveform canvas {
	width: 100%;
	height: 100%;
	display: block;
}

/* Time */
.sentio-mp__time {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #888;
	margin-top: 4px;
}

/* Controls */
.sentio-mp__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.sentio-mp__btn {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	padding: 6px;
	line-height: 1;
	transition: color 0.2s, opacity 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
}

.sentio-mp__btn:hover {
	opacity: 1;
}

.sentio-mp__btn--active {
	color: #6EC1E4;
	opacity: 1;
}

/* Play button — larger circle */
.sentio-mp__btn-play {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #6EC1E4;
	color: #fff;
	font-size: 20px;
	opacity: 1;
	flex-shrink: 0;
}

.sentio-mp__btn-play:hover {
	filter: brightness(1.1);
}

/* Secondary controls */
.sentio-mp__secondary-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
}

/* Differentiator #3: Speed Control */
.sentio-mp__speed-btn {
	background: rgba(255,255,255,0.1);
	border: none;
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
	white-space: nowrap;
}

.sentio-mp__speed-btn:hover {
	background: rgba(255,255,255,0.2);
}

/* Volume */
.sentio-mp__volume {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sentio-mp__volume-track {
	width: 70px;
	height: 4px;
	background: rgba(255,255,255,0.15);
	border-radius: 2px;
	cursor: pointer;
	position: relative;
}

.sentio-mp__volume-fill {
	height: 100%;
	background-color: #6EC1E4;
	border-radius: 2px;
	pointer-events: none;
}

/* Differentiator #4: Sleep Timer */
.sentio-mp__sleep {
	position: relative;
}

.sentio-mp__sleep-menu {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: #1A1A2E;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px;
	padding: 6px 0;
	min-width: 110px;
	box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
	z-index: 10;
}

.sentio-mp__sleep-menu button {
	display: block;
	width: 100%;
	background: none;
	border: none;
	padding: 8px 16px;
	text-align: left;
	color: #ccc;
	font-size: 13px;
	cursor: pointer;
	transition: background-color 0.15s;
}

.sentio-mp__sleep-menu button:hover {
	background: rgba(255,255,255,0.08);
}

/* Differentiator #6: Lyrics Panel */
.sentio-mp__lyrics {
	background: #0F3460;
	padding: 16px 20px;
	color: #ddd;
}

.sentio-mp__lyrics-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.sentio-mp__lyrics-title {
	font-weight: 600;
	font-size: 14px;
}

.sentio-mp__lyrics-close {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	font-size: 16px;
	opacity: 0.6;
	padding: 4px;
}

.sentio-mp__lyrics-close:hover {
	opacity: 1;
}

.sentio-mp__lyrics-body {
	font-size: 14px;
	line-height: 1.8;
	white-space: pre-wrap;
	max-height: 200px;
	overflow-y: auto;
}

/* Tracklist — always fully visible, never scrolls */
.sentio-mp__tracklist {
	background-color: #16213E;
	overflow: visible !important;
	max-height: none !important;
}

.sentio-mp__track {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
	color: #ccc;
	font-size: 14px;
}

.sentio-mp__track + .sentio-mp__track {
	border-top: 1px solid rgba(255,255,255,0.06);
}

.sentio-mp__track:hover {
	background-color: rgba(255,255,255,0.04);
}

.sentio-mp__track--active {
	color: #6EC1E4;
}

.sentio-mp__track-num {
	font-size: 12px;
	min-width: 20px;
	text-align: center;
	opacity: 0.5;
}

.sentio-mp__track--active .sentio-mp__track-num {
	opacity: 1;
}

.sentio-mp__track-thumb {
	width: 40px;
	height: 40px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}

.sentio-mp__track-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.sentio-mp__track-title {
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sentio-mp__track-artist {
	font-size: 12px;
	opacity: 0.6;
}

/* Differentiator #1: Video type badge */
.sentio-mp__track-type {
	font-size: 11px;
	opacity: 0.5;
	flex-shrink: 0;
}

/* Differentiator #5: Share button */
.sentio-mp__track-share {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	font-size: 14px;
	opacity: 0.4;
	padding: 4px;
	transition: opacity 0.2s;
	flex-shrink: 0;
}

.sentio-mp__track-share:hover {
	opacity: 1;
}

/* Differentiator #7: Duration */
.sentio-mp__track-duration {
