/* styles.css */
@font-face {
    font-family: 'MEIRYO';
    src: url('static/meiryo.ttc') format('truetype-collection');
    font-display: swap;
}

@font-face {
    font-family: 'SIYUAN';
    src: url('static/SourceHanSansSC-Bold.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'TBFONT';
    src: url('static/Torus SemiBold.otf') format('opentype');
    font-display: swap;
}

body {
    margin: 0;
    background: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

#fileInput {
    margin: 20px;
    padding: 10px 20px;
    background: #2a2a2a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#downloadBtn {
    margin: 10px;
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#downloadBtn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#downloadBtn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.container {
    position: relative;
    width: 1920px;
    height: calc(60px + 
        (ceil(35/5) * (150px + 12px)) +  /* B35区域高度 */ 
        50px +                           /* 间距 */
        (ceil(15/5) * (150px + 12px))    /* DX区域高度 */
    );
    background-image: url('static/mai/pic/b50_bg.png');
    background-size: cover;
    margin-top: 20px;
    padding-bottom: 100px;
}

.song-group {
    position: relative;
    width: 1800px;
    margin: 0 auto;
    left: 0 !important;
}

#sdGroup {
    margin-top: 30px;
}

#dxGroup {
    margin-top: 80px;
}

.song-item {
    position: absolute;
    width: 340px;
    height: 160px;
    margin: 0 10px 25px;
    background-size: contain;
    background-repeat: no-repeat;
}

.basic { background-image: url('static/mai/pic/b50_score_basic.png'); }
.advanced { background-image: url('static/mai/pic/b50_score_advanced.png'); }
.expert { background-image: url('static/mai/pic/b50_score_expert.png'); }
.master { background-image: url('static/mai/pic/b50_score_master.png'); }
.remaster { background-image: url('static/mai/pic/b50_score_remaster.png'); }

.cover-image {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 5px;
    left: 5px;
    object-fit: cover;
}

.cover-image::after {
    content: "封面缺失";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'SIYUAN';
    font-size: 14px;
}

.version-icon {
    position: absolute;
    width: 48px;
    height: 17px;
    bottom: 18px;
    left: 70px;
}

.rank-icon {
    position: absolute;
    width: 85px;
    height: 40px;
    right: 210px;
    bottom: 50px;
}

.song-title {
    position: absolute;
    left: 140px;
    top: 15px;
    color: white;
    font-family: 'SIYUAN';
    font-size: 18px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-value {
    position: absolute;
    left: 140px;
    top: 45px;
    color: white;
    font-family: 'TBFONT';
    font-size: 28px;
}

.dx-score {
    position: absolute;
    right: 50px;
    bottom: 65px;
    font-family: 'TBFONT';
    font-size: 18px;
    color: white;
}

/* 隐藏顶部和底部元素 */
/*
.header, .signature {
    display: none;
}
*/