.word-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.word-grid > li {
    display: grid;
	grid-template-columns: minmax(0, 1fr) 32px;
	gap: 12px;
    align-items: center;
    min-width: 0;
    min-height: 72px;
    padding: 9px 14px;
    border: 1px solid #e5e0f4;
    border-radius: 11px;
    background: #fff;
}

.word-grid > li.has-audio {
	grid-template-columns: 52px minmax(0, 1fr) 32px;
	gap: 18px;
    padding-left: 10px;
}

.word-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.word-term {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.word-term strong {
    min-width: 0;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.word-term small {
    flex: 0 0 auto;
    padding: 2px 5px;
    color: #6746cf;
    border-radius: 999px;
    background: #eee9ff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.word-translation {
    color: #626b7d;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.word-known-error {
	color: #b73750;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.25;
}

.word-known-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #d9d3e9;
	border-radius: 50%;
	color: #766d8f;
	background: #fff;
	cursor: pointer;
	transition: color 160ms ease, border-color 160ms ease, background 160ms ease,
		transform 160ms ease;
}

.word-known-button:hover,
.word-known-button:focus-visible {
	border-color: #5a9b73;
	color: #fff;
	background: #5a9b73;
	transform: translateY(-1px);
}

.word-known-button:focus-visible {
	outline: 3px solid rgb(90 155 115 / 24%);
	outline-offset: 2px;
}

.word-known-button:disabled {
	cursor: wait;
	opacity: 0.55;
	transform: none;
}

.word-known-button svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.word-audio-shell {
    display: inline-flex;
    width: 52px;
    height: 52px;
}

.word-audio-player {
    display: block;
    width: 52px;
    height: 52px;
    accent-color: #7657d9;
}

.word-audio-shell .plyr {
    --plyr-color-main: #7657d9;
    --plyr-audio-control-color: #5f46ae;
    --plyr-audio-control-color-hover: #fff;
    --plyr-control-radius: 999px;
    --word-audio-progress: 0deg;
    width: 52px;
    min-width: 52px;
    height: 52px;
    border-radius: 50%;
}

.word-audio-shell .plyr__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 3px;
    border: 0;
    border-radius: 50%;
    background: conic-gradient(
        #7657d9 var(--word-audio-progress),
        #e7e1f7 var(--word-audio-progress)
    );
    box-shadow: 0 4px 12px rgb(79 57 146 / 18%);
}

.word-audio-shell .plyr__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 12px;
    border-radius: 50%;
    color: #5f46ae;
    background: #fff;
}

.word-audio-shell .plyr__control:hover,
.word-audio-shell .plyr__control:focus-visible,
.word-audio-shell .plyr__control[aria-expanded="true"] {
    color: #fff;
    background: #7657d9;
}

.word-audio-shell .plyr__control:focus-visible {
    outline: 3px solid rgb(118 87 217 / 28%);
    outline-offset: 3px;
}

.word-audio-shell .plyr__control svg {
    width: 21px;
    height: 21px;
}

.word-audio-shell .plyr__control .icon--not-pressed {
    transform: translateX(1.5px);
}

.dictation-audio-panel .plyr {
    --plyr-color-main: #7657d9;
    --plyr-audio-control-color: #5f46ae;
    --plyr-audio-control-color-hover: #fff;
    --plyr-audio-controls-background: transparent;
    --plyr-control-radius: 999px;
    --plyr-range-fill-background: #7657d9;
    width: 100%;
    min-width: 0;
    border: 1px solid #ddd7f4;
    border-radius: 16px;
    background: #faf9ff;
    box-shadow: 0 5px 16px rgb(79 57 146 / 10%);
}

.dictation-audio-panel .plyr__controls {
    min-height: 62px;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 16px;
    background: transparent;
}

.dictation-audio-panel .plyr__control {
    color: #5f46ae;
}

.dictation-audio-panel .plyr__control:hover,
.dictation-audio-panel .plyr__control:focus-visible,
.dictation-audio-panel .plyr__control[aria-expanded="true"] {
    color: #fff;
    background: #7657d9;
}

.dictation-audio-panel .plyr__control[data-plyr="play"] {
    width: 44px;
    height: 44px;
    margin-right: 5px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border: 1px solid #d9d3e9;
    color: #5f46ae;
    background: #fff;
    box-shadow: 0 4px 12px rgb(79 57 146 / 22%);
}

.dictation-audio-panel .plyr__control[data-plyr="play"]:hover,
.dictation-audio-panel .plyr__control[data-plyr="play"]:focus-visible {
    border-color: #bdb0e5;
    color: #5f46ae;
    background: #eee9ff;
}

.dictation-audio-panel .plyr__control[data-plyr="play"] svg {
    width: 21px;
    height: 21px;
}

.dictation-audio-panel .plyr__control[data-plyr="play"] .icon--not-pressed {
    transform: translateX(1.5px);
}

.dictation-audio-panel .plyr__control:focus-visible {
    outline: 3px solid rgb(118 87 217 / 24%);
    outline-offset: 2px;
}

.dictation-audio-panel .plyr__progress input[type="range"],
.dictation-audio-panel .plyr__volume input[type="range"] {
    color: #7657d9;
}

.dictation-audio-panel .plyr__time {
    color: #706781;
    font-size: 0.72rem;
    font-weight: 800;
}

@media (max-width: 520px) {
    .dictation-audio-panel .plyr__controls {
        min-height: 58px;
        padding: 7px 10px;
    }

    .dictation-audio-panel .plyr__volume {
        display: none;
    }
}

@media (max-width: 900px) {
    .word-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .word-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .word-audio-shell .plyr__control {
        transition: none;
    }
}
