
*,
*::before,
*::after {
    box-sizing: border-box;
}

.music-player{
    background:#c0c0c0;

    border-top:2px solid #ffffff;
    border-left:2px solid #ffffff;

    border-right:2px solid #404040;
    border-bottom:2px solid #404040;

    display: flex;
    flex: 1;
    position: relative;
    flex-direction: column;
    width:100%;
    max-width:520px;
    align-self: stretch;

    font-family:"MS UI Gothic",sans-serif;

    box-shadow:2px 2px 0px rgba(0,0,0,.2);
}

.player-titlebar {
    height:22px;
    background:linear-gradient(to right,#000080,#1084d0);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 6px;
    color:white;
    font-weight:bold;
    font-size:13px;
    user-select:none;
}

.player-titlebar a {
    text-decoration: none;
    color:white;
}

.window-buttons {

    display:flex;

    gap:2px;
}

.window-button {
    width:16px;
    height:16px;
    background:#c0c0c0;
    color:black;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:11px;
    border-top:1px solid white;
    border-left:1px solid white;
    border-right:1px solid #404040;
    border-bottom:1px solid #404040;
}


.player-body {
    display:grid;
    grid-template-columns:90px 1fr;
    gap:12px;
    padding:12px;
}


.album-art {
    width:90px;
    height:90px;
    background:black;
    border-top:2px solid #404040;
    border-left:2px solid #404040;
    border-right:2px solid white;
    border-bottom:2px solid white;
    overflow:hidden;
}

.album-art img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}


.song-info {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    min-width:0;
}

.track-container {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
}

.track-wrapper {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}

.track-wrapper span {
    font-weight: bold;
    flex-shrink: 0;
}

.track-gap {
    padding: 0 30px;
}


.artist {

    font-size:15px;

    color:#222;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

.album {

    font-size:13px;

    color:#555;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

.progress-container{

    padding:0 12px 10px 12px;
}

.progress-top{

    display:flex;

    justify-content:right;

    font-size:12px;

    margin-bottom:4px;
}

.progress{

    height:18px;

    background:#808080;

    border-top:2px solid #404040;
    border-left:2px solid #404040;

    border-right:2px solid white;
    border-bottom:2px solid white;

    overflow:hidden;
}

.progress-fill{

    width:43%;

    height:100%;

    background:#00c000;
}

.controls {

    display:flex;

    justify-content:space-between;

    align-items:center;
    flex-shrink: 0;


    padding:0 12px 12px 12px;
}

.transport{

    display:flex;

    gap:6px;
}

.control-button{

    width:28px;
    height:24px;

    background:#c0c0c0;

    border-top:2px solid white;
    border-left:2px solid white;

    border-right:2px solid #404040;
    border-bottom:2px solid #404040;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    font-size:13px;

    user-select:none;
}

.control-button:active{

    border-top:2px solid #404040;
    border-left:2px solid #404040;

    border-right:2px solid white;
    border-bottom:2px solid white;
}

.player-status {
    padding-top: 6px;
    border-top: 1px solid #7f7f7f;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    justify-items: stretch;
    font-size: 14px;
    margin: 0;
    padding: 6px 12px
}

.status-item {
    display: flex;
    align-items: center;
    background:black;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 5px;

    border-top:2px solid #404040;
    border-left:2px solid #404040;

    border-right:2px solid white;
    border-bottom:2px solid white;

}

.status-playing {
    color: #18c218;     
}

.status-loved {
    color: #ff4aa5;    
}

.status-plays {
    color: #3a8cff; 
}

.status-updated {
    color: #888888;
}