:root {
  color-scheme: light;
  --ink: #14251d;
  --green: #183c2c;
  --muted: #68766f;
  --line: #d9ded6;
  --paper: #f7f7f2;
  --surface: #fffef9;
  --shelf: #edf0e9;
  --lime: #c7f05a;
  --coral: #ee6e5f;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: var(--ink); text-decoration: none; font: 800 21px "Manrope", sans-serif; letter-spacing: -.04em; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--green); color: var(--lime); font: 700 20px "Manrope", sans-serif; }
.nav { align-self: stretch; display: flex; align-items: center; gap: 30px; }
.nav-link { position: relative; height: 100%; display: inline-flex; align-items: center; gap: 8px; color: #58665f; text-decoration: none; font-size: 15px; }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--green); }
.upload-count { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border-radius: 20px; background: var(--lime); color: var(--green); font: 500 11px "DM Mono", monospace; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 0; border-radius: 9px; font-weight: 700; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button svg, .search-box svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-outline { border: 1px solid #c8d0c6; background: white; color: var(--ink); }
.button-outline:hover:not(:disabled) { background: #f3f5ef; }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(56px, 7vw, 92px); align-items: start; padding-block: 84px 96px; }
.hero-copy { max-width: 510px; padding-top: 42px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: #3c554a; font: 500 12px "DM Mono", monospace; letter-spacing: .12em; }
.eyebrow > span { width: 22px; height: 2px; background: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 510px; margin-bottom: 24px; font: 800 clamp(54px, 5.6vw, 74px)/1.01 "Manrope", sans-serif; letter-spacing: -.065em; }
h1 span { box-shadow: inset 0 -8px 0 var(--lime); }
.intro { max-width: 500px; margin-bottom: 30px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.trust-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #627169; font: 500 12px "DM Mono", monospace; }
.trust-row i { width: 3px; height: 3px; border-radius: 50%; background: #93a097; }

.upload-card { padding: 18px; border: 1px solid #d3dad0; border-radius: 18px; background: var(--surface); box-shadow: 0 18px 50px rgba(25, 55, 40, .08); }
.dropzone { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #bdc8ba; border-radius: 13px; background: #fbfcf6; transition: border-color .15s ease, background .15s ease; }
.dropzone.is-over { border-color: var(--green); background: #f3f8e7; }
.upload-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; background: var(--lime); color: var(--green); }
.upload-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { font-size: 18px; }
.or { margin: 4px 0 8px; color: #8a9690; font-size: 14px; }
.drop-hint { margin-top: 13px; color: #78877e; font: 11px "DM Mono", monospace; }
.selected-files { margin: 14px 0 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; color: #43564a; font-size: 13px; }
.field-label { display: block; margin: 16px 0 7px; font-size: 14px; font-weight: 700; }
.field-label span { color: #89968d; font-weight: 400; }
.text-input, .search-box { width: 100%; min-height: 48px; border: 1px solid #d3d9cf; border-radius: 9px; background: white; color: var(--ink); }
.text-input { padding: 0 14px; outline: none; }
.text-input:focus, .search-box:focus-within { border-color: #849989; box-shadow: 0 0 0 3px rgba(25, 58, 44, .07); }
.text-input::placeholder, .search-box input::placeholder { color: #89968d; }
.upload-submit { width: 100%; min-height: 52px; margin-top: 14px; background: var(--green); color: white; }
.upload-submit:disabled { background: #a6b1a5; cursor: not-allowed; }
.form-note { margin: 11px 8px 0; color: #8b9790; text-align: center; font-size: 12px; line-height: 1.5; }
.form-status { min-height: 18px; margin: 6px 0 0; color: #395849; text-align: center; font-size: 13px; }
.form-status.error { color: #b64637; }

.shelf { padding: 76px 0 92px; background: var(--shelf); }
.shelf-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.shelf-heading .eyebrow { margin-bottom: 16px; }
h2 { margin: 0; font: 700 clamp(34px, 4vw, 44px)/1.1 "Manrope", sans-serif; letter-spacing: -.055em; }
.search-box { width: min(300px, 100%); display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface); }
.search-box svg { color: #738078; flex: 0 0 auto; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.status-line { margin: -17px 0 23px; color: #76857c; font: 11px "DM Mono", monospace; }
.anchor-target { position: relative; top: -8px; display: block; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 18px; align-items: start; }
.song-card { overflow: hidden; border: 1px solid #d4dbd0; border-radius: 13px; background: var(--surface); }
.song-art { min-height: 166px; display: grid; align-content: center; justify-items: center; padding: 20px; background: #e6edd5; }
.song-glyph { width: 42px; height: 42px; margin-bottom: 15px; color: #375748; }
.song-glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.song-player { width: 100%; height: 40px; }
.song-info { min-height: 74px; display: flex; align-items: center; gap: 11px; padding: 13px 15px; }
.song-mini-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #eef2e6; color: var(--green); }
.song-mini-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.song-meta { min-width: 0; flex: 1; }
.song-title { overflow: hidden; margin: 0 0 4px; color: #172c22; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
.song-subtitle { margin: 0; color: #819087; font: 10px "DM Mono", monospace; }
.song-actions { min-height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; border-top: 1px solid #e6e9e1; }
.song-action { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; border: 0; background: transparent; color: #365548; font-size: 13px; font-weight: 600; text-decoration: none; }
.song-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.song-action.delete { color: #b55647; }
.empty-state { padding: 52px 20px; text-align: center; }
.empty-note { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 15px; background: #dfe9c8; color: #365548; font-size: 27px; }
.empty-state h3 { margin-bottom: 7px; font: 700 21px "Manrope", sans-serif; }
.empty-state p { margin-bottom: 0; color: #78857e; font-size: 15px; }

.footer { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-size: 19px; }
.footer-brand .brand-mark { width: 36px; height: 36px; border-radius: 9px; font-size: 18px; }
.footer p { margin: 0; color: #77847c; font-size: 14px; }

.confirm-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid #d5dbce; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 80px rgba(23, 34, 29, .2); }
.confirm-dialog::backdrop { background: rgba(20, 35, 27, .72); backdrop-filter: blur(3px); }
.dialog-card { padding: 28px; }
.dialog-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 11px; background: #f7e5df; color: #b74e3e; font-size: 25px; }
.dialog-card h2 { font-size: 25px; }
.dialog-card p { margin: 10px 0 23px; color: #718078; font-size: 14px; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: end; gap: 10px; }
.button-danger { background: #bd4e3d; color: white; }
.button:focus-visible, .song-action:focus-visible, .nav-link:focus-visible, .brand:focus-visible { outline: 3px solid #7e9e5b; outline-offset: 3px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, .8fr) minmax(390px, 1.2fr); gap: 42px; }
  .hero-copy { padding-top: 24px; }
  h1 { font-size: clamp(48px, 6.5vw, 62px); }
  .intro { font-size: 16px; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, 560px); }
  .topbar { min-height: 70px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 9px; font-size: 18px; }
  .nav { gap: 18px; }
  .nav-link { font-size: 14px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 54px 68px; }
  .hero-copy { max-width: none; padding-top: 0; }
  h1 { max-width: 520px; font-size: clamp(50px, 13vw, 68px); }
  .intro { max-width: 520px; font-size: 17px; }
  .upload-card { padding: 13px; border-radius: 15px; }
  .dropzone { min-height: 215px; }
  .shelf { padding: 56px 0 68px; }
  .shelf-heading { align-items: stretch; flex-direction: column; gap: 24px; margin-bottom: 24px; }
  .search-box { width: 100%; }
  .status-line { margin: 0 0 20px; }
  .song-grid { grid-template-columns: 1fr; gap: 15px; }
  .footer { min-height: 0; align-items: flex-start; flex-direction: column; padding-block: 24px; }
}
@media (max-width: 430px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 14px; }
  .nav { width: 100%; height: 48px; justify-content: space-between; }
  h1 { font-size: clamp(46px, 14vw, 60px); }
  .trust-row { gap: 8px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
