:root {
    /* --primary-color: #3498db;
    --secondary-color: #2ecc71; */
    --border-width-default: 0.14vw;
    --border-width: 0.2vw;
    --border-width-thick: 0.3vw;
    --border-width-xthick: 0.6vw;
    --border-width-xxthick: 1vw;
    --font-size: 1.4vw;
    --small-font-size: 1.2vw;
    --xsmall-font-size: 0.8vw;
    --large-font-size: 2vw;
    --xlarge-font-size: 3vw;
    --xxlarge-font-size: 4vw;
    --min-font-size: 0.1rem;
    --rsmall-font-size: 0.5rem;
    --rnormal-font-size: 0.8rem;
    --normal-font-size: 1rem;
    /* 使用具體的單位值 */
    --max-font-size: 1.5rem;
    /* 使用具體的單位值 */
    --border-radius: 0.6rem;
    --corner-position: -0.5rem;
}

.main-container {
    /* background-color: #44625a; */
    /* background-color: gray; */
    background-color: #97BAA4;
    /* background-color: #728c7c; */
    margin-top: var(--border-width-xthick, 1rem);
}

.down-card-body .score-line,
.down-card-body .time-line {
    width: 100%;
    display: flex;
    /* justify-content: space-between; */
    font-size: var(--small-font-size);
    /* font-family: monospace; */
    padding-left: 1px;
    padding-right: 1px;
    user-select: none;
    white-space: nowrap;
}


.time-line .main-info {
    font-weight: bolder;
}


.time-line .second-info {
    font-weight: bolder;
}



.d-flex {
    display: flex;
    justify-content: center;
    width: 100%;
}

.flex-item {
    flex: 1;
    /* 讓flex-item同樣分配容器的空間 */
    text-align: center;
    /* 讓文字在各自區塊中居中 */
}

/* 仅当元素拥有.hover-effect类时才应用悬停效果 */
.hover-effect:hover {
    filter: drop-shadow(0 0 2em DarkTurquoise) drop-shadow(0 0 2em DarkTurquoise);
}

.text-with-stroke {
    -webkit-text-stroke: 1px rgb(230, 230, 230);
    /* -webkit-text-fill-color: white; */
}

.text-with-shadow {
    /* text-shadow: 2px 2px 1px rgba(128, 128, 128, 0.5); */
    /* x偏移 y偏移 模糊度 顏色 */
    /* text-shadow: 0 0 1px rgba(0, 0, 0, 0.6); */
    /* -webkit-text-stroke: 1px rgba(0, 0, 0, 0.173); */
    -webkit-text-stroke: 1px rgba(130, 130, 130, 0.238);
}

.text-with-black-shadow {
    text-shadow: 0 0 0.5rem rgb(0, 0, 0, 0.4);
}

.text-with-white-shadow {
    /* text-shadow: 2px 2px 1px rgba(128, 128, 128, 0.5); */
    /* x偏移 y偏移 模糊度 顏色 */
    text-shadow: 0 0 0.3rem rgba(255, 255, 255, 1);
    /* -webkit-text-stroke: 1px rgb(255, 255, 255); */
}

.text-webkit-text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.242);
}

.card-title {
    margin: 0;
    padding-top: 2px;
    font-size: 1.3vw;
    /* font-weight: bolder; */
    text-align: center;

    white-space: nowrap;
    /* 不换行 */
    /* overflow: hidden; */
    /* 用省略号表示被截掉的文本 */
    max-width: 120%;
    user-select: none;
    font-weight: bolder;
}

.card-op-tm {
    font-size: 0.7vw;
    padding: 0;
    margin: 0;
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
}

.down-card-body {
    transition: all 0.25s;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: center;
    max-width: 80%;
    margin-top: 3px;
    margin-bottom: 3px;
}


div.card {
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    box-shadow: 0 0 0 1px black;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.879);
}


div.card.selected {
    color: #fff;
    background-color: #324856;
    box-shadow: 0 0 0 1px #324856;
}

div.UpCard.selected {
    background-color: #f7fafa9b;
    color: #324856;
    font-weight: bolder;
}

div.UpCard.preOrderMain {
    border: 2px solid white;
}

div.UpCard.preOrder {
    border: 2px dashed white;
}

.chosen-court .table-wrapper::before,
.chosen-court .table-wrapper::after,
.chosen-court .court-preparing::before,
.chosen-court .court-preparing::after {
    content: '';
    position: absolute;
    border-color: #37564e;
    /* L形框线的颜色 */
    border-style: solid;
    pointer-events: none;
}

.chosen-court .table-wrapper::before {
    border-width: var(--calculated-border-width, 2px) 0 0 var(--calculated-border-width, 2px);
    width: 3vw;
    height: 3vw;
    top: var(--corner-position, -5px);
    left: var(--corner-position, -5px);
}

.chosen-court .court-preparing::before {
    border-width: var(--calculated-border-width, 2px) var(--calculated-border-width, 2px) 0 0;
    /* 上和右边框宽度 */
    width: 3vw;
    /* 调整以适应需求 */
    height: 3vw;
    /* 同上 */
    top: var(--corner-position, -5px);
    right: var(--corner-position, -5px);
}

.chosen-court .table-wrapper::after {
    border-width: 0 var(--calculated-border-width, 2px) var(--calculated-border-width, 2px) 0;
    width: 3vw;
    height: 3vw;
    bottom: var(--corner-position, -5px);
    right: var(--corner-position, -5px);
}

.chosen-court .court-preparing::after {
    border-width: 0 0 var(--calculated-border-width, 2px) var(--calculated-border-width, 2px);
    width: 3vw;
    height: 3vw;
    bottom: var(--corner-position, -5px);
    left: var(--corner-position, -5px);
}

div.algo-chosen-top {
    max-height: fit-content;
    /* color: dodgerblue; */
}

.algo-chosen-top .card {
    border-color: orangered;
}

div.algo-chosen-bottom {
    max-height: fit-content;
}

.algo-chosen-bottom .card {
    border-color: dodgerblue;
}

.white-container {
    background-color: transparent;
    border: 2px solid whitesmoke;
    border-radius: 10px;
}


.panel-label {
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    /* 垂直置中 */
    justify-content: center;
    /* padding: 1vw; */
    color: black;
}


.person-wait-label {
    background-color: transparent;
}

.area-name {
    font-size: 2vw;
    display: flex;
    align-items: center;
    /* 垂直置中 */
    justify-content: center;
    /* 水平置中 */
    white-space: nowrap;
}

