body {
    background-color: #121212;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.btn {
    background-color: #1DB954;
    color: #fff;
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: #1a1a1a;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 5px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
  }
  
  /* Hide default scrollbar for Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #1a1a1a;
  }
  
  
  /* For the playlist container */
  .playlists-container {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #1a1a1a;
  }
.playlist-card {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background-color: #181818;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.playlist-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    margin-right: 16px;
    transition: all 0.3s ease-in-out;
}
.playlist-card .play-button {
    right: 12px;
}
.playlist-card:hover img {
    transform: scale(1.05);
}

.playlist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.form-checkbox:checked + span {
    @apply bg-green-500;
}

.form-checkbox:checked + span svg {
    @apply block;
}

#genreContainer::-webkit-scrollbar {
    width: 6px;
}

#genreContainer::-webkit-scrollbar-track {
    background: #2d3748;
}

#genreContainer::-webkit-scrollbar-thumb {
    background-color: #4a5568;
    border-radius: 3px;
}
.playlist-header{
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #212121;
}
.playlist-card {
    position: relative;
    overflow: hidden;
}

.playlist-title {
    color: #fff;
}

.edit-playlist-btn {
    background-color: #1db954;
    color: #fff;
}

.edit-playlist-btn:hover {
    background-color: #1ed760;
}
.playlist-info {
    background-color: #282828;
}
.play-button {
    transition: opacity 0.3s, transform 0.3s;
  z-index: 5; /* Reduce el z-index */
}
.playlist-card:hover .play-button {
    opacity: 1;
    transform: scale(1.1);
}
.play-button button i {
    margin-left: 2px; /* Ajusta ligeramente la posición del icono */
}
.play-button button {
    transition: all 0.3s ease;
    outline: none;
}

.play-button button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
}
#savePlaylistChanges {
    background-color: #1DB954;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-top: 20px;
}

#savePlaylistChanges:hover {
    background-color: #1ed760;
}
.btn:hover {
    background-color: #1ED760;
    transform: scale(1.05);
}

.sidebar {
    background-color: #000000;
    width: 240px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    padding: 20px;
}
.sidebar .playlists-container {
    max-height: 300px; /* Adjust as needed */
    overflow-y: auto;
  }
.sidebar nav ul {
    list-style-type: none;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 15px;
}
.save-profile-btn {
    background-color: #10B981;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.save-profile-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.save-profile-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
}

.save-profile-btn:active {
    transform: translateY(1px);
}
.sidebar nav ul li a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.sidebar nav ul li a i {
    margin-right: 10px;
}

.main-content {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #1a1a1a;
    margin-left: 240px;
    padding: 20px;
    padding-bottom: 90px;
    min-height: calc(100vh);
}
.top-bar {
    background-color: rgba(24, 24, 24, 0.8);
    border-radius: 30px;
    height: 60px;
    position: sticky;
    top: 5px; /* Adjust the top value to move it down */
    z-index: 10;
    backdrop-filter: blur(10px);
}
.song-card {
    background-color: #333;
    border: 1px solid #444;
    max-width: 100%;
    overflow: hidden;
}

.play-btn {
    color: #1db954;
}

.play-btn:hover {
    color: #1ed760;
}
.song-card h3, .song-card p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-card button {
    transition: all 0.2s ease-in-out;
}

.song-card button:hover {
    transform: scale(1.1);
}
.user-profile img {
    width: 32px;
    height: 32px;
}

.playlist-card, .song-card {
    background-color: #181818;
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    overflow: hidden;
}

.playlist-card:hover, .song-card:hover {
    background-color: #282828;
}
.music-player {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    height: 90px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 16px;
}
.now-playing {
    flex: 1;
    display: flex;
    align-items: center;
}

.song-info {
    margin-left: 14px;
    max-width: 300px;
}

.song-title {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 11px;
    color: #b3b3b3;
    margin: 0;
}
.music-player.hidden {
    transform: translateY(100%);
}
.controls-and-progress {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.player-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding: 0;
    margin: 0 16px;
}

#loopBtn, #repeatBtn {
    font-size: 14px;
}

#loopBtn.active, #repeatBtn.active {
    color: #1DB954;
}
#playPauseBtn {
    font-size: 32px;
    color: #fff;
}

.player-btn i {
    transition: transform 0.3s ease-in-out;
}

#loopBtn:hover i {
    transform: rotate(180deg);
}

