@font-face {
    font-family: 'DM Mono';
    src: url('system/fonts/dm-mono/DMMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'DM Mono';
    src: url('system/fonts/dm-mono/DMMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'DM Mono';
    src: url('system/fonts/dm-mono/DMMono-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Material Symbols Rounded';
    src: url('system/fonts/material-symbols/MaterialSymbolsRounded-VariableFont_FILL,GRAD,opsz,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'DM Mono', monospace, sans-serif;
    font-size: 16px;
    color: #eee;
    background-color: #161616;
    display: flex;
    height: 100vh;
    margin: 0;
    overscroll-behavior: none;
}
button {
    padding: 16px;
    width: 100%;
    font-family: 'DM Mono', monospace;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: #52e;
    border: none;
}
#file-list {
    flex: 0.8;
    display: flex;
    flex-direction: column;
}
#file-list-header {
    background-color: #161616;
    border-bottom: 1px solid #202020;
    padding: 0px;
    flex-shrink: 0;
    height: 48px !important;
    align-content: center;
}
#file-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
#media-container video, #media-container audio {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#media-container {
    flex: 1.2;
    background: #080808;
    border: none;
    border-left: 1px solid #202020;
    overflow: hidden; /* Change overflow to hidden to ensure media content fills the container */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
canvas.audio-visualizer {
    height: 100%;
    width: 100%;
    filter: hue-rotate(277deg) blur(50px);
}
.file-item {
    padding: 0px 8px;
    cursor: default;
    border-radius: 4px;
}
.file-item:hover {
    background-color: #323232;
}
.file-item.active {
    background-color: #52e;
}
.directory-panel {
    border: none;
    border-right: none;
    background-color: #161616;
    padding: 10px;
}
.directory-header {
    display: flex;
    align-items: center;
}
.directory-header h2 {
    flex-grow: 1;
    margin: 0 16px;
    font-size: 16px;
    font-weight: 800;
}
.back-button {
    cursor: default;
    font-family: 'Material Symbols Rounded';
    font-size: 24px;
    color: #eee;
    margin: 0 0 0 16px;
    user-select: none;
}
.back-button[disabled] {
    color: #555;
    cursor: default;
    display: none;
}
.media-player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #080808bb;
    backdrop-filter: blur(100px);
    position: absolute;
    bottom: 0;
    width: 100%;
    transition: opacity 0.5s;
}
.media-player-controls.hidden {
    opacity: 0;
    pointer-events: none;
}
.media-player-controls button {
    background: none;
    border: none;
    color: #eee;
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 1, 'wght' 100, 'GRAD' 100, 'opsz' 24;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}
.progress-bar-container {
    position: absolute;
    top: 0;
    width: 100%;
    height: 2px;
    background: #5555;
}
.progress-bar {
    height: 100%;
    background: #52e;
    width: 0;
    border-radius: 32px;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background: #161616;
}
::-webkit-scrollbar-track {
    border-radius: 0;
    margin: 2px;
}
::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
    border: 2px solid #111;
}
::-webkit-scrollbar-thumb:hover {
    background: #52e; 
}
::-webkit-scrollbar-corner {
    background: #111;
}