/* CK Webs Auto TTS — player.
   Χρώματα/ακτίνα έρχονται από τις ρυθμίσεις μέσω CSS variables:
   --ckt-bg, --ckt-accent, --ckt-text, --ckt-radius */

.ckt,
.ckt * {
	box-sizing: border-box;
}

.ckt {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 1.5em 0;
	padding: 16px 18px;
	background: var(--ckt-bg, #12304a);
	color: var(--ckt-text, #ffffff);
	border-radius: var(--ckt-radius, 16px);
	font-family: inherit;
	line-height: 1.35;
	text-align: left;
}

/* Κουμπί play */
.ckt .ckt__play {
	position: relative;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ckt-accent, #ffb547);
	color: var(--ckt-bg, #12304a);
	box-shadow: none;
	cursor: pointer;
	transition: transform 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ckt .ckt__play:hover {
	transform: scale(1.06);
	background: var(--ckt-accent, #ffb547);
	color: var(--ckt-bg, #12304a);
}

.ckt .ckt__play:focus-visible,
.ckt .ckt__wave:focus-visible,
.ckt .ckt__speed:focus-visible {
	outline: 3px solid var(--ckt-accent, #ffb547);
	outline-offset: 3px;
}

.ckt .ckt__ico {
	display: block;
	width: 24px;
	height: 24px;
}

.ckt .ckt__ico--play {
	margin-left: 3px; /* οπτικό κεντράρισμα του τριγώνου */
}

.ckt .ckt__ico--pause {
	display: none;
}

.ckt.is-playing .ckt__ico--play {
	display: none;
}

.ckt.is-playing .ckt__ico--pause {
	display: block;
}

/* Μία διακριτική «πρόσκληση» — 3 παλμοί και σταματά */
.ckt--pulse:not(.is-touched) .ckt__play::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--ckt-accent, #ffb547);
	animation: ckt-ring 1.8s ease-out 3;
	pointer-events: none;
}

@keyframes ckt-ring {
	from {
		transform: scale(1);
		opacity: 0.9;
	}
	to {
		transform: scale(1.6);
		opacity: 0;
	}
}

/* Κείμενα */
.ckt .ckt__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ckt .ckt__title {
	margin: 0;
	font-size: 1.08em;
	font-weight: 700;
	color: inherit;
}

.ckt .ckt__sub {
	margin: 2px 0 10px;
	font-size: 0.9em;
	opacity: 0.82;
	color: inherit;
}

/* Κυματομορφή = μπάρα προόδου */
.ckt .ckt__wave {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 38px;
	cursor: pointer;
}

.ckt .ckt__bar {
	flex: 1 1 0;
	min-width: 2px;
	height: var(--h, 50%);
	border-radius: 2px;
	background: currentColor;
	opacity: 0.28;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.ckt .ckt__bar.is-on {
	background: var(--ckt-accent, #ffb547);
	opacity: 1;
}

.ckt .ckt__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
	font-size: 0.82em;
	font-variant-numeric: tabular-nums;
	color: inherit;
}

.ckt .ckt__time {
	opacity: 0.85;
}

.ckt .ckt__speed {
	margin: 0;
	padding: 2px 10px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.95em;
	line-height: 1.4;
	cursor: pointer;
	opacity: 0.9;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.ckt .ckt__speed:hover {
	background: transparent;
	color: inherit;
	opacity: 1;
}

/* Στυλ «γραμμή» (pill): μία συμπαγής σειρά */
.ckt--pill {
	padding: 10px 16px 10px 10px;
	gap: 12px;
}

.ckt--pill .ckt__play {
	width: 44px;
	height: 44px;
}

.ckt--pill .ckt__title,
.ckt--pill .ckt__sub {
	display: none;
}

.ckt--pill .ckt__body {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ckt--pill .ckt__wave {
	flex: 1 1 auto;
	height: 30px;
}

.ckt--pill .ckt__meta {
	flex: 0 0 auto;
	margin: 0;
}

@media (max-width: 520px) {
	.ckt {
		gap: 12px;
		padding: 14px;
	}

	.ckt .ckt__play {
		width: 48px;
		height: 48px;
	}

	.ckt--pill .ckt__meta .ckt__tot {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ckt--pulse:not(.is-touched) .ckt__play::after {
		animation: none;
		display: none;
	}

	.ckt .ckt__play,
	.ckt .ckt__bar {
		transition: none;
	}
}
