@font-face {
    font-family: 'Radiance';
    src: url('/fonts/radiancem_regular.otf') format('opentype');
    font-weight: 500;
}

:root {
    --win-color: #4ade80;
    --loss-color: #f87171;
    --text-white: #ffffff;
    
    --stats-bottom: 20px;
    --stats-right: 355px; 
    
    --player-top: 15px;
    --player-right: 250px;

    --stroke: 
        1px 1px 0 #000, -1px -1px 0 #000, 
        1px -1px 0 #000, -1px 1px 0 #000,
        0px 2px 4px rgba(0,0,0,1);
}

body {
    margin: 0; 
    padding: 0; 
    overflow: hidden; 
    background: transparent !important;
    font-family: 'Radiance', 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased;
}

.hidden { 
    opacity: 0 !important; 
}

.stats-master-container {
    position: absolute;
    bottom: var(--stats-bottom);
    right: var(--stats-right);
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-shadow: var(--stroke);
    background: transparent !important;
}

.rank-icon-wrapper {
    position: relative;
    width: 102px;
    height: 102px;
    margin-bottom: -14px;
}

.rank-img { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

.rank-star { 
    z-index: 2; 
}

.rank-leaderboard {
    position: absolute; 
    bottom: 0px; 
    width: 100%; 
    text-align: center;
    font-size: 16px; 
    font-weight: 800; 
    color: #fff;
    z-index: 3; 
    font-family: 'Inter';
}

.mmr-display {
    font-size: 31px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 2px;
}

.wl-display {
    display: flex;
    align-items: center;
    font-size: 23px;
    font-weight: 700;
    color: var(--text-white);
}

.color-win { 
    color: var(--win-color); 
    margin-left: 2px; 
}

.color-loss { 
    color: var(--loss-color); 
    margin-left: 2px; 
}

.stats-sep { 
    color: #fff; 
    margin: 0 5px; 
    opacity: 0.5; 
}

.music-compact-container {
    position: absolute;
    top: var(--player-top); 
    right: var(--player-right); 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-shadow: var(--stroke);
}

.music-cover-wrapper { 
    width: 65px; 
    height: 65px; 
    border-radius: 6px; 
    overflow: hidden; 
    background: #000; 
    flex-shrink: 0;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.5);
}

#music-cover-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

.music-info-column {
    display: flex; 
    flex-direction: column; 
    justify-content: space-evenly; 
    height: 65px;
    width: 180px;
    box-sizing: border-box;
    overflow: hidden;
}

.scroller-container {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.scroller-container.is-masked {
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 15px, black calc(100% - 15px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0px, black 15px, black calc(100% - 15px), transparent 100%);
}

.scroller-track {
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
    padding-left: 15px;
}

.scroller-track.is-scrolling {
    animation: marquee 12s linear infinite;
    padding-left: 100%;
}

#artist-name { 
    font-family: 'Inter'; 
    font-size: 14px; 
    font-weight: 600; 
    color: rgba(255, 255, 255, 0.6); 
    text-transform: uppercase;
    letter-spacing: 1px;
}

#title-text { 
    font-family: 'Inter'; 
    font-size: 20px; 
    font-weight: 800; 
    color: #fff; 
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}