/* ===================================================================
   LOWEND Sync — curated low-frequency licensing catalog
   Self-contained, no deps. Palette matches the LOWEND brand.
   =================================================================== */
:root {
  --bg-0: #0a0906; --bg-1: #100e0a; --bg-2: #161310; --bg-3: #1d1913;
  --line: rgba(199, 188, 131, 0.16);
  --line-2: rgba(199, 188, 131, 0.3);
  --gold: #c4b483; --glow: #d8c89c; --bone: #e0d5bb;
  --text: #cfc6b4; --dim: #9b9483; --faint: #6f6a5c;
  --display: "Bebas Neue", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-0); color: var(--text); font-family: var(--body); font-weight: 300;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.glow { position: fixed; top: -22vh; left: 50%; transform: translateX(-50%); width: min(900px,120vw); height: min(900px,120vw); z-index: 0; pointer-events: none; background: radial-gradient(circle, rgba(216,200,156,0.10), rgba(216,200,156,0.03) 40%, transparent 64%); }
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }

/* ---- header ---- */
.topbar { padding: 1.1rem 0; position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__logo { height: 13px; width: auto; opacity: 0.95; }
.brand__sync { font-family: var(--display); letter-spacing: 0.22em; font-size: 1.05rem; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 1.3rem; }
.nav a { font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.92rem; color: var(--dim); transition: color 0.3s var(--ease); }
.nav a:hover { color: var(--gold); }
.nav .btn { padding: 0.45rem 1rem; }
.nav__login { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.nav__login:hover { border-color: var(--gold); transform: scale(1.05); }
.nav__login svg { width: 15px; height: 15px; fill: currentColor; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 1rem; padding: 0.65rem 1.4rem; border-radius: 3px; border: 1px solid var(--line-2); color: var(--bone); cursor: pointer; background: transparent; transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease); }
.btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.btn--solid { background: linear-gradient(180deg, rgba(216,200,156,0.16), rgba(216,200,156,0.06)); border-color: rgba(216,200,156,0.45); color: var(--glow); box-shadow: 0 0 34px -14px rgba(216,200,156,0.6); }
.btn--solid:hover { background: linear-gradient(180deg, rgba(216,200,156,0.26), rgba(216,200,156,0.1)); }
.btn--sm { font-size: 0.82rem; padding: 0.45rem 0.9rem; }

.eyebrow { font-family: var(--display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-size: 0.92rem; }

/* ---- hero (video background) ---- */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; text-align: center; min-height: clamp(440px, 72vh, 700px); padding: clamp(2.5rem, 7vh, 5rem) 0; background: var(--bg-1) url("../assets/hero-still.jpg") center / cover no-repeat; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,9,6,0.48) 0%, rgba(10,9,6,0.66) 55%, rgba(10,9,6,0.92) 100%); }
.hero__inner { position: relative; z-index: 2; }
.hero__head { font-family: var(--display); font-weight: 400; color: var(--bone); line-height: 0.92; letter-spacing: 0.02em; font-size: clamp(2.6rem, 7vw, 5rem); max-width: 18ch; margin: 1.5rem auto 0; text-shadow: 0 2px 40px rgba(0,0,0,0.6); }
.hero__sub { max-width: 52ch; margin: 1.1rem auto 0; color: var(--dim); font-size: 1.05rem; }
.hero__cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---- section heads ---- */
.section { padding: clamp(2rem, 6vh, 3.5rem) 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.section__title { font-family: var(--display); font-weight: 400; color: var(--bone); letter-spacing: 0.04em; font-size: clamp(1.6rem, 4vw, 2.4rem); }

/* ---- filter bar ---- */
.filters { border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem; background: rgba(255,255,255,0.014); margin-bottom: 1.8rem; }
.filters__row { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; align-items: center; }
.filters__row + .filters__row { margin-top: 0.9rem; }
.filters__label { font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.74rem; color: var(--faint); min-width: 78px; }
.chip { font-family: var(--body); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--dim); padding: 0.32rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; text-transform: capitalize; background: transparent; transition: all 0.25s var(--ease); white-space: nowrap; }
.chip:hover { border-color: var(--line-2); color: var(--bone); }
.chip.is-active { border-color: rgba(216,200,156,0.6); color: var(--glow); background: rgba(216,200,156,0.12); }
.filters__tools { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.9rem; }
.input, .select { font-family: var(--body); font-size: 0.92rem; color: var(--bone); background: rgba(255,255,255,0.025); border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 0.7rem; }
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { outline: none; border-color: rgba(216,200,156,0.55); }
.input--search { flex: 1; min-width: 180px; }
.filters__count { margin-left: auto; font-size: 0.85rem; color: var(--faint); }
.filters__clear { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 0.82rem; letter-spacing: 0.04em; }

