/* Grade de amostras [waveform_tracknow_samples]: 2 colunas, preenchendo
   sempre da esquerda para a direita (comportamento padrão do CSS Grid),
   com espaçamento confortável entre as amostras. */
.wfts-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 32px;
	row-gap: 28px;
	width: 100%;
}

.wfts-item {
	min-width: 0; /* evita que o waveform estoure a coluna em telas estreitas */
}

@media (max-width: 640px) {
	.wfts-grid {
		grid-template-columns: 1fr;
		row-gap: 22px;
	}
}

/* Container de cada amostra: nome do arquivo (opcional) + player */
.wfts-track {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	max-width: 100%;
}

/* Nome do arquivo de áudio, acima da waveform, alinhado à esquerda */
.wfts-title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	text-align: left;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wfts-player {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 100%;
}

/* Botão único de play/pause */
.wfts-toggle {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: var(--wfts-btn-bg, #1a1a1a);
	color: var(--wfts-icon-color, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease;
	padding: 0;
}

.wfts-toggle:hover,
.wfts-toggle:focus-visible {
	background: var(--wfts-btn-bg-hover, #ee772f);
	transform: scale(1.06);
}

.wfts-toggle svg {
	width: var(--wfts-icon-size, 16px);
	height: var(--wfts-icon-size, 16px);
	fill: var(--wfts-icon-color, #fff);
}

/* Área do waveform */
.wfts-waveform-wrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.wfts-waveform {
	cursor: pointer;
	position: relative;
	width: 100%;
	line-height: 0;
	font-size: 0;
}

/* Overlay de destaque no hover */
.wfts-hover {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 10;
	pointer-events: none;
	height: 100%;
	width: 0;
	mix-blend-mode: overlay;
	background: rgba(255, 255, 255, 0.5);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.wfts-waveform-wrap:hover .wfts-hover {
	opacity: 1;
}

/* Tempo atual / duração */
.wfts-time {
	position: absolute;
	z-index: 11;
	top: 50%;
	transform: translateY(-50%);
	font-size: 11px;
	line-height: 1;
	background: rgba(0, 0, 0, 0.75);
	padding: 3px 5px;
	border-radius: 3px;
	color: #ddd;
	pointer-events: none;
	font-variant-numeric: tabular-nums;
}

.wfts-current-time {
	left: 6px;
}

.wfts-duration {
	right: 6px;
}

.wfts-admin-notice {
	padding: 8px 12px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	border-radius: 4px;
	font-size: 12px;
	color: #664d03;
}

@media (max-width: 480px) {
	.wfts-toggle {
		width: 34px;
		height: 34px;
	}
}
