/* ---------- Dropzone ---------- */
.uth-mpd-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 34px 22px;
	text-align: center;
	background: var(--uth-background);
	border: 2px dashed #cbd5e1;
	border-radius: var(--uth-radius-large);
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease;
}

.uth-mpd-dropzone:hover,
.uth-mpd-dropzone:focus-within,
.uth-mpd-dropzone.is-dragover {
	border-color: var(--uth-primary);
	background: var(--uth-section-background);
}

.uth-mpd-dropzone[hidden] {
	display: none;
}

.uth-mpd-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.uth-mpd-dropzone__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	color: var(--uth-primary);
	background: var(--uth-section-background);
	border-radius: 50%;
}

.uth-mpd-dropzone__svg {
	width: 28px;
	height: 28px;
}

.uth-mpd-dropzone__title {
	margin: 0;
	color: var(--uth-heading);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.4;
}

.uth-mpd-dropzone__title strong {
	color: var(--uth-primary);
	font-weight: 700;
}

.uth-mpd-dropzone__hint {
	margin: 0;
	color: var(--uth-muted);
	font-size: 0.85rem;
	line-height: 1.5;
}

.uth-mpd-dropzone__privacy {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0 0;
	color: var(--uth-muted);
	font-size: 0.82rem;
	line-height: 1.5;
}

.uth-mpd-privacy__lock {
	flex: none;
	width: 15px;
	height: 15px;
	color: var(--uth-success);
}

/* ---------- File list ---------- */
.uth-mpd-files {
	display: grid;
	gap: 12px;
	padding: 20px;
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.uth-mpd-files[hidden] {
	display: none;
}

.uth-mpd-files__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.uth-mpd-section-label {
	margin: 0;
	color: var(--uth-heading);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
}

.uth-mpd-files__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	margin-left: 6px;
	padding: 0 7px;
	color: #ffffff;
	background: linear-gradient(135deg, var(--uth-primary), #0f766e);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
}

.uth-mpd-add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	color: var(--uth-primary-hover);
	background: transparent;
	border: 1px solid rgba(37, 99, 235, 0.35);
	border-radius: 999px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.uth-mpd-add:hover,
.uth-mpd-add:focus-visible {
	background: rgba(37, 99, 235, 0.08);
	border-color: var(--uth-primary);
	outline: none;
}

.uth-mpd-files__hint {
	margin: 0;
	color: var(--uth-muted);
	font-size: 0.84rem;
	line-height: 1.5;
}

.uth-mpd-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.uth-mpd-item {
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid var(--uth-border);
	border-radius: 14px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.uth-mpd-item.is-dragging {
	opacity: 0.45;
}

.uth-mpd-item.is-drag-over {
	border-color: var(--uth-primary);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.uth-mpd-item__grip {
	display: inline-flex;
	align-items: center;
	color: #cbd5e1;
	cursor: grab;
}

.uth-mpd-item__grip svg {
	width: 18px;
	height: 18px;
}

.uth-mpd-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--uth-primary-hover);
	background: #ffffff;
	border: 1px solid var(--uth-border);
	border-radius: 10px;
}

.uth-mpd-item__icon svg {
	width: 22px;
	height: 22px;
}

.uth-mpd-item__info {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.uth-mpd-item__name {
	overflow: hidden;
	color: var(--uth-heading);
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.uth-mpd-item__meta {
	color: var(--uth-muted);
	font-size: 0.78rem;
	line-height: 1.4;
}

.uth-mpd-item__actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.uth-mpd-item__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	color: var(--uth-muted);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.uth-mpd-item__btn svg {
	width: 17px;
	height: 17px;
}

.uth-mpd-item__btn:hover,
.uth-mpd-item__btn:focus-visible {
	color: var(--uth-heading);
	background: #ffffff;
	border-color: var(--uth-border);
	outline: none;
}

.uth-mpd-item__btn.is-remove:hover {
	color: var(--uth-danger);
	border-color: rgba(185, 28, 28, 0.35);
}

.uth-mpd-item__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ---------- Settings ---------- */
.uth-mpd-settings {
	display: grid;
	gap: 16px;
	padding: 20px;
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.uth-mpd-settings[hidden] {
	display: none;
}

.uth-mpd-settings__note {
	margin: 0;
	color: var(--uth-muted);
	font-size: 0.84rem;
	line-height: 1.5;
}

.uth-mpd-actions {
	display: flex;
	justify-content: center;
}

.uth-mpd-actions .uth-button {
	min-width: 220px;
}

.uth-mpd-note {
	margin: 0;
	padding: 12px 14px;
	color: #92400e;
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.28);
	border-radius: 12px;
	font-size: 0.88rem;
	line-height: 1.55;
}

.uth-mpd-note[hidden] {
	display: none;
}

/* ---------- Progress ---------- */
.uth-mpd-progress {
	display: grid;
	gap: 10px;
	padding: 22px;
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.uth-mpd-progress[hidden] {
	display: none;
}

.uth-mpd-progress__bar {
	height: 10px;
	background: var(--uth-section-background);
	border: 1px solid var(--uth-border);
	border-radius: 999px;
	overflow: hidden;
}

.uth-mpd-progress__fill {
	display: block;
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, var(--uth-primary), #0f766e);
	border-radius: 999px;
	transition: width 220ms ease;
}

.uth-mpd-progress__text {
	margin: 0;
	color: var(--uth-muted);
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: center;
}

/* ---------- Result ---------- */
.uth-mpd-result {
	display: grid;
	gap: 16px;
	padding: 24px;
	background: var(--uth-background);
	border: 1px solid var(--uth-border);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.uth-mpd-result[hidden] {
	display: none;
}

.uth-mpd-result__heading {
	margin: 0;
	color: var(--uth-heading);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.uth-mpd-result__summary {
	margin: 0 auto;
	max-width: 620px;
	color: var(--uth-text);
	font-size: 0.98rem;
	line-height: 1.65;
	text-align: center;
}

.uth-mpd-result .uth-result-card {
	min-width: 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
	.uth-mpd-item {
		grid-template-columns: auto 1fr;
	}

	.uth-mpd-item__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}

	.uth-mpd-settings {
		padding: 16px;
	}

	.uth-mpd-actions .uth-button {
		width: 100%;
		min-width: 0;
	}
}
