/**
 * Oleans Ear Trainer — styles.
 *
 * EDIT HERE: all colors, radii and fonts are CSS variables on .oet-root.
 * Change the accent color or fonts below and the whole tool follows.
 * Every class is prefixed with "oet-" to avoid theme conflicts.
 */

.oet-root {
	--oet-accent: #ff4d00;        /* main accent (buttons, active tab) */
	--oet-accent-dark: #d94100;   /* accent hover */
	--oet-black: #111111;         /* header bar, text */
	--oet-stage: #17171a;         /* dark "studio" panel */
	--oet-stage-soft: #232328;    /* elements on the dark panel */
	--oet-white: #ffffff;
	--oet-grey: #f4f4f2;          /* light control strip */
	--oet-dim: #9a9aa2;           /* muted text on dark */
	--oet-good: #21c063;
	--oet-partial: #ffb020;
	--oet-bad: #ff3b30;
	--oet-radius: 18px;           /* card corner radius */
	--oet-font: inherit;          /* body font — inherits from your theme */
	--oet-font-heading: inherit;  /* heading font — inherits from your theme */

	font-family: var(--oet-font);
	max-width: 720px;
	margin: 0 auto;
	color: var(--oet-black);
	line-height: 1.45;
}

.oet-root *,
.oet-root *::before,
.oet-root *::after {
	box-sizing: border-box;
}

.oet-card {
	background: var(--oet-white);
	border: 2px solid var(--oet-black);
	border-radius: var(--oet-radius);
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* ---------- header ---------- */

.oet-header {
	background: var(--oet-black);
	color: var(--oet-white);
	padding: 22px 24px 18px;
}

.oet-title {
	font-family: var(--oet-font-heading);
	font-size: 30px;
	font-weight: 900;
	font-stretch: condensed;
	letter-spacing: 0.04em;
	line-height: 1;
	margin: 0;
	text-transform: uppercase;
	color: var(--oet-white);
}

.oet-subtitle {
	margin: 8px 0 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

/* ---------- module tabs ---------- */

.oet-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 24px;
	background: var(--oet-grey);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.oet-tab {
	font-family: var(--oet-font);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 8px 14px;
	border: 2px solid var(--oet-black);
	border-radius: 999px;
	background: var(--oet-white);
	color: var(--oet-black);
	cursor: pointer;
}

.oet-tab--active {
	background: var(--oet-accent);
	border-color: var(--oet-accent);
	color: var(--oet-white);
}

/* ---------- settings row ---------- */

.oet-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: end;
	padding: 16px 24px;
	background: var(--oet-white);
}

.oet-modcontrols {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: end;
}

.oet-control {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.oet-control--volume {
	flex: 1;
	min-width: 150px;
}

.oet-control-label {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--oet-black);
}

.oet-select {
	font-family: var(--oet-font);
	font-size: 14px;
	font-weight: 600;
	padding: 8px 12px;
	border: 2px solid var(--oet-black);
	border-radius: 10px;
	background: var(--oet-white);
	color: var(--oet-black);
}

.oet-volume {
	width: 100%;
	accent-color: var(--oet-accent);
	margin: 10px 0;
}

/* ---------- upload field ---------- */

.oet-upload {
	flex-basis: 100%;
	padding-top: 4px;
}

.oet-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 22px 16px;
	border: 2px dashed var(--oet-black);
	border-radius: 14px;
	background: var(--oet-grey);
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.oet-dropzone:hover,
.oet-dropzone:focus {
	border-color: var(--oet-accent);
	outline: none;
}

.oet-dropzone--over {
	border-color: var(--oet-accent);
	border-style: solid;
	background: #fff1ea;
}

.oet-dropzone-label {
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--oet-black);
}

.oet-upload-name {
	font-size: 13px;
	font-weight: 600;
	color: #55555c;
	word-break: break-all;
}

.oet-track-help {
	flex-basis: 100%;
	margin: 4px 0 0;
	padding: 10px 14px;
	border: 2px solid var(--oet-bad);
	border-radius: 10px;
	font-size: 13px;
	color: var(--oet-bad);
	word-break: break-all;
}

.oet-upload-note {
	margin: 8px 0 0;
	font-size: 12px;
	color: #8a8a92;
}

.oet-upload-error {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--oet-bad);
}

/* ---------- dark studio stage ---------- */

.oet-stage {
	background: var(--oet-stage);
	color: var(--oet-white);
	padding: 26px 24px 30px;
}

.oet-status {
	margin: 0 0 2px;
	font-size: 16px;
	font-weight: 700;
}

.oet-difficulty-hint {
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--oet-dim);
}

.oet-transport {
	display: flex;
	gap: 10px;
	margin-bottom: 22px;
}

