/* 外層橫向並排容器 */
.language-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
}

/* 左側文字 */
.language-label {
    font-size: 20px;
    font-weight: bold;
    color: #5c4033;
    white-space: nowrap;
    margin-right: 10px;
}

/* 右側簡單按鈕 */
.btn-lang-simple {
    padding: 8px 16px;
    font-size: 20px;
    font-weight: 500;
    color: #5c4033;
    background-color: #ffffff;
    border: 3px solid #efb56c;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    outline: none;
}

/* 按鈕滑過效果 */
.btn-lang-simple:hover {
    border-color: #fb7676;
    color: #fb7676;
    background-color: #fcfcff;
}

/* 兩排 Grid 布局 */
.lang-grid-container {
    list-style: none;
    padding: 15px 5px;
    margin: 0;
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px 10px;
    max-height: 350px;
    overflow-y: auto;
}

.lang-btn-span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background-color: #ffffff;
    border: 2px solid #eaddcd;
    border-radius: 8px;
    color: #5c4033;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.lang-btn-span:hover:not(.active) {
    border-color: #bfa38a;
    background-color: #faf6f0;
}

.lang-btn-span.active {
    border-color: #da2f65;
    background-color: #da2f65;
    color: #ffffff !important;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(98, 114, 243, 0.2);
}