* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #e8ecf4;
  background:
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.28), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.2), transparent 42%),
    #0b1020;
  line-height: 1.7;
}

.page {
  width: 100%;
  max-width: 680px;
}

.card {
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(129, 140, 248, 0.5);
  border-radius: 999px;
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.2;
}

.lead {
  margin-bottom: 28px;
  color: #bcc5d6;
  font-size: 17px;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  color: #0b1020;
  background: linear-gradient(135deg, #a5b4fc, #34d399);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(52, 211, 153, 0.3);
}

.hint {
  margin-top: 22px;
  color: #8492a8;
  font-size: 14px;
}

.hint a {
  color: #a5b4fc;
}

button.button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}

.preview {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #050914;
}

.preview video,
.preview img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  transform: scaleX(-1);
}

.preview img {
  transform: none;
}

.status {
  margin-bottom: 18px;
  color: #a5b4fc;
  font-size: 14px;
}

.status.error {
  color: #fca5a5;
}

.hidden {
  display: none !important;
}

.gallery-row {
  margin-top: 20px;
}

.info {
  margin-bottom: 18px;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #bcc5d6;
  background: rgba(0, 0, 0, 0.25);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 520px) {
  .card {
    padding: 28px 22px;
  }
}
