:root {
    --primary-color: #3498db;
    --play-color: #2ecc71;
    --pause-color: #e74c3c;
    --background-color: #efefef;
    --text-color: #333;
    --border-color: #e0e0e0;
}

body {
    background: #363636;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

#player-container {
    background: #696969;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    width: calc(80vh * 16/9);
    /* height: calc(80vw * 9/16 + 10vh); */
	height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
	z-index: 100;
	max-width:80vw;
	max-height: calc(80vw * 9/16 + 30px);
	min-height: calc(80vw * 9/16 + 30px)
}

#ascii-display {
    width: 90%;
    aspect-ratio: 16 / 9;
    background: var(--background-color);
    white-space: pre-wrap;
    overflow: hidden;
    line-height: 1.1;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    text-align: center;
    font-size: 0.55vw;
    margin: 0 auto;
}

.controls {
    width: 100%;
    margin-top: 1vw;
}

.main-controls {
    display: flex;
    gap: 1vw;
    align-items: center;
    justify-content: center;
}

#play-pause-btn {
    background: var(--play-color);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}



#play-pause-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
#play-pause-btn:active {
    transform: translateY(1px);
}

#play-pause-btn.playing {
    background: var(--pause-color);
}

#progress {
    height: 4px;
    flex-grow: 1;
    -webkit-appearance: none;
    cursor: pointer;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

#progress::-moz-range-thumb { /* 添加Firefox支持 */
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
	cursor: pointer;

.time-display {
    font-size: 14px;
    color: #ccc;
    min-width: 120px;
}

#loading-progress {
    width: 300px;
    margin-top: 10px;
	transition: width 0.3s ease; /* 进度条平滑变化 */
}

@media (max-width: 768px) {
    #player-container {
        width: 95vw;
        padding: 12px;
    }
    .time-display {
        font-size: 12px;
    }
}