/* Extra small breakpoint styles (<576px) */
@media (max-width: 576px) {
    /* AdminSongManagement container */
    #grid-container {
        width: calc(100vw - 2rem);
        height: calc(100vh - 6rem);
    }

    /* AlbumPlayer - Container adjustments */
    .spotify-container {
        padding-bottom: 140px;
    }

    /* AlbumPlayer - Track List */
    .track-list-container {
        margin: 24px 0;
        padding-bottom: 20px;
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* AlbumPlayer - Player Bar */
    .player-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, #181818 0%, #282828 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    /* SongPlayer extra small adjustments */
    .song-title { font-size: 24px; }
    .player-controls { gap: 2px; }
    .volume-bar-container { width: 50px; }

    /* MusicLibrary extra small adjustments */
    .music-cards-grid { grid-template-columns: 1fr; gap: 12px; }
    .music-library-container { padding: 16px; }

    /* NavMenu */
    .cart-link { margin-right: 70px; }

    /* MainLayout top-row adjustments */
    .top-row { justify-content: space-between; }
    .top-row a, .top-row .btn-link { margin-left: 0; }

    .album-art {
        width: 180px;
        object-fit: cover;
        box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
        border-radius: 4px;
    }

    .title-container {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .song-title {
        font-size: 30px;
        font-weight: 700;
        line-height: 1;
        margin: 0 5px 0 5px;
        padding: 0;
    }

    .track-list {
        width: 100%;
        border-collapse: collapse;
        color: #b3b3b3;
    }

        .track-list thead {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .track-list th {
            font-size: 12px;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            padding: 8px 16px;
            text-align: left;
        }

            .track-list th.track-number {
                width: 50px;
                text-align: center;
            }

            .track-list th.track-image {
                width: 60px;
                padding-left: 0;
                padding-right: 0;
            }

            .track-list th.track-duration {
                width: 80px;
                text-align: right;
            }

            .track-list th.track-actions {
                width: 50px;
            }

    .track-row {
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .track-row:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .track-row.current-track {
            background-color: rgba(29, 185, 84, 0.2);
        }

        .track-row td {
            padding: 12px 16px;
        }

            .track-row td.track-number {
                text-align: center;
                position: relative;
            }

    .track-index {
        display: inline;
    }

    .track-play-btn {
        display: none;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 0;
        width: 16px;
        height: 16px;
    }

        .track-play-btn svg {
            width: 16px;
            height: 16px;
        }

    .track-row:hover .track-index {
        display: none;
    }

    .track-row:hover .track-play-btn {
        display: inline;
    }

    .track-row.current-track .track-index {
        display: none;
    }

    /* Playing Indicator */
    .playing-indicator {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 2px;
        height: 16px;
    }

        .playing-indicator span {
            width: 3px;
            background-color: #1db954;
            border-radius: 1px;
            animation: soundBars 0.5s ease infinite alternate;
        }

            .playing-indicator span:nth-child(1) {
                height: 60%;
                animation-delay: 0s;
            }

            .playing-indicator span:nth-child(2) {
                height: 100%;
                animation-delay: 0.1s;
            }

            .playing-indicator span:nth-child(3) {
                height: 40%;
                animation-delay: 0.2s;
            }

    @keyframes soundBars {
        0% {
            height: 20%;
        }

        100% {
            height: 100%;
        }
    }

    .track-image {
        padding: 8px !important;
    }

    .track-thumbnail {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 2px;
    }

    .track-thumbnail-placeholder {
        width: 40px;
        height: 40px;
        background: #282828;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 2px;
    }

        .track-thumbnail-placeholder svg {
            width: 24px;
            height: 24px;
            fill: #b3b3b3;
        }
}
