/* Filtro Alfabético */
.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 20px;
  background: var(--light-bg);
  border-radius: 12px;
}

.letter-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  background: #ffffff;
  border-radius: 8px;
  transition: all 0.2s;
}

.letter-link:first-child {
  width: auto;
  padding: 0 16px;
}

.letter-link:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.letter-link.active {
  background: var(--primary-color);
  color: #ffffff;
}

/* Filtro por Artista */
.filter-section {
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
}

.artist-filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.artist-filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  cursor: pointer;
  min-width: 250px;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.artist-filter-btn:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.artist-filter-btn i {
  color: var(--primary-color);
}

.clear-filter-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.clear-filter-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}

/* Modal de Artista */
.artist-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.artist-modal.active {
  display: flex;
}

.artist-modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.artist-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.artist-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--secondary-color);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #dc3545;
  color: #ffffff;
}

.artist-modal-search {
  padding: 16px 24px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.artist-modal-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.artist-modal-search input:focus {
  border-color: var(--primary-color);
}

.artist-modal-search .search-icon {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.artist-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.artist-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s;
}

.artist-option:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.artist-option.active {
  background: var(--primary-color);
  color: #ffffff;
}

.artist-option.active i {
  color: #ffffff;
}

.artist-option i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.artist-option.hidden {
  display: none;
}

/* Section Header */
.section-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
}

.section-header h1 {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

/* Lista de Letras */
.lyrics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lyric-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.lyric-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.lyric-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.lyric-content {
  flex: 1;
  min-width: 0;
}

.lyric-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyric-item:hover .lyric-title {
  color: var(--primary-color);
}

.lyric-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: var(--text-muted);
}

.lyric-artist i,
.lyric-album i {
  margin-right: 5px;
  color: var(--primary-color);
}

.lyric-arrow {
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.3s;
}

.lyric-item:hover .lyric-arrow {
  transform: translateX(5px);
  color: var(--primary-color);
}

/* Paginação */
.pagination {
  gap: 5px;
}

.page-link {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--secondary-color);
  font-weight: 500;
}

.page-link:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-item.active .page-link {
  background: var(--primary-color);
  color: #ffffff;
}

.page-item.disabled .page-link {
  background: transparent;
  color: var(--text-muted);
}

/* Empty State */
.empty-state i {
  opacity: 0.3;
}

/* Responsive */
@media (max-width: 767.98px) {
  .alphabet-filter {
    gap: 4px;
    padding: 15px;
  }

  .letter-link {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .letter-link:first-child {
    padding: 0 12px;
  }

  .filter-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .artist-filter-container {
    width: 100%;
  }

  .artist-filter-btn {
    width: 100%;
    min-width: auto;
  }

  .lyric-item {
    padding: 14px 16px;
  }

  .lyric-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .lyric-meta {
    flex-direction: column;
    gap: 5px;
  }

  .artist-modal-content {
    max-height: 90vh;
  }
}

@media (max-width: 575.98px) {
  .lyric-item {
    gap: 12px;
  }

  .lyric-title {
    font-size: 0.9rem;
  }

  .lyric-meta {
    font-size: 12px;
  }

  .lyric-arrow {
    display: none;
  }
}