.chosen {
    background-color: yellowgreen;
}

.gameStart {
    background-color: greenyellow;
    width: 45%;
}

#court1end,
#court2end,
#court3end,
#court4end {
    background-color: #D18237;
    border-color: #D18237;
}

#court1end:hover,
#court2end:hover,
#court3end:hover,
#court4end:hover {
    background-color: #f6973f;
    border-color: #f6973f;
}

.small-text {
    font-size: var(--small-font-size)
}

.normal-text {
    font-size: var(--font-size)
}

.large-text {
    font-size: var(--large-font-size)
}

.btn-hidden {
    display: none;
}

.btn.btn-up-arrow,
.btn.btn-down-arrow {
    height: 6vmin;
    font-size: 3vmin;
    padding: 0%;
}

#goFullScreen,
#goFullScreenMobile {
    border-left: 2px solid #6C757D;
    border-radius: 0;
}

#panelSwitch,
#panelSwitchMobile {
    border-radius: 0;
}

#goFullScreen:hover,
#goFullScreenMobile:hover,
#panelSwitch:hover,
#panelSwitchMobile:hover {
    background-color: transparent;
    color: white;
}

button.btn-white-font {
    background-color: transparent;
    color: white;
    width: min-content;
    margin: 0;
    padding: 0 1rem;
    border: none;
}

button.btn-darkRed {
    background-color: #8B0000;
    color: white;
}

button.btn-darkOrange {
    background-color: #c35e15;
    color: white;
}

button.btn-darkBlue {
    background-color: #324856;
    color: white;
}

button.btn-darkBlue:hover {
    background-color: white;
    color: #324856;
}

button.btn-transparent {
    background-color: transparent;
    color: #324856;
    border: 2px solid #324856;
}

button.btn-white-frame {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

button.btn-white-frame:hover {
    background-color: white;
    border: 2px solid white;
    color: #7aaca9;
}

button.btn-purple {
    background-color: #695acdca;
    border-color: #695acdca;
    color: white;
}

button.btn-purple:hover {
    background-color: #5642ac;
    border-color: #5642ac;
    color: white;
}

button.btn-lightBlue {
    background-color: #47abf1e9;
    border-color: #47abf1e9;
    color: white;
}

button.btn-lightBlue:hover {
    background-color: #47abf1e9;
    border-color: #47abf1e9;
    color: white;
}

button.btn-blue {
    background-color: #3887be;
    border-color: #3887be;
    color: white;
}

button.btn-blue:hover {
    background-color: #347aa9;
    border-color: #347aa9;
    color: white;
}

button.btn-red {
    background-color: #cd5a5a;
    border-color: #cd5a5a;
    color: white;
}

button.btn-red:hover {
    background-color: #ad4c4c;
    border-color: #ad4c4c;
    color: white;
}

button.btn-gray {
    background-color: #6f6f6f;
    border-color: #6f6f6f;
    color: white;
}

button.btn-gray:hover {
    background-color: #596269;
    border-color: #596269;
    color: white;
}

button.btn-spotify {
    background-color: #1DB954;
    border-color: #1DB954;
    color: white;
    height: 3vw;
    width: 20vw;
}

button.btn-spotify:hover {
    background-color: #1ED760;
    border-color: #1ED760;
    color: white;
}

button.btn-green {
    background-color: #56b881;
    border-color: #56b881;
    color: white;
}

button.btn-green:hover {
    background-color: #4a9f7f;
    border-color: #4a9f7f;
    color: white;
}

button.btn-orange {
    background-color: #D18237;
    border-color: #D18237;
    color: white;
}

button.btn-orange:hover {
    background-color: #b86d2c;
    border-color: #b86d2c;
    color: white;
}

button.btn-yellow {
    background-color: #fbb03b;
    border-color: #fbb03b;
    color: white;
}

button.btn-yellow:hover {
    background-color: #dd9d34;
    border-color: #dd9d34;
    color: white;
}

button.btn-courtGreen {
    background-color: #4A746A;
    border-color: #4A746A;
    color: white;
}

button.btn-courtGreen:hover {
    background-color: #6a9f94;
    border-color: #6a9f94;
    color: white;
}

button.btn-courtBlue {
    background-color: #324856;
    border-color: #324856;
    color: white;
}

button.btn-courtBlue:hover {
    background-color: #4a6b7f;
    border-color: #4a6b7f;
    color: white;
}

button.btn-courtBrown {
    background-color: #c29041;
    border-color: #c29041;
    color: white;
}

button.btn-courtBrown:hover {
    background-color: #e0b37a;
    border-color: #e0b37a;
    color: white;
}

.even {
    background-color: rgb(122, 176, 223);
}

.odd {
    background-color: antiquewhite;
}

.court-fighting {
    background-color: #4A746A;
    height: 100%;
}

.court-preparing {
    background-color: #c29041;
}

.court {
    /* background-color: #4A746A; */
    /* border: 2px solid white; */
    /* min-height: 350px; */
    margin-bottom: 0;
}

.court .net {
    background-color: rgba(240, 248, 255, 0);

    border-color: white;
    border-left: none;
    border-right: none;
    /* display: flex; */
    flex-direction: column;
    /* 垂直堆疊 */
    height: 100%;
    /* 或你想指定的固定高度 */
}



.net-upper {
    background-color: transparent;
    color: white;
    text-align: center;
    border-bottom: white dashed 1px;
    height: 50%;
}

.net-lower {
    background-color: transparent;
    color: white;
    text-align: center;
    height: 50%;
}


tr>td.noNet {
    /* text-align: center; */
    color: aliceblue;
    border-left: none;
    border-right: none;
    /* 设置固定高度，确保两个单元格高度相同 */
    vertical-align: middle;
    /* 垂直居中 */
    position: relative;
    padding: 1px;
    border-bottom: white dashed 1px;
}




table.court tr.team-wrap {
    height: 6vw;
    background-color: transparent;
    width: 100%;
    table-layout: fixed;
}

div.btn-wrap {
    align-items: center;
}


.person-span {
    margin: 3px;
    border: 1px solid black;
    /* background-color: white; */
}

.zero-court {
    /* background-color: white; */
    background-color: #324856;
}

.analysis td {
    height: auto;
}

.personal_table {
    background-color: aliceblue;
    margin: 2px;
    border-radius: 3px;
}

.json {
    width: 100%;
}

.simplify_able_true {
    visibility: hidden;
}

.chosen {
    background-color: rgb(216, 235, 133);
}

tr.backSpace {
    height: 2%;
    padding: 0%;
}

tr.backSpace>td {
    padding: 2%;
    border-bottom: none;
    border-top: none;
}

td.sideSpace {
    width: 5%;
    padding: 0%;
}

table.court td.td-player {
    color: white;
    font-size: 1.8vw;
    text-align: center;
    /* 水平置中 */
    vertical-align: bottom;
    /* 垂直置中 */
    padding: 0%;
    height: auto;
    min-height: 0;
    width: 40%;
    /* 設置固定百分比寬度 */
    margin: 5px;
}

td.bottom {
    color: black;
    font-size: 100%;
    text-align: center;
    /* 水平置中 */
    vertical-align: middle;
    /* 垂直置中 */
    padding: 0%;
}

td.top {
    color: black;
    font-size: 100%;
    text-align: center;
    /* 水平置中 */
    vertical-align: middle;
    /* 垂直置中 */
    padding: 0%;
}

div.rightSide {
    border-bottom: white dashed 1px;
}

div.leftSide {
    border-bottom: white dashed 1px;
}

div.up-team-rank,
div.down-team-rank {
    text-align: center;
    display: block;
    font-size: var(--font-size);
    /* padding-left: 0.5ch; */
    /* border-bottom: white dashed 1px; */

}

div.up-end-btn {
    text-align: center;
    display: block;
    /* padding-right: 0.5ch; */
    border-bottom: white dashed 1px;
}

div.down-end-btn {
    text-align: center;
    display: block;
    /* padding-right: 0.5ch; */
}


#wait_to_register_text {
    text-align: center;
}