#repeatBtn:hover i {
    animation: pulse 0.5s infinite alternate;
}
#volumeIcon {
    color: #b3b3b3;
    margin-right: 8px;
    cursor: pointer;
}
#volumeIcon {
    font-size: 20px;
    margin-right: 8px;
}
#volumeSlider {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: #535353;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    border-radius: 2px;
}
#volumeSlider:hover {
    opacity: 1;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #1DB954;
    cursor: pointer;
    border-radius: 50%;
}

.player-btn:hover {
    color: #fff;
    transform: scale(1.1);
}
.progress-bar {
    width: 100%;
    max-width: 600px;
    height: 5px;
    background-color: #535353;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    width: 0;
    height: 100%;
    background-color: #b3b3b3;
    transition: width 0.1s linear;
}
.progress-bar:hover .progress {
    background-color: #1DB954;
}
.preview-progress {
    position: absolute;
    height: 100%;
    background-color: rgba(29, 185, 84, 0.5); /* Color verde semitransparente */
    pointer-events: none;
}
.volume-control {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.volume-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: #535353;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.volume-slider:hover {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #1DB954;
    cursor: pointer;
    border-radius: 50%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #282828;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}
.playlist-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.playlist-info {
    padding: 16px;
}
.playlist-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-description {
    font-size: 12px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playlist-cover-edit {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.playlist-cover-edit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
/* Add these styles to the existing styles.css file */

.genre-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.genre-checkbox input {
    display: none;
}

.genre-checkbox span {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #3E3E3E;
    color: #fff;
    transition: all 0.3s ease;
}

.genre-checkbox input:checked + span {
    background-color: #1DB954;
}

    .search-bar {
        position: relative;
        width: 200px;
        transition: width 0.3s ease-in-out;
        margin-left: 10px; /* Add this line to move the search bar to the right */
    }
    .search-bar input {
        width: 100%;
        padding: 8px 32px 8px 12px;
        border-radius: 20px;
        border: 1px solid #444;
        background-color: #333;
        color: white;
        transition: all 0.3s ease-in-out;
    }
    .search-bar input:focus {
        width: 290px;
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    }
    .search-bar svg {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        fill: #888;
        transition: fill 0.3s ease-in-out;
    }
    .search-bar input:focus + svg {
        fill: #0f0;
    }

.search-icon-active {
    transform: translateY(-50%) scale(1.2);
    color: #1DB954;
}

.search-input-active {
    background-color: #3E3E3E;
    box-shadow: 0 0 0 2px #1DB954;
}

#followBtn {
    transition: all 0.3s ease;
}

#followBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
#shuffleBtn.active {
    color: #1DB954;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.slide-down {
    animation: slideDown 0.3s ease-in-out forwards;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


.modal {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.context-menu {
    position: fixed;
    z-index: 1000;
    background-color: #282828;
    border: 1px solid #383838;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-menu li {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.context-menu li:hover {
    background-color: #383838;
}


.user-profile {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.user-profile:hover {
    transform: scale(1.05);
}

.edit-profile-btn {
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.cover-upload-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.user-profile {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.user-profile:hover:not(.menu-active) {
    transform: scale(1.1);
}

.user-profile:hover {
    transform: scale(1.1);
}

.user-name {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}
.user-profile:hover .user-name:not(.menu-active) {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
#userMenu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #282828;
    border-radius: 4px;
    padding: 10px 0;
    min-width: 150px;
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}
#userMenu.active {
    transform: scale(1);
    opacity: 1;
}
.playlist-item{
    border-radius: 10px;
}
#userMenu.active + .user-name {
    display: none;
}

#userMenu a {
    display: block;
    padding: 8px 15px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

#userMenu a:hover {
    background-color: #3E3E3E;
}

.user-name.menu-active {
    opacity: 1;
}
@keyframes moveUp {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-35px) scale(1.1);
    }
    100% {
        transform: translateY(-70px) scale(1);
    }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ffffff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.loading-animation p {
    margin-top: 20px;
    font-size: 18px;
    color: #ffffff;
}

.dashboard-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
#createPlaylistBtn {
    position: fixed;
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
    background-color: #1DB954;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: fixed;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
#createPlaylistBtn.above-player {
    animation: moveUp 0.3s ease-in-out forwards;
    bottom: 30px; /* Ajusta este valor según la altura de tu reproductor de música */
}

@keyframes moveDown {
    0% {
        transform: translateY(-70px) scale(1);
    }
    50% {
        transform: translateY(-35px) scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

#createPlaylistBtn.move-down {
    animation: moveDown 0.3s ease-in-out forwards;
}

#createPlaylistBtn:hover {
    background-color: #1ed760;
    transform: scale(1.1);
}
#createPlaylistBtn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

#createPlaylistBtn:hover svg {
    transform: rotate(90deg);
}

