/* RainzBeatz website. Colours match the V2 site's index.css tokens. */
:root {
  --background: #09090b; /* hsl(240 10% 4%) */
  --section: #0d0d10;
  --card: #18181b; /* hsl(240 6% 10%) */
  --muted: #242427; /* hsl(240 4% 15%) */
  --input: #0b0b0d;
  --line: #2a2a2f;
  --fg: #ffffff;
  --fg-muted: #b3b3b8; /* hsl(0 0% 70%) */
  --primary: #00b3ff; /* hsl(197 100% 50%) */
  --primary-2: #0080ff; /* hsl(210 100% 50%) */
  --primary-fg: #09090b;
  --primary-glow: rgba(0, 179, 255, 0.35);
  --ok: #22c55e;
  --radius: 12px;
  --f-display: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--background); color: var(--fg); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
.muted { color: var(--fg-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 8px; border: 1.5px solid transparent; font-weight: 500; cursor: pointer;
  padding: 10px 18px; font-size: 15px; transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn svg { font-size: 1.15em; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { box-shadow: 0 0 22px var(--primary-glow); }
.btn-outline { background: var(--input); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: rgba(0, 179, 255, 0.08); }
.btn-lg { font-size: 19px; padding: 11px 28px; min-width: 228px; }
.btn-sm { font-size: 14px; padding: 8px 16px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(9, 9, 11, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 700 23px/1 var(--f-display); color: var(--primary); letter-spacing: 0.01em; }
.logo-icon { font-size: 26px; }
.logo small { font: 600 12px var(--f-body); color: var(--fg); margin-left: 6px; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--primary); }
.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--fg); }
.menu-btn svg { font-size: 28px; }

@media (max-width: 760px) {
  .logo small { display: none; }
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--background); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; text-align: center;
  min-height: calc(100svh - 62px); display: flex; align-items: center;
  background:
    radial-gradient(ellipse 70% 60% at 60% 30%, rgba(255, 255, 255, 0.055), transparent 70%),
    linear-gradient(160deg, #141417 0%, #0b0b0d 60%, #0e0e11 100%);
}
.hero-rings i { position: absolute; border: 1px solid rgba(0, 179, 255, 0.09); border-radius: 50%; }
.hero-rings i:nth-child(1) { width: 460px; height: 460px; left: 50%; top: 22%; transform: translateX(-60%); }
.hero-rings i:nth-child(2) { width: 300px; height: 300px; left: 50%; top: 34%; transform: translateX(-30%); }
.hero-rings i:nth-child(3) { width: 560px; height: 560px; left: 50%; top: 50%; transform: translateX(-15%); }
.hero-inner { position: relative; padding-block: 64px; }
.hero-title {
  margin: 0; font: 900 clamp(2.6rem, 11.5vw, 7rem)/1 var(--f-display); letter-spacing: -0.01em; color: #fff;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.12);
}
.grad {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 55%, var(--primary-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 179, 255, 0.35));
}
.hero-sub { max-width: 640px; margin: 24px auto 0; font-size: clamp(1.05rem, 2.6vw, 1.45rem); color: #d4d4d8; line-height: 1.5; }
.hl { color: var(--primary); font-weight: 600; }
.eq { display: flex; justify-content: center; align-items: center; gap: 6px; height: 72px; margin: 30px auto 34px; }
.eq i {
  display: block; width: 6px; height: 100%; border-radius: 2px; background: var(--primary);
  transform-origin: center; animation: eq 1.1s ease-in-out infinite alternate;
}
@keyframes eq { from { transform: scaleY(var(--lo, 0.4)); } to { transform: scaleY(var(--hi, 1)); } }
.eq.live i { animation: none; transform: scaleY(0.14); transition: transform 70ms linear; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: center; gap: 14px; }
  .hero-actions .btn-outline { min-width: 210px; }
}

