/* VERSION: v001 */
/* UPDATED: 2026-06-10 */
/* DFlex — NeoPixel Song Library stylesheet */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0F172A;
  color: #E2E8F0;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
}

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px;
  border-bottom: 1px solid #1E293B;
  margin-bottom: 16px;
}
.logo img { width: 100%; height: 100%; border-radius: 12px; display: block; }
.logo {
  font-size: 28px;
  text-decoration: none;
  background: #1E293B;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-title { font-size: 20px; font-weight: 700; color: #F8FAFC; }
.site-sub { font-size: 13px; color: #94A3B8; }

/* ---------- Banner ---------- */
.ad-banner {
  background: linear-gradient(90deg, #1E293B, #312E81);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ---------- Sections ---------- */
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94A3B8;
  margin: 22px 0 10px;
}
.prime-badge {
  background: #F59E0B;
  color: #0F172A;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

/* ---------- Cards ---------- */
.card-list { display: flex; flex-direction: column; gap: 8px; }
.card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: #E2E8F0;
  transition: background .15s, border-color .15s;
}
.card:hover { background: #273449; border-color: #06B6D4; }
.card-icon { font-size: 22px; }
.card-name { font-size: 15px; font-weight: 600; }
.card-arrow { margin-left: auto; color: #64748B; font-size: 20px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 16px;
}
.breadcrumb a { color: #06B6D4; text-decoration: none; }

/* ---------- File rows ---------- */
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.file-name { font-size: 14px; font-weight: 600; color: #F8FAFC; word-break: break-all; }
.file-meta { font-size: 12px; color: #94A3B8; }
.dl-btn {
  background: #06B6D4;
  color: #0F172A;
  border: none;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.dl-btn:active { transform: scale(.95); }
.dl-btn.prime { background: #F59E0B; }

/* ---------- Misc ---------- */
.empty {
  color: #64748B;
  font-size: 14px;
  padding: 14px;
  text-align: center;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #06B6D4;
  color: #0F172A;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  white-space: nowrap;
}
.toast.show { opacity: 1; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 32px;
  padding: 16px 0 8px;
  border-top: 1px solid #1E293B;
  font-size: 12px;
  color: #64748B;
  text-align: center;
}
.footer a { color: #06B6D4; text-decoration: none; }
