body {
    background-color: #121212;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.player-container {
    max-width: 720px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.thumbnail {
    width: 50%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: none;
    border: 8px solid rgba(255, 255, 255, 0.9);
}

.track-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 0.25rem;
}

.track-artist {
    font-size: 1rem;
    font-weight: 400;
    color: #b3b3b3;
    text-align: center;
    margin-bottom: 1rem;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0;
}

.controls button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: color 0.3s ease;
}

.controls button:hover,
.playlist-item.active {
    color: #e6e6e6; /* soft off-white highlight */
}

.controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

.seekbar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.seekbar {
    width: 100%;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right, #4dabf7 0%, #4dabf7 var(--seek-percent, 0%), #282828 var(--seek-percent, 0%), #282828 100%);
    border-radius: 3px;
    outline: none;
    transition: background 0.3s ease;
}

.seekbar.finished {
    background: linear-gradient(to right, #72c1ff 0%, #0050c8 100%);
}

.seekbar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4dabf7;
    cursor: pointer;
    border: none;
}

.seekbar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4dabf7;
    cursor: pointer;
    border: none;
}
.time-display {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #b3b3b3;
    user-select: none;
}

.playlist {
    width: 100%;
    max-width: 720px;
    margin: auto;
}

.playlist-item {
    cursor: pointer;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #fff;
    user-select: none;
}

.playlist-item:hover {
    background-color: #282828;
    color: #e6e6e6; /* soft off-white hover */
}

.playlist-item.active {
    background-color: transparent;
    color: #e6e6e6; /* soft off-white active */
    font-weight: 700;
}

.playlist-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: none;
}

.playlist-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

@media (max-width: 768px) {
    .player-container,
    .playlist {
    padding: 1rem 1.2rem;
    }

    .thumbnail {
    max-height: 300px;
    border-radius: 12px;
    }

    .controls button {
    font-size: 1.5rem;
    }

    .playlist-item img {
    width: 48px;
    height: 48px;
    }
}