/* Murphy's Magic Downloads — kept neutral so it inherits the theme's fonts and colours. */

.mms-library {
	display: grid;
	gap: 1rem;
	margin: 1rem 0;
}

.mms-item {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
}

.mms-item__thumb {
	flex: 0 0 96px;
}

.mms-item__thumb img {
	display: block;
	width: 96px;
	height: auto;
	border-radius: 4px;
}

.mms-item__body {
	flex: 1;
	min-width: 0;
}

.mms-item__title {
	margin: 0 0 0.25rem;
	font-size: 1.1em;
}

.mms-item__meta,
.mms-note,
.mms-library__refresh {
	margin: 0 0 0.5rem;
	font-size: 0.9em;
	opacity: 0.75;
}

.mms-parts {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
}

.mms-part {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.4rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mms-part__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.mms-button.button {
	margin: 0;
}

.mms-status {
	font-size: 0.9em;
	font-style: italic;
}

/* Player */
.mms-player__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background: #000 center / contain no-repeat;
	border-radius: 6px;
	overflow: hidden;
}

.mms-player__video {
	width: 100%;
	height: 100%;
	background: #000;
}

.mms-player__play.button {
	position: absolute;
	font-size: 1.1em;
	padding: 0.75em 1.5em;
}

.mms-player__msg {
	min-height: 1.5em;
	margin-top: 0.5rem;
}

.mms-watch__parts li.is-current a {
	font-weight: bold;
}

.mms-lecture {
	width: 100%;
	min-height: 1000px;
	border: 0;
}

/* Storefront */
.mms-product-box {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-left-width: 4px;
	border-radius: 4px;
}

.mms-product-box p {
	margin: 0 0 0.35rem;
}

.mms-product-box p:last-child {
	margin-bottom: 0;
}

.mms-product-box__details {
	margin-left: 0.5rem;
	opacity: 0.75;
}

.mms-product-box__note {
	font-size: 0.9em;
	opacity: 0.75;
}

.woocommerce ul.products li.product {
	position: relative;
}

.mms-badge {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	padding: 0.15rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.6;
	text-transform: uppercase;
	color: #fff;
	background: #222;
	border-radius: 3px;
}

@media (max-width: 480px) {
	.mms-item {
		flex-direction: column;
	}

	.mms-item__thumb,
	.mms-item__thumb img {
		width: 100%;
		max-width: 160px;
	}
}