.oet-btn {
	font-family: var(--oet-font);
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 14px 26px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.oet-btn:active {
	transform: scale(0.98);
}

.oet-btn--play {
	background: var(--oet-accent);
	color: var(--oet-white);
	flex: 1;
	max-width: 260px;
}

.oet-btn--play:hover {
	background: var(--oet-accent-dark);
}

.oet-btn--stop {
	background: var(--oet-stage-soft);
	color: var(--oet-white);
}

.oet-btn--stop:hover {
	background: #2e2e34;
}

/* ---------- playbar (real audio sources) ---------- */

.oet-playbar {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: -8px 0 22px;
}

.oet-playbar-slider {
	flex: 1;
	accent-color: var(--oet-accent);
	margin: 0;
}

.oet-playbar-slider:disabled {
	opacity: 0.4;
}

.oet-playbar-time {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--oet-dim);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* ---------- answers ---------- */

.oet-modifier-row {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.oet-modifier {
	font-family: var(--oet-font);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 10px 22px;
	border: 2px solid var(--oet-stage-soft);
	border-radius: 999px;
	background: var(--oet-stage-soft);
	color: var(--oet-dim);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.oet-modifier--active {
	border-color: var(--oet-accent);
	color: var(--oet-white);
	background: var(--oet-stage-soft);
}

.oet-choice-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.oet-choice {
	font-family: var(--oet-font);
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: center;
	padding: 12px 8px;
	background: var(--oet-stage-soft);
	border: 2px solid transparent;
	border-radius: 12px;
	color: var(--oet-white);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.oet-choice:hover {
	border-color: var(--oet-accent);
	background: #2a2a30;
}

.oet-choice-label {
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.oet-choice-sub {
	font-size: 11px;
	color: var(--oet-dim);
}

.oet-input-row {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.oet-input {
	font-family: var(--oet-font);
	font-size: 18px;
	font-weight: 700;
	width: 150px;
	padding: 12px 14px;
	border: 2px solid var(--oet-stage-soft);
	border-radius: 12px;
	background: var(--oet-stage-soft);
	color: var(--oet-white);
}

.oet-input:focus {
	outline: none;
	border-color: var(--oet-accent);
}

.oet-input-unit {
	font-size: 14px;
	font-weight: 800;
	color: var(--oet-dim);
}

.oet-btn--submit {
	background: var(--oet-accent);
	color: var(--oet-white);
}

.oet-btn--submit:hover {
	background: var(--oet-accent-dark);
}

.oet-input-error {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--oet-bad);
}

/* ---------- feedback ---------- */

.oet-feedback {
	margin-top: 22px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--oet-stage-soft);
	border-left: 5px solid var(--oet-dim);
}

.oet-feedback--correct { border-left-color: var(--oet-good); }
.oet-feedback--partial { border-left-color: var(--oet-partial); }
.oet-feedback--wrong   { border-left-color: var(--oet-bad); }

.oet-feedback-headline {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.oet-feedback--correct .oet-feedback-headline { color: var(--oet-good); }
.oet-feedback--partial .oet-feedback-headline { color: var(--oet-partial); }
.oet-feedback--wrong   .oet-feedback-headline { color: var(--oet-bad); }

.oet-feedback-facts {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 14px;
}

.oet-feedback-hint {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--oet-dim);
}

/* ---------- score bar ---------- */

.oet-scorebar {
	display: flex;
	gap: 22px;
	align-items: center;
	padding: 14px 24px;
	background: var(--oet-white);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.oet-scorebar strong {
	font-size: 15px;
	color: var(--oet-accent);
}

.oet-reset {
	margin-left: auto;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: none;
	border: none;
	color: var(--oet-dim);
	cursor: pointer;
	text-decoration: underline;
}

/* ---------- donation ---------- */

.oet-donate {
	padding: 20px 24px 26px;
	background: var(--oet-white);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	text-align: center;
}

.oet-donate-text {
	margin: 0 0 14px;
	font-size: 13px;
	color: #55555c;
}

.oet-donate-btn {
	display: inline-block;
	background: var(--oet-accent);
	color: var(--oet-white);
	text-decoration: none;
}

.oet-donate-btn:hover,
.oet-donate-btn:focus {
	background: var(--oet-accent-dark);
	color: var(--oet-white);
	text-decoration: none;
}

.oet-error {
	padding: 20px;
	border: 2px solid var(--oet-bad);
	border-radius: 12px;
	color: var(--oet-bad);
}

/* ---------- mobile ---------- */

@media (max-width: 560px) {
	.oet-header { padding: 18px 18px 14px; }
	.oet-title { font-size: 24px; }
	.oet-tabs,
	.oet-controls,
	.oet-stage,
	.oet-scorebar,
	.oet-donate { padding-left: 18px; padding-right: 18px; }

	.oet-choice-grid { grid-template-columns: repeat(2, 1fr); }

	.oet-transport { flex-wrap: wrap; }
	.oet-btn--play { flex: 1 1 100%; max-width: none; }
	.oet-btn--stop { flex: 1; }

	.oet-input-row { flex-wrap: wrap; }
	.oet-input { flex: 1; min-width: 120px; }

	.oet-scorebar { gap: 14px; }
}
