.text-reader {
    font-size: 1.8rem;
    line-height: 1.5;
    font-weight: 700;
    font-family: 'Outfit', 'Noto Sans Devanagari', 'Noto Sans Bengali', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Malayalam', 'Noto Sans Arabic', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
    color: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    min-height: 120px;
    user-select: none;
}

.word {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-right: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    padding: 4px 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    vertical-align: top;
    line-height: 1.2;
    text-align: center;
    border: 1px solid transparent;
}

.word-original {
    font-size: 1.6rem;
    font-weight: 700;
}

.word-meaning {
    font-size: 0.78rem;
    font-weight: 400;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s ease;
}

.word:hover {
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.05);
}

.word:hover .word-meaning {
    color: rgba(255, 255, 255, 0.55);
}

.word.active {
    color: #ffffff;
    background-color: var(--theme-color);
    box-shadow: 0 0 20px var(--theme-glow);
    transform: scale(1.08);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    border-color: var(--theme-color);
}

.word.active .word-meaning {
    color: rgba(255, 255, 255, 0.95);
}

.playback-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    max-width: 540px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 8px 16px;
}

.play-btn-compact {
    background: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--theme-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.play-btn-compact:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.play-btn-compact svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.play-btn-compact:disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

.timeline-container-compact {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar-wrapper {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    flex-grow: 1;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--theme-color);
    box-shadow: 0 0 8px var(--theme-glow);
    border-radius: 3px;
    transition: width 0.05s linear;
}

.timeline-info-compact {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.status-label-compact {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 120px;
    text-align: right;
}

.rtl {
    direction: rtl;
    text-align: right;
}
.rtl .word {
    margin-left: 12px;
    margin-right: 0;
}

@media (max-width: 900px) {
    .status-label-compact {
        text-align: left;
        min-width: unset;
    }
    .text-reader {
        font-size: 1.5rem;
        min-height: 100px;
    }
    .word-original {
        font-size: 1.35rem;
    }
    .word-meaning {
        font-size: 0.72rem;
    }
}
