/* Zedge 4SOV — dark marketplace + Muse IA */
:root {
  --z4-bg: #12100e;
  --z4-surface: #1a1814;
  --z4-elevated: #24201b;
  --z4-border: rgba(255,255,255,.08);
  --z4-text: #f4f4f7;
  --z4-muted: #a39e94;
  --z4-amber: #FBBE41;
  --z4-primary: #FBBE41;
  --z4-amber-hot: #ffd06a;
  --z4-gold: #FBBE41;
  --z4-purple: #FBBE41; /* legacy alias → amber so leftover refs stay on-brand */
  --z4-purple-hot: #ffd06a;
  --z4-neon: #2CFFA5;
  --z4-neon-2: #75FF82;
  --z4-emerald: #0E7A5C;
  --z4-mint: #2BC48A;
  --z4-hero-green: #1a1410;
  --z4-orange: #E8552B;
  --z4-radius: 12px;
  --z4-radius-sm: 8px;
  --z4-wrap: 1280px;
  --z4-header-h: 64px;
  --z4-shadow: 0 12px 40px rgba(0,0,0,.45);
  --z4-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body.zedge-4sov {
  margin: 0;
  font-family: var(--z4-font);
  background: var(--z4-bg);
  color: var(--z4-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--z4-neon); text-decoration: none; }
a:hover { color: var(--z4-neon-2); }
.z4-wrap { width: min(100% - 2rem, var(--z4-wrap)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.z4-skip {
  position: absolute; left: -9999px; top: 0; background: var(--z4-amber); color: #12100e; padding: .75rem 1rem; z-index: 1000;
}
.z4-skip:focus { left: 1rem; top: 1rem; }

/* Header */
.z4-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18,16,14,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--z4-border);
}
.z4-header__inner {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--z4-header-h);
}
.z4-header__brand { display: flex; align-items: center; gap: .75rem; }
.z4-logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--z4-text); font-weight: 800; letter-spacing: -.02em; }
.z4-logo:hover { color: #fff; }
.z4-logo__mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--z4-amber), #fff1c2);
  color: #0b0b0f; font-weight: 900;
}
.z4-logo__text { font-size: 1.05rem; }
.z4-nav { flex: 1; }
.z4-nav__list {
  display: flex; flex-wrap: wrap; gap: .15rem 1.1rem;
  list-style: none; margin: 0; padding: 0;
}
.z4-nav__list a { color: var(--z4-muted); font-size: .92rem; font-weight: 500; }
.z4-nav__list a:hover { color: #fff; }
.z4-header__actions { display: flex; align-items: center; gap: .65rem; }
.z4-nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: transparent; border: 0; padding: .35rem; cursor: pointer;
}
.z4-nav-toggle span { width: 20px; height: 2px; background: #fff; display: block; border-radius: 2px; }

.z4-search { display: flex; align-items: center; gap: .25rem; background: var(--z4-elevated); border: 1px solid var(--z4-border); border-radius: 999px; padding: .2rem .2rem .2rem .85rem; }
.z4-search__input {
  background: transparent; border: 0; color: var(--z4-text); width: 9.5rem; font: inherit; outline: none; min-width: 0;
}
.z4-search__type {
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.06);
  border: 0; border-radius: 999px;
  color: var(--z4-muted); font: inherit; font-size: .78rem; font-weight: 600;
  padding: .35rem 1.55rem .35rem .7rem;
  cursor: pointer; outline: none; max-width: 7.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23a39e94' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .55rem center;
}
.z4-search__type:focus, .z4-search__type:hover { color: #fff; }
.z4-search__type option { background: #1a1814; color: #f4f4f7; }
.z4-search__btn {
  width: 34px; height: 34px; min-width: 34px; border-radius: 999px; border: 0;
  background: var(--z4-amber); color: #12100e; display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.z4-btn--upload { white-space: nowrap; min-height: 44px; padding-inline: 1rem; }
.z4-btn--signin { min-height: 44px; }

/* Sub-nav browse strip */
.z4-subnav {
  border-top: 1px solid var(--z4-border);
  padding-block: .35rem;
}
.z4-subnav__list {
  display: flex; flex-wrap: nowrap; align-items: center; gap: .15rem .85rem;
  list-style: none; margin: 0; padding: .25rem 0 .45rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.z4-subnav__list::-webkit-scrollbar { height: 4px; }
.z4-subnav__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.z4-subnav__list a {
  display: inline-flex; align-items: center; white-space: nowrap;
  color: var(--z4-muted); font-size: .82rem; font-weight: 550;
  padding: .45rem 0; min-height: 44px;
}
.z4-subnav__list a:hover { color: var(--z4-amber); }
.z4-credits-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(44,255,165,.1); border: 1px solid rgba(44,255,165,.35);
  color: var(--z4-neon); font-size: .8rem; font-weight: 700;
  padding: .35rem .7rem; border-radius: 999px;
}
.z4-credits-pill__dot, .z4-badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--z4-gold); box-shadow: 0 0 8px var(--z4-gold);
}
.z4-credits-pill__label { color: var(--z4-muted); font-weight: 500; }

/* Buttons */
.z4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 650; border-radius: 999px; border: 1px solid transparent;
  padding: .7rem 1.2rem; cursor: pointer; text-decoration: none; transition: .15s ease;
}
.z4-btn--sm { padding: .45rem .85rem; font-size: .85rem; }
.z4-btn--block { width: 100%; }
.z4-btn--primary { background: var(--z4-amber); color: #12100e; }
.z4-btn--primary:hover { background: var(--z4-amber-hot); color: #12100e; }
.z4-btn--secondary { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
.z4-btn--secondary:hover { border-color: var(--z4-neon); color: var(--z4-neon); }
.z4-btn--ghost { background: transparent; border-color: var(--z4-border); color: var(--z4-text); }
.z4-btn--ghost:hover { border-color: rgba(255,255,255,.3); color: #fff; }

/* Hero */
.z4-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(251,190,65,.35), transparent 60%),
    radial-gradient(700px 380px at 90% 10%, rgba(44,255,165,.12), transparent 55%),
    linear-gradient(180deg, #1a1814, var(--z4-bg));
}
.z4-hero__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) {
  .z4-hero__inner { grid-template-columns: 1.15fr .85fr; }
}
.z4-eyebrow {
  display: inline-block; margin: 0 0 .75rem;
  color: var(--z4-mint); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.z4-hero__title {
  margin: 0 0 1rem; font-size: clamp(2rem, 4.5vw, 3.35rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800;
}
.z4-gradient-text {
  background: linear-gradient(90deg, var(--z4-amber-hot), var(--z4-amber), #fff1c2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.z4-hero__lead { margin: 0 0 1.35rem; color: var(--z4-muted); font-size: 1.05rem; max-width: 36rem; }
.z4-hero-search {
  display: flex; gap: .5rem; flex-wrap: wrap;
  background: var(--z4-surface); border: 1px solid var(--z4-border);
  border-radius: 999px; padding: .4rem .4rem .4rem 1rem; max-width: 36rem;
  box-shadow: var(--z4-shadow);
}
.z4-hero-search__input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; outline: none;
}
.z4-trend-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.z4-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem 1.25rem;
  list-style: none; margin: 1.75rem 0 0; padding: 0; max-width: 36rem;
}
@media (min-width: 640px) { .z4-stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.z4-stats li { display: flex; flex-direction: column; gap: .15rem; }
.z4-stats strong { font-size: 1.15rem; color: #fff; }
.z4-stats span { font-size: .75rem; color: var(--z4-muted); line-height: 1.3; }

.z4-hero__visual {
  position: relative; min-height: 320px;
  display: flex; justify-content: center; align-items: center;
}
.z4-hero__featured {
  width: min(260px, 78%);
  margin-inline: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}
.z4-hero__featured .z4-card {
  border-radius: var(--z4-radius-sm);
  border-color: rgba(251,190,65,.28);
}
.z4-hero__featured .z4-card__body { padding: .7rem .75rem .85rem; }
.z4-hero__featured .z4-btn--block { font-size: .82rem; }
.z4-hero__fallback {
  display: flex; justify-content: center; width: 100%; position: relative; min-height: 320px;
}
.z4-phone {
  width: 180px; height: 360px; border-radius: 32px;
  border: 2px solid rgba(255,255,255,.14);
  background: linear-gradient(160deg, #2a2620, #0e0c0a 55%, #1a1814);
  padding: 8px;
  box-shadow: var(--z4-shadow), inset 0 0 0 1px rgba(0,0,0,.55);
  position: relative; z-index: 1;
}
.z4-phone--offset { position: absolute; right: 8%; top: 24px; transform: rotate(8deg); z-index: 0; opacity: .92; }
.z4-phone--detail {
  width: min(280px, 72vw);
  max-width: 100%;
  width: min(320px, 100%);
  height: auto;
  aspect-ratio: 9 / 19.5;
  max-height: 640px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 36px;
}
.z4-phone__bezel {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0908;
  border: 1px solid rgba(255,255,255,.06);
}
.z4-phone__notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 28%; max-width: 88px; height: 10px; border-radius: 999px;
  background: #0a0908; border: 1px solid rgba(255,255,255,.08);
  z-index: 2; box-shadow: 0 0 0 2px rgba(0,0,0,.35);
}
.z4-phone__screen { width: 100%; height: 100%; border-radius: 20px; overflow: hidden; }
.z4-phone__bezel .z4-phone__screen { border-radius: 28px; }
.z4-phone__screen--a {
  background: linear-gradient(160deg, #7a4a12 0%, #12100e 45%, #FBBE41 140%);
}
.z4-phone__screen--b {
  background: linear-gradient(200deg, #1a1410, #8a5a1a 60%, #FBBE41);
}
.z4-phone__screen .z4-card__placeholder,
.z4-phone__bezel .z4-card__placeholder,
.z4-phone__screen img,
.z4-phone__bezel img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 959px) {
  .z4-hero__visual { min-height: 0; }
  .z4-hero__featured { width: min(220px, 70%); }
}

/* Chips / cats */
.z4-chip {
  display: inline-flex; align-items: center;
  padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid var(--z4-border); color: var(--z4-muted); font-size: .82rem; font-weight: 550;
  background: rgba(255,255,255,.03);
}
.z4-chip:hover, .z4-chip.is-active { color: #fff; border-color: rgba(251,190,65,.6); background: rgba(251,190,65,.18); }

.z4-cats {
  display: grid; gap: 1rem; margin-top: -1rem; margin-bottom: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}
.z4-cat-card {
  display: flex; flex-direction: column; gap: .45rem;
  padding: 1.15rem 1.2rem; border-radius: var(--z4-radius);
  background: var(--z4-surface); border: 1px solid var(--z4-border);
  color: var(--z4-text); transition: .15s ease;
}
.z4-cat-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.16); color: #fff; }
.z4-cat-card__icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--cat) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat) 45%, transparent);
  position: relative;
}
.z4-cat-card__icon::after {
  content: ""; position: absolute; inset: 11px;
  border-radius: 4px; background: var(--cat);
}
.z4-cat-card__title { font-weight: 750; font-size: 1.05rem; }
.z4-cat-card__desc { color: var(--z4-muted); font-size: .88rem; }
.z4-cat-card__link { color: var(--z4-neon); font-size: .88rem; font-weight: 650; margin-top: .25rem; }

/* Sections */
.z4-section { padding: 2.75rem 0; }
.z4-section__head {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.35rem; flex-wrap: wrap;
}
.z4-section__head--stack { align-items: start; flex-direction: column; }
.z4-section__title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -.02em; }
.z4-section__sub { margin: .35rem 0 0; color: var(--z4-muted); }
.z4-link { color: var(--z4-muted); font-weight: 600; font-size: .92rem; }
.z4-link:hover { color: var(--z4-neon); }
.z4-empty { color: var(--z4-muted); padding: 2rem; border: 1px dashed var(--z4-border); border-radius: var(--z4-radius); }
.z4-toolbar { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: .85rem; max-width: 100%; }
.z4-toolbar .z4-chip { max-width: 100%; }
.z4-toolbar__label { color: var(--z4-muted); font-size: .85rem; margin-right: .25rem; }
.z4-toolbar__sep {
  width: 1px; height: 1.1rem; background: var(--z4-border); margin-inline: .35rem;
}
.z4-toolbar .z4-chip { text-decoration: none; min-height: 36px; }
.z4-muted { color: var(--z4-muted); }

/* Grids / cards — Zedge-dense portrait rail */
.z4-grid--cards {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .z4-grid--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .z4-grid--cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .z4-grid--cards { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .55rem; } }

.z4-grid--themes {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
}
.z4-grid--sounds, .z4-sound-list, .z4-notif-grid {
  display: flex; flex-direction: column; gap: .75rem;
}

.z4-card {
  background: var(--z4-surface); border: 1px solid var(--z4-border);
  border-radius: var(--z4-radius-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.z4-grid--cards .z4-card__body { padding: .65rem .7rem .8rem; gap: .35rem; }
.z4-grid--cards .z4-card__title { font-size: .82rem; }
.z4-grid--cards .z4-btn--sm { padding: .4rem .65rem; font-size: .78rem; }
.z4-card:hover { transform: translateY(-3px); border-color: rgba(251,190,65,.45); }
.z4-card--wallpaper .z4-card__media { aspect-ratio: 9 / 16; }
.z4-card__media {
  position: relative; display: block; aspect-ratio: 9 / 16; background: #12100e; overflow: hidden;
}
.z4-card__media--theme { aspect-ratio: 3 / 4; }
.z4-card__img { width: 100%; height: 100%; object-fit: cover; }
.z4-card__placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--ph-hue), 80%, 60%, .85), transparent 45%),
    linear-gradient(160deg, hsl(calc(var(--ph-hue) + 40), 70%, 18%), #12100e 70%);
  display: grid; place-items: center; color: rgba(255,255,255,.55); font-size: 2.5rem;
}
.z4-card__crown {
  position: absolute; top: .55rem; left: .55rem; z-index: 2;
  width: 1.55rem; height: 1.55rem; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(18,16,14,.72); border: 1px solid rgba(251,190,65,.55);
  color: var(--z4-amber); font-size: .72rem; line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  pointer-events: none;
}
.z4-card__overlay {
  position: absolute; inset: 0; padding: .65rem;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 40%, rgba(0,0,0,.55));
  opacity: 1;
}
.z4-card__overlay .z4-badge { margin-left: auto; }
.z4-card__preview-btn {
  align-self: flex-end; margin-top: auto;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: .75rem; font-weight: 650; padding: .35rem .65rem; border-radius: 999px;
}
.z4-card__body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.z4-card__title { margin: 0; font-size: .95rem; line-height: 1.25; }
.z4-card__title a { color: #fff; }
.z4-card__meta { margin: 0; color: var(--z4-muted); font-size: .78rem; }

.z4-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 750; padding: .28rem .55rem; border-radius: 999px;
}
.z4-badge--free { background: rgba(14,122,92,.35); color: var(--z4-mint); border: 1px solid rgba(43,196,138,.4); }
.z4-badge--credits { background: rgba(251,190,65,.12); color: var(--z4-gold); border: 1px solid rgba(251,190,65,.35); }

