
:root{
  --bg:#f5f5f7;
  --paper:#ffffff;
  --paper-soft:#fbfbfd;
  --ink:#1d1d1f;
  --muted:#6e6e73;
  --line:rgba(0,0,0,.075);
  --gold:#b39242;
  --gold-soft:#e7ddbf;
  --shadow:0 18px 48px rgba(0,0,0,.055);
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:15px/1.52 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.wrap{width:min(var(--max),calc(100% - 40px));margin:auto}

/* Navigation */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:rgba(245,245,247,.82);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid rgba(0,0,0,.055)
}
.nav-in{
  height:60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px
}
.brand{
  font-weight:760;
  letter-spacing:-.025em;
  color:var(--ink)
}
.brand em{
  font-style:normal;
  color:var(--gold)
}
.brand-glyph{display:none}
.navlinks{
  display:flex;
  gap:24px;
  color:#515154;
  font-size:.82rem
}
.navlinks a:hover{color:#000}
.nav-cta{
  color:var(--gold);
  font-size:.82rem;
  font-weight:700
}

/* Hero */
.hero{
  padding:105px 0 78px;
  background:
    radial-gradient(circle at 80% 18%,rgba(179,146,66,.07),transparent 24%),
    var(--bg)
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .75fr;
  gap:76px;
  align-items:start
}
.eyebrow{
  font-size:.72rem;
  color:var(--gold);
  font-weight:700;
  letter-spacing:.02em
}
.hero h1,.section h2,.modal h2,.editorial-title{
  font-family:inherit;
  font-weight:700
}
.hero h1{
  font-size:clamp(4.2rem,8.5vw,8rem);
  line-height:.87;
  letter-spacing:-.065em;
  margin:15px 0 25px
}
.hero h1 .soft{
  color:#86868b;
  font-style:normal;
  font-weight:600
}
.hero-copy{
  max-width:590px;
  color:var(--muted);
  font-size:1.12rem
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:28px
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  padding:11px 18px;
  background:#e8e8ed;
  color:var(--ink);
  font-weight:650;
  transition:.18s ease
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{
  background:var(--ink);
  color:#fff
}
.btn.primary:hover{background:#000}

/* Hero visual */
.hero-art{
  height:350px;
  position:relative
}
.hero-vinyl{display:none}
.hero-cover{
  position:absolute;
  width:76%;
  aspect-ratio:1;
  right:0;
  top:6px;
  background:
    linear-gradient(145deg,#eeeae0,#c3ad73 70%,#a98a3f);
  border-radius:30px;
  border:1px solid rgba(0,0,0,.055);
  box-shadow:var(--shadow)
}
.hero-cover:before{
  content:"RIDDIM & VIBEZ";
  position:absolute;
  left:24px;
  bottom:27px;
  color:#fff;
  font-weight:760;
  letter-spacing:-.015em
}
.hero-cover:after{display:none}
.hero-float{
  position:absolute;
  left:0;
  bottom:18px;
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px 16px;
  box-shadow:var(--shadow)
}
.hero-float strong{display:block;font-weight:650}
.hero-float small{color:var(--muted)}

/* Sections */
.section{padding:78px 0}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:40px;
  margin-bottom:28px
}
.section h2{
  font-size:clamp(2.7rem,4.8vw,4.7rem);
  line-height:.95;
  letter-spacing:-.05em;
  margin:0
}
.section-copy{
  max-width:520px;
  color:var(--muted)
}

/* Selected works */
.editorial{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.editorial-main,.editorial-side{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:var(--shadow)
}
.editorial-main{
  min-height:360px;
  padding:30px;
  display:flex;
  align-items:flex-end;
  position:relative;
  overflow:hidden
}
.editorial-main:before{
  content:"";
  position:absolute;
  top:26px;
  right:26px;
  width:34%;
  aspect-ratio:1;
  background:linear-gradient(145deg,#ece8dd,#c3ad73);
  border-radius:18px
}
.editorial-main .content{
  position:relative;
  z-index:2;
  max-width:500px
}
.editorial-title{
  font-size:clamp(2.2rem,4vw,3.8rem);
  line-height:.96;
  letter-spacing:-.045em;
  margin:10px 0 13px
}
.editorial-main p,.editorial-side p{color:var(--muted)}
.editorial-side{
  min-height:360px;
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}
.cover-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px
}
.cover-thumb{
  aspect-ratio:1;
  border-radius:13px;
  border:1px solid var(--line);
  box-shadow:none!important
}
.cover-thumb:nth-child(1){background:#efede8!important}
.cover-thumb:nth-child(2){background:#ececec!important}
.cover-thumb:nth-child(3){background:#f1efe8!important}
.cover-thumb:nth-child(4){background:#e9e9eb!important}
.editorial-side h3{
  font-size:1.45rem;
  margin:18px 0 6px
}

/* Beat store */
.store{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow)
}
.tools{
  display:flex;
  gap:10px;
  padding:14px;
  border-bottom:1px solid var(--line)
}
.tools input,.tools select{
  border:1px solid var(--line);
  background:#f7f7f9;
  border-radius:12px;
  padding:10px 12px;
  outline:none
}
.tools input{flex:1}
.tools input:focus,.tools select:focus{
  border-color:rgba(179,146,66,.45);
  box-shadow:0 0 0 3px rgba(179,146,66,.06)
}
.track-head,.track{
  display:grid;
  grid-template-columns:48px minmax(220px,1.6fr) .5fr .5fr .8fr auto;
  gap:14px;
  align-items:center
}
.track-head{
  padding:10px 16px;
  color:#8e8e93;
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.08em
}
.track{
  padding:12px 16px;
  border-top:1px solid var(--line);
  transition:.15s ease
}
.track:hover{background:#fafafa}
.play{
  width:38px;
  height:38px;
  border-radius:50%;
  border:0;
  background:var(--ink);
  color:#fff
}
.track-title{font-weight:650}
.meta{font-size:.80rem;color:#8e8e93}
.value{color:#515154}
.buy{
  border:0;
  border-radius:999px;
  padding:8px 14px;
  background:#f0f0f2;
  color:var(--ink);
  font-weight:650
}
.buy:hover{
  background:var(--ink);
  color:#fff
}

/* Licensing */
.bento{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.bento>div{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:24px;
  min-height:205px;
  padding:26px;
  box-shadow:var(--shadow)
}
.bento .large{
  grid-column:span 2;
  min-height:275px
}
.bento h3{
  font-size:1.45rem;
  margin:0 0 8px
}
.bento p{color:var(--muted)}
.number{display:none}
.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:28px
}
.step{display:block}
.step span{
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--gold-soft);
  color:#6f5928;
  font-size:.72rem;
  font-weight:750;
  margin-bottom:10px
}

/* Player */
.player{
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  width:min(780px,calc(100% - 24px));
  z-index:70;
  display:none;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  background:rgba(255,255,255,.90);
  backdrop-filter:blur(20px);
  border:1px solid var(--line);
  border-radius:18px;
  padding:10px 12px;
  box-shadow:0 18px 50px rgba(0,0,0,.09)
}
.player.show{display:grid}
.player button{
  width:38px;height:38px;
  border:0;border-radius:50%;
  background:var(--ink);color:#fff
}
.player input{
  width:100%;
  accent-color:var(--gold)
}
.player .right{font-size:.72rem;color:#8e8e93}

/* Modal */
.modalbg{
  display:none;
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(0,0,0,.22);
  backdrop-filter:blur(10px);
  place-items:center;
  padding:20px
}
.modalbg.show{display:grid}
.modal{
  width:min(560px,100%);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:24px;
  padding:26px;
  box-shadow:0 30px 90px rgba(0,0,0,.16)
}
.modal h2{
  font-size:2.2rem;
  letter-spacing:-.04em;
  margin:6px 0 20px
}
.close{
  float:right;
  width:34px;height:34px;
  border:0;border-radius:50%;
  background:#f0f0f2
}
.lic{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  padding:16px 0;
  border-top:1px solid var(--line)
}
.lic form{
  display:flex;
  align-items:center;
  gap:10px
}

/* Admin / installer untouched in behavior, visually aligned */
.admin-nav{
  background:#fff;
  border-bottom:1px solid var(--line)
}
.admin-nav .wrap{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.admin-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
  box-shadow:var(--shadow)
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}
.form-grid label{font-size:.84rem;color:#515154}
.form-grid input,.form-grid textarea,.form-grid select{
  width:100%;
  display:block;
  margin-top:6px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff
}
.notice{
  padding:12px 14px;
  border-radius:10px;
  margin:16px 0
}
.notice.error{background:#fff1f1;color:#782323}
.notice.success{background:#eff8f1;color:#235d34}
.install-wrap{max-width:820px}

/* Footer */
.footer{
  padding:40px 0 100px;
  color:#8e8e93
}
.footer-in{
  border-top:1px solid var(--line);
  padding-top:22px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap
}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:30px}
  .hero{text-align:center}
  .hero-copy{margin:auto}
  .actions{justify-content:center}
  .hero-art{height:320px;max-width:500px;margin:auto;width:100%}
  .hero-cover{width:72%;right:14%}
  .section-head{align-items:start;flex-direction:column}
  .editorial{grid-template-columns:1fr}
  .bento{grid-template-columns:1fr}
  .bento .large{grid-column:auto}
  .steps{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .wrap{width:min(var(--max),calc(100% - 24px))}
  .navlinks{display:none}
  .hero{padding:88px 0 58px}
  .hero h1{font-size:clamp(3.8rem,18vw,6rem)}
  .hero-art{height:270px}
  .hero-float{left:5%}
  .section{padding:62px 0}
  .track-head{display:none}
  .track{
    grid-template-columns:42px 1fr auto;
    padding:11px 12px
  }
  .track .hide{display:none}
  .steps{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .player{grid-template-columns:auto 1fr}
  .player .right{display:none}
}

/* Upload/cover fix additions */
.track-play{
  position:relative;
  overflow:hidden;
  padding:0;
  background:#1d1d1f;
}
.track-play img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.track-play .play-overlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  background:rgba(0,0,0,.25);
  opacity:0;
  transition:.15s ease;
}
.track-play:hover .play-overlay{opacity:1}
.track-play:not(:has(img)) .play-overlay{display:none}
.current-media{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  margin-bottom:18px;
  background:#f7f7f9;
  border:1px solid var(--line);
  border-radius:14px;
}
.current-media img{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
}
.media-status{
  padding:12px 14px;
  background:#f7f7f9;
  border:1px solid var(--line);
  border-radius:12px;
  color:#515154;
}
.media-status a{color:var(--gold);font-weight:650}
.license-admin{
  border-top:1px solid var(--line);
  padding:20px 0;
}
.license-admin>label{
  display:block;
  margin-top:12px;
  font-size:.84rem;
  color:#515154;
}
.license-admin textarea,.license-admin input[type=file]{
  width:100%;
  display:block;
  margin-top:6px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}


/* V11 catalogue alignment + purchase button */
.track-head,
.track{
  grid-template-columns:
    48px
    minmax(260px, 1fr)
    90px
    90px
    120px
    160px;
  column-gap:16px;
  align-items:center;
}

.track-head{
  padding-left:16px;
  padding-right:16px;
}

.track-head > span:nth-child(3),
.track-head > span:nth-child(4),
.track-head > span:nth-child(5),
.track-head > span:nth-child(6),
.track > .value{
  text-align:center;
}

.track > .buy{
  width:160px;
  text-align:center;
  justify-self:center;
  white-space:nowrap;
  padding-left:14px;
  padding-right:14px;
}

.track > .track-play,
.track > .play{
  justify-self:center;
}

.track > div:nth-child(2){
  min-width:0;
}

.track-title{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.track-play{
  width:40px;
  height:40px;
  border-radius:50%;
}

@media(max-width:920px){
  .track-head,
  .track{
    grid-template-columns:46px minmax(210px,1fr) 70px 70px 105px 145px;
    column-gap:12px;
  }

  .track > .buy{
    width:145px;
    font-size:.82rem;
  }
}

@media(max-width:700px){
  .track{
    grid-template-columns:42px minmax(0,1fr) auto;
    column-gap:10px;
  }

  .track > .buy{
    width:auto;
    min-width:0;
    padding:8px 12px;
    font-size:0;
  }

  .track > .buy::after{
    content:"Buy / Licenses";
    font-size:.78rem;
  }
}
