* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* BACKGROUND FUTURISTA */

body {
  background:
    radial-gradient(circle at 50% 120%, rgba(9,116,255,0.25), transparent 60%),
    radial-gradient(circle at 0% 0%, rgba(31,255,169,0.15), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(228,63,69,0.15), transparent 50%),
    url("./background.png");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  padding: 24px;
}

/* CONTAINER */

.container {
  width: 100%;
  max-width: 520px;
}

/* CARD FUTURISTA */

.card {
  background: rgba(23,23,23,0.8);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;

  padding: 32px;

  box-shadow:
    0 0 25px rgba(0,0,0,0.6),
    0 0 8px rgba(31,255,169,0.15);

  transition: all 0.25s ease;
}

.card:hover{
  box-shadow:
    0 0 30px rgba(0,0,0,0.7),
    0 0 12px rgba(31,255,169,0.25);
}

.creator {
  text-align: center;
  color: #1fffa9;
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* TITULO */

h1 {
  font-size: 28px;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.5px;
}

.subtitle {
  color: #9a9a9a;
  text-align: center;
  margin-bottom: 24px;
}

/* INPUT */

.url-box {
  margin-bottom: 20px;
}

.url-box input {
  width: 100%;
  padding: 18px;

  border-radius: 14px;
  border: 1px solid #2b2b2b;

  background: #111;
  color: white;
  font-size: 15px;

  transition: 0.2s;
}

.url-box input::placeholder {
  color: #6b6b6b;
}

.url-box input:focus {
  outline: none;
  border-color: #1fffa9;

  box-shadow: 0 0 10px rgba(31,255,169,0.3);
}

/* FORMATOS */

.formats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.format-option {
  flex: 1;

  background: #111;
  border: 1px solid #2a2a2a;

  border-radius: 12px;
  padding: 14px;

  text-align: center;
  cursor: pointer;

  transition: 0.2s;
}

.format-option:hover{
  border-color: #1fffa9;
}

.format-option input {
  margin-right: 8px;
}

.format-option:has(input[type="radio"]:checked) {
  border-color: #1fffa9;
  box-shadow: 0 0 8px rgba(31,255,169,0.3);
}

.format-option input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;

  border: 2px solid #888;
  border-radius: 50%;

  position: relative;
  top: 2px;
}

.format-option input[type="radio"]:checked {
  border-color: #1fffa9;
  background: radial-gradient(circle, #1fffa9 45%, transparent 46%);
}

/* BOTÃO */

button {
  width: 100%;
  padding: 14px;

  border: none;
  border-radius: 12px;

  background: linear-gradient(
    135deg,
    #1fffa9,
    #0974ff
  );

  color: #000;
  font-size: 16px;
  font-weight: bold;

  cursor: pointer;

  transition: all 0.25s ease;
}

button:hover{
  transform: translateY(-2px);
  box-shadow:
    0 0 15px rgba(31,255,169,0.6);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* STATUS */

.status {
  margin-top: 18px;
  text-align: center;
  color: #d0d0d0;
}

.status.success {
  color: #1fffa9;
  font-weight: 600;
}

.status.error {
  color: #e43f45;
}

/* RESULT */

.result {
  margin-top: 18px;
  text-align: center;
}

.result .download-hint {
  color: #b3b3b3;
  margin-bottom: 12px;
}

.result a {
  display: inline-block;

  margin-top: 8px;

  text-decoration: none;
  color: white;

  background: #0974ff;

  padding: 12px 18px;
  border-radius: 10px;

  transition: 0.2s;
}

.result a:hover{
  box-shadow: 0 0 10px rgba(9,116,255,0.6);
}

/* LOADING */

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 16px;

  margin-top: 24px;
  padding: 24px;
}

.loading.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;

  border: 4px solid #2a2a2a;
  border-top-color: #1fffa9;

  border-radius: 50%;

  animation: spin 0.9s linear infinite;
}

.loading-text {
  color: #b3b3b3;
  font-size: 15px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity:1 }
  50% { opacity:0.6 }
}

@keyframes spin {
  to { transform: rotate(360deg) }
}

/* MOBILE WARNING */

.mobile-warning {
  text-align: center;
  padding: 24px 16px;
}

.mobile-warning.hidden {
  display: none;
}

.mobile-warning-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.mobile-warning h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.mobile-warning p {
  color: #9a9a9a;
  line-height: 1.5;
  font-size: 15px;
}

#desktopContent.hidden {
  display: none;
}

/* FOOTER */


.footer {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
  margin-top: 32px;
}

body.is-mobile .footer {
  margin-top: 8px;
}

.footer-text {
  color: #6b6b6b;
  font-size: 13px;
}

.footer-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
}