
:root{
  --glass: rgba(0,0,0,.55);
  --glass-strong: rgba(0,0,0,.82);
  --ink: #fff;
  --gold: #ffd700;
  --accent: rgba(255,255,255,.16);
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #000 url('/images/studio-yourname.jpg') center center / cover fixed no-repeat;
  overflow-x:hidden;
}
header{ position: fixed; inset: 0 0 auto 0; height:56px; display:flex; align-items:center; justify-content:center;
  padding: 0 64px; background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,.25), transparent);
  z-index: 1000; pointer-events: none; }
header h1{ margin:0; font-size: clamp(16px, 3.5vw, 22px); letter-spacing:.06em; text-shadow:0 2px 12px rgba(0,0,0,.5); font-weight:600; }
.home-btn{ position: fixed; top:10px; left:12px; z-index:1100; width:42px; height:42px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); cursor:pointer; transition: transform .15s ease, background .25s ease; pointer-events:auto; }
.home-logo{
  font-size:20px;
  color:#fff;
  text-shadow:0 0 8px rgba(255,255,255,0.9);
}


.home-logo{
  font-size: 20px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.9);
}

.home-btn:hover{ background: rgba(255,255,255,.22); } .home-btn:active{ transform: scale(.98); }
.home-icon{ display:grid; grid-auto-rows: 4px; gap:5px; width: 6px; }
.home-icon span{ display:block; width:6px; height:4px; border-radius:2px; background:#fff; box-shadow: 0 0 6px rgba(255,255,255,.35); }
#miniPlayer{ position: fixed; left:0; right:0; bottom:0; z-index:1200; margin:0 auto;
  background: var(--glass-strong); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.15);
  padding: 8px 10px; display:flex; align-items:center; gap:10px; touch-action: pan-y; max-width:1200px; }
#drawerHandle{ position:absolute; top:6px; left:50%; transform:translateX(-50%); width:46px; height:4px; border-radius:4px; background: rgba(255,255,255,.35); cursor: pointer; }
.marquee{ flex:1; min-width: 0; overflow:hidden; white-space:nowrap; position:relative; }
.marquee .text{ display:inline-block; padding: 0 8px; font-weight:600; text-shadow:0 1px 6px rgba(0,0,0,.45); animation: slideLR 14s linear infinite; }
@keyframes slideLR{ 0% { transform: translateX(-100%); opacity:.95; } 5% { transform: translateX(-85%); opacity:1; } 95% { transform: translateX(100%); opacity:1; } 100% { transform: translateX(120%); opacity:.35; } }
.toggles{ display:flex; align-items:center; gap:8px; }
.toggle{ display:inline-flex; align-items:center; gap:6px; font-size:12px; background: rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18); padding:4px 8px; border-radius:999px; }
.switch{ position:relative; width:44px; height:22px; flex:0 0 auto; }
.switch input{ appearance:none; width:100%; height:100%; margin:0; }
.track{ position:absolute; inset:0; border-radius:999px; background: rgba(255,255,255,.25); transition: background .25s ease, box-shadow .25s ease; }
.knob{ position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.35); transition: transform .25s ease; }
.switch input:checked ~ .track{ background: linear-gradient(135deg, #ffd700, #ff9a00); box-shadow: 0 0 14px rgba(255, 196, 0, .45); }
.switch input:checked ~ .knob{ transform: translateX(22px); }
#miniControls{ display:flex; align-items:center; gap:6px; }
.btn{ background: transparent; color:#fff; border:1px solid var(--accent); padding:6px 8px; border-radius:10px; cursor:pointer; font-size:18px; }
.btn:hover{ background: rgba(255,255,255,.12); }
#playlistDrawer{ position: fixed; left:0; right:0; bottom:0; z-index:1150; height: 72vh; transform: translateY(100%); background: rgba(12,12,12,.68); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.18); border-radius: 16px 16px 0 0; transition: transform .36s cubic-bezier(.22,.61,.36,1); box-shadow: 0 -14px 40px rgba(0,0,0,.45); will-change: transform; max-width:1200px; margin:0 auto; }
#playlistDrawer.open{ transform: translateY(0); }
.drawer-inner{ height:100%; display:flex; flex-direction:column; padding:10px 12px 16px; }
.drawer-header{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.tabs{ display:flex; gap:8px; }
.tab{ padding:8px 12px; border-radius:10px; cursor:pointer; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.06); font-weight:700; }
.tab.active{ background: linear-gradient(90deg, rgba(255,215,0,.14), rgba(255,215,0,.06)); color:var(--gold); border-color:rgba(255,215,0,.18); }
.drawer-title{ font-weight:800; letter-spacing:.04em; color:var(--gold); }
.close-x{ background:transparent; border:1px solid var(--accent); color:#fff; border-radius:10px; padding:4px 8px; cursor:pointer; }
.list{
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
}
.track-row{ display:flex; align-items:center; gap:10px; padding:10px 6px; cursor:pointer; border-bottom:1px dashed rgba(255,255,255,.12); touch-action: pan-y; }
.track-row:hover{ background: rgba(255,255,255,.07); }
.track-row.active{ background: rgba(255,215,0,.22); font-weight:700; }
.track-row.dragging{ opacity:0.5; background: rgba(255, 215, 0, 0.15); }
.track-row.drag-over{ border-top: 2px solid var(--gold); }
.num{ width:28px; text-align:right; color:var(--gold); flex:0 0 28px; }
#descPanel{ position: fixed; left:0; right:0; bottom:0; z-index:1250; transform: translateY(100%); background: rgba(10,10,10,.78); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.18); border-radius: 16px 16px 0 0; padding: 18px 16px 24px; transition: transform .36s cubic-bezier(.22,.61,.36,1); }
#descPanel.open{ transform: translateY(0); }
.desc-title{ font-size: clamp(18px, 5vw, 28px); font-weight:900; text-align:center; letter-spacing:.06em; color:#fff; text-shadow:0 2px 16px rgba(0,0,0,.5); }
.desc-sub{ margin-top:6px; text-align:center; font-size: clamp(14px, 3.5vw, 18px); color: #f1f1f1; }
.notes{ position:absolute; left:0; right:0; bottom:6px; pointer-events:none; height: 220px; overflow:hidden; }
.note{ position:absolute; bottom:-30px; font-size:18px; opacity:0; filter: drop-shadow(0 0 6px rgba(255,255,255,.45)); animation: floatUp 5.5s linear infinite; }
@keyframes floatUp{ 0% { transform: translateY(0) translateX(0) scale(.9); opacity:0; } 10% { opacity:1; } 70% { opacity:1; } 100% { transform: translateY(-220px) translateX(40px) scale(1.15); opacity:0; } }
.grad{ background: linear-gradient(135deg, #ff4d4d, #ffb84d, #ffd700, #67ff7d, #7dd3ff, #c084fc); -webkit-background-clip:text; background-clip:text; color: transparent; }
main{ padding-top:56px; padding-bottom: 90px; max-width:1200px; margin:0 auto; }
@media (max-width: 600px){ #playlistDrawer{ height: 78vh; } .btn{ font-size:17px; } }


.track-row .drag-handle{
  font-size: 18px;
  line-height: 1;
  cursor: grab;
  opacity: 0.7;
  padding: 0 4px;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.track-row .drag-handle:active{
  cursor: grabbing;
  opacity: 1;
}

.track-row .title-text{
  flex: 1;
}

.home-btn.radio-on{
  box-shadow:0 0 18px rgba(255,255,255,0.9);
  transform:scale(1.05);
}
