
/* Getfvid Downloader Results
   Load after Bootstrap 3 and your main theme.
*/

/* Layout */
.dl-result-page {
  padding: 28px 0 40px;
}

.dl-result {
  margin: 24px 0;
}

.dl-result [hidden] {
  display: none !important;
}

.dl-panel {
  background: var(--dl-surface, #fff);
  border: 1px solid var(--dl-border, #e9e6f0);
  border-radius: var(--dl-radius, 16px);
  box-shadow: var(--dl-shadow, 0 12px 34px rgba(37, 28, 70, .055));
}

/* Extraction status */
.dl-job-panel {
  padding: 40px 20px;
  text-align: center;
}

.dl-job-panel h2 {
  margin: 16px 0 9px;
  color: var(--dl-heading, #201c33);
  font-size: 21px;
  font-weight: 700;
}

.dl-job-panel p {
  margin-bottom: 20px;
  color: var(--dl-muted, #848196);
  font-size: 14px;
}

.dl-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 3px solid var(--dl-primary-soft, #f0ebfe);
  border-top-color: var(--dl-primary, #7150df);
  border-radius: 50%;
  animation: dl-spin .8s linear infinite;
}

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

/* Result card */
.dl-video-card {
  overflow: hidden;
}

.dl-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--dl-border, #e9e6f0);
  color: var(--dl-heading, #201c33);
  font-size: 14px;
  font-weight: 700;
}

.dl-ready-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24a87a;
}

.dl-card-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 12px;
}

/* Video preview */
.dl-preview-link {
  display: block;
  text-decoration: none;
}

.dl-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: linear-gradient(135deg, #e9e5f4, #e5dfef);
}

.dl-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dl-play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(32, 28, 51, .82);
  color: #fff;
  font-size: 16px;
}

/* Video information */
.dl-video-information {
  padding: 4px 10px 4px 16px;
}

.dl-video-title {
  margin: 0 0 8px;
  color: var(--dl-heading, #201c33);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dl-video-description {
  margin: 0 0 10px;
  color: var(--dl-text, #56546b);
  font-size: 14px;
  line-height: 1.6;
}

.dl-source-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* Download actions */
.dl-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.dl-download-links .btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 24px;
  text-decoration: none;
}

/* Supporting elements */
.dl-error {
  margin: 24px auto;
}

.dl-ad-unit {
  margin: 16px auto;
  clear: both;
}

#myModalVideo .modal-body {
  padding: 0;
}

#myModalVideo video {
  display: block;
  width: 100%;
  max-height: 75vh;
}

/* Accessible keyboard focus */
.dl-preview-link:focus-visible,
.dl-download-links .btn-download:focus-visible {
  outline: 2px solid var(--dl-primary, #7150df) !important;
  outline-offset: 3px;
}

/* Mobile */
@media (max-width: 767px) {
  .dl-card-content {
    display: block;
    padding: 18px 12px;
  }

  .dl-video-information {
    padding: 18px 2px 2px;
  }

  .dl-video-title {
    font-size: 18px;
  }

  .dl-download-links {
    flex-direction: column;
  }

  .dl-download-links .btn-download {
    width: 100%;
  }

  .dl-job-panel {
    padding: 30px 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .dl-spinner {
    animation: none;
  }
}