/* Sound rows — Muse waveforms */
.z4-sound {
  display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center;
  padding: .85rem 1rem; border-radius: var(--z4-radius);
  background: var(--z4-surface); border: 1px solid var(--z4-border);
}
@media (max-width: 720px) {
  .z4-sound { grid-template-columns: auto 1fr; }
  .z4-sound__actions { grid-column: 1 / -1; justify-content: flex-end; }
}
.z4-sound__play {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--z4-emerald); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(14,122,92,.35);
}
.z4-sound__play--orange, .z4-sound--notification .z4-sound__play {
  background: var(--z4-orange); box-shadow: 0 6px 18px rgba(232,85,43,.35);
}
.z4-sound__play.is-playing { outline: 2px solid var(--z4-neon); }
.z4-sound__title { margin: 0; font-size: 1rem; }
.z4-sound__title a { color: #fff; }
.z4-sound__head { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.z4-sound__dur { color: var(--z4-muted); font-size: .8rem; }
.z4-sound__meta { margin: .35rem 0 0; color: var(--z4-muted); font-size: .78rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.z4-sound__actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.z4-waveform {
  display: flex; align-items: flex-end; gap: 2px; height: 28px; margin-top: .45rem;
}
.z4-waveform span {
  flex: 1; min-width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--z4-neon), rgba(251,190,65,.55));
  opacity: .75;
}
.z4-sound--notification .z4-waveform span {
  background: linear-gradient(180deg, var(--z4-orange), rgba(251,190,65,.5));
}

/* Artists / how / faq */
.z4-artists {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.z4-artist {
  text-align: center; padding: 1rem .75rem; border-radius: var(--z4-radius);
  background: var(--z4-surface); border: 1px solid var(--z4-border);
}
.z4-artist__avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto .75rem;
  background: radial-gradient(circle at 30% 30%, hsl(var(--ph-hue), 80%, 60%), #111 70%);
  display: grid; place-items: center; font-weight: 800; color: #fff;
}
.z4-artist__name { margin: 0; font-size: .95rem; }
.z4-artist__meta { margin: .25rem 0 0; color: var(--z4-muted); font-size: .78rem; }

.z4-how__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}
.z4-how__card {
  padding: 1.25rem; border-radius: var(--z4-radius);
  background: var(--z4-surface); border: 1px solid var(--z4-border);
}
.z4-how__num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px; margin-bottom: .65rem;
  background: rgba(251,190,65,.25); color: var(--z4-neon); font-weight: 800;
}
.z4-how__card h3 { margin: 0 0 .4rem; }
.z4-how__card p { margin: 0; color: var(--z4-muted); font-size: .92rem; }

