* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #1db95433, transparent),
    linear-gradient(160deg, #0e1116, #171a21);
  color: #fff;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: rgba(14, 17, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.who {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
}

.link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: #1db954;
  color: #06130a;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  background: #1ed760;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn.danger {
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.35);
  color: #ff8a8a;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.empty p {
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.preview {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #20242c, #0e1116);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.preview-frame {
  border: 0;
  display: block;
  transform-origin: top left;
}

.name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.url-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.url-row code {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #7ee2a0;
  word-break: break-all;
}

.actions {
  display: flex;
  gap: 10px;
}