.UpCard>.score-line {
    font-size: var(--font-size);
}

.UpCard>.time-line {
    font-size: 1.3vw;
}


div.UpCard {
    margin: var(--border-width, 2px);
    border: var(--border-width, 10px) solid transparent;
    white-space: nowrap;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    /* 垂直排列 */
    justify-content: end;
    /* 上中下平均分散 */
}

@keyframes blink-red {
    0% {
        background-color: transparent;
        border-color: transparent
    }

    50% {
        background-color: #cd5a5a;
        border-color: 1px solid #cd5a5a;
    }

    100% {
        background-color: transparent;
        border-color: transparent
    }
}

.blinking-red {
    background-color: #cd5a5a;
    border-color: 1px solid #cd5a5a;
    animation: blink-orange 2s linear infinite;
}

@keyframes blink-purple {
    0% {
        background-color: transparent;
        border-color: transparent
    }

    50% {
        background-color: #7261e0;
        border-color: 1px solid #7261e0;
    }

    100% {
        background-color: transparent;
        border-color: transparent
    }
}

.blinking-purple {
    background-color: #695acdca;
    border-color: 1px solid #695acdca;
    /* 邊框初始樣式 */
    animation: blink-purple 2s linear infinite;
    /* 應用動畫 */
}

@keyframes blink-btn-lightBlue {
    0% {
        color: transparent;
    }

    50% {
        color: #2b88f3;
    }

    100% {
        color: transparent;
    }
}

.blinking-btn-lightBlue {
    animation: blink-btn-lightBlue 0.75s linear infinite;
    /* 應用動畫 */
}

@keyframes blink-btn-red {
    0% {
        color: transparent;
    }

    50% {
        color: #f5340d;
    }

    100% {
        color: transparent;
    }
}

.blinking-btn-red {
    animation: blink-btn-red 3s linear infinite !important;
    /* 強制應用動畫 */
}

.btn-bloodRed {
    color: #f5340d !important;

}

.btn-leafGreen {
    color: #28a745 !important;
}

@keyframes blink-btn-green {
    0% {
        color: transparent;
    }

    50% {
        color: #28a745;
    }

    100% {
        color: transparent;
    }
}

.blinking-btn-green {
    animation: blink-btn-green 0.75s linear infinite !important;
    /* 強制應用動畫 */
}


/* 模態視窗樣式 */
div.boModal {
    position: fixed;
    z-index: 1051;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

div.boModal-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    /* 調整模態視窗的寬度 */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    /* 添加陰影效果 */
    border-radius: 5px;
    /* 圓角邊框 */
    text-align: center;
}

#confirm-text {
    padding-bottom: 2rem;
}

/* 按鈕樣式 */
button {
    background-color: #4CAF50;
    /* 綠色 */
    color: white;
    padding: 2px 20px;
    margin: 0 5px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    height: 40px;
}

button:hover {
    background-color: #ffffff;
    color: #5d5a5a;
}

/* 關閉按鈕樣式 */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 模態視窗樣式 */
.modal-dialog {
    max-width: 80%;
    transform: translate(0%, 30%) !important;
}

#court_setting_Modal .modal-dialog {
    max-width: 50%;
}

#courtSettingPanel_Modal_dialog {
    max-width: 90%;

}

/* #courtSettingPanel_Modal_dialog {
    max-width: 80%;
} */

#adjust_player_Modal_dialog {
    font-size: 1.5rem;
}

#adjust_player_table tr {
    height: 4rem;
}

#adjust_player_table input,
#adjust_player_table select {
    max-width: 100%;
    /* 不超過 cell 寬度 */
    width: 60%;
    /* 或固定寬度 */
    box-sizing: border-box;
    /* 包含 padding 不會超出 */
}


.partner-logo {
    width: 100%;
    height: auto;
    /* 自適應高度 */
    margin: 0 auto;
    /* 水平居中 */
    padding: 5px;
    border-radius: 10%;
}

.partner-name {
    white-space: nowrap;
    /* 不換行 */
    font-size: var(--xsmall-font-size);
}



.custom-list-group .list-group-item {
    background-color: #5d5a5a;
    color: white;
    /* 設定文字顏色 */
    justify-content: flex-start;
}

.song-info {
    padding-left: 5px;
}

.modal-content {
    background-color: white;
    /* 設置背景顏色 */
    border-radius: 8px;
    /* 圓角邊框 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 添加陰影 */
    padding: 10px;
    /* 內距 */
    position: relative;
}

