/* Styles for the audio form container */
.map-audio-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

/* Form label styling */
.map-audio-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

/* Input fields */
.map-audio-form input[type="text"],
.map-audio-form input[type="file"] {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* Buttons */
/* .map-audio-form button, */
.map-audio-form input[type="submit"] {
  display: inline-block;
  background-color: #0073aa;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* .map-audio-form button:hover,
.map-audio-form input[type="submit"]:hover {
  background-color: #005f8a;
} */

/* Add Song button */
#add-song {
  margin-top: 10px;
  background-color: #28a745;
}

#add-song:hover {
  background-color: #218838;
}

/* Remove button */
.remove-song-entry {
  background-color: #dc3545;
  margin-top: 10px;
}

.remove-song-entry:hover {
  background-color: #c82333;
}

/* Song entry container */
.map-song-entry {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .map-audio-form {
    padding: 15px;
  }

  .map-audio-form input[type="text"],
  .map-audio-form input[type="file"] {
    font-size: 13px;
  }

  .map-audio-form button,
  .map-audio-form input[type="submit"] {
    font-size: 13px;
  }
}

p.sucess-message {
  margin-top: 711px;
  position: absolute;
  margin-left: 652px;
  font-size: 16px;
}

.map-audio-player {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  padding: 24px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: rgb(27, 27, 27);
  max-width: 1320px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.audio-container {
  align-items: center;
  gap: 15px;
}

.track-thumbnail {
  width: 150px; /* Set the desired width of the circle */
  height: 150px; /* Set the desired height of the circle (same as width) */
  border-radius: 50%; /* Make the element circular */
  overflow: hidden; /* Ensure the image doesn't overflow the circle */
  display: flex; /* Center the image inside the circle */
  align-items: center;
  justify-content: center;
  background-color: #767676dd !important;
}

.track-thumbnail img {
  width: 100%; /* Ensure the image covers the circle */
  height: 100%; /* Ensure the image covers the circle */
  object-fit: cover; /* Ensures the image maintains aspect ratio and fills the circle */
}

.map-playlist {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 50px;
  position: relative;
  overflow: scroll;
  height: 428px;
}

.map-playlist::-webkit-scrollbar {
  width: 0px; /* For Webkit browsers (Chrome, Safari, Edge) */
  height: 0px; /* Horizontal scrollbar */
}

.map-playlist {
  -ms-overflow-style: none; /* Hides scrollbar for Internet Explorer and Edge */
  scrollbar-width: none; /* Hides scrollbar for Firefox */
}

.map-playlist li {
  display: flex;
  align-items: center;
  color: rgb(204, 204, 204);
  padding: 10px;
  margin-bottom: 5px;
  /* border: 1px solid #ddd; */
  border-radius: 3px;
  cursor: pointer;
  /* background-color: #fff; */
  transition: background-color 0.3s, transform 0.2s;
  height: 70px;
  gap: 13px;
}

.map-playlist li h3 {
  color: rgb(204, 204, 204);
  font-size: 17px;
}

.map-playlist li h3:hover {
  /* transform: translateY(-2px); */
  color: rgb(233, 30, 99);
}

.map-playlist .playlist-item.active h3 {
  color: rgb(233, 30, 99); /* Change color to white for the active item */
}

/* .map-playlist li.active {
  border-color: #00796b;
} */

button.delete-playlist-button {
  /* padding-top: 2px; */
  margin-top: 2px;
  background-color: rgb(233, 30, 99);
}

.map-playlist li img {
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Make the element circular */
  overflow: hidden; /* Ensure the image doesn't overflow the circle */
  display: flex; /* Center the image inside the circle */
  align-items: center;
  justify-content: center;
}

.song-staistic {
  position: absolute;
  right: 20px;
  /* top: 243px; */
  margin-top: -54px;
}

.like-button {
  background: none;
  border: none;
  color: rgb(102, 102, 102);
  font-size: 17px;
  cursor: pointer;
  margin-left: 28px;
  box-shadow: none;
  padding: 0;
}

.like-button:hover {
  color: rgb(233, 30, 99) !important;
  background: none;
}

.like-button.active {
  color: rgb(233, 30, 99) !important;
  background: none;
}

.like-count {
  color: rgb(102, 102, 102);
}

.show-lyrics-btn {
  background: none;
  border: none;
  color: rgb(102, 102, 102);
  font-size: 17px;
  cursor: pointer;
  margin-left: 12px;
  box-shadow: none;
  padding: 0;
}

.show-lyrics-btn:hover {
  color: rgb(233, 30, 99) !important;
  background: none;
}

.download-button {
  background: none;
  border: none;
  color: rgb(102, 102, 102);
  font-size: 17px;
  cursor: pointer;
  margin-left: 28px;
  box-shadow: none;
  padding: 0;
}

.download-button:hover {
  color: rgb(233, 30, 99) !important;
  background: none;
}

span.download-count {
  color: rgb(102, 102, 102);
}

.play-count {
  color: rgb(102, 102, 102);
}

i.fas.fa-play-circle {
  color: rgb(102, 102, 102);
  margin-left: 28px;
}

.delete-song-button {
  background: none;
  border: none;
  color: rgb(102, 102, 102);
  font-size: 17px;
  cursor: pointer;
  margin-left: 28px;
  box-shadow: none;
  padding: 0;
}
.delete-playlist-btn {
  background-color: #ff6b6b;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.delete-playlist-btn:hover {
  background-color: #ff4949;
}

.audio-player-controls {
  margin-top: 16px;
  margin-left: 8px;
}

button.prev-btn {
  background: none;
  border: none;
  color: rgb(102, 102, 102);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

button.prev-btn:hover {
  color: rgb(233, 30, 99) !important;
}
button.play-btn {
  background: none;
  border: none;
  color: rgb(102, 102, 102);
  font-size: 14px;
  cursor: pointer;
  margin-left: 26px;
  padding: 0;
}

button.play-btn:hover {
  color: rgb(233, 30, 99) !important;
}

button.next-btn {
  background: none;
  border: none;
  color: rgb(102, 102, 102);
  font-size: 14px;
  cursor: pointer;
  margin-left: 26px;
  padding: 0;
}

button.next-btn:hover {
  color: rgb(233, 30, 99) !important;
}
.seekbar {
  flex: 1;
  height: 3px;
  background: rgb(204, 204, 204);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.progress {
  height: 100%;
  background: rgb(233, 30, 99);
  width: 0%;
  transition: width 0.1s linear;
}

.time {
  font-size: 14px;
  color: #aaa;
}

span.total-time {
  margin-left: 1028px;
}

.pause-icon {
  display: none;
}

.volume-controls {
  display: inline-block;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.volume-seekbar {
  position: relative;
  width: 100px;
  height: 3px;
  background-color: #ddd;
  border-radius: 2.5px;
  cursor: pointer;
  display: inline-block;
  top: -4px;
  margin-left: 9px;
}

.volume-progress {
  height: 100%;
  background-color: #007bff;
  width: 50%; /* Default volume 50% */
  border-radius: 2.5px;
}

.mute-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(102, 102, 102);
  display: inline-block;
  position: relative;
  top: 2px;
  padding: 0;
  margin-left: 26px;
}

button.mute-btn:hover {
  background: none;
}

.mute-btn i {
  font-size: 20px;
  transition: color 0.3s ease;
}

.mute-btn:hover i {
  background-color: none;
  color: rgb(233, 30, 99);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 21% !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  height: 454px;
  overflow: scroll;
  position: relative;
}

p#lyrics-content {
  overflow-wrap: break-word;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #000;
}

ul.map-playlist li {
  position: relative;
}

form.inline-form {
  display: inline-block;
}

a.download-song-button {
  position: absolute;
  left: 505px;
  margin-top: -49px;
}
.player-shuffle-loop-share {
  position: absolute;
  right: 20px;
  top: 118px;
}

.shuffle-btn {
  background: none !important;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: rgb(102, 102, 102); /* Default color when shuffle is off */
  margin: 0 5px;
  padding: 0;
}

.shuffle-btn.active {
  color: rgb(233, 30, 99); /* Green color when shuffle is on */
  background: none !important;
}

.shuffle-btn:hover {
  background: none !important;
  color: rgb(233, 30, 99); /* Darker color when hovering */
}

.loop-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: rgb(102, 102, 102); /* Default color when shuffle is off */
  margin-left: 18px;
  padding: 0;
}

.loop-btn.active {
  color: rgb(233, 30, 99); /* Blue color when loop is on */
}

.loop-btn:hover {
  background: none;
  color: rgb(233, 30, 99); /* Darker color when hovering */
}

a.download-btn {
  text-decoration: none;
  margin-top: -43px;
  position: absolute;
  margin-left: 515px;
}

span.downlaod-count {
  position: absolute;
  margin-top: -43px;
  margin-left: 541px;
  font-size: 15px;
}

.audio-player-holder {
  position: relative;
}

.controls {
  width: 1096px;
  margin-left: 184px;
  margin-top: -80px;
}

.audio-player-holder-right {
  display: flex;
}

.current-track-name {
  position: absolute;
  top: 8px;
  left: 178px;
  text-transform: capitalize;
  font-size: 22px;
  color: rgb(213, 213, 213);
  font-weight: 600;
}

h3.playlisy-name {
  margin-top: -111px;
  margin-left: 180px;
  position: absolute;
  font-size: 14px;
  color: rgb(185 183 183);
  text-transform: capitalize;
}

.success-message {
  padding: 10px 15px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  margin: 15px 0;
  opacity: 1;
  transition: background-color 0.5s ease-in-out;
}

.success-message.highlight {
  background-color: #c3e6cb;
}

/* Modal Box Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.share-modal-content {
  background: rgb(27, 27, 27);
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 40%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid;
}

.share-button {
  background: none !important;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: rgb(102, 102, 102); /* Default color when shuffle is off */
  margin-left: 18px;
  padding: 0;
}