.z4-faq__list { display: flex; flex-direction: column; gap: .65rem; max-width: 760px; }
.z4-faq__item {
  background: var(--z4-surface); border: 1px solid var(--z4-border);
  border-radius: var(--z4-radius-sm); padding: .15rem 1rem 0.15rem;
}
.z4-faq__item summary {
  cursor: pointer; list-style: none; font-weight: 650; padding: .9rem 0;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.z4-faq__item summary::-webkit-details-marker { display: none; }
.z4-faq__item summary::after { content: "▸"; color: var(--z4-muted); transition: transform .15s; }
.z4-faq__item[open] summary::after { transform: rotate(90deg); color: var(--z4-neon); }
.z4-faq__item p { margin: 0 0 1rem; color: var(--z4-muted); }

/* AI + CTA */
.z4-ai {
  margin: 1rem 0 0; padding: 3rem 0;
  background: linear-gradient(135deg, var(--z4-hero-green), #24201b 55%, rgba(251,190,65,.35));
  border-block: 1px solid var(--z4-border);
}
.z4-ai__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .z4-ai__inner { grid-template-columns: 1.2fr .8fr; } }
.z4-ai__title { margin: 0 0 .75rem; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.z4-ai__lead { color: rgba(255,255,255,.72); max-width: 34rem; }
.z4-ai__form {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: .4rem .4rem .4rem 1rem; max-width: 34rem;
}
.z4-ai__input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; outline: none; }
.z4-nosignup { margin: .85rem 0 0; color: var(--z4-mint); font-size: .88rem; font-weight: 600; }
.z4-ai__preview { display: grid; place-items: center; min-height: 180px; }
.z4-ai__orb {
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--z4-amber), var(--z4-amber-hot) 45%, transparent 70%);
  filter: blur(2px); animation: z4-pulse 4s ease-in-out infinite;
}
@keyframes z4-pulse { 50% { transform: scale(1.06); opacity: .85; } }

