/* Get Down — v2 UI (mobile-first, clean, Hitster-ish) */
:root{
  --bg:#06060a;
  --card:rgba(255,255,255,.05);
  --stroke:rgba(255,255,255,.10);
  --text:#eef3fb;
  --muted:rgba(238,243,251,.68);
  --accent:#ff2d95;      /* neon pink */
  --accent2:#2bc976;     /* green */
  --accent3:#52a7ff;     /* blue */
  --danger:#ff5d5d;
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --r: 20px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1000px 700px at 15% -10%, rgba(255,45,149,.18), transparent 60%),
    radial-gradient(900px 650px at 110% 0%, rgba(43,201,118,.12), transparent 55%),
    radial-gradient(900px 650px at 50% 120%, rgba(82,167,255,.10), transparent 60%),
    var(--bg);
}

.bgGlow{
  position:fixed; inset:0;
  pointer-events:none;
  background: radial-gradient(600px 380px at 50% 0%, rgba(255,255,255,.06), transparent 70%);
  mix-blend-mode: screen;
}

.top{
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 14px 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{ display:flex; align-items:center; gap:12px; }
.mark{
  width:44px; height:44px; border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 45%),
    linear-gradient(135deg, rgba(255,45,149,.95), rgba(82,167,255,.90));
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  position:relative;
}
.mark::after{
  content:"";
  position:absolute; inset:10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.20);
}

.brandText .name{
  font-weight: 900;
  letter-spacing: .4px;
  font-size: 18px;
}
.brandText .sub{
  margin-top:2px;
  font-size: 12px;
  color: var(--muted);
}

.topActions{ display:flex; gap:10px; }

.grid{
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 14px 26px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.cardTop{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.label{
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .2px;
}
.hint{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(238,243,251,.60);
  line-height: 1.35;
}

.chips{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.chip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,45,149,.40);
  background: rgba(255,45,149,.12);
}
.chipMuted{
  border-color: rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--muted);
}

.viewport{
  position:relative;
  background:#000;
  aspect-ratio: 16/10;
}
@media (max-width: 520px){
  .viewport{ aspect-ratio: 4/3; }
}
video{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
  filter: contrast(1.08) saturate(1.06);
}

.frame{
  position:absolute; inset:0;
  display:grid; place-items:center;
  pointer-events:none;
}
.frame::before{
  content:"";
  width: min(78%, 600px);
  aspect-ratio: 1.75/1;
  border-radius: 22px;
  box-shadow: 0 0 0 999px rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.07);
}
.scanline{
  position:absolute;
  width: min(78%, 600px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(43,201,118,.95), transparent);
  animation: sweep 1.55s linear infinite;
  opacity:.95;
  transform: translateY(-22%);
}
@keyframes sweep{
  0%{ transform: translateY(-35%); }
  100%{ transform: translateY(35%); }
}
.c{
  position:absolute;
  width:24px; height:24px;
  border: 3px solid rgba(82,167,255,.95);
  border-radius: 12px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));
}
.tl{ left: 18%; top: 22%; border-right:none; border-bottom:none; }
.tr{ right: 18%; top: 22%; border-left:none; border-bottom:none; }
.bl{ left: 18%; bottom: 22%; border-right:none; border-top:none; }
.br{ right: 18%; bottom: 22%; border-left:none; border-top:none; }

.hud{
  position:absolute;
  left: 12px;
  bottom: 12px;
  display:flex; align-items:center; gap:10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(238,243,251,.78);
  font-size: 12px;
  backdrop-filter: blur(8px);
}
.dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.16);
}
.dot.on{ background: rgba(43,201,118,.95); border-color: rgba(43,201,118,.45); }
.dot.wait{ background: rgba(255,204,85,.95); border-color: rgba(255,204,85,.50); }

.controls{
  padding: 12px 14px 14px;
}
.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.row.tiny{ margin-bottom: 0; }

.select,.input{
  flex: 1 1 180px;
  min-width: 170px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline:none;
}
.input::placeholder{ color: rgba(238,243,251,.45); }

.btn{
  flex: 0 0 auto;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor:pointer;
  user-select:none;
  transition: background .15s ease, transform .08s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover{ background: rgba(255,255,255,.08); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.btn.primary{
  background: rgba(255,45,149,.14);
  border-color: rgba(255,45,149,.30);
}
.btn.primary:hover{ background: rgba(255,45,149,.20); }
.btn.danger{
  background: rgba(255,93,93,.14);
  border-color: rgba(255,93,93,.28);
}
.btn.danger:hover{ background: rgba(255,93,93,.20); }

.ghost{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  cursor:pointer;
}
.ghost:hover{ background: rgba(255,255,255,.06); }

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  color: rgba(238,243,251,.75);
  font-size: 12px;
}
.tinyText{
  font-size: 12px;
  color: rgba(238,243,251,.55);
  line-height: 1.35;
  flex: 1 1 240px;
}

.playerBody{ padding: 14px; }
.title{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing:.2px;
}
.meta{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
  line-height: 1.4;
}
.divider{
  height:1px;
  background: rgba(255,255,255,.08);
  margin: 14px 0;
}

.audioRow{ display:flex; gap:10px; flex-wrap:wrap; }

.spotifyRow iframe{
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.15);
}
.spotifyActions{ margin-top: 10px; display:flex; gap:10px; flex-wrap:wrap; }

.miniTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.miniActions{ display:flex; gap:10px; }

.fileBtn{ display:inline-flex; align-items:center; gap:8px; }

.list{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  max-height: 360px;
  overflow:auto;
  padding-right: 4px;
}
.list::-webkit-scrollbar{ width: 10px; }
.list::-webkit-scrollbar-track{ background: rgba(255,255,255,.03); border-radius:999px; }
.list::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.10); border-radius:999px; border:2px solid rgba(0,0,0,0); background-clip: padding-box; }

.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
}
.left{ display:flex; gap:10px; min-width:0; align-items:center; }
.badge{
  min-width: 54px;
  text-align:center;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(82,167,255,.26);
  background: rgba(82,167,255,.12);
}
.txt{ min-width:0; }
.name{
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}
.artist{
  margin-top:2px;
  font-size: 12px;
  color: rgba(238,243,251,.62);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}
.playMini{
  padding: 9px 10px;
  border-radius: 14px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor:pointer;
}
.playMini:hover{ background: rgba(255,255,255,.08); }

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Sheets */
.sheetBackdrop{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.sheet{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: min(760px, calc(100% - 24px));
  background: linear-gradient(180deg, rgba(18,18,24,.96), rgba(10,10,14,.96));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
  z-index: 51;
  overflow:hidden;
  display:none;
  max-height: calc(100vh - 70px);
}
.sheet.open{ display:block; }
.sheetHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.sheetTitle{ font-weight: 900; letter-spacing:.2px; }
.x{
  width: 42px; height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor:pointer;
}
.x:hover{ background: rgba(255,255,255,.08); }

.sheetBody{
  padding: 12px 14px 14px;
  overflow:auto;
}
.setting{ padding: 10px 0; }
.settingTitle{ font-weight: 800; }
.settingText{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(238,243,251,.72);
  line-height: 1.45;
}
pre.code{
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  overflow:auto;
}
pre.code code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
