:root{
  --bg:#070b14;
  --card:#111625;
  --card2:#171d30;
  --text:#f5f7fb;
  --muted:#a8b2c8;
  --line:rgba(255,255,255,.08);
  --green:#1ed760;
  --blue:#4c7dff;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  min-height:100%;
  font-family:Inter,Arial,Helvetica,sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(30,215,96,.18), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(76,125,255,.18), transparent 26%),
    linear-gradient(180deg,#05070e 0%, #08101d 100%);
  color:var(--text);
}

body{
  min-height:100vh;
}

.app{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}

.player-shell{
  width:min(980px, 100%);
  background:linear-gradient(180deg, rgba(17,22,37,.92), rgba(23,29,48,.92));
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:0 30px 80px rgba(0,0,0,.45);
  overflow:hidden;
  backdrop-filter: blur(8px);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px;
  border-bottom:1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand-logo{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(76,125,255,.24), rgba(30,215,96,.20));
  border:1px solid var(--line);
  font-size:24px;
}

.brand-title{
  font-size:30px;
  font-weight:800;
  line-height:1;
}

.brand-sub{
  margin-top:4px;
  font-size:14px;
  color:var(--muted);
}

.status-pill{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:14px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 14px rgba(30,215,96,.65);
}

.content{
  padding:28px;
  display:grid;
  gap:22px;
}

.art-wrap{
  width:100%;
  aspect-ratio:1/1;
  max-width:420px;
  margin:0 auto;
  background:linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--line);
  border-radius:26px;
  overflow:hidden;
}

.cover-art{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.meta{
  text-align:center;
  max-width:760px;
  margin:0 auto;
}

.eyebrow{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  margin-bottom:12px;
}

.meta h1{
  margin:0;
  font-size:clamp(10px, 4vw, 52px);
  line-height:1.05;
  letter-spacing:-.02em;
}

.artist{
  margin-top:12px;
  font-size:clamp(16px, 2vw, 22px);
  color:#d8def0;
}

.album{
  margin-top:8px;
  font-size:14px;
  color:var(--muted);
}

.controls{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  width:100%;
  max-width:100%;
}

.controls .control:nth-child(4){
  grid-column:1 / -1;
  max-width:180px;
  margin:0 auto;
}

.control{
  border:none;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  transition:.18s ease;
  font-size:18px;
  padding:14px 24px;
}

.control:hover{
  transform:translateY(-1px);
}

.control.primary{
  min-width:108px;
  padding:16px 28px;
  font-size:18px;
  background:var(--green);
  color:#05110a;
  box-shadow:0 12px 32px rgba(30,215,96,.24);
}

.control.secondary{
  padding:14px 18px;
  font-size:15px;
  color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
}

.control.secondary.active{
  background:rgba(30,215,96,.14);
  border-color:rgba(30,215,96,.32);
  color:#dfffe9;
}

.volume-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:center;
  max-width:760px;
  margin:0 auto;
  width:100%;
}

.label,.value{
  font-size:14px;
  color:var(--muted);
}

input[type="range"]{
  width:100%;
  accent-color:var(--green);
}

.footer-meta{
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

@media (max-width:680px){
  .topbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .brand-title{
    font-size:24px;
  }

  .content{
    padding:18px;
  }

  .art-wrap{
    max-width:100%;
  }

  .controls{
    gap:10px;
  }

  .control.primary{
    width:100%;
  }
}
@media (max-width: 768px){

  .app{
    padding:12px;
    align-items:flex-start;
  }

  .player-shell{
    border-radius:24px;
    width:100%;
    min-height:auto;
  }

  .topbar{
    padding:16px 16px;
    gap:12px;
    flex-direction:row;
    align-items:center;
  }

  .brand{
    gap:10px;
  }

  .brand-logo{
    width:36px;
    height:36px;
    border-radius:12px;
    font-size:20px;
  }

  .brand-title{
    font-size:20px;
  }

  .brand-sub{
    font-size:12px;
  }

  .status-pill{
    padding:8px 12px;
    font-size:12px;
  }

  .content{
    padding:16px;
    gap:16px;
  }

  .art-wrap{
    max-width:100%;
    aspect-ratio:1/1;
    border-radius:22px;
  }

  .meta{
    max-width:100%;
  }

  .eyebrow{
    font-size:12px;
    padding:6px 10px;
    margin-bottom:10px;
  }

  .meta h1{
    font-size:clamp(28px, 8vw, 42px);
    line-height:1.08;
    max-width:100%;
  }

  .artist{
    font-size:clamp(14px, 4.2vw, 20px);
    margin-top:10px;
  }

  .album{
    font-size:13px;
    margin-top:6px;
  }

  .controls{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    width:100%;
    max-width:100%;
  }

  .control{
    width:100%;
    justify-self:stretch;
    text-align:center;
  }

  .control.primary{
    grid-column:1 / -1;
    width:100%;
    min-width:0;
    padding:18px 22px;
    font-size:20px;
    border-radius:999px;
  }

  .control.secondary{
    padding:14px 16px;
    font-size:17px;
  }

  .volume-row{
    grid-template-columns:auto 1fr auto;
    gap:10px;
    max-width:100%;
    margin-top:4px;
  }

  .label,
  .value{
    font-size:13px;
  }

  input[type="range"]{
    min-width:0;
  }
  

  .footer-meta{
    font-size:12px;
    padding-bottom:4px;
  }
}

@media (max-width:768px){

  .controls{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  .controls .control:nth-child(2){
    order:1; /* Prev */
  }

  .controls .control:nth-child(4){
    order:2; /* Next */
  }

  .controls .control.primary{
    order:3; /* Play */
    grid-column:1 / -1;
    width:100%;
  }

  .controls .control:nth-child(1){
    order:4; /* Shuffle */
    grid-column:1 / -1;
    max-width:200px;
    margin:0 auto;
  }

}

@media (max-width:768px){

  .controls{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  /* Prev */
  .controls .control:nth-child(2){
    grid-column:1;
    font-size:15px;
    padding:10px 14px;
    min-width:0;
  }

  /* Next */
  .controls .control:nth-child(4){
    grid-column:2;
    font-size:15px;
    padding:10px 14px;
    min-width:0;
  }

  /* Play (grande) */
  .controls .control.primary{
    grid-column:1 / -1;
    width:100%;
    padding:18px 20px;
    font-size:20px;
  }

  /* Shuffle */
  .controls .control:nth-child(1){
    grid-column:1 / -1;
    max-width:200px;
    margin:0 auto;
    font-size:14px;
    padding:10px 16px;
  }

}

.search-box{
width:100%;
margin:15px 0;
}

.search-box input{
width:100%;
padding:12px 14px;
border-radius:10px;
border:none;
background:#0f1b2d;
color:white;
font-size:16px;
outline:none;
}

.search-results{
max-height:220px;
overflow-y:auto;
margin-top:10px;
}

.search-item{
padding:10px;
border-bottom:1px solid rgba(255,255,255,.08);
cursor:pointer;
}

.search-item:hover{
background:rgba(255,255,255,.05);
}