/* ---- track grid + cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.card { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.014); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.card:hover { border-color: rgba(216,200,156,0.4); transform: translateY(-2px); }
.card__art { position: relative; aspect-ratio: 1; overflow: hidden; }
.card__art img { width: 100%; height: 100%; object-fit: cover; }
.card__status { position: absolute; top: 0.6rem; right: 0.6rem; font-family: var(--display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.66rem; color: var(--bg-0); background: var(--gold); padding: 0.2rem 0.55rem; border-radius: 3px; }
.card__status--restricted { background: #b98e6a; }
.card__status--exclusive { background: #c4b483; }
.card__body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__title { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.03em; color: var(--bone); line-height: 1; }
.card__artist { font-family: var(--display); letter-spacing: 0.18em; color: var(--gold); font-size: 0.8rem; }
.card__desc { font-size: 0.88rem; color: var(--dim); }
.card__meta { font-family: var(--mono, var(--body)); font-size: 0.78rem; color: var(--faint); letter-spacing: 0.04em; }
.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag { font-size: 0.7rem; letter-spacing: 0.04em; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 0.12rem 0.5rem; text-transform: capitalize; }
.card__foot { display: flex; gap: 0.5rem; align-items: center; margin-top: auto; padding-top: 0.4rem; }

/* ---- mini player ---- */
.mini { display: flex; align-items: center; gap: 0.6rem; }
.mini__btn { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(216,200,156,0.5); color: var(--glow); background: rgba(216,200,156,0.08); cursor: pointer; display: grid; place-items: center; transition: transform 0.25s var(--ease), background 0.25s var(--ease); }
.mini__btn:hover { transform: scale(1.06); }
.mini__btn svg { width: 15px; height: 15px; fill: currentColor; }
.mini__ico--pause { display: none; }
.mini.is-playing .mini__ico--play { display: none; }
.mini.is-playing .mini__ico--pause { display: block; }
.mini__bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(233,226,210,0.14); position: relative; overflow: hidden; cursor: pointer; }
.mini__prog { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--gold), var(--glow)); }

/* ---- empty state ---- */
.empty { text-align: center; color: var(--faint); padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: 8px; }

/* ---- footer + legal ---- */
.legal-note { margin-top: 1.4rem; font-size: 0.82rem; color: var(--faint); border-left: 2px solid var(--line-2); padding-left: 0.9rem; max-width: 60ch; }
.footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: clamp(2rem, 6vh, 3rem) clamp(1.25rem, 4vw, 2.5rem); text-align: center; color: var(--faint); font-size: 0.85rem; }
.footer__logo { width: 44px; height: auto; margin: 0 auto 0.9rem; opacity: 0.8; }
.footer a { color: var(--gold); }

/* ---- track detail ---- */
.detail { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: start; padding-top: 2rem; }
.detail__art { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.detail__art img { width: 100%; height: 100%; object-fit: cover; }
.detail__title { font-family: var(--display); font-weight: 400; color: var(--bone); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 0.95; letter-spacing: 0.02em; }
.detail__artist { font-family: var(--display); letter-spacing: 0.2em; color: var(--gold); margin-top: 0.2rem; }
.detail__desc { color: var(--dim); margin: 1rem 0; max-width: 56ch; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.7rem 1.2rem; margin: 1.2rem 0; }
.spec__k { font-family: var(--display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; color: var(--faint); }
.spec__v { color: var(--bone); font-size: 0.95rem; }

/* ---- forms ---- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin-top: 1.6rem; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; color: var(--dim); }
.field input, .field select, .field textarea { font-family: var(--body); font-size: 0.95rem; color: var(--bone); background: rgba(255,255,255,0.025); border: 1px solid var(--line); border-radius: 4px; padding: 0.6rem 0.75rem; width: 100%; }
.field textarea { resize: vertical; min-height: 4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(216,200,156,0.55); background: rgba(216,200,156,0.05); }
.check { grid-column: 1/-1; display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--dim); }
.check input { margin-top: 0.2rem; }
.form__foot { grid-column: 1/-1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__note { font-size: 0.85rem; color: var(--faint); }
.form__note.is-ok { color: var(--glow); }
.form__note.is-err { color: #d89a8e; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

@media (max-width: 720px) {
  .form { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail__art { max-width: 320px; }
  .nav { gap: 0.9rem; }
  .nav__link { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