/* -------------------------------------------------------------- sections */
.section { padding-block: 88px; }
.catalog, .contact { background: var(--background); }
.about { background: #0e0e11; }
.section-title {
  margin: 0; text-align: center; font: 800 clamp(1.9rem, 6vw, 3rem)/1.15 var(--f-display); color: var(--primary);
  text-wrap: balance;
}
.section-title.left { text-align: left; }
.section-sub { max-width: 680px; margin: 18px auto 0; text-align: center; color: #d4d4d8; font-size: clamp(1rem, 2.4vw, 1.15rem); }

/* --------------------------------------------------------------- catalog */
.filters { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 40px auto 48px; max-width: 760px; }
.search {
  position: relative; display: flex; align-items: center; width: min(100%, 420px);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
}
.search svg { position: absolute; left: 14px; color: var(--fg-muted); font-size: 17px; }
.search input { width: 100%; background: none; border: 0; padding: 11px 14px 11px 42px; font-size: 15px; }
.search input::placeholder { color: var(--fg-muted); }
.search:focus-within { border-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  background: var(--muted); border: 0; border-radius: 8px; padding: 7px 14px; font-size: 14px; font-weight: 500;
  cursor: pointer; color: #e4e4e7;
}
.chip:hover { background: #2f2f33; }
.chip[aria-pressed='true'] { background: var(--primary); color: var(--primary-fg); }

.beat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }
.beat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s, transform 0.2s;
}
.beat:hover { border-color: rgba(0, 179, 255, 0.45); }
.beat.playing { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 0 30px rgba(0, 179, 255, 0.12); }
.cover { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--muted); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.np {
  position: absolute; left: 10px; top: 10px; z-index: 2; display: none; align-items: center; gap: 7px;
  padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; color: var(--primary);
}
.beat.playing .np { display: inline-flex; }
.np-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.np-bars i, .pb-eq i {
  display: block; width: 3px; height: 100%; border-radius: 1px; background: var(--primary);
  transform-origin: bottom; transform: scaleY(0.3);
}
.np-bars i { animation: mini-eq 0.8s ease-in-out infinite alternate; }
.np-bars i:nth-child(2), .pb-eq i:nth-child(2) { animation-delay: -0.3s; }
.np-bars i:nth-child(3), .pb-eq i:nth-child(4) { animation-delay: -0.55s; }
.pb-eq i:nth-child(5) { animation-delay: -0.15s; }
@keyframes mini-eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
.beat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.beat-title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.beat-meta { margin: 2px 0 0; font-size: 14px; color: var(--fg-muted); }
.price { text-align: right; flex: none; }
.price strong { display: block; font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.2; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; color: var(--fg-muted); }
.player {
  display: flex; align-items: center; gap: 14px; background: var(--input); border-radius: 12px; padding: 14px 18px;
}
.play {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-fg);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.play svg { font-size: 18px; fill: currentColor; stroke: none; }
.play:hover { box-shadow: 0 0 16px var(--primary-glow); }
.track { flex: 1; min-width: 0; display: grid; gap: 6px; }
.wave { display: block; width: 100%; height: 40px; cursor: pointer; touch-action: pan-y; border-radius: 4px; }
.wave:focus-visible { outline-offset: 4px; }
.times { display: flex; justify-content: space-between; font-size: 12.5px; color: #d4d4d8; font-variant-numeric: tabular-nums; }
.vol { background: none; border: 0; color: #d4d4d8; cursor: pointer; padding: 4px; }
.vol svg { font-size: 18px; }
.beat-actions { display: flex; gap: 12px; }
.beat-actions .btn-primary { flex: 1; font-size: 15px; }
.fav {
  width: 46px; flex: none; display: grid; place-items: center; border-radius: 8px; cursor: pointer;
  background: var(--input); border: 1.5px solid var(--primary); color: var(--primary);
}
.fav svg { font-size: 18px; }
.fav[aria-pressed='true'] svg { fill: var(--primary); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--fg-muted); padding: 40px 0; }

/* ----------------------------------------------------------------- about */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--card); }
.about-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(0, 179, 255, 0.35), transparent 55%), radial-gradient(circle at 75% 75%, rgba(0, 128, 255, 0.25), transparent 50%), #111116;
}
.photo-fallback svg { font-size: 96px; color: rgba(255, 255, 255, 0.7); stroke-width: 1.2; }
.about-copy p { color: #d4d4d8; font-size: 17px; margin: 18px 0 0; }
.about-copy .section-title { margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; margin: 32px 0; text-align: center; }
.stats dt { font: 800 28px/1.1 var(--f-display); color: var(--primary); }
.stats dd { margin: 6px 0 0; color: #d4d4d8; font-size: 15px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* --------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; margin-top: 48px; align-items: start; }
.contact-side { display: grid; gap: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; min-width: 0; }
.card h3 { margin: 0 0 18px; font-size: 22px; font-weight: 600; }
.form { display: grid; gap: 18px; }
.form h3 { margin-bottom: 4px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--input); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; font-size: 15px; font-weight: 400;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field [aria-invalid='true'] { border-color: #f87171; }
.form-error { margin: 0; color: #f87171; font-size: 14px; }
.form-done { margin: 0; color: var(--ok); font-size: 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci { width: 46px; height: 46px; border-radius: 10px; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; flex: none; }
.ci svg { font-size: 20px; }
.contact-list strong { display: block; font-weight: 500; }
.contact-list div a, .contact-list div span { color: #d4d4d8; font-size: 15px; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--primary); }
.ok { display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 14px; margin: 16px 0 0; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
}

/* ---------------------------------------------------------------- footer */
.footer { background: var(--card); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-brand p { color: #d4d4d8; font-size: 15px; max-width: 420px; }
.footer .logo { font-size: 28px; }
.footer .logo-icon { font-size: 28px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--muted); color: #d4d4d8; }
.socials a:hover { color: var(--primary); }
.socials svg { font-size: 18px; }
.footer h4 { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: #d4d4d8; font-size: 15px; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 24px 32px; text-align: center; color: #d4d4d8; font-size: 15px; }
.footer-bottom p { margin: 0; }
.sep { margin: 0 6px; color: var(--fg-muted); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* --------------------------------------------------------------- drizzle */
/* Light rain drawn over the whole page. It never takes clicks or taps. */
.drizzle {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 20;
  pointer-events: none;
}

/* ------------------------------------------------------------ player bar */
/* Slides up from the bottom while a preview plays and stays as you scroll. */
:root { --pbar-h: 76px; }
body.has-player { padding-bottom: calc(var(--pbar-h) + env(safe-area-inset-bottom, 0px)); }
/* Scrolling to something (links, keyboard focus) keeps it clear of the bar. */
html.has-player { scroll-padding-bottom: calc(var(--pbar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
.pbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(13, 13, 16, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.32s;
}
.pbar[data-open='true'] { transform: none; visibility: visible; transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pbar-inner { display: flex; align-items: center; gap: 16px; height: var(--pbar-h); }
.pb-cover { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--muted); }
.pb-info {
  flex: none; width: 210px; min-width: 0; display: grid; gap: 1px; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer; color: inherit;
}
.pb-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pb-title strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-meta { font-size: 13px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-info:hover strong { color: var(--primary); }
.pb-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.pbar.playing .pb-eq:not(.live) i { animation: mini-eq 0.8s ease-in-out infinite alternate; }
.pb-eq.live i { transition: transform 70ms linear; }
.pb-controls { display: flex; align-items: center; gap: 4px; flex: none; }
.pb-btn {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #d4d4d8; cursor: pointer;
}
.pb-btn:hover:not(:disabled) { color: var(--primary); background: rgba(255, 255, 255, 0.06); }
.pb-btn:disabled { opacity: 0.35; cursor: default; }
.pb-btn svg { font-size: 20px; }
.pb-btn.skip svg { fill: currentColor; stroke: none; font-size: 18px; }
.pb-play {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg); cursor: pointer;
}
.pb-play svg { font-size: 18px; fill: currentColor; stroke: none; }
.pb-play:hover { box-shadow: 0 0 16px var(--primary-glow); }
.pb-seek { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.pb-time { min-width: 36px; text-align: center; font-size: 12.5px; color: #d4d4d8; font-variant-numeric: tabular-nums; }
.pb-wave { flex: 1; min-width: 0; height: 30px; }
.pb-vol { display: flex; align-items: center; gap: 2px; flex: none; }
.pb-vol input { width: 88px; accent-color: var(--primary); }
.pb-buy { flex: none; }
.pbar-line { position: absolute; left: 0; right: 0; top: -7px; height: 14px; cursor: pointer; display: none; }
.pbar-line::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 3px; background: rgba(255, 255, 255, 0.12); }
.pbar-line i { position: absolute; left: 0; top: 6px; height: 3px; width: 0; background: var(--primary); }
@media (max-width: 1000px) {
  .pb-vol { display: none; }
  .pb-info { width: 170px; }
}
@media (max-width: 720px) {
  :root { --pbar-h: 66px; }
  .pbar-inner { gap: 10px; }
  .pbar-line { display: block; }
  .pb-seek, .pb-buy, #pb-prev { display: none; }
  .pb-info { flex: 1; width: auto; }
  .pb-cover { width: 44px; height: 44px; }
  .pb-play { width: 42px; height: 42px; }
}

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  max-width: calc(100% - 32px); background: var(--card); border: 1px solid var(--primary); border-radius: 10px;
  padding: 11px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
body.has-player .toast { bottom: calc(var(--pbar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