/* 樣式化按鈕 */
.btn {
    border: 2px solid transparent;
    border-radius: 0.8rem;
    margin: 2px 1rem;
    width: 100%;
    max-width: 14rem;
    padding: 0.375rem 0.1rem;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    min-height: 2em;
    /* 使用 em 單位，會根據字體大小自動調整 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.w-btn.btn,
.s-btn.btn {
    font-size: 1vw;
}

#open_modal_of_record_win_loss {
    width: 8rem;
    max-width: 8rem;
    font-size: 1rem;
}

#open_modal_of_record_win_loss_mobile {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    margin: 0.5rem;
    min-height: 2.5rem;
}

#navbar-container {
    margin-left: -0;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* 表格樣式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table td,
.table th {
    border: 1px solid white;
    text-align: left;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: large;
    white-space: nowrap;
}

.table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-score td {
    width: 25%
}

/* 下拉選單樣式 */
select.form-select {
    /* padding: 5px 10px; */
    border-radius: 4px;
    border: 1px solid #ddd;
    width: -webkit-fill-available;
    font-size: 0.8rem;
    height: 1.6rem;
    margin: 0.6rem 0;
}

#confirmBtn {
    background-color: #ff3700d6;
    padding: auto;
    /* margin-left: 5%; */
}

#confirmBtn2:hover {
    background-color: #4CAF50;
    padding: auto;
    /* margin-left: 5%; */
}

#cancelBtn {
    background-color: #aaa;
    padding: auto;
    /* margin-right: 5%; */
}

#bulletin_board_container {
    position: relative;
    transition: height 0.3s ease;
}

#bulletin_board {
    width: 100%;
    overflow-y: auto;
}

.table-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 確保水印正好位於容器中心 */
    font-size: calc(18vw / var(--text-length));
    /* 根據文字長度動態調整字體大小 */
    color: rgba(232, 226, 226, 0.3);
    /* 設置半透明的文字顏色 */
    pointer-events: none;
    /* 確保下方元素可點擊 */
    z-index: 0;
    /* 確保浮水印位於其他內容之上 */
    user-select: none;
    white-space: nowrap;
    /* 防止文字換行 */
}

.watermarkVS {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 確保水印正好位於容器中心 */
    font-size: 80px;
    font-weight: 600;
    /* 根據文字長度動態調整字體大小 */
    color: rgba(0, 0, 0, 0.081);
    /* 設置半透明的文字顏色 */
    pointer-events: none;
    /* 確保下方元素可點擊 */
    z-index: 10;
    /* 確保浮水印位於其他內容之上 */
    user-select: none;
    white-space: nowrap;
    /* 防止文字換行 */
}


.vs-score-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 確保水印正好位於容器中心 */
    font-size: 1rem;
    /* 根據容器寬度調整字體大小，也可以用px或em */
    color: rgb(232, 226, 226);
    /* 設置半透明的文字顏色 */
    /* pointer-events: none; */
    /* 確保下方元素可點擊 */
    z-index: 13;
    /* 確保浮水印位於其他內容之上 */
    user-select: none;
}

.bindlock {
    user-select: none;
    pointer-events: none;
}

.table {
    z-index: 1;
    /* 確保表格在浮水印下方 */
}

#name_list_input {
    width: 100%;
}

body {
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    background-color: #97BAA4;
    padding-top: 4rem;
    /* 根據 navbar 高度調整 */

    line-height: 1;
    /* 比預設值好讀，也不太會出問題 */
    font-family: "Noto Sans TC", sans-serif;

}

/* 特定元素依然可以被選取 */
.selectable {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}



.button-container {
    /* position: absolute;
    bottom: 10px;
    left: 0; */
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0 15px;
}


.hidden {
    display: none;
}

.show {
    display: block;
}

.upPoint {
    color: green;
    font-weight: normal;
}

.downPoint {
    color: red;
    font-weight: normal;
}

.court-btn-container {
    background-color: whitesmoke;
    border-radius: 0 0 10px 10px;
}

.pickPeople-btn-container,
.end-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* 确保高度占满整个单元格 */
}

.broadcast-btn,
.court-setting-btn,
.pickPeople-btn,
.end-btn,
.go-to-pk-btn {
    padding: 3px 5px;
    /* 调整按钮内边距，使按钮更小 */
    border-left: 2px solid darkslategrey;
    /* border-radius: 4px; */
    background-color: transparent;
    cursor: pointer;
    text-align: center;
    font-size: var(--normal-font-size);
    /* 调整字体大小 */
    line-height: 1.2;
    /* 调整行高，使文字间距适中 */
}

.court-setting-btn {
    border: transparent;
}

.broadcast-btn:hover,
.court-setting-btn:hover,
.pickPeople-btn:hover,
.end-btn:hover,
.go-to-pk-btn:hover {
    background-color: #e2e6ea;
    color: #324856;
}

.icon-btn-pre,
.icon-btn-pk {
    background: transparent;
    color: #6c757d;
    border-radius: 0;
    width: 100%;
    padding: 0;
    margin: 10px 0 10px 0;
    /* font-size: 18px; */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    max-height: 2rem;
}

.icon-btn:hover {
    background: rgb(255, 255, 255);
    transform: scale(1.1);
}

.icon-btn-pre:focus,
.icon-btn-pk:focus {
    background: #cbe3df;
    transform: scale(0.9);
    outline: none;
    /* color: white; */
    /* 綠色陰影框 */
}

#myAlertModal-content {
    width: 60%;
}

#myAlertModal-text-wrapper {
    text-align: center;
    /* 確保內部內容居中 */
    width: 100%;
    /* 設置適當的寬度 */
    display: flex;
    justify-content: center;
}

#myAlertModal-text {
    text-align: left;
    /* 文字靠左 */
    max-width: 90%;
    /* 限制最大寬度以保持良好的文本流，可以調整 */
}

.qrcode-text {
    font-size: 1vw;
    font-weight: bold;
    text-align: center;
}

.qrcode-img {
    display: block;
    /* 使图片居中 */
    border-radius: 10%;
}

.UpCard p {
    margin: 0;
}

.UpCardName {
    font-weight: bolder;
}

.UpCardNameWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.6vw;
    /* font-weight: bold; */
    z-index: 1;
}

.card-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3vw;
    position: relative;
    /* 建立定位參考點 */
    /* display: inline-block; */
    /* 讓內容尺寸包住 */
}

.upCardOpponent {
    font-size: 1rem;
    padding: 0.1rem;
    background-color: aliceblue;
    border-radius: 50%;
    border-width: 2px;
    border-style: solid;
    text-align: start;
    align-items: start;
}

.upCardTeammateOnce {
    font-size: 2rem;
    /* background-color: rgba(255, 255, 255, 0.464); */
    border-radius: 50%;
    margin: 0;
}

