
/* 视频背景 */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* 主画布 */
#main-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}
html, body {
    overflow: hidden;
    font-family: Verdana, serif;
    font-size: 24px;
    background-color: rgba(40, 40, 40, 0.3);
}

canvas {
    background-color: transparent;
}

.btn {
    padding: 5px;
    border: 1px solid #404040;
    border-radius: 2px;
}

.btn:hover {
    cursor: pointer;
    border: 1px solid #101010;
    background-color: #CCCCCC;
}

.btn:active {
    background-color: #AAAAAA;
}

.container {
    position: relative;
    background-color: rgba(162, 170, 177, 0.3);
    border: 1px solid #3d5f71;
    border-bottom: 0;
    margin-left: -50%;
    box-sizing: border-box;
    border-radius: 2px 2px 0 0;
    display: flex;
    align-items: center;
    padding: 4px;
    min-width: 600px;
}

.progress-bar-container {
    position: relative;
    width: 200px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #404040;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    box-sizing: border-box;
}

#progress-bar {
    width: 0;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.1s ease-in-out;
}

#progress-bar-text {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

#music-list {
    padding: 16px 0;
    position: absolute;
    left: 0;
    top: 64px;
    border-left: 0;
    border-radius: 0 2px 2px 0;
}

#upload-section {
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    background-color: rgba(40, 40, 40, 0.3);
    border-radius: 4px;
}

#upload-status {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}


.music {
    background:linear-gradient(
        to right,
        rgba(162, 170, 177, 0.4),
        rgba(162, 170, 177, 0.4),
        rgba(162, 170, 177, 0.4),
        transparent
    );
    border-top: 1px solid;
    border-image:
            linear-gradient(
                    to right,
                    #323232,
                    transparent
            ) 100% 1;

    border-bottom: 1px solid #323232;
    font-size: 12px;
    width: 100%;
    padding: 4px 16px;
    box-sizing: border-box;
}

.music:hover, .music.active {
    background:linear-gradient(
            to right,
            rgba(62, 62, 62, 0.4),
            rgba(62, 62, 62, 0.4),
            rgba(62, 62, 62, 0.4),
            transparent
    );
    cursor: pointer;
    color: white;
}



#play-button-container {
    position: relative;
    width: 240px;
    height: 32px;
    padding: 4px;
    background-color: rgba(40, 40, 40, 0.4);
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    flex: 0 0 auto;
    margin-right: 10px;
}

#play-button, #pause-button, #restart-button {
    background: transparent;
    color: #afafaf;
    font-weight: bold;
    border-radius: 3px;
    font-size: 14px;
    padding: 2px 8px;
    text-align: center;
    margin-right: 5px;
    cursor: pointer;
    min-width: 60px;
    height: 24px;
    line-height: 24px;
    flex: 0 0 auto;
}

#play-button:hover, #pause-button:hover, #restart-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

#progress-bar-hint {
    position: absolute;
    left: 102%;
    top: 0;
    font-size: 9px;
    width: 200px;
    padding: 4px;
    background-color: rgba(40, 40, 40, 0.4);
    color: white;
}



#play-button, 











#progress-bar-hint:hover {
    background-color: rgba(40, 40, 40, 0.9);
}

#github {
    position: absolute;
    left: 32px;
    top:0;
    text-decoration: none;
    font-size: 18px;
    line-height: 32px;
    font-weight: bold;
    opacity: 0.5;
    color: black;
}

#github:hover {
    cursor: pointer;
    opacity: 1.0;
}

#github:after {

    background-image: url('../images/octocat.png');

    background-size: 32px 32px;

    display: inline-block;

    width: 32px;

    height: 32px;

    content:"";

    position: absolute;

    left: -32px;

}



#lyrics-container {

    position: absolute;

    bottom: 60px;

    left: 50%;

    transform: translateX(-50%);

    text-align: center;

    width: 80%;

    max-width: 800px;

    pointer-events: none;

    z-index: 100;

}



#lyrics-text {

    font-size: 28px;

    color: #fff;

    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8),

                 0 0 20px rgba(0, 0, 0, 0.6),

                 0 0 30px rgba(0, 0, 0, 0.4);

    line-height: 1.6;

    padding: 20px;

    background: rgba(0, 0, 0, 0.3);

    border-radius: 10px;

    backdrop-filter: blur(5px);

    opacity: 0;

    transition: opacity 0.5s ease;

}



#lyrics-text.visible {

    opacity: 1;

}


/* 移动端响应式样式 */
@media screen and (max-width: 768px) {
    html, body {
        font-size: 16px;
    }

    #main-canvas {
        width: 100%;
        height: 100%;
    }

    .container {
        min-width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        padding: 8px;
    }

    #play-button-container {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
        order: 1;
    }

    #play-button, #pause-button, #restart-button {
        font-size: 16px;
        padding: 8px 12px;
        min-width: 70px;
        height: 40px;
        line-height: 40px;
        flex: 1;
    }

    .progress-bar-container {
        width: 100%;
        margin-bottom: 8px;
        order: 2;
        height: 40px;
    }

    #progress-bar-text {
        font-size: 16px;
    }

    #progress-bar-hint {
        display: none;
    }

    #music-list {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        max-height: 50%;
        overflow-y: auto;
        background-color: rgba(40, 40, 40, 0.95);
        z-index: 200;
        border-radius: 16px 16px 0 0;
        padding: 12px 0;
    }

    .music {
        font-size: 14px;
        padding: 12px 16px;
        border-bottom: 1px solid #323232;
    }

    #upload-section {
        position: fixed;
        left: 16px;
        bottom: 16px;
        padding: 12px;
        z-index: 300;
    }

    #upload-button {
        font-size: 14px;
        padding: 10px 16px;
    }

    #upload-status {
        font-size: 12px;
        margin-top: 6px;
    }

    #lyrics-container {
        bottom: 120px;
        width: 95%;
    }

    #lyrics-text {
        font-size: 20px;
        padding: 16px;
    }

    #github {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    html, body {
        font-size: 14px;
    }

    .container {
        padding: 6px;
    }

    #play-button, #pause-button, #restart-button {
        font-size: 14px;
        padding: 6px 10px;
        min-width: 60px;
        height: 36px;
        line-height: 36px;
    }

    #lyrics-text {
        font-size: 18px;
        padding: 12px;
    }
}