.modal-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #3E3E3E;
    border: none;
    border-radius: 4px;
    color: #fff;
}
.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    margin-left: 70px;
    font-size: 14px;
}

.toggle-switch input:checked + label {
    background-color: #1DB954;
}
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    width: 60px;
    height: 34px;
    border-radius: 34px;
}
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 65px;
    left: 2px;
    bottom: -8px;
    background-color: rgba(255, 255, 255, 0);
    transition: .4s;
    border-radius: 50%;
}
.toggle-switch input:checked + .slider {
    background-color: #1DB954;
}
.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}
.toggle-switch input:checked + label:before {
    transform: translateX(26px);
}
.like2-btn {
    z-index: 15; 
    background: none;
    border: none;
    color: #1DB954;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s;
    margin-left: 16px;
}
.like2-btn:hover, .like2-btn.liked {
    color: #1DB954;
}
.aspect-ratio {
    aspect-ratio: 1 / 1;
}
.like2-btn.liked i::before {
    content: "\f004";
    font-weight: 900;
}
.like-btn {
    z-index: 15; 
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
    margin-left: 16px;
}

.like-btn:hover, .like-btn.liked {
    color: #1DB954;
}

.like-btn.liked i::before {
    content: "\f004";
    font-weight: 900;
}
/* Mobile styles (up to 767px) */
@media (max-width: 767px) {
    body {
        padding-bottom: 180px; /* Aumentado para dar espacio al reproductor y la navegación */
      }
  
      .sidebar {
        height: 60px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1002; /* Asegura que esté por encima del reproductor */
      }
    .sidebar nav {
      width: 100%;
    }
  
    .sidebar nav ul {
      display: flex;
      justify-content: space-around;
      align-items: center;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      list-style-type: none;
    }
  
    .sidebar nav ul li {
      margin: 0;
      height: 100%;
    }
  
    .sidebar nav ul li a {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      padding: 5px;
      color: #b3b3b3; /* Light gray color for icons and text */
      text-decoration: none;
    }
  
    .sidebar nav ul li a:hover {
      color: #ffffff; /* White color on hover */
    }
  
    .sidebar nav ul li a svg,
    .sidebar nav ul li a i {
      width: 24px;
      height: 24px;
      margin: 0 0 2px 0;
    }
  
    .sidebar nav ul li a span {
      font-size: 10px;
    }
  
    /* Hide playlists and other unnecessary elements in mobile sidebar */
    .sidebar #virkz,
    .sidebar .playlists-container,
    .sidebar h3 {
      display: none;
    }
  
    /* Show only Home, Search, Your Library, and Favorite Songs */
    .sidebar nav ul li:nth-child(n+5) {
      display: none;
    }
  
    .main-content {
      margin-left: 0;
      padding: 10px;
      padding-bottom: 70px;
    }
  
     .music-player {
    position: fixed;
    bottom: 60px; /* Directamente encima de la barra de navegación */
    left: 0;
    right: 0;
    height: 70px; /* Altura reducida */
    background-color: #121212;
    z-index: 1002; /* Justo debajo de la barra de navegación */
    display: flex;
    flex-direction: column;
    padding: 5px;
  }

  .now-playing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  #nowPlayingCover {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }

  .song-info {
    flex: 1;
    overflow: hidden;
  }

  #nowPlayingSong {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 5px;
  }

  .player-btn {
    font-size: 20px;
    margin: 0 10px;
  }

  #playPauseBtn {
    font-size: 28px;
  }

  .progress-bar, .volume-control {
    display: none; /* Ocultamos para ahorrar espacio */
  }

  .main-content {
    padding-bottom: 140px; /* Aseguramos que el contenido no se oculte detrás del reproductor */
  }
    /* Adjust other elements as needed */
    .top-bar {
      position: sticky;
      top: 0;
      z-index: 999;
    }
  
    .playlist-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 10px;
    }
  
    #createPlaylistBtn {
      bottom: 70px;
      right: 10px;
      display: hidden;
    }
  }
  