.z4-cta-band { padding: 1.5rem 0 3rem; }
.z4-cta-band__inner {
  text-align: center; padding: 2.5rem 1.5rem; border-radius: 22px;
  background: linear-gradient(160deg, #1a1410, #24201b 55%, rgba(251,190,65,.18));
  border: 1px solid rgba(251,190,65,.28);
}
.z4-cta-band__inner h2 { margin: 0 0 .5rem; }
.z4-cta-band__inner p { margin: 0 0 1.25rem; color: var(--z4-muted); }
.z4-cta-band__contact { margin: 0 0 1.25rem !important; font-size: .95rem; }
.z4-cta-band__contact a { color: var(--z4-primary); text-decoration: none; }
.z4-cta-band__contact a:hover { text-decoration: underline; }
.z4-footer__links a[href^="tel:"] { white-space: nowrap; }

/* Item detail */
.z4-item {
  display: grid; gap: 2rem; padding: 2.5rem 0;
}
@media (min-width: 900px) { .z4-item { grid-template-columns: minmax(240px, .85fr) 1.15fr; align-items: start; gap: 2.5rem; } }
.z4-item__preview { display: flex; justify-content: center; }
.z4-item__meta { min-width: 0; }
.z4-item__title { margin: .5rem 0 .35rem; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.z4-item__artist { color: var(--z4-muted); margin: 0 0 1rem; }
.z4-item__body { color: rgba(244,244,247,.85); }
.z4-item__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.25rem; }
.z4-item__tags a {
  padding: .3rem .65rem; border-radius: 999px; font-size: .78rem;
  background: var(--z4-elevated); color: var(--z4-muted); border: 1px solid var(--z4-border);
}
.z4-item__tags a:hover { color: #fff; border-color: rgba(251,190,65,.45); }
.z4-item__actions { display: grid; gap: .65rem; margin-bottom: .75rem; }
.z4-item__note { color: var(--z4-muted); font-size: .85rem; margin: 0; }
.z4-item__preview--wave {
  background: var(--z4-surface); border: 1px solid var(--z4-border);
  border-radius: var(--z4-radius); padding: 2rem; text-align: center;
}
.z4-wave { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 80px; margin-bottom: 1rem; }
.z4-wave span {
  width: 10px; border-radius: 6px;
  background: linear-gradient(180deg, var(--z4-amber-hot), var(--z4-gold));
  animation: z4-eq 1.2s ease-in-out infinite;
}
.z4-wave span:nth-child(1) { height: 30%; animation-delay: 0s; }
.z4-wave span:nth-child(2) { height: 55%; animation-delay: .1s; }
.z4-wave span:nth-child(3) { height: 80%; animation-delay: .2s; }
.z4-wave span:nth-child(4) { height: 45%; animation-delay: .3s; }
.z4-wave span:nth-child(5) { height: 70%; animation-delay: .15s; }
.z4-wave span:nth-child(6) { height: 35%; animation-delay: .25s; }
.z4-wave span:nth-child(7) { height: 60%; animation-delay: .05s; }
@keyframes z4-eq { 50% { transform: scaleY(.55); } }
.z4-audio { width: min(100%, 360px); margin-inline: auto; }

/* Footer */
.z4-footer {
  margin-top: 1rem; padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--z4-border); background: #101010;
}
.z4-footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  margin-bottom: 2rem;
}
.z4-footer__logo { margin: 0 0 .5rem; font-weight: 800; font-size: 1.15rem; }
.z4-footer__tag { margin: 0; color: var(--z4-muted); font-size: .9rem; max-width: 22rem; }
.z4-footer__heading { margin: 0 0 .75rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--z4-muted); }
.z4-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.z4-footer__links a { color: rgba(244,244,247,.85); font-size: .92rem; }
.z4-footer__legal { border-top: 1px solid var(--z4-border); padding-top: 1.25rem; color: var(--z4-muted); font-size: .8rem; }

