:root { color-scheme: dark; font: 18px system-ui, sans-serif; background: #111; color: #eee; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1120px; margin: auto; padding: 24px; }
header, nav, .player-bar { display: flex; align-items: center; gap: 12px; }
header { justify-content: space-between; margin-bottom: 20px; }
h1 { font-size: 24px; margin: 0; }
header span, .note { color: #aaa; font-size: 14px; }
button { font: inherit; color: inherit; background: #252525; border: 1px solid #444; border-radius: 8px; min-height: 52px; padding: 12px 18px; cursor: pointer; }
button:hover { background: #343434; }
button:focus-visible { outline: 3px solid #87bfff; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: wait; }
[hidden] { display: none !important; }
#player-panel { background: #000; border-radius: 8px; overflow: hidden; }
canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.player-bar { padding: 12px; }
.player-bar strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 16px; }
#status { color: #bbb; min-height: 27px; }
nav { margin: 16px 0; }
#folder { flex: 1; overflow-wrap: anywhere; color: #aaa; }
#files { list-style: none; margin: 0; padding: 0; }
#files li + li { margin-top: 8px; }
#files button { display: block; width: 100%; text-align: left; overflow-wrap: anywhere; }
#player-panel:fullscreen { display: flex; flex-direction: column; justify-content: center; width: 100%; }
#player-panel:fullscreen canvas { max-height: calc(100vh - 80px); object-fit: contain; }
@media (max-width: 600px) { main { padding: 14px; } header { align-items: start; flex-direction: column; gap: 4px; } .player-bar { flex-wrap: wrap; } .player-bar strong { flex-basis: 100%; } }
