/*
 * Media Store — Global Player (Apple Music style bottom bar).
 * Loaded after main.css; authoritative for #mst-player.
 */

:root {
	--mst-player-h: 80px;
	--mst-player-bg: rgba(18, 18, 22, 0.72);
	--mst-player-border: rgba(255, 255, 255, 0.08);
	--mst-player-fg: #fff;
	--mst-player-muted: rgba(255, 255, 255, 0.55);
	--mst-accent: var(--mst-accent, #5c6ef4);
}

/* Leave room above the content footer so the bar never covers content. */
body.mst-player-open .mst-main-panel,
body.mst-player-open .mst-content {
	padding-bottom: calc( var(--mst-player-h) + 12px );
}

/* ── Bar shell ───────────────────────────────────────────────────────────── */
#mst-player.mst-player {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 9000;
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(360px, 2fr) minmax(180px, 1fr);
	align-items: center;
	gap: 16px;
	height: var(--mst-player-h);
	padding: 0 20px;
	background: var(--mst-player-bg);
	-webkit-backdrop-filter: blur(24px) saturate(1.6);
	backdrop-filter: blur(24px) saturate(1.6);
	border-top: 1px solid var(--mst-player-border);
	color: var(--mst-player-fg);
	transform: translateY(100%);
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
#mst-player.mst-player.is-visible { transform: translateY(0); }

/* ── LEFT ────────────────────────────────────────────────────────────────── */
.mst-player__left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.mst-player__artwork-wrap {
	position: relative;
	width: 56px; height: 56px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.mst-player__artwork { width: 100%; height: 100%; object-fit: cover; display: block; }
.mst-player__expand {
	position: absolute;
	inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, 0.4);
	border: 0; color: #fff; cursor: pointer;
	opacity: 0; transition: opacity 0.15s;
}
.mst-player__artwork-wrap:hover .mst-player__expand { opacity: 1; }

.mst-player__info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mst-player__title {
	font-size: 0.875rem; font-weight: 600;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mst-player__artist {
	font-size: 0.75rem; color: var(--mst-player-muted);
	text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mst-player__artist:hover { color: #fff; text-decoration: underline; }

.mst-player__like {
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px;
	background: none; border: 0; border-radius: 50%;
	color: var(--mst-player-muted); cursor: pointer;
	transition: color 0.15s, background 0.15s;
}
.mst-player__like:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.mst-player__like.is-active svg { fill: #ff375f; stroke: #ff375f; }
.mst-player__like.is-active { color: #ff375f; }

/* ── CENTER ──────────────────────────────────────────────────────────────── */
.mst-player__center {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	min-width: 0;
}
.mst-player__controls { display: flex; align-items: center; gap: 10px; }

.mst-player__ctl {
	display: flex; align-items: center; justify-content: center;
	background: none; border: 0; cursor: pointer;
	color: var(--mst-player-fg);
	width: 34px; height: 34px; border-radius: 50%;
	transition: background 0.15s, color 0.15s, transform 0.12s;
}
.mst-player__ctl:hover { background: rgba(255, 255, 255, 0.1); }
.mst-player__ctl:active { transform: scale(0.92); }
.mst-player__ctl--mode { color: var(--mst-player-muted); position: relative; }
.mst-player__ctl--mode.is-active { color: var(--mst-accent); }

.mst-player__ctl--play {
	width: 42px; height: 42px;
	background: #fff; color: #111;
}
.mst-player__ctl--play:hover { background: #fff; transform: scale(1.06); }
.mst-player__ctl--play.is-buffering .mst-icon-play,
.mst-player__ctl--play.is-buffering .mst-icon-pause { visibility: hidden; }
.mst-player__spinner {
	position: absolute;
	width: 18px; height: 18px;
	border: 2px solid rgba(0, 0, 0, 0.25);
	border-top-color: #111;
	border-radius: 50%;
	display: none;
}
.mst-player__ctl--play.is-buffering .mst-player__spinner { display: block; animation: mst-spin 0.7s linear infinite; }
@keyframes mst-spin { to { transform: rotate(360deg); } }

.mst-player__repeat-one {
	position: absolute;
	top: 1px; right: 3px;
	font-size: 8px; font-weight: 700;
	display: none;
}
.mst-player__ctl--mode.is-one .mst-player__repeat-one { display: block; }

.mst-player__progress-row {
	display: flex; align-items: center; gap: 10px;
	width: 100%; max-width: 540px;
}
.mst-player__time {
	font-size: 0.6875rem; color: var(--mst-player-muted);
	font-variant-numeric: tabular-nums; min-width: 34px; text-align: center;
}
.mst-player__progress {
	flex: 1; height: 16px;
	display: flex; align-items: center;
	cursor: pointer; outline: none;
}
.mst-player__bar {
	position: relative; width: 100%; height: 4px;
	background: rgba(255, 255, 255, 0.18); border-radius: 2px;
}
.mst-player__buffered {
	position: absolute; left: 0; top: 0; height: 100%;
	width: 0; background: rgba(255, 255, 255, 0.22); border-radius: 2px;
}
.mst-player__fill {
	position: absolute; left: 0; top: 0; height: 100%;
	width: 0; background: #fff; border-radius: 2px;
}
.mst-player__thumb {
	position: absolute; top: 50%; left: 0;
	width: 12px; height: 12px; border-radius: 50%;
	background: #fff; transform: translate(-50%, -50%) scale(0);
	transition: transform 0.12s;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.mst-player__progress:hover .mst-player__thumb,
.mst-player__progress.is-seeking .mst-player__thumb { transform: translate(-50%, -50%) scale(1); }
.mst-player__progress:hover .mst-player__fill { background: var(--mst-accent); }
.mst-player__progress:focus-visible .mst-player__bar { outline: 2px solid var(--mst-accent); outline-offset: 3px; }

/* ── RIGHT ───────────────────────────────────────────────────────────────── */
.mst-player__right {
	display: flex; align-items: center; justify-content: flex-end; gap: 6px;
}
.mst-player__volume-wrap { display: flex; align-items: center; gap: 4px; }
.mst-player__volume {
	width: 84px; height: 4px;
	-webkit-appearance: none; appearance: none;
	background: rgba(255, 255, 255, 0.2); border-radius: 2px; cursor: pointer;
}
.mst-player__volume::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer;
}
.mst-player__volume::-moz-range-thumb {
	width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; cursor: pointer;
}

.mst-player__speed-wrap { position: relative; }
.mst-player__speed-btn {
	width: auto; min-width: 34px; padding: 0 8px;
	font-size: 0.75rem; font-weight: 600; color: var(--mst-player-muted);
}
.mst-player__speed-btn:hover { color: #fff; }
.mst-player__speed-menu {
	position: absolute; bottom: calc(100% + 8px); right: 0;
	background: rgba(28, 28, 34, 0.96);
	-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
	border: 1px solid var(--mst-player-border); border-radius: 10px;
	padding: 4px; min-width: 72px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.mst-player__speed-opt {
	display: block; width: 100%; padding: 6px 10px;
	background: none; border: 0; border-radius: 6px;
	color: #fff; font-size: 0.8125rem; text-align: left; cursor: pointer;
}
.mst-player__speed-opt:hover { background: rgba(255, 255, 255, 0.1); }
.mst-player__speed-opt.is-active { color: var(--mst-accent); font-weight: 700; }

/* ── Mini mode ───────────────────────────────────────────────────────────── */
#mst-player.mst-player.is-mini { grid-template-columns: 1fr auto; }
#mst-player.mst-player.is-mini .mst-player__center .mst-player__progress-row,
#mst-player.mst-player.is-mini .mst-player__right { display: none; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.mst-toast {
	position: fixed; bottom: calc(var(--mst-player-h) + 18px); left: 50%;
	transform: translateX(-50%) translateY(12px);
	background: rgba(28, 28, 34, 0.96);
	-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
	color: #fff; font-size: 0.8125rem;
	padding: 10px 18px; border-radius: 999px;
	border: 1px solid var(--mst-player-border);
	z-index: 9500; opacity: 0; pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
}
.mst-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── More menu ───────────────────────────────────────────────────────────── */
.mst-more-menu {
	position: absolute; z-index: 9600;
	min-width: 200px; padding: 4px;
	background: rgba(28, 28, 34, 0.98);
	-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
	border: 1px solid var(--mst-player-border); border-radius: 12px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
.mst-more-menu__item {
	display: block; width: 100%; padding: 9px 12px;
	background: none; border: 0; border-radius: 8px;
	color: #fff; font-size: 0.8125rem; text-align: left; text-decoration: none; cursor: pointer;
}
.mst-more-menu__item:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ── PJAX top progress bar ───────────────────────────────────────────────── */
.mst-pjax-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0;
	z-index: 99999;
	background: var(--mst-accent, #5c6ef4);
	box-shadow: 0 0 10px var(--mst-accent, #5c6ef4);
	opacity: 0;
	transition: width 0.2s ease, opacity 0.2s ease;
	pointer-events: none;
}
.mst-pjax-progress.is-active { opacity: 1; }
.mst-pjax-progress.is-done   { opacity: 0; }

/* ── Card action cluster (Play / Queue / Favorite / More) ────────────────── */
.mst-card-actions {
	display: flex; align-items: center; gap: 4px;
	margin-top: 8px;
}
.mst-card-action {
	display: flex; align-items: center; justify-content: center;
	width: 30px; height: 30px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: background 0.14s, color 0.14s, transform 0.1s;
}
.mst-card-action:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.mst-card-action:active { transform: scale(0.92); }
.mst-card-action--play { background: var(--mst-accent); border-color: transparent; color: #fff; }
.mst-card-action--play:hover { background: var(--mst-accent); filter: brightness(1.1); }
.mst-card-action--fav.is-active { color: #ff375f; }
.mst-card-action--fav.is-active svg { fill: #ff375f; stroke: #ff375f; }

/* ── Card hover-actions overlay (Spotify style — play left, actions right,
       anchored to the bottom of the artwork, rises in on hover) ─────────────── */
.mst-card__media { position: relative; border-radius: 12px; overflow: hidden; }
.mst-card__actions-overlay {
	position: absolute; inset: 0; z-index: 2;
	display: flex; align-items: flex-end;
	opacity: 0; pointer-events: none;
	background: linear-gradient( to bottom, transparent 45%, rgba(0,0,0,0.6) );
	transition: opacity 0.2s cubic-bezier(.2,.8,.2,1);
}
.mst-card:hover .mst-card__actions-overlay,
.mst-card__media:focus-within .mst-card__actions-overlay { opacity: 1; pointer-events: auto; }

.mst-card__actions-overlay .mst-card-actions { width: 100%; margin: 0; padding: 12px; gap: 6px; align-items: center; }
.mst-card__actions-overlay .mst-card-action {
	flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border-radius: 50%; aspect-ratio: 1 / 1;
	background: rgba(20,20,26,0.55); border-color: rgba(255,255,255,0.18); color: #fff;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	box-shadow: 0 4px 14px rgba(0,0,0,0.4);
	transform: translateY(10px); opacity: 0;
	transition: background 0.14s, color 0.14s, transform 0.22s cubic-bezier(.2,.8,.2,1), opacity 0.2s;
}
.mst-card:hover .mst-card__actions-overlay .mst-card-action,
.mst-card__media:focus-within .mst-card__actions-overlay .mst-card-action { transform: translateY(0); opacity: 1; }
.mst-card__actions-overlay .mst-card-action:hover { background: rgba(44,44,54,0.85); }
/* Prominent accent Play on the LEFT; everything after it groups to the RIGHT. */
.mst-card__actions-overlay .mst-card-action--play { flex: 0 0 48px; width: 48px; height: 48px; margin-right: auto; background: var(--mst-accent, #5c6ef4); border-color: transparent; box-shadow: 0 6px 18px rgba(92,110,244,0.55); }
.mst-card__actions-overlay .mst-card-action--play:hover { filter: brightness(1.1); transform: translateY(-1px) scale(1.04); }
.mst-card__actions-overlay .mst-card-action:nth-child(2) { transition-delay: 0.03s; }
.mst-card__actions-overlay .mst-card-action:nth-child(3) { transition-delay: 0.05s; }
.mst-card__actions-overlay .mst-card-action:nth-child(4) { transition-delay: 0.07s; }

@media (hover: none) and (pointer: coarse) {
	/* Touch devices have no hover → keep the actions visible + reachable. */
	.mst-card__actions-overlay { opacity: 1; pointer-events: auto; }
	.mst-card__actions-overlay .mst-card-action { transform: none; opacity: 1; min-width: 40px; min-height: 40px; }
	.mst-card__actions-overlay .mst-card-action--play { min-width: 48px; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	.mst-card__actions-overlay, .mst-card__actions-overlay .mst-card-action { transition: none; }
	.mst-card__actions-overlay .mst-card-action { transform: none; opacity: 1; }
}

/* ── Responsive (60px mobile) ────────────────────────────────────────────── */
@media (max-width: 768px) {
	:root { --mst-player-h: 60px; }
	#mst-player.mst-player {
		grid-template-columns: 1fr auto;
		gap: 10px; padding: 0 12px;
	}
	.mst-player__center { order: 3; }
	.mst-player__progress-row {
		position: absolute; left: 0; right: 0; top: 0;
		max-width: none; transform: translateY(-50%);
	}
	.mst-player__progress-row .mst-player__time { display: none; }
	.mst-player__controls { gap: 4px; }
	.mst-player__ctl--mode, .mst-player__right .mst-player__volume-wrap,
	.mst-player__speed-wrap { display: none; }
	.mst-player__artwork-wrap { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	#mst-player.mst-player { transition: none; }
}

/* ═══ Phase 6 — Streaming polish ═════════════════════════════════════════════ */

/* Screen-reader-only live region (sleep timer / crossfade announcements). */
.mst-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* iPhone safe-area: lift the fixed bar above the home indicator and reserve
   matching content space so nothing is hidden behind it. */
@supports (padding: max(0px)) {
	#mst-player.mst-player {
		height: calc( var(--mst-player-h) + env( safe-area-inset-bottom, 0px ) );
		padding-bottom: env( safe-area-inset-bottom, 0px );
	}
	body.mst-player-open .mst-main-panel,
	body.mst-player-open .mst-content {
		padding-bottom: calc( var(--mst-player-h) + 12px + env( safe-area-inset-bottom, 0px ) );
	}
}

/* Touch-friendly targets + a fatter, easier-to-grab scrubber on touch devices. */
@media (hover: none) and (pointer: coarse) {
	.mst-player__ctl { min-width: 44px; min-height: 44px; }
	.mst-player__ctl--play { min-width: 48px; min-height: 48px; }
	/* Enlarge the seek hit area without changing the visible bar height. */
	.mst-player__progress { padding-block: 12px; }
	.mst-player__thumb { width: 14px; height: 14px; transform: translate(-50%, -50%) scale(1); }
	#mst-queue-panel .mst-q-row { min-height: 52px; }
}

/* On phones the bar collapses to two columns; give the now-playing room and
   keep the transport thumb-reachable. (volume/speed already hidden ≤768px.) */
@media (max-width: 768px) {
	#mst-player.mst-player { gap: 8px; }
	.mst-player__info { min-width: 0; }
	.mst-player__title, .mst-player__artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mst-player__progress { padding-block: 10px; }
}

/* ═══ Player modernization (UI/UX redesign — glass bar, single-icon morphs,
       minimize → mini-player dock, modern progress, micro-interactions) ════════ */

/* Premium glass bar with rounded top + soft shadow + more breathing room. */
#mst-player.mst-player {
	border-radius: 18px 18px 0 0;
	background: linear-gradient( to top, rgba(14,14,18,0.88), rgba(24,24,32,0.8) );
	-webkit-backdrop-filter: blur(30px) saturate(1.8);
	backdrop-filter: blur(30px) saturate(1.8);
	box-shadow: 0 -10px 44px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
	border-top: 1px solid rgba(255,255,255,0.1);
	gap: 20px; padding: 0 24px;
	transition: transform 0.3s cubic-bezier(.2,.85,.25,1), opacity 0.26s;
}
.mst-player__title { font-weight: 600; letter-spacing: -0.01em; }
.mst-player__artist { color: var(--mst-player-muted); }
.mst-player__controls { gap: 12px; }

/* Single PLAY/PAUSE icon — accent button, stacked crossfade, micro-interactions. */
.mst-player__ctl--play { position: relative; background: var(--mst-accent, #5c6ef4); color: #fff; transition: transform 0.16s cubic-bezier(.2,.8,.2,1), filter 0.18s, box-shadow 0.2s; box-shadow: 0 4px 16px rgba(92,110,244,0.35); }
.mst-player__ctl--play:hover { background: var(--mst-accent, #5c6ef4); filter: brightness(1.1); transform: scale(1.08); box-shadow: 0 7px 22px rgba(92,110,244,0.5); }
.mst-player__ctl--play:active { transform: scale(0.93); }
.mst-player__ctl--play .mst-icon-play, .mst-player__ctl--play .mst-icon-pause { position: absolute; inset: 0; margin: auto; transition: opacity 0.18s ease, transform 0.18s cubic-bezier(.2,.8,.2,1); }
.mst-player__ctl--play .mst-icon-pause { opacity: 0; transform: scale(0.55); }
.mst-player__ctl--play.is-playing .mst-icon-play { opacity: 0; transform: scale(0.55); }
.mst-player__ctl--play.is-playing .mst-icon-pause { opacity: 1; transform: scale(1); }
.mst-player__ctl--play .mst-player__spinner { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }

/* Single VOLUME icon — crossfade speaker ↔ muted (muted turns red). */
#mst-player-mute { position: relative; }
#mst-player-mute .mst-icon-vol, #mst-player-mute .mst-icon-mute { position: absolute; inset: 0; margin: auto; transition: opacity 0.16s, transform 0.16s, color 0.16s; }
#mst-player-mute .mst-icon-mute { opacity: 0; transform: scale(0.7); }
#mst-player-mute.is-muted .mst-icon-vol { opacity: 0; transform: scale(0.7); }
#mst-player-mute.is-muted .mst-icon-mute { opacity: 1; transform: scale(1); color: #ff6b6b; }

/* Modern progress bar — thicker hit area, growing track on hover, larger handle. */
.mst-player__progress { height: 22px; }
.mst-player__bar { height: 5px; transition: height 0.15s ease; }
.mst-player__progress:hover .mst-player__bar, .mst-player__progress.is-seeking .mst-player__bar { height: 7px; }
.mst-player__fill { background: var(--mst-accent, #5c6ef4); }
.mst-player__thumb { width: 14px; height: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.55); }

/* Close / minimize button. */
.mst-player__close { color: var(--mst-player-muted); margin-left: 2px; }
.mst-player__close:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* Focus-visible rings everywhere (keyboard accessibility). */
.mst-player__ctl:focus-visible, .mst-player__close:focus-visible,
.mst-mini-player__expand:focus-visible, .mst-mini-player__play:focus-visible {
	outline: 2px solid var(--mst-accent, #5c6ef4); outline-offset: 2px;
}

/* ── Minimized state: slide the bar out, reclaim content space, reveal dock ── */
body.mst-player-minimized #mst-player.mst-player { transform: translateY(125%); opacity: 0; pointer-events: none; }
body.mst-player-minimized.mst-player-open .mst-content,
body.mst-player-minimized.mst-player-open .mst-main-panel { padding-bottom: 24px; }

/* ── Floating mini-player dock ───────────────────────────────────────────── */
.mst-mini-player {
	position: fixed; right: 20px; bottom: 20px; z-index: 9100;
	width: 64px; height: 64px; border-radius: 18px; overflow: hidden;
	background: rgba(24,24,32,0.8); border: 1px solid rgba(255,255,255,0.12);
	box-shadow: 0 14px 40px rgba(0,0,0,0.55);
	-webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
	transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s;
	animation: mst-mini-in 0.28s cubic-bezier(.2,.85,.25,1);
}
@keyframes mst-mini-in { from { transform: translateY(14px) scale(0.9); opacity: 0; } }
.mst-mini-player:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(0,0,0,0.65); }
.mst-mini-player__expand { position: absolute; inset: 0; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; }
.mst-mini-player__art { width: 100%; height: 100%; object-fit: cover; display: block; background: linear-gradient(135deg,#2b2d55,#5c6ef4); }
.mst-mini-player__expand::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.16s; }
.mst-mini-player:hover .mst-mini-player__expand::after, .mst-mini-player:focus-within .mst-mini-player__expand::after { opacity: 1; }
.mst-mini-player__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
	width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--mst-accent, #5c6ef4); color: #fff; display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity 0.16s, transform 0.16s; box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.mst-mini-player:hover .mst-mini-player__play, .mst-mini-player:focus-within .mst-mini-player__play { opacity: 1; }
.mst-mini-player__play:active { transform: translate(-50%,-50%) scale(0.9); }
.mst-mini-player__play .mst-icon-play, .mst-mini-player__play .mst-icon-pause { position: absolute; inset: 0; margin: auto; transition: opacity 0.16s, transform 0.16s; }
.mst-mini-player__play .mst-icon-pause { opacity: 0; transform: scale(0.55); }
.mst-mini-player__play.is-playing .mst-icon-play { opacity: 0; transform: scale(0.55); }
.mst-mini-player__play.is-playing .mst-icon-pause { opacity: 1; transform: scale(1); }
@media (hover: none) { .mst-mini-player__play { opacity: 1; } } /* touch: play always visible */

@supports (padding: max(0px)) {
	.mst-mini-player { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px)); }
}
@media (max-width: 600px) {
	#mst-player.mst-player { border-radius: 14px 14px 0 0; padding: 0 12px; gap: 8px; }
	.mst-mini-player { width: 56px; height: 56px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	#mst-player.mst-player, .mst-mini-player, .mst-mini-player__play, .mst-mini-player__expand::after,
	.mst-player__ctl--play, .mst-player__ctl--play .mst-icon-play, .mst-player__ctl--play .mst-icon-pause,
	#mst-player-mute .mst-icon-vol, #mst-player-mute .mst-icon-mute, .mst-player__bar { transition: none; animation: none; }
}