i.card-opponent {
    background-color: white;
    border: 2px solid transparent;
    /* border: 2px solid; */
    border-radius: 50%;
    width: 1.2vw;
    height: 1.2vw;

    font-size: 0.9vw;
    font-weight: bold;
    line-height: 0.9vw;
    text-align: center;
}

p.card-opponent {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-10%, -10%);
    /* 微調位置到文字外圍角落 */
    margin: 0;
    background-color: white;
    border: 2px solid rgb(237, 169, 73);
    /* border: 2px solid; */
    border-radius: 50%;
    width: 1.5vw;
    height: 1.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1vw;
    font-weight: bold;
    line-height: 1vw;
    text-align: center;
    z-index: 100;
}

/* Spotify Player Styles */
.player-container {
    background-color: #282828;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.player-album,
.player-header {
    display: flex;
    justify-content: end;
    align-items: center;
    height: 100%;
    padding: 0px 5px 5px 5px;
}

.album-art {
    width: 3rem;
    /* 1:1 Aspect Ratio */
}

#queue-list {
    max-height: 100%;
    overflow-y: auto;
}

#player-controls .btn-music {
    padding: 0;
    margin: 0;
}

#player-controls .btn-link {
    color: #b3b3b3;
}

#player-controls .btn-link:hover {
    color: #1db954;
    text-decoration: none;
}

#player-controls .fa-2x {
    font-size: 1.1em;
}

#player-controls .fa-3x {
    font-size: 1.5em;
}

#track-name {
    color: #fff;
    font-size: var(--normal-font-size);
}

#track-artists,
#track-album {
    color: #fff;
    font-size: var(--rnormal-font-size);
}

.form-control-range {
    width: 100%;
}

/* Progress bar styles */
#progress,
#volume {
    -webkit-appearance: none;
    /* 移除預設樣式 */
    appearance: none;
    /* 移除預設樣式 */
    width: 100%;
    /* 滑桿寬度為容器的100% */
    height: 16px;
    /* 實際的可點擊範圍設定為20px，與進度點一致 */
    background: transparent;
    /* 背景設置為透明，讓滑桿看起來只有細線 */
    position: relative;
    /* 使細線進度條能夠定位 */
    cursor: pointer;
    /* 當滑鼠懸停時顯示為手型 */
}

/* 滑桿的背景（可視進度條） */
#progress::before,
#volume::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    /* 視覺上的進度條寬度 */
    background-color: #b3b3b3;
    /* 背景色設置為灰色 */
    transform: translateY(-50%);
    /* 將細線垂直居中 */
    border-radius: 1px;
    /* 讓細線有圓角效果 */
}

/* 滑動塊的樣式（針對WebKit瀏覽器：Chrome, Safari等） */
#progress::-webkit-slider-thumb,
#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    /* 移除預設樣式 */
    appearance: none;
    /* 兼容非Webkit瀏覽器 */
    width: 16px;
    /* 滑塊寬度 */
    height: 16px;
    /* 滑塊高度 */
    border-radius: 50%;
    /* 使滑塊成圓形 */
    background: #b3b3b3;
    /* 滑塊顏色為橘紅色 */
    cursor: pointer;
    /* 當滑鼠懸停在滑塊上時顯示手型圖示 */
}

/* Firefox的滑動塊樣式 */
#progress::-moz-range-thumb,
#volume::-moz-range-thumb {
    width: 10px;
    /* 寬度設置為10px */
    height: 10px;
    /* 高度設置為10px */
    border-radius: 50%;
    /* 圓形滑塊 */
    background-color: #b3b3b3;
    /* 滑塊顏色 */
    cursor: pointer;
    /* 滑鼠指標為手型 */
}

/* 滑桿軌道的樣式（針對WebKit瀏覽器） */
#progress::-webkit-slider-runnable-track,
#volume::-webkit-slider-runnable-track {
    background-color: transparent;
    /* 軌道設置為透明，因為可視部分在::before中處理 */
}

/* Firefox的滑桿軌道樣式 */
#progress::-moz-range-track,
#volume::-moz-range-track {
    background-color: transparent;
    /* 軌道設置為透明 */
}

#login-panel {
    background-color: #343a40;
    border-radius: 10px;
}

/* 設定當按鈕處於 active 狀態時的樣式 */
#repeat-btn.active,
#shuffle-btn.active,
#repeat-label.active {
    color: #28a745 !important;
}

/* 這是按鈕的基礎樣式，當沒有 active 類時的狀態 */
#repeat-btn,
#shuffle-btn,
#repeat-label {
    color: white;
    font-size: var(--rnormal-font-size);
}

#login-info {
    color: white;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

#spotify-login>.logo-img {
    width: 50%;
    height: 100%;
    object-fit: contain;
}

#spotify-grand {
    margin-top: 8px;
    height: 100%;
}

#logout-btn {
    background-color: transparent;
    height: min-content;
    margin: 0;
    padding: 0;
}

.selected-wl {
    background-color: #4A746A;
    color: white;
}

/* .ifBinding {
    background-color: #f3612b;
    color: white;
} */
.match-record {
    font-family: Arial, sans-serif;
    width: 100%;
    margin-bottom: 5px;
    padding: 3px;
    background-color: #f9f9f9;
    border-radius: 5px;
    position: relative;
}

.match-header,
.match-footer {
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* gap: 10px; */
}

span.nowrap {
    white-space: nowrap;
    /* 防止文字換行 */
    margin: 4px;
}

.game-info {
    font-size: 1.2rem;
}

.ws {
    width: 2rem;
    /* 1/12的寬度 */
    font-size: 1.5rem;
    /* 放大字體 */
    font-weight: bold;
    text-align: center;
    background-color: #ddd;
    padding: 0.2rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* 讓元素充滿父容器 */
}

.win-left {
    /* margin-right: 3px; */
    order: -1;
    /* 移到最左側 */
}

.win-right {
    /* margin-left: 3px; */
    order: 5;
    /* 移到最右側 */
}

.left-team,
.right-team,
.middle {
    flex: 1;
    /* 讓兩側的隊伍等比例佔據空間 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    font-size: 1.2vw;
    text-align: center;
    border-radius: 5px;
    /* border-width: 2px;
    border-style: solid;
    border-color: transparent; */
}

.middle {
    margin-left: 1%;
    margin-right: 1%;
}

.left-team {
    align-items: start;
}

.right-team {
    align-items: end;
}