.share-button:hover {
  background: none !important;
  color: rgb(233, 30, 99);
}

.share-close-modal {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

.social-share-icons {
  font-size: 28px;
  column-gap: 12px;
  /* display: inline; */
  text-align: left;
  padding-left: 19px;
}

.social-share-icons a i {
  width: 40px;
  margin: 0 10px;
  cursor: pointer;
}

.embed-box {
  margin-top: 20px;
  margin-left: -35px;
}

.embed-box input {
  width: 70%;
  padding: 5px;
  font-size: 16px;
}

.embed-box button {
  margin-left: 10px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}

.add-song-class {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  background-color: rgb(27, 27, 27);
  padding: 8px 8px;
  border-radius: 4px;
}

input#song_file {
  width: 221px;
}

input#song_thumbnail {
  width: 223px;
}

.add-song-class label {
  margin-right: 5px;
  font-size: 13px;
  font-weight: bold;
  color: rgb(255 255 255);
}

.add-song-class input[type="file"],
.add-song-class textarea,
.add-song-class button {
  flex-shrink: 0;
  min-width: 150px;
}

.add-song-class textarea {
  resize: none;
  width: 300px;
  height: 50px;
}

.add-song-class button {
  padding: 8px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-song-class button:hover {
  background-color: #0056b3;
}

.add-song-class input,
.add-song-class textarea {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.playlist-item.playing h3 {
  color: rgb(233, 30, 99);
}

.accordion-container {
  margin: 20px 0;
}

.accordion-header {
  background-color: #007bff;
  color: white;
  cursor: pointer;
  padding: 15px;
  border: none;
  outline: none;
  text-align: left;
  font-size: 18px;
  width: 100%;
  transition: background-color 0.3s ease;
}

.accordion-header.active {
  background-color: #0056b3;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
  background-color: #f1f1f1;
}

.accordion-content .map-audio-form {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
}

#add-song,
.remove-song-entry {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}

#add-song:hover,
.remove-song-entry:hover {
  background-color: #0056b3;
}

/* css for comment */

.comment-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.comment-content {
  background: #f9f9f9;
  border-radius: 5px;
  padding: 10px;
  flex: 1;
  text-align: left;
}

.comment-content strong {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.comment-content p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.comment-content small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #999;
}

.comment-close-modal {
  margin-top: -23px !important;
}

button#submit-comment {
  margin-left: -258px;
  font-size: 13px;
  padding: 10px 20px;
}

div#comment-list {
  padding-top: 12px;
}

