/* Hero / layout */
.fbdl-hero {
  padding: 48px 16px;
  background: linear-gradient(
    180deg,
    rgba(245, 247, 250, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}
.fbdl-container {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.fbdl-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 8px;
}
.fbdl-subtitle {
  font-size: clamp(14px, 2.2vw, 18px);
  color: #555;
  margin: 0 0 24px;
}

/* Form */
.fbdl-form {
  margin-top: 12px;
}
.fbdl-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.fbdl-input-wrap input[type="url"] {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 12px;
  background: transparent;
  color: #111;
}
.fbdl-input-wrap input[type="url"]::placeholder {
  color: #999;
}

/* Botó principal ("Download") */
.fbdl-form .fbdl-btn {
  all: unset;
  display: inline-block;
  box-sizing: border-box;

  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;

  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  width: auto;

  box-shadow: none !important;
  text-decoration: none !important;
}
.fbdl-form .fbdl-btn:hover,
.fbdl-form .fbdl-btn:focus,
.fbdl-form .fbdl-btn:active {
  background: #2563eb;
  color: #fff;
  filter: brightness(0.95);
  box-shadow: none !important;
  outline: none;
}

.fbdl-hint {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
}

/* Result area */
.fbdl-result {
  margin-top: 18px;
  min-height: 24px;
  font-size: 15px;
}
.fbdl-error {
  color: #c00;
  font-weight: 600;
}

/* Result card */
.fbdl-video-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: left;
}
.fbdl-video-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #111;
  word-break: break-word;
}

/* Row of download buttons (SD/HD) */
.fbdl-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Botons de descàrrega SD / HD */
.fbdl-btn-download {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 10px 16px;

  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: filter 0.15s ease-in-out;

  -webkit-appearance: none;
  appearance: none;
}
.fbdl-btn-download:hover,
.fbdl-btn-download:focus,
.fbdl-btn-download:active {
  filter: brightness(0.9);
  color: #fff;
  text-decoration: none;
  outline: none;
}

/* Responsive tweaks */
@media (max-width: 560px) {
  .fbdl-input-wrap {
    grid-template-columns: 1fr;
  }

  .fbdl-form .fbdl-btn {
    width: 100%;
    text-align: center;
  }

  .fbdl-buttons-row {
    flex-direction: column;
  }

  .fbdl-btn-download {
    flex: 1 1 auto;
    width: 100%;
    min-height: 44px;
  }
}