* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
  padding: 40px 20px;
  line-height: 1.6;
}

.container {
  max-width: 650px;
  margin: 0 auto;
}

h1 {
  color: #fff;
  font-weight: normal;
  font-size: 24px;
  margin-bottom: 8px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.about {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #1a1a1a;
}

.socials {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.socials a {
  color: #888;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  transition: all 0.2s ease;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
}

.socials a:hover {
  color: #fff;
  background: rgba(150, 150, 150, 0.5);
}

.track-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 12px;
}

.play-count {
  font-size: 12px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease; /* Add smooth animation */
}

.play-count:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
}

.play-count svg {
  width: 12px;
  height: 12px;
  transition: all 0.2s ease; /* Add animation to SVG */
}

.play-count-num {
  font-weight: bold;
  color: #4a9;
  text-shadow: 0 0 2px rgba(74, 169, 255, 0.3);
}

.year-filter {
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.year-btn {
  background: none;
  border: 1px solid #444;
  color: #aaa;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.year-btn:hover {
  border-color: #555;
  color: #ddd;
}

.year-btn.active {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.year-section {
  margin-bottom: 40px;
}

.year-label {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.track {
  background: #1a1a1a;
  padding: 20px;
  margin-bottom: 12px;
  border-left: 2px solid #222;
  transition: all 0.2s ease;
  border-radius: 0 4px 4px 0;
}

.track:hover {
  border-left-color: #4a9;
  background: rgba(74, 153, 255, 0.05);
}

.track.playing {
  border-left-color: #4a9;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 153, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(74, 153, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 153, 255, 0);
  }
}

.track-title {
  color: #ccc;
  font-size: 15px;
  margin-bottom: 4px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.track-date {
  color: #777;
  font-size: 12px;
  margin-bottom: 8px;
  opacity: 0.9;
}

/* Fixed line-clamp compatibility */
.track-desc {
  color: #b0b0b0;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 15px;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Max 2 lines */
  -webkit-box-orient: vertical;
  /* Fallback for browsers that don't support line-clamp */
  display: block;
}

.track-desc:empty {
  display: none;
}

.player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #333;
}

.play-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid #444;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-width: 36px;
}

.play-btn:hover {
  border-color: #777;
  color: #ddd;
}

.track.playing .play-btn {
  border-color: #4a9;
  color: #4a9;
}

.play-btn svg {
  width: 12px;
  height: 12px;
}

.progress-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: #333;
  cursor: pointer;
  border-radius: 2px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #4a9, #555);
  width: 0%;
  border-radius: 2px;
}

.track.playing .progress-fill {
  background: linear-gradient(to right, #4a9, #fff);
}

.time {
  font-size: 11px;
  color: #aaa;
  min-width: 70px;
  text-align: right;
  padding-top: 2px;
}

.hidden {
  display: none !important;
}

.loading {
  color: #aaa;
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.sort-filter {
  display: flex;
  gap: 12px;
}

.sort-btn {
  background: none;
  border: 1px solid #444;
  color: #aaa;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.sort-btn:hover {
  border-color: #555;
  color: #ddd;
}

.sort-btn.active {
  border-color: #4a9;
  color: #4a9;
  background: rgba(74, 153, 255, 0.1);
}

.vote-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.vote-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
}

.upvote-btn,
.downvote-btn {
  background: none;
  border: 1px solid #444;
  color: #aaa;
  padding: 5px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.upvote-btn:hover,
.downvote-btn:hover {
  border-color: #555;
  color: #ddd;
}

.upvote-btn.voted,
.downvote-btn.voted {
  border-color: currentColor;
}

.upvote-btn.voted {
  border-color: #4a9;
  color: #4a9;
}

.downvote-btn.voted {
  border-color: #a55;
  color: #a55;
}

.upvote-btn svg,
.downvote-btn svg {
  width: 12px;
  height: 12px;
}

.vote-count {
  font-size: 14px;
  color: #aaa;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
