/**
 * Soundtrack Player page
 * Wood/metal frame + bulb border + list UI.
 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&display=swap');

.page-soundtrack-player.site-main {
	min-height: 100vh;
	background:
		linear-gradient(180deg, rgba(10, 2, 2, 0.4), rgba(0, 0, 0, 0.6)),
		url('./theatre/soundtrack-main-bg.webp') center top / cover no-repeat;
	padding: 28px 16px 48px;
}

.page-soundtrack-player .page-header,
.page-soundtrack-player .entry-title {
	display: none !important;
}

.soundtrack-player-stage {
	max-width: 980px;
	margin: 0 auto;
}

.soundtrack-player-frame {
	position: relative;
	border-radius: 14px;
	padding: 22px;
	background:
		linear-gradient(180deg, rgba(40, 20, 10, 0.95), rgba(15, 8, 5, 0.95));
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(210, 170, 95, 0.22);
}

.soundtrack-player-header {
	text-align: center;
	padding: 24px 24px 20px;
	margin: 0 -6px 8px;
	border-radius: 10px 10px 0 0;
	/* Exact wood frame image behind the title */
	background: url('./theatre/frame-title.png') center center / cover no-repeat;
	box-shadow:
		inset 0 1px 0 rgba(255, 240, 210, 0.15),
		inset 0 -2px 0 rgba(0, 0, 0, 0.9);
	border-bottom: 1px solid rgba(0, 0, 0, 0.85);
}

.soundtrack-player-title {
	font-family: 'Cinzel', Georgia, serif !important;
	font-size: clamp(22px, 5.5vw, 54px) !important;
	font-weight: 600;
	color: #fbe2b3 !important;
	margin: 0 0 6px;
	letter-spacing: 0.04em;
	text-shadow:
		0 2px 10px rgba(0, 0, 0, 0.9),
		0 0 18px rgba(255, 230, 170, 0.9),
		0 0 32px rgba(255, 230, 170, 0.7);
}

.soundtrack-player-subtitle {
	font-family: Georgia, 'Times New Roman', serif !important;
	font-size: clamp(16px, 2vw, 22px);
	color: rgba(247, 224, 185, 0.96) !important;
	margin: 0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.soundtrack-player-screen-wrap {
	position: relative;
	margin-top: 10px;
	padding: 22px 22px 26px;
	border-radius: 14px;
	background:
		linear-gradient(180deg, #4b3321 0%, #2b1b12 60%, #1a100a 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Bulb strips using supplied light-bar images */
.soundtrack-bulbs {
	position: absolute;
	pointer-events: none;
	background-repeat: repeat;
	background-size: contain;
	z-index: 1;
}

.soundtrack-bulbs-top,
.soundtrack-bulbs-bottom {
	left: 0;
	right: 0;
	height: 30px;
	background-image: url('./theatre/light-bar-horizontal.png');
}

.soundtrack-bulbs-top {
	top: 0;
}

.soundtrack-bulbs-bottom {
	bottom: 0;
	transform: scaleY(-1);
}

.soundtrack-bulbs-left,
.soundtrack-bulbs-right {
	top: 0;
	bottom: 0;
	width: 24px;
	background-image: url('./theatre/light-bar-vertical.png');
}

.soundtrack-bulbs-left {
	left: 0;
}

.soundtrack-bulbs-right {
	right: 0;
	transform: scaleX(-1);
}

.soundtrack-player-screen {
	border-radius: 12px;
	padding: 14px;
	background:
		linear-gradient(180deg, rgba(10, 10, 10, 0.35), rgba(0, 0, 0, 0.55));
	border: 1px solid rgba(210, 170, 95, 0.18);
}

.soundtrack-player-embed {
	border-radius: 10px;
	overflow: hidden;
	background: #090606;
	aspect-ratio: 16 / 9;
}

.soundtrack-player-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.soundtrack-player-now {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 4px 0;
	color: rgba(240, 226, 192, 0.9);
}

.soundtrack-player-now-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(12px, 2.1vw, 24px);
	font-weight: 600;
}

.soundtrack-player-now-meta {
	display: flex;
	gap: 10px;
	font-family: Georgia, serif;
	font-size: 14px;
	opacity: 0.9;
	white-space: nowrap;
}

/* Hide the time codes under the main title – only show name */
.soundtrack-player-now-meta {
	display: none;
}

.soundtrack-player-stats {
	margin-top: 14px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	padding: 10px;
	border-radius: 10px;
	/* Progress bar background with albums texture */
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85)),
		url('./theatre/background-albums.jpg') center center / cover no-repeat;
	border: 1px solid rgba(210, 170, 95, 0.18);
}