.vs {
    /* width: 50px; */
    text-align: center;
    font-weight: bold;
    flex: 1;
    white-space: nowrap;
}

.ifBinding {
    /* border: 1px solid #F0CA50; */
    /* border: 1px solid #F0CA50; */
    background-color: #f6e9c1;
    border-radius: 5px;
}

.shadow-effect {
    text-shadow: 1px 1px 1px lightgray;
}

.shadow-effect-bold {
    /* -webkit-text-stroke: 1px white; */
    text-shadow: 1px 1px 4px white;
    font-weight: bold;
    /* 外框寬度和顏色 */
}

.ifSelected-2 {
    border: 3px solid #C1395E;
    /* font-weight: bold; */
}

.ifSelected-0 {
    border: 3px solid #E07B42;
    /* font-weight: bold; */
}

.ifSelected-1 {
    border: 3px solid #5599d5;
    /* font-weight: bold; */
}

.ifSelected-3 {
    border: 3px solid #139f00;
    /* font-weight: bold; */
}

.win-team {
    color: green;
    font-weight: bold;
}

.lose-team {
    color: red;
    font-weight: bold;
}

.miniDash {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background: rgba(33, 33, 33, 0.85);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); */
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green {
    background-color: #4caf50;
    /* 綠色 */
}

.dot.yellow {
    background-color: #ffeb3b;
    /* 黃色 */
}

.dot.red {
    background-color: #f44336;
    /* 紅色 */
}

.recordTeam {
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 3px;
    display: inline;
    font-weight: bolder;
    -webkit-text-stroke: 1px rgba(130, 130, 130, 0.238);
    /* text-shadow: 0 0 1rem rgb(255, 255, 255); */
}

#which_game {
    font-size: var(--font-size);
}

a {
    color: #fff;
}

#navbar-title,
#navbar-info {
    white-space: nowrap;
}

#navbar-title-container {
    color: #fff;
}

.nav-font {
    font-size: 1rem;
    color: #fff;
}

#controlIcon {
    height: 4rem;
    width: 4rem;
}

.lion-btn {
    height: 3vw;
    width: 3vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-container {
    padding: 0 11px 0 11px;
}


/* 遮罩背景 */
.status-modal-overlay {
    display: none;
    /* 預設不顯示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.013);
    /* 黑色半透明 */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

/* 倒數模式：加深背景 */
.status-modal-overlay.countdown-mode {
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    align-items: flex-start;
    padding-top: 50vh;
    padding-left: 50vw;
    /* 往下移動，距離頂部 25% 視窗高度 */
}

/* 倒數數字樣式 */
.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    color: #f1741a;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
}

/* 倒數提示文字 */
.countdown-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
    display: block;
}

/* 倒數標題 */
.countdown-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2e7d32;
    display: block;
    margin-bottom: 16px;
}

/* 倒數對戰組合 */
.countdown-matchup {
    font-size: 1.15rem;
    font-weight: bold;
    color: #324856;
    display: block;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* 倒數動作文字 */
.countdown-action {
    font-size: 1rem;
    color: #f1741a;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

/* 中間方塊 */
.status-modal-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
    border: #324856 3px solid;
    justify-content: center;
    align-items: center;
}

/* spinner 動畫 */
.spinner {
    border: 5px solid #eee;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* icon 樣式 (成功或錯誤時取代 spinner) */
.status-success {
    font-size: 40px;
    color: green;
}

.status-error {
    font-size: 40px;
    color: red;
}

.trophy-icon {
    transform: translate(0, -8%);
}

/* ---------------------------------- */
/* From Uiverse.io by Na3ar-17 */
.b-switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
}

.b-switch {
    font-size: 0.875rem;
    position: relative;
    display: inline-block;
    width: 8rem;
    height: 2.6rem;
    margin: 0;
    align-items: center;
    display: flex;
}

.b-switch input {
    display: none;
    opacity: 0;
    width: 0;
    height: 0;
}

.b-switch input:checked+.slider .ball {
    box-shadow: 30px 30px 100px #7f8996;
}

.b-switch input:checked+.slider .title {
    left: 40%;
}

.b-switch input:checked+.slider {
    background-color: #3887BE;
    border: 1px solid transparent;
}

.b-switch input:focus+.slider {
    box-shadow: 10px 10px 100px #7f8996;
}

.b-switch input:checked+.slider .ball {
    left: 100%;
    /* right: 0; */
    transform: rotate(360deg);
    box-shadow: none;
    outline: 0px solid rgba(255, 255, 255, 0.278);
    top: 50%;
    transform: translate(-1.93rem, -50%);
}

.b-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0.1rem;
    bottom: 0.1rem;
    left: 0.5rem;
    right: 0.5rem;
    /* transform: translate(0, 5%); */

    background-color: transparent;
    transition: all 0.4s;
    border-radius: 1.3rem;
    border: 1px solid #ffffff;
}

.b-switch .slider .title {
    position: absolute;
    font-size: 1rem;
    top: 53%;
    left: 60%;
    transform: translate(-50%, -50%);
    /* font-weight: 600; */
    transition: all 0.4s;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
    text-align: center;
}

.b-switch .slider .ball {
    background-color: #fff;
    height: 1.6rem;
    width: 1.6rem;
    border-radius: 50%;
    position: absolute;
    left: -1px;
    transition: 0.4s;
    top: 50%;
    transform: translate(0.33rem, -50%);
}

.b-switch .slider .ball .icon {
    position: absolute;
    top: 58%;
    left: 53%;
    transform: translate(-50%, -50%);
    color: #313033;
    font-size: 12px;
}

span.note {
    font-size: 0.8rem;
    line-height: 0.8rem;
}

textarea.setting-textarea {
    font-size: 0.8rem;
    padding: 0.3em 0.74em;
    margin: 0.5rem 0;

}

/* ---------------------------------- */
/* From Uiverse.io by arghyaBiswasDev */
/* The switch - the box around the slider */
.s-switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.6rem;
    margin: 0.6rem;
}

/* Hide default HTML checkbox */
.s-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.s-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    border: 1px solid #adb5bd;
    transition: .4s;
    border-radius: 30px;
}

.s-slider:before {
    position: absolute;
    content: "";
    height: 0.9rem;
    width: 0.9rem;
    border-radius: 20px;
    left: 0.27rem;
    bottom: 0.25rem;
    background-color: #adb5bd;
    transition: .4s;
}

