/* 确保音素对元素有相对定位 */
.mapping-pair {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
   
    position: relative; /* 关键：添加相对定位 */
}

/* 修复视频图标的位置 */
.video-icon {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    font-size: 18px;
    color: #ff6b6b;
    cursor: pointer;
    z-index: 1; /* 确保在其他元素上方 */
    transition: all 0.2s; /* 添加平滑过渡效果 */
}

/* 视频模态框样式 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    position: relative;
}

.video-modal .close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.video-modal .phoneme-name {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

/* 防止音素对中的文本影响布局 */
.grapheme, .phoneme {
    text-align: center;
}

.phoneme-highlight {
  color: #f72585;
}