.soundtrack-stat {
	text-align: center;
	padding: 10px 8px;
	border-radius: 8px;
	background: rgba(25, 12, 8, 0.55);
	border: 1px solid rgba(210, 170, 95, 0.14);
}

.soundtrack-stat-value {
	font-family: 'Cinzel', Georgia, serif;
	font-size: clamp(12px, 2.1vw, 20px);
	color: #e7c985;
	font-weight: 600;
}

.soundtrack-stat-label {
	font-family: Georgia, serif;
	margin-top: 4px;
	font-size: clamp(12px, 2.1vw, 15px);
	letter-spacing: 0.12em;
	color: rgba(231, 201, 133, 0.78);
}

.soundtrack-player-search {
	margin-top: 14px;
}

.soundtrack-search-input {
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid rgba(210, 170, 95, 0.22);
	background: rgba(0, 0, 0, 0.35);
	color: rgba(240, 226, 192, 0.95);
	font-size: clamp(12px, 2.1vw, 14px);
	outline: none;
}

.soundtrack-search-input::placeholder {
	color: rgba(240, 226, 192, 0.55);
}

.soundtrack-player-list {
	margin-top: 12px;
	padding-top: 27px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(210, 170, 95, 0.18);
}

.st-row {
	position: relative;
	display: grid;
	grid-template-columns: 90px 1fr 120px;
	gap: 12px;
	align-items: center;
	padding: 20px 24px;
	border-top: 1px solid rgba(210, 170, 95, 0.14);
	/* Golden frame around each track row */
	box-shadow:
		inset 0 0 0 1px rgba(210, 170, 95, 0.4),
		0 0 0 1px rgba(0, 0, 0, 0.6);
	border-radius: 10px;
	margin: 6px 8px 30px;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.9)),
		url('./theatre/background-albums.jpg') center top / cover no-repeat;
}

.st-track-num {
	position: absolute;
	top: -25px;
	left: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(210, 170, 95, 0.35);
	font-family: 'Cinzel', Georgia, serif;
	font-size: 11px;
	letter-spacing: 0.1em;
	color: rgba(251, 226, 179, 0.85);
	z-index: 1;
	pointer-events: none;
}

.st-row:first-child {
	border-top: none;
}

.st-thumb {
	width: 90px;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(210, 170, 95, 0.18);
}

.st-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.st-main {
	min-width: 0;
}

.st-title {
	font-family: Georgia, serif;
	font-size: clamp(12px, 2.1vw, 20px);
	font-weight: 600;
	color: rgba(240, 226, 192, 0.95);
	line-height: 1.25;
	margin: 0 0 6px;
}

.st-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.st-played {
	font-family: Georgia, serif !important;
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(240, 226, 192, 0.88);
	font-size: 18px;
}

.st-played span {
	font-family: Georgia, serif !important;
	font-size: clamp(12px, 2.1vw, 18px);
	font-weight: 600;
}

.st-played input {
	accent-color: #e7c985;
}

