* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
    background-color: black;
}

.video-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100vh;
    /* width: 100vw;
    object-fit: fill; */
    width: auto;
    object-fit: contain;
}

.content {
    position: relative;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    max-width: 95vw;
}

/* ----------------- Server List ----------------- */
.server-list {
    /* padding: 20px 10px; */
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.server-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.5);
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: white;
    gap: 8px;
    /* 控制間距 */
}

.server-label {
    font-weight: bold;
    font-size: 14px;
    flex: 0 0 40px;
    /* 固定寬度 */
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}


.server-ping {
    color: #ffd700;
    flex: 0 0 60px;
    /* 固定寬度 */
    text-align: center;
}

.server-url {
    color: #66ccff;
    flex: 1;
    text-align: center;
    word-break: break-all;
    text-decoration: none;
}

.server-url:hover {
    text-decoration: none;
}

.server-btn-img {
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s;
}

.server-btn-img:hover {
    transform: scale(1.05);
}

/* ----------------- Logo ----------------- */
.logo-area {
    text-align: center;
}

.logo-img {
    max-width: 500px;
    height: auto;
}

/* ----------------- Bottom Buttons ----------------- */
.bottom-buttons,
.extra-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 5px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.extra-buttons {
    margin: 10px auto !important;
}


.bottom-buttons a,
.extra-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.bottom-buttons a:nth-child(n+3) {
    grid-column: span 2;
}

.bottom-buttons img,
.extra-buttons img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.bottom-buttons img:hover,
.extra-buttons img:hover {
    transform: scale(1.05);
}

/* ----------------- Responsive ----------------- */
@media (max-width: 768px) {

    .video-bg {
        width: 100vw;
        object-fit: fill;
    }

    .logo-img {
        max-width: 95vw;
    }

    .server-item {
        font-size: 12px;
        padding: 8px 10px;
        gap: 5px;
    }

    .server-label {
        flex: 0 0 35px;
    }

    .server-ping {
        flex: 0 0 50px;
    }

    .server-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}