body {
  margin: 0;
  min-height: 100vh;
  background-color: #ffffff;
}


/* Simple layout */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background: #282828;
  padding:20px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.sidebar nav a {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  flex-direction: column;
  gap: 8px;
}


.sidebar a {
  color: #ffffff;
  text-decoration: none;
}

.main {
  flex: 1;
  padding: 24px;
}


:root{
  --bg:#0d0d0f;
  --panel:#17171b;
  --text:#f3f3f4;
  --muted:#b9b9c0;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  background:var(--bg);
}

.title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* ===== Currently Playing ===== */
body.currently-playing {
  --star: #f0d34f;
  --border: #2a2a2a;
}

body.currently-playing .main {
  background: #000;
  border-radius: 24px 0 0 24px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;   /* make it explicit */
  align-items: center;      /* <— center horizontally */
  /* justify-content: center;  // optional: use only if you want vertical centering too */
}


body.currently-playing .player { width: min(860px, 100%); }

body.currently-playing .artwrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  margin-inline: auto;
  max-width: 520px;
}

body.currently-playing .artwork {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 20% 20%, #3b0000 0%, #120000 45%, #070707 100%);
  display: grid;
  place-items: center;
}

body.currently-playing .artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.currently-playing .fav {
  align-self: center;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--star);
  filter: drop-shadow(0 0 2px rgba(0,0,0,.7));
  transition: transform .15s ease;
}

body.currently-playing .fav:hover { transform: scale(1.08); }
body.currently-playing .fav[data-active="false"] { color: #757575; }

body.currently-playing .meta {
  margin: 12px auto 8px;
  max-width: 520px;
}

body.currently-playing .track { font-size: 18px; font-weight: 700; margin: 4px 0 2px; }
body.currently-playing .artist { font-size: 13px; color: var(--muted); }

body.currently-playing .progress { max-width: 520px; margin: 14px auto 18px; }

body.currently-playing .progress-track {
  height: 4px;
  background: #2b2b2b;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}

body.currently-playing .progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: #e6e6e6;
  border-radius: 999px;
}

body.currently-playing .controls {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 8px 0 26px;
}

body.currently-playing .btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #121212;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #eee;
  cursor: pointer;
}

body.currently-playing .btn.play { width: 54px; height: 54px; font-size: 20px; }

body.currently-playing .divider {
  height: 2px;
  background: #2a2a2a;
  max-width: 520px;
  margin: 10px auto 6px;
  border-radius: 999px;
}

body.currently-playing .nextup-label {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}

body.currently-playing .queue {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 520px;
  display: grid;
  gap: 10px;
}

body.currently-playing .queue li {
  background: #161616;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

body.currently-playing .song { font-size: 13px; }
body.currently-playing .artist-line { font-size: 12px; color: var(--muted); margin-top: 2px; }
body.currently-playing .fav.small { font-size: 20px; }

@media (max-width: 720px) {
  body.currently-playing .layout { grid-template-columns: 1fr; }
  body.currently-playing .main { margin: 0; border-radius: 0; }
}

/* Liked songs list */
.song-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: grid;
  gap: 8px;
}

.song-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: var(--panel);
  border: 1px solid #26262b;
  border-radius: 10px;
  padding: 12px 14px;
}

.song-meta {
  display: flex;
  flex-direction: column;
}

.song-title {
  font-weight: 600;
}

.song-artist {
  color: var(--muted);
  font-size: 14px;
}

.star-btn {
  background: transparent;
  color: #c8c8ce;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.star-btn[aria-pressed="true"] {
  color: #ffcc33;
}

/* Pure CSS star using checkbox */
.song-star {
  display: flex;
  align-items: center;
}

.star-checkbox {
  position: absolute;
  opacity: 0;
}

.star-label {
  font-size: 20px;
  color: #ffcc33;
  cursor: pointer;
  user-select: none;
}

.star-checkbox:checked + .star-label {
  color: #ffffff;
}

/* Spacing between page heading and first section */
.main h1 {
  margin: 0 0 100px 0;
}

/* Page-specific padding for Liked Songs page */
.main--liked {
  padding-top: 50px;
}




.center-play{
  position: absolute;
  left: 50%;
  top: 100%;
  bottom: -12px;             
  transform: translateX(-50%);
  z-index: 5;
  background: none;
  border: 0;
  font-size: 80px;
  padding: 0;
  color: #C9C9C9;
  cursor: pointer;
}



@media (max-width: 720px){
  .home-body .mp-options{ grid-template-columns: 1fr; }
}

@media (max-width: 780px){
  .home-body .arrow-icon{ width: 44px; height: 44px; }
  .home-body .cover{ width: 100px; height: 100px; }
  .home-body .cover.active{ width: 160px; height: 160px; }
  .home-body .reel{ height: 200px; }
  .home-body .center-play{ width: 60px; height: 60px; }
}



/* home page */

.home-body {
  margin: 0;
  min-height: 100vh;
  background-color: #000; 
  color: #fff;
  font-family: Belanosima;
}


.home-body .home-layout{
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}


.home-body .home-sidebar{
  background-color:#282828;
  padding:24px;
  display:flex;
  flex-direction:column;
}
.home-body .home-sidebar .title{ font-size:40px;
  font-weight:600; 
  color:#fff;
  margin-bottom:40px;
  letter-spacing:1px; 
}

.home-body .home-sidebar nav{ display:flex;
  flex-direction:column;
  gap:12px;
}

.home-body .home-sidebar nav a{
  text-decoration:none;
  color:#fff;
  padding:10px 12px;
  font-size:20px;
  border-radius:8px;
}

