* { box-sizing: border-box; }
:root { color-scheme: dark; --green: #1ed760; --panel: #181818; --muted: #a7a7a7; }
body { margin: 0; padding: 28px 18px 150px; font-family: system-ui, -apple-system, sans-serif; background: radial-gradient(circle at top, #202020, #101010 65%); color: #fff; }
.container { max-width: 900px; margin: auto; }
.hero { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 28px; }
.eyebrow { color: var(--green); letter-spacing: .14em; font-size: .72rem; font-weight: 800; margin: 0 0 8px; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; }
.subtitle, .upload-section p, .upload-section small { color: var(--muted); }
.subtitle { max-width: 560px; margin-bottom: 0; }
.status { color: var(--muted); font-size: .85rem; text-align: right; }
.upload-section { border: 2px dashed #454545; background: rgba(24,24,24,.9); border-radius: 16px; padding: 30px 20px; text-align: center; transition: .2s; }
.upload-section.dragging { border-color: var(--green); background: #193022; }
input[type=file] { display: none; }
.custom-file-upload, button { font: inherit; font-weight: 700; cursor: pointer; border: 0; transition: .18s; }
.custom-file-upload { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--green); color: #071a0c; }
.custom-file-upload:hover, .primary-btn:hover { background: #62ed91; transform: translateY(-1px); }
.upload-section p { margin: 14px 0 4px; }
.upload-section small { font-size: .78rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin: 25px 0 8px; }
.toolbar input[type="search"] { flex: 1 1 190px; min-width: 150px; background: #252525; color: #fff; border: 1px solid #444; border-radius: 8px; padding: 11px 13px; }
.format-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 0 6px; color: var(--muted); font-size: .86rem; white-space: nowrap; cursor: pointer; }
.format-toggle input[type="checkbox"] { flex: 0 0 auto; width: auto; min-width: auto; accent-color: var(--green); }
button { padding: 10px 13px; border-radius: 8px; color: #fff; background: #303030; }
button:hover:not(:disabled) { background: #494949; }
button:disabled { opacity: .4; cursor: not-allowed; }
.primary-btn { background: var(--green); color: #071a0c; }
.danger-outline { border: 1px solid #c93445; background: transparent; color: #ff7180; }
.summary { color: var(--muted); font-size: .88rem; margin: 8px 0 14px; }
.message { padding: 11px 13px; border-radius: 8px; background: #51252b; color: #ffb8bf; }
.message.success { background: #193d29; color: #a8f3bf; }
.playlist { list-style: none; padding: 0; margin: 0; }
.track-item { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid #292929; padding: 13px; margin: 9px 0; border-radius: 11px; }
.track-item.playing { border-color: var(--green); box-shadow: 0 0 0 1px #1ed76033; }
.track-info { flex: 1; min-width: 0; cursor: pointer; }
.track-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-meta { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.track-actions { display: flex; gap: 5px; }
.rename-btn { color: #a7a7a7; }
.rename-btn:hover:not(:disabled) { color: #fff; }
.rename-btn svg { display: block; width: 16px; height: 16px; }
.track-actions button { padding: 7px 9px; }
.track-actions button:first-child { color: var(--green); }
.delete-btn { color: #ff8e99; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; border: 1px dashed #333; border-radius: 12px; }
.player-section { position: fixed; z-index: 2; bottom: 0; left: 0; width: 100%; padding: 15px 18px; background: rgba(25,25,25,.96); backdrop-filter: blur(12px); border-top: 1px solid #3b3b3b; }
.player-inner { max-width: 900px; margin: auto; }
#current-track-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 8px; }
audio { display: block; width: 100%; }
@media (max-width: 620px) { .hero { display: block; } .status { text-align: left; margin-top: 14px; } .track-actions button { padding: 7px; } }
