/* Hypermedia (STMU) timeline / playlist component — §7.3 */
.sxai-stmu {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	padding: 14px;
	margin: 1.2em 0;
	background: #fff;
	font-size: 15px;
	line-height: 1.5;
}
.sxai-stmu-title {
	font-weight: 600;
	font-size: 1.05em;
	margin-bottom: 10px;
}
.sxai-stmu-empty {
	color: #767676;
	font-style: italic;
	padding: 8px 0;
}
.sxai-stmu-stage {
	background: #0b0b0d;
	border-radius: 8px;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 10px;
}
.sxai-stmu-media {
	max-width: 100%;
	max-height: 420px;
	display: block;
}
audio.sxai-stmu-media {
	width: 90%;
	margin: 20px;
}
.sxai-stmu-text {
	color: #eee;
	padding: 28px;
	text-align: center;
}
.sxai-stmu-transport {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.sxai-stmu-btn {
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #f4f4f6;
	border-radius: 6px;
	padding: 5px 12px;
	cursor: pointer;
	font-size: 0.92em;
}
.sxai-stmu-btn:hover { background: #e9e9ee; }
.sxai-stmu-btn.is-active { background: #2b6cb0; color: #fff; border-color: #2b6cb0; }
.sxai-stmu-now { color: #555; font-size: 0.9em; }
.sxai-stmu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.sxai-stmu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 6px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	cursor: pointer;
}
.sxai-stmu-item:hover { background: rgba(43, 108, 176, 0.06); }
.sxai-stmu-item.is-current { background: rgba(43, 108, 176, 0.12); font-weight: 600; }
.sxai-stmu-item.is-dragging { opacity: 0.4; }
.sxai-stmu-handle { cursor: grab; color: #999; }
.sxai-stmu-item-label { flex: 1; }
.sxai-stmu-item-time { color: #888; font-variant-numeric: tabular-nums; font-size: 0.9em; }
.sxai-stmu-save { margin-top: 10px; }

/* sync_player: parallel source grid, one master transport */
.sxai-stmu-syncgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px;
	margin-bottom: 10px;
}
.sxai-stmu-synccell {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 8px;
	background: #0b0b0d;
}
.sxai-stmu-synccell.is-master { outline: 2px solid #2b6cb0; }
.sxai-stmu-synclabel { color: #ddd; font-size: 0.85em; margin-bottom: 6px; }
.sxai-stmu-synccell .sxai-stmu-media { max-height: 220px; }

/* map: dependency-free SVG scatter */
.sxai-stmu-map { width: 100%; height: auto; border-radius: 8px; display: block; }
.sxai-stmu-map-bg { fill: #eef1f5; }
.sxai-stmu-map-path { fill: none; stroke: #2b6cb0; stroke-width: 2; stroke-dasharray: 5 4; opacity: 0.7; }
.sxai-stmu-marker circle { fill: #2b6cb0; stroke: #fff; stroke-width: 2; }
.sxai-stmu-marker:hover circle { fill: #1a4e82; }
.sxai-stmu-marker text { font-size: 12px; fill: #222; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.sxai-stmu-map-stage { margin-top: 10px; min-height: 0; }
.sxai-stmu-map-stage:empty { display: none; }

@media (prefers-color-scheme: dark) {
	.sxai-stmu-map-bg { fill: #26262b; }
	.sxai-stmu-marker text { fill: #e7e7ea; stroke: #1c1c1f; }
	.sxai-stmu-synccell { border-color: rgba(255, 255, 255, 0.12); }
	.sxai-stmu { background: #1c1c1f; border-color: rgba(255, 255, 255, 0.12); color: #e7e7ea; }
	.sxai-stmu-btn { background: #2a2a2e; color: #e7e7ea; border-color: rgba(255, 255, 255, 0.15); }
	.sxai-stmu-btn:hover { background: #34343a; }
	.sxai-stmu-item-time, .sxai-stmu-now { color: #a9a9b2; }
}
