/* Стили для аудио-подсветки */
.audio-highlight {
    background: #e3f2fd !important;
    color: #000;
    border-radius: 4px;
    padding: 2px 4px;
    transition: background 0.1s ease;
}

/* Стили для ручной подсветки */
.sentence-hover {
    background: #e3f2fd !important;
    color: #000 !important;
    border-radius: 4px;
    padding: 2px 4px;
}

/* Если обе подсветки активны одновременно */
.audio-highlight.sentence-hover {
    background: #d2e1f6 !important;
}

.help-sentence {
    padding: 1px 4px;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    margin-right: 5px;
    cursor: pointer;
}

.help-sentence:has(h2) {
    position: relative;
    bottom: -1rem;
}

.sentence h2, .help-sentence h2 {
    position: relative;
    text-transform: uppercase;
    margin: 0;
    padding: 5px 0;
    font-weight: bold;
    font-size: 1.2em;
    font-style: normal;
}

.sentence i {
    cursor: pointer;
    padding: 0 5px 0 1px;
    position: relative;
    border: 1px solid red;
}

.sentence i::after {
    content: "...";
    width: 1em;
    height: 1em;
    letter-spacing: -2px;
    font-size: 2em;
    transform: rotate(-40deg);
}

.tooltip {
    --bs-tooltip-max-width: auto;
}

.tooltip-inner {
    --bs-tooltip-bg: #051327;
}

.modal-up-down {
    background: #fff;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    transition: all 600ms cubic-bezier(0.86, 0, 0.07, 1);
    bottom: -100%;
    position: fixed;
    left: 0;
    text-align: left;
    z-index: 9;
}

.modal-open .modal-up-down {
    bottom: 0 !important;
}

#translate-word {
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    font-size: 1.4em;
    line-height: 1;
    margin-left: 0;
    margin-right: 0.2em;
}

.wordblock .audio-icon {
    margin-right: 0.2em;
}

#translate-content {
    color: #0c70e2;
}

.panel-word {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1em;
    margin-bottom: 0.8em;
}

.panel-word span:last-child {
    display: inline-block;
    margin-left: 0.5em;
}

.helper-word {
    cursor: pointer;
    padding: 0 1px;
    transition: background 0.2s;
}

.helper-word:hover {
    background: #0c70e2;
}

.audio-highlight .helper-word,
.sentence-hover .helper-word {
    color: inherit;
}
