/* Tabs Container - FlowLatin Modern Ranking */
.fl-tops-tabs-container {
  margin: 30px auto;
  background: rgba(13, 13, 13, 0.85) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  max-width: 1000px !important;
}

.fl-tops-audioplayer ul.playlist {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Navegación de Tabs */
.fl-tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  padding: 0;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.fl-tabs-nav::-webkit-scrollbar {
  display: none;
}

.fl-tab-button {
  flex: 1;
  min-width: 140px;
  padding: 20px 25px;
  background: #af03035c !important;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.fl-tab-button:last-child {
  border-right: none;
}

.fl-tab-button i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.fl-tab-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.fl-tab-button:hover i {
  transform: translateY(-2px);
}

.fl-tab-button.active {
  background: linear-gradient(135deg, #ff0000 0%, #b20000 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
  z-index: 2;
}

.fl-tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  opacity: 0.3;
}

/* Contenido de Tabs */
.fl-tabs-content {
  padding: 10px 5px;
  background: transparent;
}

.fl-tab-pane {
  display: none;
  animation: fl-fade-slide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fl-tab-pane.active {
  display: block;
}

@keyframes fl-fade-slide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Container de cada top */
.fl-top-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fl-top-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

.fl-top-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
}

.fl-top-item:hover {
  background: rgba(255, 0, 0, 0.08) !important;
  border-color: rgba(255, 0, 0, 0.3) !important;
  transform: scale(1.01) translateX(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.fl-top-item:hover::before {
    background: #ff0000;
}

.fl-top-item-info {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  gap: 15px !important;
  flex-wrap: nowrap !important;
  min-height: 50px !important;
}

.fl-rank-number {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: #ff0000 !important;
  width: 45px !important;
  min-width: 45px !important;
  text-align: center !important;
  font-family: 'Outfit', sans-serif !important;
  flex-shrink: 0 !important;
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.4) !important;
  line-height: 1 !important;
}

.fl-track-title {
  font-weight: 500 !important;
  font-size: 14px !important;
  color: #fff !important;
  flex: 1 !important;
  min-width: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: 0.5px !important;
}

.fl-top-item:hover .fl-track-title {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;
}

.fl-play-button {
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

/* 🔥 CUSTOM PLAY BUTTON STYLES FOR TOPS */
.fl-top-audio-btn {
  width: 40px !important;
  height: 40px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  outline: none !important;
  flex-shrink: 0 !important;
}

.fl-top-audio-btn:hover {
  border-color: #ff0000 !important;
  background: rgba(255, 0, 0, 0.15) !important;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4) !important;
  transform: scale(1.1) !important;
}

.fl-top-audio-btn.is-playing {
  border-color: #ff0000 !important;
  background: rgba(255, 0, 0, 0.2) !important;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6) !important;
}

.fl-top-audio-btn .fl-play-icon,
.fl-top-audio-btn .fl-pause-icon {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  transition: all 0.2s ease !important;
}

.fl-top-audio-btn .fl-pause-icon {
  display: none;
}

.fl-top-audio-btn.is-playing .fl-play-icon {
  display: none;
}

.fl-top-audio-btn.is-playing .fl-pause-icon {
  display: block;
}

.fl-play-locked {
  width: 40px !important;
  height: 40px !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: #666 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: help !important;
  flex-shrink: 0 !important;
}

.fl-action-btn {
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #999 !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  margin-left: auto !important;
}

.fl-download-btn:hover {
  background: #ff0000 !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6) !important;
  transform: translateY(-2px) !important;
}

/* Sonaar Adaptations - Premium */
.fl-play-button .srp_play,
.fl-play-button .srp-play-button-label-container {
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  transition: all 0.3s ease !important;
}

.fl-top-item:hover .fl-play-button .srp_play,
.fl-top-item:hover .fl-play-button .srp-play-button-label-container {
  border-color: #ff0000 !important;
  color: #ff0000 !important;
  background: rgba(255, 0, 0, 0.1) !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3) !important;
}

/* Rank Highlights */
.fl-top-item.rank-1 .fl-rank-number {
    font-size: 1.8rem !important;
    color: #ff0000 !important;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .fl-tops-tabs-container {
      margin: 20px 10px !important;
      border-radius: 12px;
  }
  
  .fl-tab-button {
    min-width: 80px !important;
    padding: 15px 5px !important;
    font-size: 11px !important;
    flex-direction: column !important;
    gap: 5px !important;
  }
  
  .fl-tab-button span {
      font-size: 9px !important;
      letter-spacing: 0.5px !important;
      display: block !important;
  }
  
  .fl-tab-button i {
      font-size: 18px !important;
  }
  
  .fl-rank-number {
    font-size: 1.2rem !important;
    width: 25px !important;
  }

  .fl-track-title {
      font-size: 12px !important;
  }
  
  .fl-top-item {
      padding: 10px 12px !important;
  }
}

.fl-top-empty {
  text-align: center !important;
  padding: 60px 40px !important;
  color: #555 !important;
  font-size: 13px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.fl-top-empty img.emoji {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    filter: grayscale(1) !important;
    opacity: 0.5 !important;
}
