@font-face {
  font-family: 'test9';
  src: url('fonts/test9.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  background: #171e22;
  font-family: 'test9', sans-serif;
  position: relative;
  z-index: 1;
}

/* Заголовок */
h1 {
  text-align: center;
  padding: 10px;
  background: #273138;
  color: #fff;
  font-size: 22px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

/* Список треков */
.tracks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.track {
  background: #273138;
  border-radius: 8px;
  overflow: hidden;
  width: 280px;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.track:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
  cursor: url('metal.png') 16 16, pointer;
}

.cover-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
}

.cover-wrapper a {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cover-wrapper a:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.cover-wrapper a:hover::after {
  content: "Искать видео на YouTube";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  white-space: normal;
  width: 250px;
  font-size: 14px;
}

.cover-wrapper a i {
  font-size: 18px;
}

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

.datetime {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  font-size: 16px;
  color: #fff;
  border-radius: 4px;
}

.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e50914;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
  position: relative;
}

.artist,
.title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.artist {
  font-size: 18px;
  color: #f5f5f5;
  font-weight: bold;
}

.title {
  font-size: 16px;
  color: #ccc;
}

.artist i,
.title i {
  color: #bbb;
}

/* Медиа запросы */
@media (max-width: 600px) {
  .tracks {
    flex-direction: column;
    align-items: center;
  }

  .track {
    width: 90%;
  }

  .cover-wrapper {
    height: auto;
    aspect-ratio: 1 / 1;
    width: 100%;
  }
}

.track {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Класс для анимации появления */
.track.visible {
  opacity: 1;
  transform: translateY(0);
}