#card {
    background-color: var(--background-floating);
    border-radius: 6px;
    min-width: 350px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s ease;
}

#banner {
    height: 120px;
    width: 100%;
    background-color: #141414;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

#user-info {
    position: relative;
    padding: 56px 16px 16px
}

#avatar {
    position: absolute;
    width: 96px;
    height: 96px;
    box-shadow: 0 0 0 8px var(--background-floating);
    border-radius: 50%;
    top: 0;
    transform: translateY(-50%);
}

#avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#status {
    position: absolute;
    bottom: -1px; 
    right: 8px; 
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background-color: var(--background-floating);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3)
}

#status i {
    font-size: 18px;
    color: yellow;
}

/* Atur posisi badges agar tidak bertabrakan dengan status */
#badges {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 300px;
    width: 50%;
    z-index: 0; /* Pastikan badges berada di bawah status jika ada tumpang tindih */
}

#badges {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 300px;
    width: 50%
}

.badge {
    cursor: pointer;
    margin: 2px 4px 0 0
}

.badge>img {
    height: 20px
}

#username {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.1), 0 0 24px rgba(255, 255, 255, 0.4);
    ;
    font-size: 22px;
    font-weight: 700;
    font-family: Montserrat, sans-serif
}

#username>span {
    font-family: Montserrat, sans-serif;
    color: var(--text-muted)
}

hr {
    width: calc(100% - 32px);
    height: 1px;
    margin: 0 auto;
    border: none;
    outline: 0;
    background-color: var(--background-secondary)
}

#about {
    padding: 16px
}

#about>h4 {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px
}

#about>p {
    font-family: Montserrat, sans-serif;
    font-size: 14px
}

#social {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 6px 12px 16px;
    margin-top: 6px;
}

.social-link {
    margin: 2px 10px;
    transition: transform .3s;
}

hr.long-line {
    width: 90%;
    height: 2px;
    margin: 10px auto;
    border: none;
    background-color: var(--background-secondary);
    opacity: 0.7;
}

.social-link>i {
    font-size: 40px;
    justify-content: center;
    align-items: center;
    color: white;
    display: inline-flex;
    transition: 0.3s;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 35px rgba(255, 255, 255, 0.1);
}

.social-link:hover>i {
    transform: scale(1.2)translateY(-5px);
    text-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 24px rgba(255, 255, 255, 0.8), 0 0 36px rgba(255, 255, 255, 0.6);
}

.social-link>img {
    color: #fff;
    width: 22px;
    height: 22px
}

.social-link:hover {
    transform: scale(1.05)
}

#wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

#music-player {
    background-color: var(--background-floating);
    border-radius: 6px;
    min-width: 350px;
    padding: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
    transition: transform 0.2s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.music-icon {
    width: 40px;
    height: 40px;
    overflow: hidden;
}

.music-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-info,
.music-icon {
    transform: translateZ(0);
}

.music-icon i {
    font-size: 20px;
    color: white;
}

.music-info {
    flex-grow: 1;
}

.music-title {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.music-controls-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-controls {
    display: flex;
    align-items: center;
}

#play-pause-btn {
    font-size: 28px;
    color: var(--text-normal);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

#play-pause-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
}

#play-pause-btn:active {
    transform: scale(0.95);
}

.progress-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

#progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--background-secondary);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

#progress {
    width: 0%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6), 0 0 15px rgba(255, 255, 255, 0.4);
    transition: width 0.1s linear;
}

#time-display {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

@media (max-width: 412px) {
    #card {
        max-width: 100%;
        border-radius: 6px;
        min-width: unset;
    }
    #music-player {
        max-width: 90%;
        min-width: unset;
    }
    #avatar {
        width: 80px;
        height: 80px;
        box-shadow: 0 0 0 6px var(--background-floating);
    }
    #avatar>img {
        width: 80px;
        height: 80px;
    }
    #username {
        font-size: 18px;
    }
    #status {
        width: 24px;
        height: 24px;
        border: 3px solid var(--background-floating);
    }
}