input:checked+.s-slider {
    background-color: #007bff;
    border: 1px solid #007bff;
}

input:focus+.s-slider {
    box-shadow: 0 0 1px #007bff;
}

input:checked+.s-slider:before {
    transform: translateX(1.4rem);
    background-color: #fff;
}

/* ---------------------------------- */

:focus {
    outline: 0;
    border-color: #2260ff;
    box-shadow: 0 0 0 4px #b5c9fc;
}

.mydict div {
    display: flex;
    flex-wrap: wrap;
    /* margin-top: 0.5rem; */
    justify-content: center;
    width: 100%;
}

.mydict input[type="radio"] {
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.mydict input[type="radio"]:checked+span {
    box-shadow: 0 0 0 0.0625em #0043ed;
    background-color: #dee7ff;
    z-index: 1;
    color: #0043ed;
}

.setting-section {
    font-size: 0.8rem;
}

.setting-section-title {
    color: black;
}

.radio-title {
    color: black;
}

.border-bottom-thick {
    border-bottom: 2px solid #dee2e6;
}

label.c-radio {
    margin: 0.6rem 0;
    line-height: 1;
}

label.c-radio>span.radio-span {
    display: block;
    cursor: pointer;
    background-color: #fff;
    padding: 0.4rem 0.8rem;
    position: relative;
    margin-left: .0625em;
    box-shadow: 0 0 0 0.0625rem #b5bfd9;
    letter-spacing: 0.05rem;
    color: #3e4963;
    text-align: center;
    transition: background-color .5s ease;
    white-space: nowrap;
    overflow: hidden;
}

label.c-radio:first-child span {
    border-radius: 0.4rem 0 0 0.4rem;
}

label.c-radio:last-child span {
    border-radius: 0 0.4rem 0.4rem 0;
}


/* ---------------------------------- */
.miniDash .col-3 {
    padding: 3px 0;
    margin: 3px 0;
}

.miniDash .col-6 {
    padding: 3px 0;
}

.number-input.bootstrap-version .form-control {
    /* max-width: 80px; */
    /* 控制中間寬度 */
    margin: 0.21rem 0;
    font-size: 1rem;
    background-color: transparent;
}

.number-input.bootstrap-version .btn {
    /* width: 50px; */
    font-size: 1rem;
    background-color: #F5F7FA;
    max-width: 3rem;
}

.number-input.bootstrap-version .btn:hover {
    color: #6c757d;
}

.number-input.bootstrap-version .btn.plus {
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0 5px 5px 0;
    border: 1px solid #DCDFE6;
    border-left: none;
}

.number-input.bootstrap-version .btn.minus {
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 5px 0 0 5px;
    border: 1px solid #DCDFE6;
    border-right: none;
}

/* ---------------------------------- */
.frame-button {
    background-color: #ffffff00;
    color: #fff;
    width: 5rem;
    height: 2rem;
    border: gray 0.2em solid;
    border-radius: 11px;
    text-align: right;
    transition: all 0.6s ease;
    font-size: xx-small;
    padding: 0 0.4rem 0 0;
    /* margin-top: 6px; */
}

#miniDashUsername {
    white-space: nowrap;
}

#miniDashBtn1 {
    border: #3654ff 0.2em solid;
}

#miniDashBtn1:hover {
    background-color: #3654ff;
}

#miniDashBtn1 svg {
    translate: 50% -10%;
}

#miniDashBtn1:hover svg {
    transform: translateX(-5px);
}



#miniDashBtn2 {
    border: #28a745 0.2em solid;
}

#miniDashBtn2:hover {
    background-color: #28a745;
}

#miniDashBtn2 svg {
    translate: 50% -15%;
}

#miniDashBtn2:hover svg {
    transform: translateY(-5px);
}

#miniDashBtn3 {
    border: #ff3700d6 0.2em solid;
}

#miniDashBtn3:hover {
    background-color: #ff3700d6;
}

#miniDashBtn3 svg {
    translate: 45% -15%;
}

#miniDashBtn3:hover svg {
    transform: translateY(5px);
}

#miniDashBtn4 {
    border: #ffc107 0.2em solid;
}

#miniDashBtn4:hover {
    background-color: #ffc107;
}

#miniDashBtn4 svg {
    translate: 50% -15%;
}

#miniDashBtn4:hover svg {
    transform: translateX(5px);
}

.frame-button:hover {
    background-color: gray;
    cursor: pointer;
    color: #fff;
}

.frame-button svg {
    width: 1.6em;

    /* margin: 0 1.5rem 0 0; */
    position: absolute;
    display: flex;
    transition: all 0.6s ease;
}

.frame-button:hover svg {

    color: #fff;
}

.frame-text {
    /* margin: 0 1.5em */
    white-space: nowrap;
}

