.bold {
    font-weight: bold;
}

/* 旋转 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 面板显示动画 */
@keyframes showPanel {
    0% {
        opacity: 0;
        transform: translateY(-100%); /* 从上方滑动 */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 恢复到正常位置 */
    }
}

/* 面板中的文字淡入动画 */
@keyframes fadeInText {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.player-setting {
    transition: max-height 1s, opacity 1.5s, padding-top 1s, padding-bottom 1s;
    overflow: auto;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.player-setting:hover {
    opacity: 1;
    animation: spin 8s linear infinite;
}

.setting-item input:checked~i::before {
    content: "启用中"
}

.setting-item input:checked~span::before {
    background-color: rgba(255, 215, 0, .8)
}

.setting-item input:checked~span::after {
    transform: translateY(0.1em)
}

.setting-item input:not(:checked)~i::before {
    content: "未使用"
}

.setting-item input:not(:checked)~span::before {
    background-color: rgba(0, 0, 0, .8)
}

.setting-item input:not(:checked)~span::after {
    transform: translateY(0.5em)
}

.icon-switch {
    position: relative;
    width: 1em;
    height: 1em;
    display: inline-block
}

.icon-switch::before,
.icon-switch::after {
    content: "";
    display: inline-block;
    position: absolute;
    transition: all .5s
}

.icon-switch::before {
    left: 50%;
    width: .7em;
    height: 110%;
    border-radius: .35em
}

.icon-switch::after {
    left: calc(50% + .1em);
    width: .5em;
    height: .5em;
    background-color: rgba(255, 255, 255, .95);
    border-radius: 100%
}

.icon-gear {
    display: inline-block;
    min-width: .5em;
    min-height: .5em;
    position: relative;
    border-radius: 100%;
    border-width: .15em;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0);
    margin: .25em;
    box-shadow: 0 0 0 .12em, inset 0 0 0 .2em
}

.icon-gear::before,
.icon-gear::after {
    content: "";
    position: absolute;
    width: .18em;
    height: .18em;
    top: 50%;
    left: 50%
}

.icon-gear::before {
    transform: translate(-50%, -50%);
    box-shadow: .41em 0, -0.41em 0, 0 .41em, 0 -0.41em
}

.icon-gear::after {
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: .42em 0, -0.42em 0, 0 .42em, 0 -0.42em
}