.z4-toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--z4-elevated); color: #fff; border: 1px solid var(--z4-border);
  padding: .75rem 1.1rem; border-radius: 999px; z-index: 200; transition: transform .2s ease;
  box-shadow: var(--z4-shadow); font-size: .9rem;
}
.z4-toast.is-on { transform: translateX(-50%) translateY(0); }

.navigation.pagination, .z4-pagination {
  display: flex; justify-content: center; gap: .35rem; margin-top: 2rem;
}
.navigation.pagination .page-numbers {
  display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--z4-border); color: var(--z4-muted); padding: 0 .5rem;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover { color: #fff; border-color: var(--z4-amber); background: rgba(251,190,65,.2); }

/* Mobile search icon + drawer panel: hidden on desktop by default */
.z4-search-toggle { display: none; }
.z4-drawer-panel { display: none; }
.z4-mobile-search { display: none; }
.z4-header__actions { margin-left: auto; flex-shrink: 0; }
.z4-header__actions-desktop { display: flex; align-items: center; gap: .65rem; min-width: 0; }

@media (max-width: 860px) {
  .z4-nav-toggle {
    display: flex; min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center; flex-shrink: 0;
  }
  .z4-search-toggle {
    display: inline-flex; min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--z4-border);
    border-radius: 999px; color: var(--z4-text); cursor: pointer; padding: 0;
  }
  .z4-search-toggle[aria-expanded="true"] {
    border-color: rgba(251,190,65,.55); color: var(--z4-amber);
  }
  /* Hide desktop search / upload / credits / sign-in — live in drawer */
  .z4-header__actions-desktop { display: none !important; }

  .z4-header__inner {
    position: static;
    display: flex; align-items: center; gap: .5rem;
    min-height: var(--z4-header-h);
  }
  .z4-logo__text { font-size: .95rem; }
  .z4-header__brand { min-width: 0; flex: 1; }
  .z4-logo { min-width: 0; }
  .z4-logo__text {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42vw;
  }

  .z4-nav {
    display: none;
    position: absolute; left: 0; right: 0;
    top: 100%;
    width: 100%;
    background: #1a1814; border-bottom: 1px solid var(--z4-border);
    padding: .75rem 1rem 1.25rem;
    z-index: 120;
    max-height: min(80vh, 640px); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--z4-shadow);
  }
  .z4-nav.is-open { display: block; }
  .z4-nav__list { flex-direction: column; gap: .15rem; }
  .z4-nav__list a {
    display: flex; align-items: center; min-height: 44px;
    color: var(--z4-text); font-size: 1rem; padding: .25rem 0;
  }

  .z4-drawer-panel { display: block; }
  .z4-drawer-search {
    margin: .65rem 0 .85rem;
  }
  .z4-drawer-search .z4-search {
    width: 100%;
    padding: .35rem .35rem .35rem .9rem;
  }
  .z4-drawer-search .z4-search__input {
    width: auto; flex: 1; min-width: 0;
  }
  .z4-drawer-search .z4-search__type {
    max-width: 6.5rem; flex-shrink: 0;
  }
  .z4-drawer-search .z4-search__btn {
    width: 44px; height: 44px; min-width: 44px;
  }
  .z4-drawer-actions {
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    margin-bottom: .35rem;
  }
  .z4-drawer-actions .z4-btn,
  .z4-drawer-actions .z4-credits-pill {
    min-height: 44px;
  }
  .z4-drawer-actions .z4-btn--upload { flex: 1 1 auto; }
  .z4-drawer-actions .z4-btn--signin { flex: 1 1 auto; }

  .z4-drawer-browse {
    margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--z4-border);
  }
  .z4-drawer-browse__label {
    margin: 0 0 .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--z4-amber);
  }
  .z4-drawer-browse .z4-subnav__list {
    flex-direction: column; flex-wrap: wrap; align-items: stretch;
    gap: .1rem; overflow: visible; padding: 0; white-space: normal;
  }
  .z4-drawer-browse .z4-subnav__list a {
    min-height: 44px; padding: .45rem 0; font-size: .92rem; color: var(--z4-muted);
    white-space: normal;
  }
  .z4-drawer-browse .z4-subnav__list a:hover { color: var(--z4-amber); }

  /* Horizontal sub-nav off on small screens (in drawer) */
  .z4-subnav { display: none !important; }

  /* Expandable search strip under header */
  .z4-mobile-search {
    display: block;
    padding: .65rem 0 .85rem;
    border-top: 1px solid var(--z4-border);
    background: rgba(18,16,14,.98);
  }
  .z4-mobile-search[hidden] { display: none !important; }
  .z4-mobile-search .z4-search { width: 100%; }
  .z4-mobile-search .z4-search__input { width: auto; flex: 1; min-width: 0; }
  .z4-mobile-search .z4-search__btn { width: 44px; height: 44px; min-width: 44px; }

  html.z4-nav-open body.zedge-4sov { overflow: hidden; }

  .z4-hero { padding: 2rem 0 1.5rem; }
  .z4-hero-search { flex-wrap: wrap; border-radius: 16px; padding: .5rem; }
  .z4-hero-search__input { min-width: 0; width: 100%; }
  .z4-wrap { width: min(100% - 1.25rem, var(--z4-wrap)); }

  .z4-sound__title { overflow-wrap: anywhere; }
  .z4-item { padding: 1.5rem 0; gap: 1.25rem; }
  .z4-item__actions { width: 100%; }
}

@media (max-width: 639px) {
  .z4-grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .z4-toolbar { gap: .35rem; }
  .z4-toolbar .z4-chip { font-size: .75rem; padding: .35rem .65rem; }
  .z4-card__body { padding: .55rem .55rem .7rem; }
  .z4-section { padding: 2rem 0; }
}

@media (min-width: 861px) {
  .z4-drawer-panel { display: none !important; }
  .z4-search-toggle { display: none !important; }
  .z4-mobile-search { display: none !important; }
}
