/* Small breakpoint styles (<768px) */
@media (max-width: 768px) {
    /* AdminSongManagement container */
    #grid-container {
        width: calc(100vw - 6rem);
        height: calc(100vh - 7rem);
    }

    /* AlbumPlayer - Container adjustments */
    .spotify-container {
        padding-bottom: 160px;
    }

    /* AlbumPlayer - Track List */
    .track-list-container {
        margin: 24px 0;
        padding-bottom: 20px;
        max-height: 450px;
        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: 12px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    /* SongPlayer mobile adjustments */
    .song-title {
        font-size: 36px;
    }

    .album-art {
        width: 200px;
        object-fit: cover;
        box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
        border-radius: 4px;
    }

    /* Song Header Section */
    .song-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px 0;
        margin-bottom: 24px;
    }

    .time-spacer { min-width: 0; display: none; }
    .controls-wrapper { gap: 2px; margin-bottom: 4px; }
    .player-controls { gap: 4px; }
    .player-controls-row { gap: 2px; }
    .volume-bar-container { width: 60px; }
    .volume-controls { gap: 4px; }
    .control-button { width: 28px; height: 28px; }
    .control-icon { width: 14px; height: 14px; }
    .play-button-small { width: 28px; height: 28px; }
    .play-icon-small { width: 14px; height: 14px; }
    .progress-container { gap: 4px; }
    .time-display { min-width: 28px; font-size: 10px; }
    .action-controls { flex-wrap: wrap; gap: 16px; }
    .cart-button-large { padding: 10px 20px; font-size: 13px; }
    .cart-icon-large { width: 18px; height: 18px; }

    /* MusicLibrary small adjustments */
    .music-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .music-card { padding: 12px; }
    .card-song-title { font-size: 13px; }
    .card-play-button, .card-view-button { width: 36px; height: 36px; }
    .card-play-icon { width: 18px; height: 18px; }
    .card-view-icon { width: 20px; height: 20px; }
    .card-volume-bar-container { width: 40px; }

    .title-container {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .song-title {
        font-size: 50px;
        font-weight: 700;
        line-height: 1;
        margin: 0 10px 0 10px;
        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: 50px;
                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;
        }
}
