
.media {
  margin-bottom: 20px;
}
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateY(-20px);
}

.custom-modal.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.custom-modal-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.custom-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.custom-close-btn:hover {
  color: #dc3545;
}

.comments-list {
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comments-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.comments-list li:last-child {
  border-bottom: none;
}

.custom-modal-footer {
  margin-top: 15px;
}

.custom-modal-footer textarea {
  resize: vertical;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}


.like-count {
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: bold;
  color: #fff;
}
.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.share-menu {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 200px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: none;
  border-radius: 5px;
  background: #333;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.share-option:hover {
  background: #444;
}

.share-option i {
  font-size: 16px;
}
.player-media {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.cover-art img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}


.music-item .artist-name {
  color: #fff;
  font-size: 12px;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.player-card {
  background: linear-gradient(to bottom, #002e1eb5, #000);
  border: none;
  margin-top: 20px;
}
.player-card .card-title {
     color: #fff;
}
.player-card-body {
  padding: 20px;
  color: #fff;
}

.player-card-body a {
  color: #fff;
}

.player-card-body a:hover {
  color: #ccc;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
  .custom-modal-content {
    width: 95% !important;
    max-width: none;
    padding: 15px;
  }

  .share-menu {
    width: 90%;
    max-width: 300px;
  }

  .share-option {
    font-size: 16px;
    padding: 10px;
  }

  .comments-list {
    max-height: 250px;
  }

  .custom-modal-footer textarea {
    font-size: 14px;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}
.truncate-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* adjust this value to your desired width */
}

.truncate-artist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* adjust this value to your desired width */
}
.media-body {
  padding-left: 20px;
}

.playback-controls {
  margin-top: 20px;
}

.playback-controls button {
  margin-right: 0px;
}
.add-to-wishlist {
    background-color: #181616;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 17px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.card {
  margin-bottom: 20px;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
}

#waveform {
  width: 100%;
  height: 200px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}