/* Мультитрек: сторінка завантаження доріжок (.hcs-*) і плеєр доріжок (.hct-*).
   Кольори — змінні; темна тема перевизначає їх у template_dark.css. */

.hcs-root,
.hct {
	--mt-text: #2b3440;
	--mt-muted: #7d8a96;
	--mt-line: rgba(127, 127, 127, .2);
	--mt-soft: rgba(127, 127, 127, .08);
	--mt-accent: #14a2b8;
	--mt-wave: #b9c2ca;
	--mt-wave-played: #14a2b8;
	--mt-btn: #f1f4f6;
	--mt-btn-text: #3b4652;
	--mt-solo: #f0ad4e;
	--mt-mute: #e05260;
}

/* ---------- завантаження ---------- */
.hcs-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 34px 16px;
	border: 2px dashed var(--mt-line);
	border-radius: 14px;
	text-align: center;
	color: var(--mt-text);
	cursor: default;
	transition: border-color .15s, background .15s;
}

.hcs-drop.over {
	border-color: var(--mt-accent);
	background: rgba(20, 162, 184, .06);
}

.hcs-drop > i {
	font-size: 40px;
	color: var(--mt-muted);
}

.hcs-drop-title {
	font-size: 18px;
}

.hcs-link {
	color: var(--mt-accent);
	cursor: pointer;
}

.hcs-link:hover {
	text-decoration: underline;
}

.hcs-sep,
.hcs-muted {
	color: var(--mt-muted);
}

.hcs-sep {
	margin: 0 6px;
}

.hcs-zip {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid var(--mt-line);
	border-radius: 12px;
}

.hcs-bar {
	height: 6px;
	border-radius: 3px;
	background: var(--mt-soft);
	overflow: hidden;
	margin: 6px 0 4px;
}

.hcs-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--mt-accent);
	transition: width .2s;
}

.hcs-summary {
	margin: 14px 0 6px;
	font-size: 14px;
	color: var(--mt-muted);
	min-height: 20px;
}

.hcs-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 210px 170px 34px;
	gap: 10px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--mt-line);
}

.hcs-name {
	width: 100%;
	border: 1px solid transparent;
	background: transparent;
	color: var(--mt-text);
	font-weight: 600;
	font-size: 15px;
	padding: 2px 6px;
	margin-left: -6px;
	border-radius: 6px;
}

.hcs-name:hover,
.hcs-name:focus {
	border-color: var(--mt-line);
	outline: none;
}

.hcs-fname {
	font-size: 12px;
	color: var(--mt-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hcs-type {
	width: 100%;
	height: 34px;
	border-radius: 8px;
	border: 1px solid var(--mt-line);
	background: transparent;
	color: var(--mt-text);
	padding: 0 6px;
}

.hcs-type option,
.hcs-type optgroup {
	color: #222;
}

.hcs-status {
	font-size: 13px;
	color: var(--mt-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hcs-status.ok {
	color: #3fa45b;
}

.hcs-status.err {
	color: #d9534f;
	white-space: normal;
}

.hcs-status.work {
	color: var(--mt-accent);
}

.hcs-del {
	border: 0;
	background: transparent;
	color: var(--mt-muted);
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

.hcs-del:hover {
	background: var(--mt-soft);
	color: #d9534f;
}

.hcs-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.hcs-manage {
	margin-top: 26px;
	padding-top: 14px;
	border-top: 1px solid var(--mt-line);
}

.hcs-manage h6 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--mt-muted);
	margin-bottom: 4px;
}

.hcs-manage-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mt-line);
	color: var(--mt-text);
}

.hcs-manage-btns {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.hcs-auto-demo {
	display: block;
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--mt-text);
}

.hct-download {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0 4px;
	color: var(--mt-text);
}

@media (max-width: 767.98px) {
	.hcs-row {
		grid-template-columns: minmax(0, 1fr) 34px;
	}

	.hcs-type {
		grid-column: 1 / 2;
	}

	.hcs-status {
		grid-column: 1 / 3;
	}

	.hcs-file {
		grid-column: 1 / 2;
	}

	.hcs-del {
		grid-row: 1;
		grid-column: 2;
	}
}

/* ---------- плеєр доріжок ---------- */
.hct {
	color: var(--mt-text);
	margin: 6px 0 18px;
	-webkit-user-select: none;
	user-select: none;
}

.hct-top {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 8px;
	/* панель з кнопкою Play закріплюється під шапкою сайту при прокрутці */
	position: -webkit-sticky;
	position: sticky;
	top: var(--hct-sticky-top, 49px);
	z-index: 20;
	padding: 8px 0;
	background: var(--hct-sticky-bg, #fff);
	transition: box-shadow .15s;
}

.hct-top.stuck {
	box-shadow: 0 8px 12px -10px rgba(0, 0, 0, .25);
}

.hct-play {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid var(--mt-accent);
	background: transparent;
	color: var(--mt-accent);
	font-size: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	transition: background .15s, color .15s;
}

.hct-play:focus,
.hct-reset:focus,
.hct-btn:focus {
	outline: none;
	box-shadow: none;
}

.hct-play:hover {
	background: var(--mt-accent);
	color: #fff;
}

.hct-play .fa-play,
.hct-play svg.fa-play {
	margin-left: 3px;
}

.hct-time {
	font-variant-numeric: tabular-nums;
	font-size: 16px;
}

.hct-time span {
	color: var(--mt-muted);
}

.hct-reset {
	margin-left: auto;
	border: 0;
	border-radius: 16px;
	padding: 4px 12px;
	font-size: 13px;
	background: var(--mt-btn);
	color: var(--mt-btn-text);
}

.hct-loading {
	font-size: 13px;
	color: var(--mt-muted);
}

.hct-group {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--mt-muted);
	margin: 16px 0 2px;
}

.hct-row {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 6px 0;
	transition: opacity .15s;
}

.hct-row.off .hct-wave,
.hct-row.off .hct-label {
	opacity: .35;
}

.hct-label {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.hct-icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1.5px solid var(--mt-accent);
	color: var(--mt-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	flex: 0 0 auto;
}

.hct-name {
	font-weight: 600;
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hct-wave {
	position: relative;
	height: 46px;
	cursor: pointer;
	transition: opacity .15s;
}

.hct-wave canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.hct-btns {
	display: flex;
	gap: 6px;
}

.hct-btn {
	border: 1px solid var(--mt-line);
	background: var(--mt-btn);
	color: var(--mt-btn-text);
	border-radius: 16px;
	height: 30px;
	min-width: 56px;
	padding: 0 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 28px;
	transition: background .12s, color .12s, border-color .12s;
}

.hct-btn.solo.on {
	background: var(--mt-solo);
	border-color: var(--mt-solo);
	color: #fff;
}

.hct-btn.mute.on {
	background: var(--mt-mute);
	border-color: var(--mt-mute);
	color: #fff;
}

.hct-edit {
	font-size: 13px;
	margin-top: 6px;
}

@media (max-width: 767.98px) {
	.hct-row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 8px;
	}

	.hct-wave {
		grid-column: 1 / 3;
		grid-row: 2;
		height: 38px;
	}

	.hct-icon {
		width: 30px;
		height: 30px;
		font-size: 12px;
	}

	.hct-btn {
		min-width: 0;
		width: 34px;
		padding: 0;
	}

	.hct-btn .hct-full {
		display: none;
	}
}

@media (min-width: 768px) {
	.hct-btn .hct-short {
		display: none;
	}
}