.home-body .icon{ width:18px; height:18px; }


.home-body .main{
  display:flex;
  flex-direction:column;
  padding:0;
}


.home-body .artists{
  position:relative;
  height:50vh;
  background:url("/assets/image/ie3KqJ.jpg") center/cover no-repeat;
  display:flex; align-items:flex-end;
  padding:20px;
}

.home-body .artist-gradient{
  position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(13,13,15,.8) 65%, rgba(13,13,15,1) 100%);
}

.home-body .arist-text{
  position:relative;
  max-width:500px;
  line-height:1.4;
  z-index:1;
}

.home-body .greeting{
  font-size:clamp(28px, 5vw, 50px);
  font-weight:300;
  margin:0;
}

.home-body .subtext { font-size:clamp(16px, 3vw, 30px); margin:1px 0 0; }


.home-body .loop{
  display:flex; align-items:center; justify-content:center;
  gap:clamp(8px, 2vw, 24px);
  width:min(1200px, 92vw);   /* keep it from sprawling */
  margin:60px auto 0;
  padding:20px;
}

/* arrows */
.home-body .arrow{
  background:transparent !important;
  border:none;
  padding:0;
  cursor:pointer;
  flex:0 0 auto;
  z-index:10;
}

.home-body .arrow:hover{ background:#3a3a42; }

.home-body .arrow-icon{
  width:clamp(32px, 4vw, 56px);
  height:clamp(32px, 4vw, 56px);
  display:block;
}


.home-body .reel{
  position:relative;
  overflow:visible;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:fit-content;
}

.home-body .covers{
  --gap:24px;
  list-style:none; margin:0; padding:0;
  display:flex; gap:var(--gap); align-items:center; justify-content:center;
  transition: transform .25s ease;
}

.home-body .cover{
  flex:0 0 auto;
  width: clamp(140px, 26vw, 320px);     /* responsive instead of fixed 400px */
  height: clamp(140px, 26vw, 320px);
  opacity:.55;
  transform: scale(.95);
  transition: width .25s, height .25s, transform .25s, opacity .25s;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.45);
  pointer-events:none;  /* covers not clickable */
}

.home-body .cover img{
  display:block;
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  border-radius:12px; 
}

.home-body .cover.active{
  opacity:1;
  transform:scale(1);
  z-index:2; 
}

/* center play/pause button */
.home-body .center-play{
  position:absolute; left:50%; bottom:-12px; transform:translateX(-50%);
  z-index:5; background:none; border:0; padding:0; cursor:pointer;
  color:#C9C9C9;
  width: clamp(64px, 8vw, 120px);
  height: clamp(64px, 8vw, 120px);
  font-size: clamp(28px, 4.5vw, 64px);
  line-height:1;
  display:flex; align-items:center; justify-content:center;
}


.home-body .make-playlist{ 
 display:flex;
 justify-content:center;
 padding:40px 20px;
}

.home-body .mp-card{
  width:min(1000px, 92vw);
  background:#2b2b2b; border:1px solid #3a3a3a; border-radius:20px;
  box-shadow:0 20px 50px rgba(0,0,0,.35);
  padding:28px 28px 24px; color:#fff; margin-top:70px;
}


.home-body .mp-title{ 
  margin:0 0 18px;
  font-size:35px;
  font-weight:600;
  text-align:center;
}


.home-body .mp-row{
  display:grid;
  gap:14px;
  align-items:center;
}


.home-body .mp-slider-row{
  grid-template-columns:auto 1fr auto;
  margin-bottom:18px;
}

.home-body .mp-label{
  font-size:30px;
  opacity:.9;
}

.home-body .mp-range{
  -webkit-appearance:none;
  appearance:none;
  height:6px;
  border-radius:999px;
  background:#A3A3A3;
  outline:none;
}


.home-body .mp-range::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:30px; 
  height:30px;
  border-radius:50%;
  background:#9D7BF2;
  margin-top:-5px;
  cursor:pointer;
}


.home-body .mp-options{
  grid-template-columns:1fr 1fr;
  gap:18px 24px;
  margin-bottom:18px; 
}

.home-body .mp-checkbox{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  font-size:25px;
}


.home-body .mp-checkbox input{
  appearance:none;
  width:20px;
  height:20px;
  border:2px solid #fff;
  border-radius:4px;
  background:transparent;
  margin:0; 
 cursor:pointer;
}

.home-body .mp-checkbox input[type="checkbox"]:checked{ background:#9D7BF2; border-color:#A3A3A3; }

.home-body .mp-select{
  display:flex;
  align-items:center;
  justify-content:space-between; 
  gap:12px;
  padding:12px 14px;
  font-size:25px;
}

.home-body .mp-select select{
  flex:1;
  background:#3a3a3a;
  color:#fff;
  border:1px solid #3a3a3a;
  border-radius:10px;
  padding:10px 12px;
  font:inherit;
  font-size:16px;
}

.home-body .mp-actions{
  display:flex;
  justify-content:center;
}

.home-body .mp-btn{
  background:#D9D9D9;
  color:#000;
  border:none;
  border-radius:999px;
  padding:10px 26px;
  font-weight:700;
  font-size:16px;
  cursor:pointer;
}

/* responsive */
@media (max-width: 780px){
  .home-body .cover{ width:clamp(110px, 30vw, 180px); height:clamp(110px, 30vw, 180px); }
}
@media (max-width: 720px){
  .home-body .mp-options{ grid-template-columns:1fr; }
}