span.comment-icon {
  cursor: pointer;
  color: rgb(102, 102, 102);
}

/* General Modal Styling */
.signup-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Ensure it appears above other content */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
}

/* Modal Content */
.signup-modal-content {
  position: relative;
  background-color: #fff;
  margin: 10% auto; /* Vertically and horizontally center */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out; /* Add fade-in animation */
}

/* Close Button */
.signup-close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #333;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.signup-close-modal:hover {
  color: #000;
}

/* Modal Heading */
.signup-modal-content h2 {
  margin: 0;
  padding: 10px 0;
  font-size: 24px;
  color: #333;
  border-bottom: 1px solid #ddd;
}

/* Modal Description */
.signup-modal-content p {
  font-size: 16px;
  color: #666;
  margin: 20px 0;
}

/* Buttons Container */
.signup-modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

/* Sign Up and Log In Buttons */
.signup-modal-buttons a {
  text-decoration: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.signup-btn {
  background-color: #28a745; /* Green for Sign Up */
}

.signup-btn:hover {
  background-color: #218838;
}

.login-btn {
  background-color: #007bff; /* Blue for Log In */
}

.login-btn:hover {
  background-color: #0056b3;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  .controls {
    width: 341px;
    margin-left: -20px;
    margin-top: 25px;
  }
  span.total-time {
    margin-left: 270px;
  }
  ul.map-playlist li {
    padding-bottom: 90px;
    padding-left: 0px;
  }
  .song-staistic {
    right: 20px;
  }
  .volume-controls {
    margin-left: -2px;
  }
  .volume-seekbar {
    width: 60px;
  }
  .player-shuffle-loop-share {
    right: -3px;
    top: 221px;
  }
  .current-track-name {
    top: 42px;
    font-size: 20px;
	  left: 130px;
  }
  h3.playlisy-name {
    margin-top: -44px;
        margin-left: 133px;
  }
	
	.track-thumbnail{
		margin-left: -12px;
		width: 120px;
		height:120px;
	}

  .modal-content {
    width: 287px !important;
    height: 408px;
  }
  .map-audio-player {
    padding: 20px;
  }

  .share-modal-content {
    width: 85%;
  }
  .embed-box input {
    width: 90%;
    padding: 5px;
    font-size: 16px;
    margin-left: 33px;
  }
  .embed-box button {
    margin-top: 10px;
    margin-left: 35px;
  }
  .social-share-icons {
    text-align: center;
    padding-left: 0px;
  }
  .share-close-modal {
    right: 41px;
    top: 43px;
    color: white;
  }

  button#submit-comment {
    margin-left: -168px;
  }
  .add-song-class {
    display: block;
  }
}
