/* Scoped styles so it doesn't mess with your site */
.vd-card{
  max-width: 1100px;
  margin: 24px auto;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(56,248,108,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  color: #eafff0;
}

.vd-head{margin-bottom:12px}
.vd-title{font-weight:900; letter-spacing:.4px; font-size:20px}
.vd-subtitle{opacity:.85; font-size:12px}

.vd-row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items:end;
}

.vd-label{display:block; font-size:13px; opacity:.9; margin-bottom:8px}
.vd-input{
  width:100%;
  padding:12px 12px;
  border-radius: 12px;
  border:1px solid rgba(56,248,108,.35);
  background: rgba(0,0,0,.25);
  color:#eafff0;
  outline:none;
}
.vd-input:focus{
  border-color: rgba(56,248,108,.85);
  box-shadow: 0 0 0 3px rgba(56,248,108,.18);
}
.vd-hint{font-size:12px; opacity:.8; margin-top:6px}

.vd-actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

.vd-btn{
  border: 1px solid rgba(56,248,108,.35);
  background: rgba(0,0,0,.22);
  color: #eafff0;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .08s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
  user-select:none;
  min-width: 160px;
}
.vd-btn:hover{
  border-color: rgba(56,248,108,.85);
  box-shadow: 0 0 0 3px rgba(56,248,108,.14);
}
.vd-btn:active{transform: translateY(1px)}
.vd-btn:disabled{opacity:.45; cursor:not-allowed; box-shadow:none}

.vd-btn-primary{
  background: rgba(56,248,108,.15);
  border-color: rgba(56,248,108,.65);
}
.vd-btn-success{
  background: rgba(56,248,108,.22);
  border-color: rgba(56,248,108,.90);
  font-weight:900;
}

.vd-tabs{margin-top:14px; display:flex; gap:10px}
.vd-tab{
  padding:10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56,248,108,.28);
  background: rgba(0,0,0,.18);
  color: rgba(234,255,240,.8);
  cursor:pointer;
}
.vd-tab-active{
  border-color: rgba(56,248,108,.85);
  background: rgba(56,248,108,.12);
  color:#eafff0;
}

.vd-panel{display:none; margin-top:12px}
.vd-panel-active{display:block}

.vd-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.vd-selected{
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(56,248,108,.35);
  background: rgba(0,0,0,.18);
  opacity:.9;
}

.vd-listHeader, .vd-itemRow{
  display:grid;
  grid-template-columns: 140px 80px 110px 1fr 120px;
  gap:10px;
  align-items:center;
}
.vd-listHeader{
  font-size: 12px;
  opacity:.85;
  padding: 10px 10px;
  border-top: 1px solid rgba(56,248,108,.18);
  border-bottom: 1px solid rgba(56,248,108,.18);
  margin-top: 8px;
}
.vd-listHeader-audio, .vd-itemRow-audio{
  grid-template-columns: 1fr 110px 1fr 120px;
}

.vd-list{max-height: 320px; overflow:auto}
.vd-itemRow{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(56,248,108,.12);
}

.vd-pill{
  display:inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56,248,108,.12);
  border: 1px solid rgba(56,248,108,.28);
  font-size: 12px;
}

.vd-small{font-size:12px; opacity:.85}

.vd-pick{
  justify-self:end;
  border-radius: 999px;
  padding: 9px 12px;
  min-width: 0;
}

.vd-footerRow{
  margin-top: 12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.vd-status{font-size: 13px; opacity:.9}

.vd-notes{margin-top:14px; opacity:.9}
.vd-notes-title{font-weight:800; margin-bottom:6px}
.vd-notes ul{margin:0; padding-left:18px}
.vd-notes li{margin:6px 0}

@media (max-width: 900px){
  .vd-row{grid-template-columns: 1fr}
  .vd-actions{justify-content:stretch}
  .vd-btn{min-width:0; width:100%}
  .vd-grid2{grid-template-columns:1fr}
  .vd-listHeader, .vd-itemRow{grid-template-columns: 120px 70px 95px 1fr 90px}
}
/* ===== HBM VD: Centered link + buttons underneath ===== */
.vd-row-centered{
  display: flex;
  justify-content: center;
}

.vd-field-centered{
  width: 100%;
  max-width: 920px;
}

.vd-inputWrap{
  width: 100%;
}

.vd-actions-under{
  margin-top: 12px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.vd-actions-under .vd-btn{
  min-width: 140px;
}

@media (max-width: 640px){
  .vd-actions-under .vd-btn{
    width: 100%;
    min-width: 0;
  }
}
/* ===== Centered link + buttons underneath ===== */
.vd-row-centered{ display:flex; justify-content:center; }
.vd-field-centered{ width:100%; max-width:920px; }
.vd-inputWrap{ width:100%; }
.vd-actions-under{
  margin-top:12px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
.vd-actions-under .vd-btn{ min-width:140px; }
@media (max-width:640px){
  .vd-actions-under .vd-btn{ width:100%; min-width:0; }
}

/* ===== NEW: progress bar ===== */
.vd-progressWrap{ margin-top: 14px; }
.vd-progressTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}
.vd-progressText{ font-size:.95rem; opacity:.9; }
.vd-progressSpeed{ font-size:.9rem; opacity:.8; }
.vd-progress{
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow:hidden;
  border:1px solid rgba(56,248,108,.25);
}
.vd-progress-bar{
  height:100%;
  width:0%;
  border-radius:999px;
  background: rgba(56,248,108,.85);
  transition: width .2s ease;
  box-shadow: 0 0 16px rgba(56,248,108,.45);
}

/* ===== Layout tweaks for new "Size" column ===== */
.vd-listHeader{ grid-template-columns: 1.2fr .6fr .9fr .9fr 1.4fr auto; }
.vd-itemRow{ grid-template-columns: 1.2fr .6fr .9fr .9fr 1.4fr auto; }
.vd-listHeader-audio{ grid-template-columns: 1.2fr .9fr .9fr 1.4fr auto; }
.vd-itemRow-audio{ grid-template-columns: 1.2fr .9fr .9fr 1.4fr auto; }

/* Pref row spacing */
.vd-prefRow{ margin-top: 6px; }
