/* Container */
.top-10-songs {
  background: #1e1e1e; /* Dark grey */
  padding: 16px;
  border-radius: 10px;
  color: white;
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
}

.top-10-songs h3 {
  text-align: center;
  margin-bottom: 14px;
  font-size: 20px;
}

/* Tabs */
.top-10-tabs .t10s-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.top-10-tabs .t10s-tab {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.top-10-tabs .t10s-tab.is-active {
  background: #ff6600; /* Orange */
  border-color: #ff6600;
  color: white;
}

.top-10-tabs .t10s-panel {
  display: block;
}

.top-10-tabs .t10s-panel[hidden] {
  display: none;
}

/* List */
.song-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: relative;
}

.song-item:last-child {
  border-bottom: none;
}

/* Rank circle */
.rank {
  background: #ff6600; /* Orange circle */
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  font-size: 14px;
  z-index: 2;
}

/* Vertical line/timeline */
.vertical-line {
  width: 2px;
  background: rgba(255,255,255,0.3);
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 0;
}

/* Link row */
.song-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  gap: 10px;
  flex: 1;
  position: relative;
  border-radius: 8px;
  transition: background .2s ease, padding .2s ease;
}

.song-link:hover {
  background: rgba(255,255,255,0.05);
  padding: 5px;
}

/* Cover + Play icon overlay */
.song-cover-container {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.song-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid white;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: white;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  line-height: 1;
}

.song-link:hover .play-icon {
  opacity: 1;
}

/* Text */
.song-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.song-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-name {
  font-size: 14px;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty state */
.t10s-empty {
  opacity: 0.8;
  padding: 8px 0;
}

/* Responsive */
@media (max-width: 640px) {
  .top-10-songs {
    padding: 12px;
  }
  .song-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .vertical-line {
    display: none;
  }
  .song-link {
    width: 100%;
    padding-top: 4px;
  }
  .play-icon {
    opacity: 1; /* always visible on mobile */
  }
  .song-title, .artist-name {
    white-space: normal; /* wrap on small screens */
  }
}