@media (max-width: 900px) {
	.soundtrack-player-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.st-row {
		grid-template-columns: 90px 1fr;
	}
	.st-actions {
		grid-column: 1 / -1;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

@media (max-width: 520px) {
	.page-soundtrack-player.site-main {
		padding: 18px 10px 32px;
	}
	.soundtrack-player-frame {
		padding: 14px;
	}
	.st-row {
		padding: 10px;
	}
}

/* ── Soundtrack Player Controls Panel ────────────────────────────────── */

@keyframes stBtnGlow {
	0%, 100% {
		filter: brightness(1.0) drop-shadow(0 0 4px rgba(255, 80, 80, 0.45));
	}
	50% {
		filter: brightness(1.14) drop-shadow(0 0 14px rgba(255, 50, 50, 0.9));
	}
}

.soundtrack-player-controls {
	margin-top: 10px;
}

.st-ctrl-panel {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: url('./theatre/music-controller/rusty-metallic-background.webp') center / 100% 100% no-repeat;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
	padding: 30px 20px;
}

/* Corner rivets */
.st-rivet {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle at 38% 34%, #e8c860 0%, #a07820 55%, #604808 100%);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 240, 160, 0.3);
	z-index: 2;
	pointer-events: none;
}

.st-rivet-tl { top: 10px;    left: 12px;   }
.st-rivet-tr { top: 10px;    right: 12px;  }
.st-rivet-bl { bottom: 10px; left: 12px;   }
.st-rivet-br { bottom: 10px; right: 12px;  }

/* Controls row — mobile: [prev][next][play 1fr] — vol wraps below; ≥640px adds vol column */
.st-ctrl-row {
	position: relative;
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 10px;
	padding: 0px 0px 10px;
	z-index: 1;
}

/* ── Round button ring housing ── */
.st-ctrl-btn-housing {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: filter 120ms ease, transform 80ms ease-out;
}

.st-ctrl-btn-housing::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url('./theatre/music-controller/metal-ring-round.webp') center / contain no-repeat;
	mix-blend-mode: multiply;
	pointer-events: none;
}

.st-ctrl-btn-housing:hover {
	filter: brightness(1.12);
}

.st-ctrl-btn-housing:active {
	transform: scale(0.93);
}

/* ── Round image button ── */
button.st-ctrl-btn {
	width: 40px;
	height: 40px;
	padding: 0px;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.9);
	background: url('./theatre/music-controller/red-button-round.webp') center / cover no-repeat;
	transition: filter 120ms ease, transform 80ms ease-out;
}

button.st-ctrl-btn:hover {
	filter: brightness(1.1);
}

button.st-ctrl-btn:active {
	filter: brightness(0.82);
	transform: scale(0.92);
}

button.st-ctrl-btn svg {
	width: 24px;
	height: 24px;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

/* ── PLAY ALL / PAUSE / RESUME combined image button ── */
.st-ctrl-main-housing {
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: stretch;
}

button.st-ctrl-main-btn {
	aspect-ratio: 2289 / 810;
	max-height: 50px;
	width: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: none;
	cursor: pointer;
	font-family: 'Cinzel', Georgia, serif;
	font-size: clamp(13px, 2vw, 18px);
	font-weight: 700;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
	background: url('./theatre/music-controller/red-button-long.webp') center / 100% 100% no-repeat;
	transition: filter 80ms ease-out, transform 80ms ease-out;
}

button.st-ctrl-main-btn:hover {
	filter: brightness(1.08);
	background-color: transparent;
}

button.st-ctrl-main-btn:focus {
	background-color: transparent;
}

button.st-ctrl-main-btn:active {
	filter: brightness(0.85);
	transform: scale(0.97);
}

button.st-ctrl-main-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

button.st-ctrl-main-btn[data-state="playing"] {
	animation: stBtnGlow 1.8s ease-in-out infinite;
}

button.st-ctrl-main-btn[data-state="paused"] {
	/* filter: brightness(0.72) saturate(0.6); */
	animation: none;
}

.st-main-icon {
	flex-shrink: 0;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

.st-main-btn-label {
	display: inline-block;
}

/* ── Volume control ── */
.st-ctrl-vol-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	grid-column: 1 / -1;
	justify-self: center;
	justify-content: center;
}

.st-ctrl-vol {
	-webkit-appearance: none;
	appearance: none;
	width: 180px;
	height: 8px;
	border-radius: 999px;
	outline: none;
	cursor: pointer;
	border: 1px solid rgba(0, 0, 0, 0.45);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
	background:
		linear-gradient(
			90deg,
			#e08820 0%,
			#f5a623 var(--vol-pct, 80%),
			rgba(55, 25, 5, 0.75) var(--vol-pct, 80%),
			rgba(55, 25, 5, 0.75) 100%
		);
}

.st-ctrl-vol:active {
	cursor: grabbing;
}

.st-ctrl-vol::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 38% 34%, #ffd060 0%, #e08820 55%, #a05a10 100%);
	border: 2px solid rgba(0, 0, 0, 0.45);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
	cursor: grab;
	transition: transform 80ms ease-out;
}

