@font-face {
  font-family: main-font;
  src: url(./fonts/Audiowide-Regular.ttf);
}

@font-face {
  font-family: track-name;
  src: url(./fonts/Jost-Black.ttf);
}

body {
  font-family: main-font;
  color: white;
  margin: 0;
  padding: 0;
  background-image: url(./wallpapers/light-theme.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.content {
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: 15px;
  transform: translate(-50%, -50%);
  background: rgba(113, 188, 255, 0.23);
  box-shadow: 0px 4px 83.8px 20px rgba(0, 0, 0, 0.18);
  border-radius: 15px;
  width: calc(100vw - 50px);
  height: calc(100vh - 115px);
  max-width: 1603px;
  max-height: 721px;
  gap: 20px;
  padding: 25px;
  padding-bottom: 60px;
}

.bar {
  position: fixed;
  top: 15px;
  left: 25px;
  right: 25px;
  height: 35px;
  background: -webkit-linear-gradient(0deg, #00695fa9, #e190fea9);
  border-radius: 15px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  color: #ffffff;
  font-size: 14px;

}

.theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.left-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.player {
  width: 452px;
  height: 550px;
  background: rgba(0, 29, 34, 0.23);
  border-radius: 15px;
  position: relative;
  padding: 20px;
}

.player-image {
  width: 400px;
  height: 400px;
  background: url('./images/cover.png') no-repeat center center;
  background-size: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.track-name h1, .track-name p {
  margin: 0;
  padding: 0;
}

.track-name {
  font-family: track-name;
  color: #ffffff;
}

.controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.play {
  width: 50px;
  height: 50px;
  background-image: url('./icons/play.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play.pause {
  background-image: url('./icons/pause.svg');
}

.progress-container {
  width: 300px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #F3C4FB, #8661B1);
  transition: width 0.1s linear;
}

.playlist {
  background-color: rgba(0, 29, 34, 0.23);
  height: 125px;
  border-radius: 15px;
  padding: 20px;
  padding-top: 10px;
  border-radius: 15px;
  text-align: center;
}

.playlist::-webkit-scrollbar { width: 0; }

.playlist h2 {
  margin: 0 0 10px 0;
  font-family: track-name;
  font-size: 24px;
  color: #ffffff;
}

.playlistList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.playlistList li {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s;
  font-size: 18px;
}

.playlistList li:hover {
  background: rgba(243, 196, 251, 0.3);
}

.playlistList li.active {
  background: linear-gradient(to right, #F3C4FB, #8661B1);
  font-weight: bold;
  color: #000;
}

.info-container {
  display: flex;
  flex-direction: column;
  width: 1082px;
}

.info {
  background-color: rgba(0, 29, 34, 0.23);
  height: 550px;
  border-radius: 15px;
  padding: 20px;
  flex-shrink: 0;
  flex-grow: 1;
  text-align: center;
} 

hr {
  border: none;
  background: linear-gradient(to right, #F3C4FB, #8661B1);
  height: 4px;
  border-radius: 15px;
}

.my-socials {
  background-color: rgba(0, 29, 34, 0.23);
  height: 125px;
  margin-top: 20px;
  border-radius: 15px;
  padding: 20px;
  padding-top: 10px;
  border-radius: 15px;
  text-align: center;
}

.my-socials h1 {
  margin-top: 0;
  margin-bottom: 10px;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.telegram {
  width: 50px;
  height: 50px;
  background-image: url('./icons/telegram.svg');
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
}

.github {
  width: 50px;
  height: 50px;
  cursor: pointer;
}

.social-link p {
  margin-top: 8px;
  margin-bottom: 0;
}

.device-not-supported {
  display: none;
}

::selection {

background: #2f1982; 

}

::-moz-selection {

background: #2f1982;

}

.link {
  color: inherit;
  color: #653bff;
  transition: color 0.3s ease;
}

.link:hover {
  color: #ff0000;
}

@media (max-width: 768px) {
  body {
    background: black;
  }

  .content, .bar {
    display: none;
  }

  .device-not-supported {
    color: white;
    padding-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}