/* ---------------------------------- */
/* 手機樣式 */
@media (max-width: 767.98px) {
    #win_loss_status {
        width: 100%;
    }

    .btn-primary {
        font-size: 3vw;
        padding: 2px 5px;
        min-width: 45%;
    }

    .btn {
        /* line-height: 1.2; */
        font-size: 2vw;
        min-height: 2rem;
        /* 在移動設備上稍微增加高度 */
        max-width: 8rem;
        padding: 0 0.1rem;
        /* max-height: 1rem; */
        margin: 1vw 0;
    }

    .switch {
        width: 100%;
    }

    .switch .slider .title {
        font-size: 0.8rem;
    }

    .switch .slider .ball {
        height: 1.4rem;
        width: 1.4rem;
    }

    .switch .slider {
        height: 2rem;
        top: 0.3rem;
        bottom: 0.3rem;
        left: 0.5rem;
        right: 0.5rem;
    }

    .switch input:checked+.slider .ball {
        transform: translate(-1.6rem, -50%);
    }

    .btn-primary.btn-mobile {
        font-size: 4vw;
        padding: 2px 5px;
        min-width: 45%;
    }

    .left-team,
    .right-team,
    .middle {
        font-size: 2.5vw;
    }

    .match-record {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .ws {
        margin: 1px;
        font-size: 1rem;
    }

    span.nowrap {
        margin: 0;
    }

    .game-info {
        font-size: 1rem;
    }


    .card-title {
        font-size: 4vw;
    }

    .down-card-body .score-line,
    .down-card-body .time-line {
        font-size: 3vw;
    }

    div.card {
        border-radius: 10px;
        border-width: 3px;
    }

    button.btn-spotify {
        height: 10vw;
        width: 70vw;
    }

    #myAlertModal-content {
        width: 90%;
    }

    div.boModal-content {
        font-size: 1rem;
        width: 100%;
    }

    #which_game {
        font-size: var(--xlarge-font-size);
    }

    .modal-open {
        padding-right: 0 !important;
    }

    .nav-font {
        font-size: 0.7rem;
    }

    #navbar-title {
        margin: 0;
        text-align: center;
    }

    .lion-btn {
        height: 6vw;
        width: 6vw;
    }

    div.UpCard {
        border-width: var(--border-width-xxthick, 2px);
        font-size: 5vw;
        border-width: var(--border-width-thick, 2px);
    }

    .UpCardNameWrap {
        height: 5vw;
    }

    #confirmBtn,
    #confirmBtn2,
    #cancelBtn {
        /* width: 30%; */
        margin: 0 5%;
        padding: 0 2%;
    }

    body {
        /* padding-top: 6.3rem; */
        line-height: 1.3;
        /* 根據 navbar 高度調整 */
    }

    .broadcast-btn,
    .court-setting-btn,
    .pickPeople-btn,
    .end-btn,
    .go-to-pk-btn {
        font-size: var(--normal-font-size);
    }

    .icon-btn-pre,
    .icon-btn-pk {
        margin: 3px 0 3px 0;
        max-height: 1.3rem;
    }

    .card-title-wrap {
        height: 5vw;
        /* 調整卡片標題的高度 */
    }

    .modal-dialog {
        max-width: none;
    }

    p.card-opponent {
        width: 3vw;
        height: 3vw;
        font-size: 2vw;
    }

    #adjust_player_table input,
    #adjust_player_table select {
        max-width: 100%;
        /* 不超過 cell 寬度 */
        width: 80%;
        /* 或固定寬度 */
        box-sizing: border-box;
        /* 包含 padding 不會超出 */
    }

    .table td,
    .table th {
        font-size: medium;
    }

    #court_setting_Modal .modal-dialog {
        max-width: 100%;
    }

    #open_modal_of_record_win_loss_mobile,
    .b-switch .slider .title {
        font-size: 0.8rem;
    }

    .b-switch .slider {
        top: 0.5rem;
        bottom: -0.4rem;
    }

    .b-switch {
        width: auto;
    }

    .miniDash {
        width: 96vw;
        font-size: 0.8rem;
        padding: 8px 15px 4px 15px;
        bottom: 0px;
    }

    .miniDash-tab {
        min-width: 80px;
        top: -36px;
        padding: 3px 10px 2px 10px;
    }

    .miniDash-tab-sync {
        font-size: 0.6rem;
    }

    .miniDash.collapsed {
        transform: translateX(-50%) translateY(calc(101%));
    }

    .status-modal-overlay.countdown-mode {
        padding-left: 20vw;
        padding-right: 20vw;
        /* 往下移動，距離頂部 25% 視窗高度 */
    }
}

/* ---------------------------------- */
/* miniDash 收合按鈕樣式 */
.miniDash {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(10px);
    border-radius: 15px 15px 0 0;
    padding: 10px 20px 5px 20px;
    /* box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3); */
    color: white;
    font-size: 0.9rem;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

.miniDash.collapsed {
    transform: translateX(-50%) translateY(calc(100%));
}

.miniDash-tab {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 100px;
    height: 13px;
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-bottom: none;
    z-index: 999;
    padding: 4px 12px 2px 12px;
    gap: 2px;
}

.miniDash-tab-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.miniDash-tab-sync {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    opacity: 0.9;
}

.miniDash-tab:hover {
    background: rgb(0, 0, 0);
    /* border-color: rgba(255, 255, 255, 0.4); */
    color: yellow;
}

.miniDash-tab svg {
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.miniDash.collapsed .miniDash-tab svg {
    transform: rotate(180deg);
}

.miniDash.collapsed .miniDash-tab {
    top: -36px;
    height: 36px;
}

.miniDash-content {
    transition: all 0.3s ease-in-out;
}

.miniDash.collapsed .miniDash-content {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}




#track-info p {
    padding: 0.375rem 0.75rem;
    margin: 0;
    line-height: 1.5;
}

.btn-music {
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

/* 表格單元格中的按鈕容器 */
td {
    text-align: center;
    vertical-align: middle;
    padding: 0.5rem;
}

/* 確保按鈕在 td 中置中 */
td .btn {
    margin: 1rem auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* 如果按鈕需要填滿整個 td */
td .btn-full {
    width: 100%;
    margin: 0;
}

/* 暫停狀態的閃爍動畫 */
@keyframes blink-stopped {

    0%,
    30% {
        opacity: 0;
    }

    31%,
    100% {
        opacity: 1;
    }
}

.stopped {
    animation: blink-stopped 1.2s infinite;
}

/* 碼錶樣式 */
.stopwatch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stopwatch-display {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    background-color: #f8f9fa;
    /* border: 2px solid #dee2e6; */
    border-radius: 0.5rem;
    padding: 0.2rem 0 0 0;
    min-width: 4rem;
    text-align: center;
    letter-spacing: 0.1em;
}

.stopwatch-controls {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stopwatch-controls .btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    min-width: 3rem;
    white-space: nowrap;
}

.court-timer-container {
    background-color: whitesmoke;
    border-radius: 10px 10px 0 0;
}

/* 手機版樣式調整 */
@media (max-width: 767.98px) {
    .stopwatch-display {
        font-size: 1.6rem;
        padding: 0.2rem 0.6rem;
        min-width: 3.5rem;
    }

    .stopwatch-controls .btn {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
        min-width: 2.5rem;
    }

    .stopwatch-controls {
        gap: 0.2rem;
    }
}

/* 選手區塊樣式 */
.player-blocks-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.player-block {
    padding: 0.25rem;
}

.player-card {
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
    min-height: 80px;
}

.player-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.player-card label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: block;
}

.player-card .form-control-sm {
    font-size: 0.875rem;
    border-radius: 4px;
}

.player-card input[type="text"] {
    border-color: #ced4da;
}

.player-card input[type="number"] {
    border-color: #28a745;
    background-color: #f8fff9;
}

.player-card input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #007bff;
}

/* 響應式設計 */
@media (max-width: 576px) {
    .player-blocks-container {
        padding: 0.5rem;
    }

    .player-card {
        padding: 0.5rem;
        min-height: 70px;
    }

    .player-card .form-control-sm {
        font-size: 0.8rem;
    }
}