@font-face {
  font-family: "MyCustomFont";
  src: url("./fonts/Laviossa-Medium.otf") format("opentype");
  font-weight: medium;
  font-style: medium;
}

body {
  background-color: #000;
  color: #fff;
  font-family: "MyCustomFont", sans-serif;
  max-width: 1400px;
  letter-spacing: 2px;
  margin: 0 auto;
  padding: 0;
}
#main {
  margin-bottom: 50px;
}
h1 {
  font-family: "MyCustomFont", sans-serif;
  font-size: 48px;
  border-bottom: 1px solid white;
  text-align: left;
}
#nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.links {
  background-color: black;
  border: solid 1px white;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  padding: 4px 8px;
  margin-top: 10px;
  text-decoration: none;
}
.logo {
  padding-left: 10px;
  display: flex;
  flex-grow: 2;
}
.menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-right: 30px;
  display: flex;
}
.menu-icon {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 40px;
}
li {
  font-size: 22px;
  text-transform: uppercase;
  margin: 0 25px;
  font-family: "MyCustomFont", sans-serif;
}
li a {
  text-decoration: none;
  color: white;
}
.trackInfo {
  width: 40%;
  overflow: hidden;
  background: black;
  padding: 10px 0;
  display: flex;
  align-items: center;
  position: relative;
}

.now-playing-wrapper {
  width: 100%;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.now-playing {
  font-size: 16px;
  color: white;
  white-space: nowrap;
  display: inline-block;
  animation: track-live 9s linear infinite;
}

@keyframes track-live {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.radio-container {
  text-align: center;
  margin: 68px 0px 68px 0px;
}

.radio-button {
  background-color: black;
  color: white;
  border: 1px solid white;
  padding: 5px 10px 5px 5px;
  font-size: 18px;
  cursor: pointer;
}

.radio-button:hover {
  background-color: rgba(255, 255, 255, 0.221);
}
.container {
  margin: 0 auto;
}

.loading {
  text-align: center;
  padding: 40px;
  font-size: 1.2em;
  color: #fff;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0px;
  row-gap: 20px;
  margin-top: 20px;
}

.track-item {
  position: relative;
  background: #000;
  border: 1px solid white;
  padding: 14px;
}

.track-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  cursor: pointer;
}

.track-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}

.track-image-container:hover .play-button {
  opacity: 1;
}

.play-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 20px solid #000;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.track-info {
  padding: 15px 0;
  font-family: "MyCustomFont", sans-serif;
}

.artist-name {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.artist-name:hover {
  color: #ccc;
  text-decoration: none;
}

.track-title {
  color: #999;
  font-size: 14px;
  margin: 0;
  display: inline;
}

.track-date {
  color: #666;
  font-size: 12px;
  margin-top: 8px;
  margin-bottom: 0;
}

.track-genres {
  color: #555;
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.4;
}

.player-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000000;
  border: 1px solid white;
  z-index: 1000;
  display: none;
  height: auto;
}

.player-controls {
  padding: 15px;
  text-align: center;
}

.current-track-info {
  display: none;
  padding: 15px;
  background: black;
  text-align: center;
  font-weight: bold;
  color: #fff;
  border-bottom: 1px solid #000000;
}

.close-button {
  background: #333;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.close-button:hover {
  background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tracks-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .track-image-container {
    height: 250px;
  }

  .container {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .tracks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .track-image-container {
    height: 300px;
  }
}
footer {
  border-top: 1px solid white;
  margin: 0;
  padding: 12px;
  text-align: center;
}

@media (max-width: 800px) {
  footer p {
    font-size: 12px;
    padding: 8px;
  }
}

@media (max-width: 1020px) {
  #nav-bar ul {
    display: none;
    background-color: black;
    flex-direction: column;
    position: absolute;
    margin: 0;
    width: 30%;
    line-height: 2.5;
    top: 140px;
    right: 30px;
    text-align: end;
  }
  #nav-bar ul.active {
    display: flex;
    font-size: 0.9em;
  }
  .menu-icon {
    display: block;
    cursor: pointer;
    color: white;
    font-size: 40px;
  }
}

@media (max-width: 800px) {
  #nav-bar ul {
    display: none;
    background-color: black;
    flex-direction: column;
    position: absolute;
    margin: 0;
    width: 30%;
    top: 140px;
    left: 500px;
    text-align: end;
    line-height: 2.5;
  }
  #nav-bar ul.active {
    display: flex;
    font-size: 0.9em;
  }
}

@media (max-width: 600px) {
  body {
    margin: 0px 20px;
  }
  #nav-bar {
    margin-bottom: 15px;
  }
  #nav-bar ul {
    display: none;
    background-color: rgba(0, 0, 0, 0.589);
    flex-direction: column;
    position: absolute;
    margin: 0;
    width: 40%;
    top: 95px;
    left: 210px;
    text-align: end;
    line-height: 2.1;
    z-index: 9999;
  }
  #nav-bar ul.active {
    display: flex;
    font-size: 0.9em;
  }
  li {
    font-size: 18px;
    margin: 3px 12px;
  }
  .logo {
    padding-left: 0px;
    margin-left: -30px;
  }
  .logo-picture {
    width: 130px;
    height: 130px;
  }
  h1 {
    font-size: 32px;
    border-bottom: 1px solid white;
  }
  footer {
    padding: 10px;
  }
  .track-name {
    display: flex;
    justify-content: start;
    align-items: center;
  }
  .now-playing {
    font-size: 12px;
  }

  .radio-button {
    font-size: 12px;
    padding: 5px;
  }

  .logo-picture {
    width: 100%;
    height: 100%;
  }
  .logo-space {
    width: 25%;
  }
  .radio-container {
    width: 32%;
    margin: auto;
  }
}