/* Mobile styles (up to 767px) */
@media (max-width: 767px) {
  body {
    padding-bottom: 120px; /* Aumentado para dar espacio al reproductor y la barra de navegación */
  }
  
    .sidebar {
      width: 100%;
      height: 60px;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      top: auto;
      z-index: 1001;
      padding: 0;
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      background-color: #000000;
      border-top: 1px solid #333;
    }
  
    .sidebar #virkz {
      display: none;
    }
  
    .sidebar nav {
      display: flex;
      height: 100%;
    }
  
    .sidebar nav ul {
      display: flex;
      align-items: center;
      height: 100%;
      margin: 0;
      padding: 0 10px;
      list-style-type: none;
    }
  
    .sidebar nav ul li {
      margin: 0 15px 0 0;
      height: 100%;
    }
  
    .sidebar nav ul li a {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: #b3b3b3;
      text-decoration: none;
    }
  
    .sidebar nav ul li a:hover {
      color: #ffffff;
    }
  
    .sidebar nav ul li a svg,
    .sidebar nav ul li a i {
      width: 24px;
      height: 24px;
      margin-bottom: 4px;
    }
  
    .sidebar nav ul li a span {
      font-size: 10px;
    }
  
    .sidebar .playlists-container {
      display: none;
    }
  
    .main-content {
      margin-left: 0;
      padding: 10px;
      padding-bottom: 120px;
    }
    .music-player {
        position: fixed;
        bottom: 60px; /* Justo encima de la barra lateral */
        left: 0;
        right: 0;
        height: 90px; /* Aumentado para acomodar el nuevo diseño */
        background-color: #121212; /* Color de fondo oscuro */
        display: flex;
        flex-direction: column; /* Cambio a columna */
        justify-content: space-between;
        padding: 10px;
        z-index: 1000;
      }
    
      .now-playing {
        display: flex;
        align-items: center;
        width: 100%;
      }
    
      #nowPlayingCover {
        width: 50px;
        height: 50px;
        margin-right: 10px;
        border-radius: 4px;
      }
    
      .song-info {
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
    
      #nowPlayingSong {
        font-size: 14px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #ffffff;
        max-width: calc(100% - 40px); /* Espacio para el botón de "Me gusta" */
      }
    
      .like-btn {
        background: none;
        border: none;
        color: #1DB954; /* Color verde de Spotify */
        font-size: 20px;
        padding: 0;
        margin-left: 10px;
      }
    
      .controls {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
      }
    
      .player-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        padding: 0;
        margin: 0 20px;
      }
    
      #playPauseBtn {
        font-size: 32px;
      }
    
      .progress-bar, .volume-control {
        display: none; /* Ocultar estos elementos en móvil */
      }
    .top-bar {
      position: sticky;
      top: 0;
      z-index: 999;
    }
  
    .playlist-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 10px;
    }
  
    #createPlaylistBtn {
      bottom: 70px;
      right: 10px;
    }
  }
  
  /* Existing styles for larger screens remain unchanged */
/* Estilos para tablets pequeñas (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .sidebar {
    width: 100%;
    height: 60px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1000;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.9);
  }
  .sidebar nav ul li a span {
    display: none; /* Oculta el texto también en tablets pequeñas */
  }
  .sidebar nav ul {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }

  .sidebar nav ul li {
    margin: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 15px;
    padding-bottom: 80px;
  }

  .playlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .music-player {
    flex-direction: row;
    height: 70px;
    left: 0;
  }

  .now-playing {
    flex: 1;
  }

  .controls-and-progress {
    flex: 2;
  }

  .volume-control {
    flex: 1;
  }
}

/* Estilos para tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  .sidebar nav ul li a span {
    display: inline; /* Muestra el texto de nuevo en tablets más grandes */
  }
  .main-content {
    margin-left: 200px;
  }

  .playlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .music-player {
    left: 200px;
  }
}

/* Ajustes generales para dispositivos táctiles */
@media (hover: none) {
  .playlist-card:hover,
  .song-card:hover,
  .player-btn:hover {
    transform: none;
  }

  .play-button {
    opacity: 1;
  }
}

/* Ocultar scrollbar en dispositivos móviles */
@media (max-width: 1024px) {
  ::-webkit-scrollbar {
    width: 0px;
    background: transparent;
  }

  * {
    scrollbar-width: none;
  }
}