.word-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 10001;
}

.word-popup {
    position: fixed;
    z-index: 11002;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
    font-size: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.word-popup .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* font-size: 14px; */
    font-weight: 600;
    color: #333;
}
.word-popup .head-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.word-popup .head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.word-popup .remove-vocab-btn {
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    background: #fff0f0;
    color: #d9534f;
}
.word-popup .remove-vocab-btn:hover {
    background: #ffe0e0;
}
.word-popup .remove-vocab-btn.in-book {
    border-color: #b7e1c3;
    background: #e8f5e9;
    color: #155724;
}
.word-popup .remove-vocab-btn.in-book:hover {
    background: #d4edda;
}
.word-popup .close {
    cursor: pointer;
    padding: 0 6px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
    color: #999;
    font-size: 16px;
    line-height: 20px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.word-popup .close:hover {
    background: #f0f0f0;
    color: #666;
}
.word-popup .phonetic {
    color: #666;
    /* font-size: 13px; */
    margin-top: 0;
}
.word-popup .wp-audio-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.word-popup .wp-audio-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}
.word-popup .defs {
    margin-top: 8px;
    /* font-size: 14px; */
    color: #333;
    padding-left: 20px;
}
.word-popup .defs li {
    margin: 4px 0;
}
.word-popup .actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.word-popup .actions button {
    /* font-size: 12px; */
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.word-popup .wp-hl {
    color: #bb8908;
    font-weight: 700;
}

.word-popup .wp-cn {
    color: #5f9ea0;
    font-size: 0.8em;
}
