/* DJ MANiX store components + site-wide small-screen polish */
html, body { overflow-x: clip; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

.btn-buy { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 14px; border-radius: 999px; background: #fff; color: #000 !important; font-weight: 700; font-size: 12.5px; text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.btn-buy:hover { opacity: .85; }
.chip-preview { color: #ffb800; border-color: rgba(255,184,0,.35); }
.album-price { font-size: 13px; font-weight: 700; color: #fff; margin-top: 2px; }

.buy-card { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); max-width: 460px; }
.buy-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.buy-label { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.buy-price { font-size: 24px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.buy-cta { display: flex; width: 100%; justify-content: center; min-height: 46px; align-items: center; box-sizing: border-box; }
.buy-note { margin-top: 10px; font-size: 11.5px; color: var(--text-faint); line-height: 1.5; }
.buy-note a { color: var(--text-dim); }

.store-page { padding: clamp(1.5rem, 4vw, 3rem) 16px 6rem; max-width: 960px; margin: 0 auto; }
.store-narrow { max-width: 560px; }
.store-title { font-size: clamp(24px, 4vw, 32px); font-weight: 800; margin: 0 0 18px; color: #fff; }
.store-back { display: inline-block; color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.store-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 3vw, 24px); margin-bottom: 16px; min-width: 0; }
.store-card h1 { font-size: 21px; font-weight: 800; color: #fff; margin: 0 0 4px; overflow-wrap: anywhere; }
.store-card h2 { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 8px; overflow-wrap: anywhere; }
.store-eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; margin-bottom: 12px; }
.store-dim { color: var(--text-dim); line-height: 1.55; }
.store-small { font-size: 12.5px; }
.store-dim a { color: #fff; }
.store-card p.store-dim { margin: 0 0 12px; font-size: 13.5px; }
.checkout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.checkout-grid .store-card { margin-bottom: 0; }
.checkout-item { display: flex; gap: 14px; align-items: center; }
.checkout-art { width: 72px; height: 72px; border-radius: 10px; flex-shrink: 0; background-size: cover; background-position: center; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text-dim); font-size: 14px; }
.checkout-total strong { font-size: 26px; color: #fff; font-variant-numeric: tabular-nums; }
.store-points { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 13px; color: var(--text-dim); }
.store-points li { padding-left: 18px; position: relative; line-height: 1.45; }
.store-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-green); font-weight: 700; }
.store-card form { display: grid; gap: 12px; margin: 0; }
.store-card label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.store-card input:not([type=checkbox]):not([type=hidden]) { width: 100%; min-height: 46px; padding: 10px 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; color: #fff; font-size: 16px; box-sizing: border-box; }
.store-card input:focus { border-color: var(--line-active); outline: none; }
.store-card label.store-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.store-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.store-check a { color: #fff; }
.store-notice { background: rgba(255,184,0,.1); border: 1px solid rgba(255,184,0,.3); color: #ffd466; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 0 0 12px; }
.store-error { background: rgba(250,45,72,.1); border: 1px solid rgba(250,45,72,.35); color: #ff8294; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 0 0 12px; }
.store-linkbtn { background: none; border: 0; color: var(--text-dim); text-decoration: underline; cursor: pointer; font: inherit; padding: 0 0 0 6px; }
.key-card { border-color: rgba(48,209,88,.4); }
.key-value { display: block; font-family: var(--font-mono, monospace); font-size: clamp(14px, 3.6vw, 18px); font-weight: 700; color: #fff; background: rgba(0,0,0,.45); border: 1px dashed var(--line-active); border-radius: 10px; padding: 14px; text-align: center; word-break: break-all; user-select: all; }
.key-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.lib-head { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.lib-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 11px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.lib-title { font-size: 13.5px; font-weight: 600; color: #fff; min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
.lib-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.store-card .lib-actions form { display: block; }
.lib-actions .btn-download { cursor: pointer; min-height: 36px; }
.lib-actions .btn-download[disabled] { opacity: .4; cursor: not-allowed; }

@media (max-width: 767px) {
  .nav-inner { gap: 10px; justify-content: space-between; }
  .brand { flex: 0 0 auto; min-width: 92px; }
  .nav-links { gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; padding: 8px 7px; font-size: 12.5px; flex-shrink: 0; }
  .btn-download, .btn-buy { min-height: 38px; }
  .spotlight-card { min-width: 0; }
  .spotlight-title, .track-heading { overflow-wrap: anywhere; }
  .track-details { min-width: 0; }
  footer .wrap > div { row-gap: 10px; }
  footer a { padding: 3px 0; }
}

/* ---------- Lossless upsell ---------- */
.btn-lossless { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; margin-right: 6px; border-radius: 999px; border: 1px solid rgba(255,184,0,.4); color: #ffd466 !important; background: rgba(255,184,0,.07); font-size: 11.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-lossless:hover { background: rgba(255,184,0,.16); }
.track-right { display: flex; align-items: center; flex-shrink: 0; }
.lossless-offer { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 15px; margin: 10px 0; border: 1px solid rgba(255,184,0,.35); border-radius: 12px; background: linear-gradient(120deg, rgba(255,184,0,.12), rgba(255,184,0,.02)); color: #fff; text-decoration: none; transition: border-color .15s, transform .15s; }
.lossless-offer:hover { border-color: rgba(255,184,0,.75); transform: translateY(-1px); }
.lossless-offer strong { display: block; font-size: 13.5px; }
.lossless-offer small { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.lossless-offer b { font-size: 19px; color: #ffd466; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Homepage hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { background: linear-gradient(180deg, #fff 35%, rgba(255,255,255,.55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-wave { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1; display: flex; align-items: center; gap: clamp(5px, 1.3vw, 13px); height: 100%; opacity: .3; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); }
.hero-wave i { display: block; width: clamp(3px, .6vw, 6px); height: 120px; border-radius: 99px; background: linear-gradient(180deg, var(--accent-red), #7a2cff); transform-origin: center; transform: scaleY(.25); animation: heroBar 1.9s ease-in-out infinite; animation-delay: calc(var(--i) * -137ms); }
@keyframes heroBar { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }
.hero-stats { display: inline-flex; margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: hidden; }
.hero-stats a { display: flex; flex-direction: column; align-items: center; padding: 11px clamp(16px, 4vw, 28px); text-decoration: none; transition: background .15s; }
.hero-stats a + a { border-left: 1px solid var(--line); }
.hero-stats a:hover { background: rgba(255,255,255,.07); }
.hero-stats b { font-size: 20px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; margin-top: 1px; }

/* ---------- VAYU promo ---------- */
.vayu-promo { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(18px, 3vw, 36px); padding: clamp(20px, 3.5vw, 36px); border-radius: 22px; border: 1px solid rgba(122,44,255,.35); background: radial-gradient(90% 140% at 100% 0, rgba(122,44,255,.3), transparent 60%), radial-gradient(70% 120% at 0 100%, rgba(250,45,72,.16), transparent 60%), #0a0a0f; color: #fff; text-decoration: none; overflow: hidden; transition: border-color .2s, transform .2s; }
.vayu-promo:hover { border-color: rgba(122,44,255,.75); transform: translateY(-2px); }
.vayu-kicker { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #b794ff; margin-bottom: 8px; }
.vayu-promo h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1; margin: 0 0 10px; color: #fff; }
.vayu-promo h2 span { font-size: .36em; font-weight: 600; letter-spacing: 0; color: var(--text-dim); vertical-align: middle; }
.vayu-promo p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--text-dim); max-width: 42ch; }
.vayu-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vayu-price { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.vayu-visual { min-width: 0; }
.vayu-visual img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: vayuPump 1.5s cubic-bezier(.2,.8,.3,1) infinite; }
@keyframes vayuPump { 0% { transform: scale(.975); } 22% { transform: scale(1); } 100% { transform: scale(.975); } }

/* ---------- Catalog feel ---------- */
.album-card { transition: transform .2s ease; }
.album-card:hover { transform: translateY(-4px); }
.album-card .album-art { transition: box-shadow .2s ease; }
.album-card:hover .album-art { box-shadow: 0 18px 44px rgba(0,0,0,.7), 0 0 0 1px var(--line-active); }
.track-item { transition: background .15s ease; }
.section-link { white-space: nowrap; }

@media (max-width: 767px) {
  .vayu-promo { grid-template-columns: 1fr; }
  .vayu-visual { order: -1; }
  .btn-lossless { margin-right: 4px; padding: 4px 8px; font-size: 10.5px; }
  .hero-wave { opacity: .22; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wave i, .vayu-visual img { animation: none; }
  .album-card, .vayu-promo, .lossless-offer { transition: none; }
  .album-card:hover, .vayu-promo:hover, .lossless-offer:hover { transform: none; }
}
