/* MR Player design system: black & white only, big targets, one primary action. */
* { box-sizing: border-box; margin: 0; }
body { font-family: -apple-system, system-ui, sans-serif; background: #fff; color: #000; }
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#quota { font-size: 13px; color: #555; margin-right: 8px; }

#login-view { max-width: 360px; padding-top: 15vh; text-align: center; }
#login-form { display: grid; gap: 12px; margin-top: 24px; }
input { padding: 14px; border: 1px solid #000; border-radius: 10px; font-size: 16px; width: 100%; }
button { padding: 14px 18px; min-height: 48px; border: none; border-radius: 10px; background: #000; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
button.ghost { background: #fff; color: #000; border: 1px solid #000; }
button.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.error { color: #c00; font-size: 14px; }
.link { text-decoration: underline; cursor: pointer; }

#dropzone { border: 2px dashed #000; border-radius: 12px; padding: 32px; text-align: center; font-size: 15px; }
#dropzone.drag { background: #eee; }

ul { list-style: none; }
#track-list li, .pl-track { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px; border-bottom: 1px solid #ddd; font-size: 15px; }
.meta { color: #777; font-size: 13px; white-space: nowrap; }
#upload-progress li { padding: 6px 4px; font-size: 13px; color: #555; }

.pl-controls { display: flex; gap: 8px; align-items: center; }
.pl-controls.wrap { flex-wrap: wrap; margin-top: 8px; }
.loop-label { font-size: 13px; display: flex; gap: 4px; align-items: center; }
#new-playlist { display: flex; gap: 8px; margin-bottom: 12px; }
#new-playlist input { flex: 1; }
.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.folder { border: 1px solid #000; border-radius: 12px; padding: 6px 12px; margin: 10px 0; }
.folder > summary { display: flex; align-items: center; gap: 8px; padding: 8px 0; cursor: pointer; list-style: none; }
.folder > summary::-webkit-details-marker { display: none; }
.folder.open { padding: 12px; }
.pl-track { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #eee; font-size: 15px; }

#track-search { margin: 8px 0; }
#track-list li { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #ddd; font-size: 15px; }
#track-list input[type=checkbox] { width: 20px; height: 20px; flex: none; }

#add-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center;
  background: #000; color: #fff; padding: 12px 16px; }
#add-bar[hidden] { display: none; }
#track-list { padding-bottom: 72px; }
#add-bar select { padding: 8px; border-radius: 8px; border: none; flex: 1; max-width: 300px; }
#add-bar button { background: #fff; color: #000; }
#add-bar button.ghost { background: #000; color: #fff; border: 1px solid #fff; }
#add-count { white-space: nowrap; }
.logo-btn { display: inline-flex; align-items: center; padding: 4px 10px; min-height: 32px;
  font-size: 13px; font-weight: 600; border: 1px solid #000; border-radius: 8px; background: #fff; color: #000; cursor: pointer; }
header > div { display: flex; flex-direction: column; }
