* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0f;
  --bg-card: #1C1E21;
  --bg-card-focus: #2a2d31;
  --text-primary: #FFFFFF;
  --text-secondary: #E4E6EB;
  --text-muted: #B0B3B8;
  --accent: rgba(0, 212, 255, 0.4);
}

body {
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: system-ui, sans-serif;
  font-size: 16px;
}

.screen { display: none; width: 600px; height: 600px; flex-direction: column; }
.screen.active { display: flex; }

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 24px 12px;
}

h1 { font-size: 28px; font-weight: bold; color: var(--text-primary); }
.meta { font-size: 14px; color: var(--text-muted); }

.list {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  min-height: 60px;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.list-item .size { font-size: 14px; font-weight: normal; color: var(--text-muted); white-space: nowrap; }
.list-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
}

.navbar {
  display: flex;
  gap: 12px;
  padding: 14px 24px 20px;
  justify-content: center;
}

.navbar button {
  background: var(--bg-card);
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
  cursor: pointer;
}

.focusable:focus {
  outline: none;
  background: var(--bg-card-focus);
  box-shadow: 0 0 20px var(--accent);
}

/* Player */
#screen-player { position: relative; }

#player {
  position: absolute;
  inset: 0;
  width: 600px;
  height: 600px;
  object-fit: contain;
  background: var(--bg-primary);
}

#player-osd {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  transition: opacity 0.3s;
}

#player-osd.hidden { opacity: 0; }

#player-title { text-align: center; padding-bottom: 6px; }

#player-progress {
  height: 4px;
  margin: 0 24px;
  background: var(--bg-card);
  border-radius: 2px;
}

#player-progress-fill {
  height: 100%;
  width: 0;
  background: #00d4ff;
  border-radius: 2px;
}
