.media-player {
    background: #E8F1F8 !important;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #003C74;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    height: calc(100% - 20px);
}

.media-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to bottom, #0054E3, #2E89FC) !important;
    padding: 8px;
    border: 1px solid #003C74;
    border-radius: 3px;
    height: 40px;
    color: white;
}

.media-controls button {
    background: linear-gradient(to bottom, #5B8DE0, #3B6DC0);
    border: 1px solid #2B5CA0;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    color: white;
    min-width: 30px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.media-controls button:hover {
    background: linear-gradient(to bottom, #6B9DF0, #4B7DD0);
    opacity: 0.8;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid #1E3B8B;
    border-radius: 3px;
    position: relative;
}

.progress {
    width: 0%;
    height: 100%;
    background: #E8F1F8 !important;
    border-radius: 2px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-control input[type="range"] {
    width: 80px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
    accent-color: #E8F1F8;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #2B5CA0;
    margin-top: -4px;
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #2B5CA0;
    margin-top: -4px;
}

.volume-control input[type="range"]::-webkit-slider-runnable-track {
    background: white;
    height: 4px;
    border-radius: 2px;
}

.volume-control input[type="range"]::-moz-range-track {
    background: white;
    height: 4px;
    border-radius: 2px;
}

.media-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(to bottom, #0054E3, #2E89FC) !important;
    color: white;
    border-radius: 4px;
}

.open-file {
    background: linear-gradient(to bottom, #fff, #DFDFDF);
    border: 1px solid #999;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    width: fit-content;
}

.open-file:hover {
    background: linear-gradient(to bottom, #DFDFDF, #fff);
}

.playlist {
    background: white !important;
    border: 1px solid #003C74;
    margin-bottom: 10px;
    max-height: 150px;
    overflow-y: auto;
    border-radius: 4px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #E8F1F8 !important;
    transition: background-color 0.3s ease;
    color: #003C74 !important;
}

.playlist-item:hover {
    background: #E8F1F8 !important;
}

.playlist-item.active {
    background: linear-gradient(to bottom, #0054E3, #2E89FC) !important;
    color: white !important;
}

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

.now-playing {
    padding: 8px;
    text-align: center;
    background: #0A246A;
    border: 1px solid #1E3B8B;
    margin-top: 10px;
    border-radius: 3px;
    color: white;
    font-size: 12px;
}

/* Scrollbar styling for the playlist */
.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: #E8F1F8;
}

.playlist::-webkit-scrollbar-thumb {
    background: #003C74;
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #0054E3;
}

.visualizer-container {
    width: 100%;
    flex-grow: 1;
    min-height: 250px;
    background: white !important;
    border: 1px solid #003C74;
    border-radius: 4px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#visualizer {
    width: 100%;
    height: 100%;
    display: block;
}

/* Update the fullscreen/maximized styles */
.window.maximized .media-player {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.window.maximized .playlist {
    height: 30%;
    /* Increased height in fullscreen */
    max-height: none;
    /* Remove max-height constraint */
}

.window.maximized .visualizer-container {
    flex-grow: 1;
    height: auto;
    min-height: 400px;
    /* Increased minimum height */
}

.window.maximized #visualizer {
    width: 100%;
    height: 100%;
}

/* Ensure controls stay proportional */
.window.maximized .media-controls {
    height: 50px;
    /* Slightly bigger controls in fullscreen */
    padding: 10px;
}

.window.maximized .media-content {
    height: 60px;
    /* Bigger now playing area in fullscreen */
}