.st-ctrl-vol:active::-webkit-slider-thumb {
	cursor: grabbing;
	transform: scale(1.25);
}

.st-ctrl-vol::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 38% 34%, #ffd060 0%, #e08820 55%, #a05a10 100%);
	border: 2px solid rgba(0, 0, 0, 0.45);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
	cursor: grab;
}

.st-ctrl-vol:active::-moz-range-thumb {
	transform: scale(1.25);
}

/* ── Mute button housing (round ring + yellow round button) ── */
.st-ctrl-mute-housing {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 50px;
	height: 50px;
	flex-shrink: 0;
}

.st-ctrl-mute-housing::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url('./theatre/music-controller/metal-ring-round.webp') center / contain no-repeat;
	mix-blend-mode: multiply;
	pointer-events: none;
}

button.st-ctrl-mute-btn {
	width: 44px;
	height: 44px;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: rgba(40, 20, 0, 0.85);
	background: url('./theatre/music-controller/yellow-button-round.webp') center / cover no-repeat;
	transition: filter 0.18s, transform 80ms ease-out;
}

button.st-ctrl-mute-btn:hover {
	filter: brightness(1.1);
	color: rgba(40, 20, 0, 0.85);
}

button.st-ctrl-mute-btn:focus {
	color: rgba(40, 20, 0, 0.85);
}

button.st-ctrl-mute-btn:active {
	filter: brightness(0.85);
	color: rgba(40, 20, 0, 0.85);
}

.st-ctrl-mute-housing:active {
	transform: scale(0.9);
}

/* ── LED progress strip ── */
.st-ctrl-led-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 1;
}

.st-led-indicator {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 38%, #ffcc40 0%, #e07800 55%, #804000 100%);
	box-shadow: 0 0 7px rgba(240, 150, 20, 0.85), 0 0 2px rgba(255, 210, 80, 0.6);
}

.st-ctrl-led-bar {
	display: flex;
	align-items: center;
	gap: 3px;
	flex: 1;
}

.st-led {
	flex: 1;
	height: 10px;
	border-radius: 2px;
	background: rgba(55, 25, 5, 0.65);
	border: 1px solid rgba(0, 0, 0, 0.45);
	transition: background 0.3s, box-shadow 0.3s;
}

.st-led.st-led-on {
	background: linear-gradient(180deg, #ffc040 0%, #e07510 100%);
	box-shadow: 0 0 5px rgba(240, 148, 20, 0.8), 0 0 2px rgba(255, 200, 80, 0.5);
}

@media (min-width: 640px) {
	.st-ctrl-row {
		grid-template-columns: auto auto 1fr auto;
		gap: 16px;
		padding: 0px 0px 12px;
	}

	.st-ctrl-vol-wrap {
		grid-column: auto;
		justify-self: end;
		justify-content: normal;
		gap: 8px;
	}

	.st-ctrl-vol {
		width: 110px;
	}
}

@media (min-width: 1024px) {
	.st-ctrl-panel {
		padding: 30px;
	}

	.st-ctrl-row {
		padding-bottom: 16px;
	}

	.st-ctrl-btn-housing {
		width: 60px;
		height: 60px;
	}

	button.st-ctrl-btn {
		width: 50px;
		height: 50px;
	}
	
	button.st-ctrl-main-btn {
		max-height: 60px;
	}

	.st-ctrl-mute-housing {
		width: 60px;
		height: 60px;
	}
}

/* ── End controls panel ── */

.soundtracks-soda-wrap {
	display: flex;
	justify-content: center;
	margin-top: 25px;
}

.soundtracks-soda {
	width: 150px;
	height: auto;
	display: block;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}
