:root{
  --bg:#050505;
  --panel:#0d0d0d;
  --panel2:#141414;
  --line:#292929;
  --text:#fff;
  --muted:#a7a7a7;
  --accent:#d5b15b;
  --accent2:#efd078;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.55;
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

button{font:inherit}

.shell{
  max-width:1200px;
  margin:auto;
  padding:0 24px;
}


/* NAVIGATION */

nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(5,5,5,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.nav-inner{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  font-weight:900;
  letter-spacing:2px;
}

.brand span{
  color:var(--accent);
}

.nav-links{
  display:flex;
  gap:24px;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
}

.nav-links a{
  color:#d6d6d6;
}

.nav-links a:hover{
  color:var(--accent);
}


/* CART NAV BUTTON */

.cart-toggle{
  flex:0 0 auto;
  min-height:40px;
  padding:0 13px;
  border:1px solid var(--accent);
  background:transparent;
  color:#fff;
  cursor:pointer;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
}

.cart-toggle:hover{
  background:var(--accent);
  color:#080808;
}

.cart-toggle span{
  display:inline-grid;
  place-items:center;
  min-width:22px;
  height:22px;
  margin-left:7px;
  padding:0 5px;
  border-radius:20px;
  background:var(--accent);
  color:#080808;
  font-size:10px;
}

.cart-toggle:hover span{
  background:#080808;
  color:var(--accent);
}


/* HERO */

.hero{
  min-height:82vh;
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 75% 40%,#292015 0%,transparent 30%),
    linear-gradient(120deg,#050505 40%,#111 100%);
  position:relative;
  overflow:hidden;
}

.hero:after{
  content:"FNR";
  position:absolute;
  right:-25px;
  bottom:-115px;
  font-size:390px;
  font-weight:900;
  color:rgba(255,255,255,.025);
  pointer-events:none;
}

.hero .shell{
  position:relative;
  z-index:2;
}

.eyebrow,
.section-label{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:4px;
  font-size:11px;
  font-weight:800;
}

.hero h1{
  font-size:clamp(58px,10vw,128px);
  line-height:.84;
  letter-spacing:-5px;
  margin:18px 0 0;
}

.hero h1 span{
  color:var(--accent);
}

.hero p{
  max-width:650px;
  color:#bdbdbd;
  font-size:18px;
  margin-top:30px;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}


/* BUTTONS */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 24px;
  border:1px solid var(--accent);
  background:transparent;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:.2s;
}

.btn.primary{
  background:var(--accent);
  color:#080808;
}

.btn:hover:not(:disabled){
  background:var(--accent2);
  color:#080808;
  border-color:var(--accent2);
}

.btn:disabled{
  opacity:.4;
  cursor:not-allowed;
}

.btn.in-cart{
  border-color:#666;
  color:#aaa;
}


/* SECTIONS */

section{
  padding:90px 0;
  border-bottom:1px solid #202020;
}

.section-title{
  font-size:clamp(40px,6vw,72px);
  line-height:.95;
  letter-spacing:-2px;
  margin:10px 0 40px;
}


/* FEATURED RELEASE */

.feature-grid{
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:58px;
  align-items:center;
}

.cover{
  border:1px solid #333;
  background:#0b0b0b;
  overflow:hidden;
}

.cover img{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}

.release-title{
  font-size:clamp(42px,6vw,68px);
  line-height:.95;
  letter-spacing:-2px;
  margin:8px 0 18px;
}

.muted{
  color:var(--muted);
}


/* MUSIC PLAYER */

.player{
  margin-top:26px;
  border:1px solid var(--line);
  background:#0a0a0a;
  padding:22px;
}

.player-row{
  display:flex;
  align-items:center;
  gap:16px;
}

.play-btn{
  width:56px;
  height:56px;
  flex:0 0 56px;
  border:0;
  border-radius:50%;
  background:var(--accent);
  color:#000;
  font-size:20px;
  cursor:pointer;
}

.track-meta strong{
  display:block;
}

.track-meta span{
  display:block;
  color:#777;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-top:2px;
}

.progress{
  height:6px;
  background:#333;
  margin-top:18px;
  cursor:pointer;
}

.progress-fill{
  height:100%;
  width:0;
  background:var(--accent);
}

.time-row{
  display:flex;
  justify-content:space-between;
  color:#777;
  font-size:11px;
  margin-top:7px;
}

.now-playing{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  color:#8c8c8c;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1px;
}

.pulse{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  opacity:.35;
}

.pulse.live{
  animation:pulse 1s infinite;
}

@keyframes pulse{
  0%,100%{
    opacity:.35;
    transform:scale(1);
  }

  50%{
    opacity:1;
    transform:scale(1.35);
  }
}


/* PURCHASE */

.purchase{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.price{
  font-size:30px;
  font-weight:900;
  margin-right:8px;
}


/* CATALOG */

.catalog-wrap{
  overflow:hidden;
}


/* GENRE FILTERS */

.genre-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:-15px 0 30px;
}

.genre-btn{
  min-height:40px;
  padding:0 17px;
  border:1px solid #3b3b3b;
  background:#0a0a0a;
  color:#aaa;
  cursor:pointer;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
  transition:.2s;
}

.genre-btn:hover{
  color:var(--accent);
  border-color:var(--accent);
}

.genre-btn.active{
  background:var(--accent);
  border-color:var(--accent);
  color:#080808;
}


/* RELEASE CARDS */

.release-rail{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(250px,31%);
  gap:20px;
  overflow-x:auto;
  padding-bottom:12px;
  scroll-snap-type:x proximity;
}

.release-card{
  scroll-snap-align:start;
  background:var(--panel);
  border:1px solid var(--line);
  transition:.2s;
}

.release-card:hover{
  transform:translateY(-5px);
  border-color:#5a4b2b;
}

.release-art{
  aspect-ratio:1/1;
  background:linear-gradient(145deg,#262626,#0d0d0d);
  display:grid;
  place-items:center;
  font-size:48px;
  font-weight:900;
  color:rgba(255,255,255,.12);
  overflow:hidden;
}

.release-art img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.release-body{
  padding:18px;
}

.release-body h3{
  margin:0 0 4px;
}

.release-body p{
  margin:0;
  color:#888;
  font-size:13px;
}

.release-genre{
  margin-top:8px;
  color:#666;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
}

.release-price{
  margin-top:13px;
  color:#fff;
  font-size:20px;
  font-weight:900;
}

.release-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}

.release-preview,
.release-cart{
  min-height:38px;
  padding:0 12px;
  border:1px solid #444;
  background:#090909;
  color:#aaa;
  cursor:pointer;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.7px;
}

.release-preview:hover{
  color:var(--accent);
  border-color:var(--accent);
}

.release-cart{
  border-color:var(--accent);
  color:var(--accent);
}

.release-cart:hover{
  background:var(--accent);
  color:#080808;
}

.release-cart.in-cart{
  border-color:#555;
  color:#aaa;
  background:#171717;
}


/* ARTIST */

.artist-grid{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:55px;
  align-items:center;
}

.artist-grid img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border:1px solid #333;
}

.artist-copy h2{
  font-size:clamp(52px,7vw,88px);
  line-height:.9;
  letter-spacing:-3px;
  margin:8px 0 20px;
}

.artist-copy p{
  max-width:580px;
  color:#aaa;
}


/* MESSAGE */

.message{
  text-align:center;
  background:
    radial-gradient(circle at center,#211a10 0%,#070707 62%);
}

.message .shell{
  max-width:900px;
}

.message h2{
  font-size:clamp(44px,7vw,88px);
  line-height:.95;
  letter-spacing:-3px;
  margin:16px 0 24px;
}

.message h2 span{
  color:var(--accent);
}

.message p{
  color:#bcbcbc;
}


/* FOOTER */

footer{
  padding:42px 0;
  color:#666;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}


/* CART DRAWER */

.cart-panel{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  z-index:200;
  width:min(430px,100%);
  height:100dvh;
  max-height:100dvh;
  background:#090909;
  border-left:1px solid #333;
  box-shadow:-20px 0 50px rgba(0,0,0,.45);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transform:translateX(105%);
  transition:transform .25s ease;
}

.cart-panel.open{
  transform:translateX(0);
}

.cart-header{
  flex:0 0 auto;
  min-height:95px;
  padding:20px 22px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.cart-header h2{
  margin:4px 0 0;
  font-size:30px;
  line-height:1;
}

.cart-close{
  width:42px;
  height:42px;
  border:1px solid #444;
  background:#111;
  color:#fff;
  cursor:pointer;
  font-size:26px;
  line-height:1;
}

.cart-close:hover{
  border-color:var(--accent);
  color:var(--accent);
}

.cart-content{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:20px 22px;
}

.cart-empty{
  color:#777;
  text-align:center;
  margin:50px 0;
}

.cart-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 0;
  border-bottom:1px solid #252525;
}

.cart-item-info{
  min-width:0;
}

.cart-item-info strong{
  display:block;
  color:#fff;
  line-height:1.25;
}

.cart-item-info span{
  display:block;
  margin-top:5px;
  color:var(--accent);
  font-size:13px;
  font-weight:800;
}

.cart-remove{
  flex:0 0 auto;
  border:0;
  background:transparent;
  color:#777;
  cursor:pointer;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
}

.cart-remove:hover{
  color:#fff;
}

.cart-footer{
  flex:0 0 auto;
  padding:20px 22px calc(25px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
  background:#0c0c0c;
}

.cart-total-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
  color:#aaa;
  text-transform:uppercase;
  font-size:12px;
  font-weight:800;
  letter-spacing:1px;
}

.cart-total-row strong{
  color:#fff;
  font-size:25px;
}

.cart-checkout{
  display:flex;
  width:100%;
}

.cart-note{
  margin:12px 0 0;
  color:#777;
  text-align:center;
  font-size:10px;
  line-height:1.5;
  text-transform:uppercase;
  letter-spacing:.7px;
}


/* TOAST */

.toast{
  position:fixed;
  right:20px;
  bottom:20px;
  background:#111;
  border:1px solid #444;
  padding:14px 16px;
  max-width:320px;
  display:none;
  z-index:300;
}

.toast.show{
  display:block;
}


/* MOBILE */

@media(max-width:820px){

  .nav-inner{
    gap:10px;
  }

  .nav-links{
    display:none;
  }

  .brand{
    font-size:12px;
    letter-spacing:1px;
  }

  .cart-toggle{
    padding:0 9px;
  }

  .feature-grid,
  .artist-grid{
    grid-template-columns:1fr;
  }

  .release-rail{
    grid-auto-columns:82%;
  }

  .hero h1{
    letter-spacing:-3px;
  }

  section{
    padding:68px 0;
  }

  .actions .btn{
    width:100%;
  }

  .genre-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:6px;
  }

  .genre-btn{
    flex:0 0 auto;
  }

  .purchase{
    align-items:stretch;
  }

  .purchase .price{
    width:100%;
  }

  .purchase .btn{
    flex:1 1 100%;
  }
}

@media(max-width:480px){

  .shell{
    padding:0 17px;
  }

  .brand{
    max-width:190px;
    line-height:1.2;
  }

  .hero{
    min-height:75vh;
  }

  .player{
    padding:17px;
  }

  .release-rail{
    grid-auto-columns:88%;
  }

  .release-actions{
    flex-direction:column;
  }

  .release-preview,
  .release-cart{
    width:100%;
  }

  .cart-panel{
    width:100%;
    height:100dvh;
    max-height:100dvh;
  }

  .cart-header{
    padding-top:
      calc(16px + env(safe-area-inset-top));
  }

  .cart-footer{
    padding:
      16px
      17px
      calc(16px + env(safe-area-inset-bottom));
  }
}
