p{
    margin: 0;
}

body {
    display: flex;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1f1f1f;
    color: white;
}

.sidebar {
    position: fixed;
    background: #171717;
    padding: 20px;
    width: 200px;
    height: 100vh;
}
.sidebar-wrapper {
    width: 240px;
    height: 100vh;
}

@media screen and (max-width: 600px) {
    .sidebar {
        visibility: hidden;
        display: none;
    }

    .sidebar-wrapper {
        visibility: hidden;
        display: none;
    }

    #progressBar{
        visibility: hidden;
        display: none;
    }
}

.logo {
    width:100%;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 15px 0;
    cursor: pointer;
    font-size: 18px;
}

main {
    flex: 1;
    padding: 20px;
}

.content-static {
    position: relative;
}

.loading-overlay {
    width: 100%;
    height: 100vh;
    position: absolute;
    background: #1f1f1f;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.5s;
}

.loading-spinner {
    animation: rotate 2s linear infinite;
    z-index: 2;
    position: absolute;
    top: 40%;
    left: 50%;
    margin: -25px 0 0 -25px;
    width: 50px;
    height: 50px;
    
    & .path {
      stroke: rgb(185, 185, 185);;
      stroke-linecap: round;
      animation: dash 1.5s ease-in-out infinite;
    }
    
  }
  
  @keyframes rotate {
    100% {
      transform: rotate(360deg);
    }
  }
  
  @keyframes dash {
    0% {
      stroke-dasharray: 1, 150;
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -35;
    }
    100% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -124;
    }
}
  

.fade-out {
    opacity: 0;
}

.track {
    display: flex;
    align-items: center;
    margin-bottom:5px;
    padding: 5px;
    cursor: pointer;
}

.track:hover {
    background: #2b2b2b;
    border-radius: 9px;
}

.track .cover {
    width: 50px;
    height: 50px;
    border-radius: 7px;
}

.track .track-info {
    display: flex;
    flex-direction: column;
    justify-content: left;
    margin-left: 10px;
}

.track-loading {
    display: flex;
    align-items: center;
    margin-bottom:5px;
    padding: 5px;
}

.track-loading .cover {
    width: 50px;
    height: 50px;
    border-radius: 7px;
}

.track-loading .track-info {
    display: flex;
    flex-direction: column;
    justify-content: left;
    margin-left: 10px;
}

.player {
    position: fixed;
    bottom: 0;
    width: calc(100% - 20px);
    background: #2b2b2b;
    display: flex;
    align-items: center;
    padding: 10px;
    justify-content: space-between;
    flex-direction: row;
}

/*.track-info {
    flex: 1;
    text-align: center;
}*/

.name {
    font-size: 16px;
}

.artist {
    font-size: 14px;
    color: gray;
}

.controls button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    margin: 0 5px;
    cursor: pointer;
}

#progressBar {
    width: 50vw;
    margin: 10px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 5px;
    outline: none;
    background: linear-gradient(to right, #83f8cd 0%, gray 0%);
}

/* Трек ползунка */
#progressBar::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 5px;
}

/* Сам ползунок */
#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
    position: relative;
    z-index: 3;
}

.player .track-info{
    display: flex;
    align-items: center;
}

.player .track-info .track-text-info{
    margin-left: 10px;
}

.controls-wrap{
    display: flex;
    align-items: center;
    flex-direction: column;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
}

.cover-small {
    width: 60px;
    height: 60px;
    border-radius: 7px;
}

