        #music-player-container {
            background-color: #3e2e46;
            border: 1px solid white;
            padding: 15px;
            color: #FFB6C1;
            width: 100%;
            box-sizing: border-box;
        }

        .player-top {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 15px;
            border-bottom: 2px dashed #9773a7;
            padding-bottom: 15px;
        }

        .controls-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
        }

        .buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .buttons button {
            background-color: #3e2e46;
            color: white;
            border: 2px dashed #5e4569;
            padding: 5px 10px;
            cursor: pointer;
            font-family: 'Courier New', monospace;
            font-weight: bold;
            min-height: 36px;
            touch-action: manipulation;
        }

        .buttons button:hover {
            color: white;
            text-decoration: underline;
        }

        .buttons button:active {
            transform: scale(0.98);
        }

        .buttons button.active {
            background-color: #5e4569;
            border-style: solid;
        }

        .volume-container {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.8em;
            flex-shrink: 0;
        }

        input[type=range] {
            -webkit-appearance: none;
            appearance: none; 
            background: transparent;
            min-height: 20px;
        }
        
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            height: 15px;
            width: 15px;
            background: #c992e0;
            cursor: pointer;
            border: 1px solid #000;
            margin-top: -5px;
            border-radius: 50%;
        }

        input[type=range]::-webkit-slider-thumb:hover {
            background: #ffffff;
        }

        input[type=range]::-moz-range-thumb {
            height: 15px;
            width: 15px;
            background: #c992e0;
            cursor: pointer;
            border: 1px solid #000;
            border-radius: 50%;
        }

        input[type=range]::-moz-range-thumb:hover {
            background: #ffffff;
        }

        input[type=range]::-webkit-slider-runnable-track {
            width: 100%;
            height: 5px;
            cursor: pointer;
            background: #49264b;
            border: 1px solid #ffffff;
        }

        input[type=range]::-moz-range-track {
            background: #49264b;
            border: 1px solid #ffffff;
            height: 5px;
        }

        #progress-bar {
            width: 100%;
            min-height: 20px;
        }

        .player-body {
            display: flex;
            gap: 20px;
            height: 300px;
            overflow: hidden;
        }

        #track-list-container {
            flex: 0 0 300px;
            min-width: 300px;
            
            border-right: 2px dashed #9773a7;
            padding-right: 10px;
            
            overflow-y: auto; 
            overflow-x: hidden;
            height: 100%; 
            display: flex;
            flex-direction: column;

            scrollbar-width: none;
        }

        #track-list-container::-webkit-scrollbar {
            display: none;
        }

        #song-info {
            flex: 1;
            padding-left: 10px;
            overflow-y: auto;
            
            min-width: 0;
        }

        #song-info::-webkit-scrollbar {
            width: 8px;
        }

        #song-info::-webkit-scrollbar-track {
            background: #3e2e46;
        }

        #song-info::-webkit-scrollbar-thumb {
            background: #9773a7;
            border-radius: 4px;
        }

        #track-list {
            list-style: none;
            padding: 0;
            margin: 0;
            width: 100%;
        }

        .track-item {
            padding: 5px;
            cursor: pointer;
            border-bottom: 2px dashed #5e4b67;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            overflow: hidden;
            white-space: nowrap;
        }

        .track-item:hover {
            background-color: #362c3b;
            color: #ffffff;
        }

        .track-item.active {
            color: white;
            font-weight: bold;
            background-color: #5e4b67;
        }
        
        .track-item.active::before {
            content: "==> ";
            white-space: pre;
            flex-shrink: 0; 
        }

        .track-title-wrapper {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: block;
        }

        .track-title-text {
            display: inline-block;
        }

        .track-item.active .track-title-wrapper.marquee .track-title-text {
            animation: scroll-text 4s linear infinite alternate;
            --scroll-dist: 0px; 
        }

        .track-item.active .track-title-wrapper.marquee {
            text-overflow: clip; 
        }

        @keyframes scroll-text {
            0% { transform: translateX(0); }
            15% { transform: translateX(0); }
            85% { transform: translateX(var(--scroll-dist)); }
            100% { transform: translateX(var(--scroll-dist)); }
        }
/* media query (SCARY!) */
        @media (max-width: 768px) {
            #music-player-container {
                padding: 12px;
            }

            .player-top {
                gap: 8px;
                margin-bottom: 12px;
                padding-bottom: 12px;
            }

            .controls-row {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }

            .buttons {
                gap: 8px;
                justify-content: center;
            }

            .buttons button {
                flex: 1;
                min-width: 60px;
                padding: 8px 10px;
                font-size: 0.9em;
            }

            .volume-container {
                justify-content: center;
                width: 100%;
            }

            #volume-slider {
                max-width: 120px;
                min-width: 100px;
            }

            .player-body {
                flex-direction: column;
                height: auto;
                max-height: 500px;
                gap: 12px;
            }

            #track-list-container {
                flex: 0 0 auto;
                min-width: unset;
                max-height: 200px;
                border-right: none;
                border-bottom: 2px dashed #9773a7;
                padding-right: 0;
                padding-bottom: 12px;
            }

            #song-info {
                padding-left: 0;
                min-height: 250px;
                max-height: 300px;
            }

            #time-display {
                text-align: center;
                font-size: 0.9em;
            }
        }

        @media (max-width: 480px) {
            #music-player-container {
                padding: 10px;
            }

            .buttons button {
                padding: 6px 8px;
                font-size: 0.85em;
                min-height: 32px;
            }

            .volume-container {
                font-size: 0.75em;
            }

            #volume-slider {
                max-width: 100px;
                min-width: 80px;
            }

            .track-item {
                padding: 4px;
                font-size: 0.9em;
            }

            .track-item.active::before {
                content: "▶ ";
                white-space: pre;
            }

            #song-info {
                min-height: 200px;
            }

            #time-display {
                font-size: 0.85em;
            }

            input[type=range]::-webkit-slider-thumb {
                height: 12px;
                width: 12px;
            }

            input[type=range]::-moz-range-thumb {
                height: 12px;
                width: 12px;
            }
        }