body {
    background-color: #121212;
    color: #EDEDED;
    -webkit-font-smoothing: antialiased;
}

/* Disable text selection on mobile */
@media (max-width: 767px) {
    body {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-touch-callout: none;
    }
}
.track-row:hover {
    background-color: rgba(255, 255, 255, 0.03);
}
::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}
/* Horizontal scrollable wrapper - only for track list */
/* Track list horizontal scroll */
.track-list-scroll {
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
}
@media (min-width: 768px) {
    .track-list-scroll {
        overflow-x: auto;
        overflow-y: visible;
    }
}
.track-list-scroll::-webkit-scrollbar {
    height: 6px;
}
.track-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.track-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
}
.track-list-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}
/* Mobile: Handle text truncation via overflow constraint */
h3[data-full-text] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Desktop: Allow full text display */
@media (min-width: 768px) {
    h3[data-full-text] {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
}

/* Mobile running text marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes fadeOutContainer {
    0% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

#mobile-running-text {
    display: none;
    --text-duration: 20s;
    --footer-duration: 20s;
}

#mobile-running-text.active {
    display: block;
    animation: fadeOutContainer var(--footer-duration) linear forwards;
}

#mobile-running-text .running-text-inner {
    animation: marquee var(--text-duration) linear forwards;
    white-space: nowrap;
    padding-left: 20px;
}

@media (min-width: 768px) {
    #mobile-running-text {
        display: none !important;
    }
}

/* Seek bar styling */
.seek-bar-container.hidden {
    display: none;
}
.seek-bar-container {
    animation: slideIn 0.2s ease-out;
}
.seek-bar-container .slider {
    /* Initial state - white background */
    --buffered: 0%;
}
@keyframes slideIn {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 50px;
    }
}
input[type="range"].slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 100%;
}
input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #D4AF37;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.6);
    transition: box-shadow 0.2s ease;
    margin-top: -4px;
}
input[type="range"].slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}
input[type="range"].slider::-webkit-slider-thumb:active {
    box-shadow: 0 0 10px rgba(212, 175, 55, 1);
}
input[type="range"].slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #D4AF37;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.6);
    transition: box-shadow 0.2s ease;
    margin-top: -4px;
}
input[type="range"].slider::-moz-range-thumb:hover {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}
input[type="range"].slider::-moz-range-thumb:active {
    box-shadow: 0 0 10px rgba(212, 175, 55, 1);
}
input[type="range"].slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) var(--buffered), #D4AF37 var(--buffered), #D4AF37 var(--value), rgba(212, 175, 55, 0.2) var(--value), rgba(212, 175, 55, 0.2) 100%);
    height: 4px;
    border-radius: 2px;
}
input[type="range"].slider.loaded::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #D4AF37 0%, #D4AF37 var(--value), rgba(212, 175, 55, 0.2) var(--value), rgba(212, 175, 55, 0.2) 100%);
    height: 4px;
    border-radius: 2px;
}
input[type="range"].slider::-moz-range-track {
    background: transparent;
    height: 4px;
    border-radius: 2px;
}
input[type="range"].slider::-moz-range-progress {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) var(--buffered), #D4AF37 var(--buffered), #D4AF37 100%);
    height: 4px;
    border-radius: 2px;
}
input[type="range"].slider.loaded::-moz-range-progress {
    background: #D4AF37;
    height: 4px;
    border-radius: 2px;
}
