html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background: #121212;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 0 1.5rem;
    box-sizing: border-box;
    margin-top: auto;
}

.player-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    margin-right: 20px;
}

.track-info-container {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 150px; 
    max-width: 400px;
}

.vinyl {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 50%, #d0d0d0 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(255,255,255,0.6);
    background-size: cover;
    background-position: center;
    animation: spin 3s linear infinite paused;
    flex-shrink: 0;
    overflow: hidden;
}

.vinyl::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(255,255,255,0.4) 45%, transparent 60%);
    pointer-events: none;
}

.vinyl.playing {
    animation-play-state: running;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#discCenter {
    width: 14px;
    height: 14px;
    background: #121212;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #ccc;
    z-index: 2;
}

.track-info {
    overflow: hidden;
}

.track-info h3 {
    margin: 0 0 3px 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    margin: 0;
    color: #aaa;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.center-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-grow: 1;
}

.controls {
    display: flex;
    align-items: center;
}

.controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0 6px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-size: 0.75rem;
    color: #aaa;
}

#progressBarContainer {
    flex-grow: 1;
    height: 6px;
    background: #444;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin: 0 8px;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: #e74c3c;
    border-radius: 3px;
    position: relative;
}

#progressBar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

#progressBarContainer:hover #progressBar::after {
    opacity: 1;
}

.right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    flex-shrink: 0;
}

.file-upload label, .playlist-toggle-btn {
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    border: none;
}

.file-upload input {
    display: none;
}

.playlist-dropdown {
    position: absolute;
    bottom: 85px;
    right: 0;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    width: 300px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 10;
}

.playlist-dropdown.hidden {
    display: none;
}

ul.playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

ul.playlist li {
    padding: 8px 12px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

ul.playlist li.active {
    color: #e74c3c;
    font-weight: bold;
}
