:root {
  --bg: #0f0f14;
  --panel: #1a1a24;
  --panel2: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.08);
  --muted: rgba(255,255,255,0.75);
  --muted2: rgba(255,255,255,0.60);
  --brand: #4f46e5;
  --brand2: #6366f1;
  --good: #22c55e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1.25rem;
  background: var(--bg);
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.card {
  width: 100%;
  max-width: 880px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

h1 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: .2px;
}

.sub {
  margin: .5rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.pill {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  font-size: .92rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px rgba(34,197,94,.65);
}

.drop {
  margin-top: 1.25rem;
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 1.25rem;
  background: rgba(255,255,255,.03);
}

.drop.drag {
  border-color: rgba(99,102,241,.75);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: .7rem 1.05rem;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}

.btn:hover { background: var(--brand2); }

.btn.secondary {
  background: #3f3f46;
  font-weight: 650;
  padding: 0 .9rem;
  font-size: .9rem;
  border-radius: 10px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn.secondary:hover { background: #52525b; }

input[type=file] { display: none; }

.divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 1.25rem 0;
}

.count {
  color: var(--muted);
  font-size: .95rem;
}

.list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-top: 1rem;
}

.item {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .9rem;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,.06);
}

.left {
  display: flex;
  gap: .9rem;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.thumb {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
}

.meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.name {
  font-weight: 800;
  word-break: break-word;
}

.url {
  margin-top: .35rem;
  font-size: .95rem;
  color: var(--muted2);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: .45rem .6rem;
  border-radius: 10px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,29,.95);
  border: 1px solid rgba(255,255,255,.12);
  padding: .6rem .85rem;
  border-radius: 999px;
  display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.progress {
  margin-top: .9rem;
  display: none;
}

.progressTop {
  display: flex;
  justify-content: space-between;
  margin: .7rem 0 .45rem;
  color: var(--muted);
  font-size: .95rem;
}

.barOuter {
  height: 10px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}

.barInner {
  height: 10px;
  width: 0%;
  background: var(--good);
}

@media (max-width: 560px) {
  .card { padding: 1.5rem; }
  .item { flex-direction: column; align-items: stretch; }
  .actions { width: 100%; }
  .actions .btn { width: 100%; text-align: center; }
  .thumb { width: 100%; height: 220px; }
}

.left,
.meta {
  min-width: 0;
}

.urlRow {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  min-width: 0;
}

.urlInput {
  width: 100%;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted2);
  padding: 0 .7rem;
  border-radius: 10px;
  font-size: .95rem;
  height: 38px;
  line-height: 38px;
  -webkit-appearance: none;
  appearance: none;
}

.urlInput:focus {
  outline: none;
  border-color: rgba(99,102,241,.6);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}

.copyBtn {
  height: 38px;
  padding: 0 .95rem;
  border-radius: 10px;
  background: #3f3f46;
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 700;
  font-size: .9rem;
  line-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.copyBtn:hover {
  background: #52525b;
}

.copyBtn:active {
  transform: translateY(1px);
}

/* keep it clean on small screens but tbh they probs wont be playing gta 5 */
@media (max-width: 560px) {
  .urlRow {
    flex-wrap: wrap;
  }
  .urlInput {
    width: 100%;
  }
  .copyBtn {
    width: 100%;
  }
}