/* Modern light theme — minimal + responsive */

:root{
  --bg: #f8fafb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #6c8cff; /* soft blue */
  --accent-2: #7be7c7; /* soft mint */
  --glass: rgba(255,255,255,0.7);
  --shadow: 0 6px 20px rgba(13, 38, 76, 0.08);
  --radius: 14px;
  --gap: 18px;
  --max-width: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%;width:100%;margin:0;font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;}
body{
  background: linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  color: #0b1220;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding: 36px;
}

/* App Layout */
.app{
  width:100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  min-height: calc(100vh - 72px);
}

/* Sidebar */
.sidebar{
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:hidden;
}

.brand{font-size:20px;margin:0;color:var(--accent)}
.subtitle{font-size:12px;color:var(--muted);margin-top:4px}

/* search */
.search-wrap{margin-top:10px}
.search{
  width:100%;
  padding:10px 12px;
  border-radius: 10px;
  border: 1px solid #eef2ff;
  background: linear-gradient(180deg,#fff,#fbfbff);
  outline:none;
  font-size:14px;
  color: #06283d;
  box-shadow: 0 2px 8px rgba(21,45,85,0.04) inset;
}

/* Playlist */
.playlist{
  list-style:none;
  margin: 12px 0 0 0;
  padding:0;
  overflow:auto;
  gap:10px;
  display:flex;
  flex-direction:column;
}
.playlist::-webkit-scrollbar{width:8px}
.playlist::-webkit-scrollbar-thumb{background:#e6ecff;border-radius:10px}

.song{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border-radius:10px;
  cursor:pointer;
  transition: all .18s ease;
  border:1px solid transparent;
}
.song:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(15,20,40,0.04);border-color:#f1f6ff}
.song.active{
  background: linear-gradient(90deg, rgba(108,140,255,0.12), rgba(123,231,199,0.04));
  border-color: rgba(108,140,255,0.12);
}

.thumb{
  width:56px;height:56px;border-radius:8px;background:#f1f5ff;background-size:cover;background-position:center;flex-shrink:0;
  box-shadow:0 6px 18px rgba(108,140,255,0.06);
}

.song-info{display:flex;flex-direction:column}
.song-title{font-size:15px;font-weight:600;color:#071133}
.song-sub{font-size:13px;color:var(--muted);margin-top:4px}

/* Sidebar Footer */
.sidebar-footer{margin-top:auto;color:var(--muted);font-size:12px;text-align:center;padding-top:10px}

/* Player Area */
.player-area{display:flex;flex-direction:column;gap:18px}

.player-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.9), var(--card));
  border-radius: var(--radius);
  padding:22px;
  display:flex;
  gap:20px;
  align-items:center;
  box-shadow: var(--shadow);
  min-height:220px;
}

/* cover */
.cover{
  width:210px;height:210px;border-radius:14px;background:linear-gradient(180deg,#f6f8ff,#fff);flex-shrink:0;background-size:cover;background-position:center;border:1px solid #f1f5ff;
  display:flex;align-items:center;justify-content:center;
  box-shadow: 0 12px 30px rgba(16,24,40,0.06);
}

/* meta */
.meta{flex:1;display:flex;flex-direction:column;gap:12px}
.title{margin:0;font-size:20px}
.artist{margin:0;color:var(--muted);font-size:14px}

/* controls row */
.controls-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}

.buttons{display:flex;align-items:center;gap:10px}
.btn{background:#fff;border:1px solid #eef3ff;padding:10px;border-radius:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(18,27,46,0.04);transition:transform .12s ease, box-shadow .12s}
.btn.icon i{font-size:18px;color:var(--accent)}
.btn.play{background:linear-gradient(90deg,var(--accent),#8ca8ff);color:white;border:none;padding:14px 18px;border-radius:999px}
.btn.play i{font-size:20px}
.btn:active{transform:scale(.97)}
.btn:hover{box-shadow:0 12px 30px rgba(108,140,255,0.12)}

/* time */
.time{color:var(--muted);font-size:13px;display:flex;align-items:center;gap:6px}

/* progress */
.progress-wrap{margin-top:10px}
.progress{-webkit-appearance:none;appearance: none;width:100%;height:8px;background:#eef4ff;border-radius:999px;outline:none;cursor:pointer;
}
.progress::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:var(--accent);box-shadow:0 4px 12px rgba(108,140,255,0.35)}
.progress::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--accent);box-shadow:0 4px 12px rgba(108,140,255,0.35)}

/* extras */
.extras{display:flex;align-items:center;justify-content:space-between;margin-top:8px;gap:12px}
.toggle-row{display:flex;align-items:center;gap:10px}
.switch{position:relative;display:inline-block;width:44px;height:26px}
.switch input{display:none}
.slider{position:absolute;cursor:pointer;inset:0;background:#eee;border-radius:999px;transition:.2s}
.slider:before{content:"";position:absolute;height:18px;width:18px;border-radius:50%;background:white;top:4px;left:4px;box-shadow:0 3px 8px rgba(16,24,40,0.12);transition:.2s}
.switch input:checked + .slider{background:linear-gradient(90deg,var(--accent),#7db6ff)}
.switch input:checked + .slider:before{transform:translateX(18px)}
.toggle-label{color:var(--muted);font-size:13px}

/* volume */
.volume{display:flex;align-items:center;gap:8px}
.volume i{color:var(--muted)}
.volume input{width:120px}

/* now playing strip (optional small feedback) */
.now-playing-strip{height:36px;border-radius:10px;padding:6px 12px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}

/* Responsive */
@media (max-width: 980px){
  .app{grid-template-columns: 280px 1fr;padding:26px;gap:16px}
  .cover{width:170px;height:170px}
}

@media (max-width: 760px){
  body{padding:20px}
  .app{grid-template-columns:1fr;min-height:auto}
  .sidebar{order:2;height:auto}
  .player-area{order:1}
  .player-card{flex-direction:column;align-items:center;text-align:center}
  .meta{text-align:center}
  .time{justify-content:center}
  .extras{flex-direction:column;gap:10px}
  .volume input{width:100%}
  .playlist{flex-direction:row;overflow-x:auto;padding-bottom:6px}
  .song{min-width:200px}
}

@media (max-width:420px){
  .cover{width:140px;height:140px}
  .title{font-size:18px}
  .artist{font-size:13px}
  .btn.play{padding:12px 14px}
}
