html, body {
  height: 100%;
  margin: 0;
  background: #0b0b10;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#player {
  height: 100%;
}

/* Modal wrapper */
#linkModal {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99999;

  display: none;            /* hidden by default */
  align-items: flex-end;
}

/* Card */
.modalCard {
  width: min(420px, calc(100vw - 36px));
  border-radius: 16px;
  background: rgba(10,10,18,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 50px rgba(0,0,0,0.55);
  color: #fff;

  animation: popIn 180ms ease-out;
}

@keyframes popIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);  opacity: 1; }
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 8px 14px;
}

.modalTitle {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.modalBody {
  padding: 10px 14px 14px 14px;
}

.modalUrlLabel {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.modalUrl {
  font-size: 13px;
  line-height: 1.25;
  opacity: 0.95;
  word-break: break-all;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.modalStatus {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.25;
  opacity: 0.9;
}

.modalActions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.modalNote {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.25;
  opacity: 0.7;
}

/* Buttons */
.btn {
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  color: #fff;
}

.btn.primary {
  background: rgba(255,255,255,0.20);
}

.btn.primary:hover {
  background: rgba(255,255,255,0.28);
}

.btn.secondary {
  background: rgba(255,255,255,0.10);
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.18);
}

.btn.ghost {
  background: transparent;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  opacity: 0.9;
}

.btn.ghost:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
}
