/* ── Media Downloader Styles ── */
.dl-wrap {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dl-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.dl-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.dl-input-group input {
  flex: 1;
}

.dl-platforms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .dl-platforms {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dl-platform-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.dl-platform-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.dl-platform-icon {
  font-size: 20px;
}

.dl-result-card {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.05), rgba(244, 63, 94, 0.03));
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

@media (max-width: 600px) {
  .dl-result-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.dl-thumbnail {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.dl-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.dl-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dl-author {
  font-size: 12px;
  color: var(--text-muted);
}

.dl-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}

.dl-btn--video {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.dl-btn--video:hover {
  background: rgba(52, 211, 153, 0.2);
}

.dl-btn--audio {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--accent-blue);
}

.dl-btn--audio:hover {
  background: rgba(96, 165, 250, 0.2);
}

.dl-btn--fallback {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--accent-yellow);
}

.dl-btn--fallback:hover {
  background: rgba(251, 191, 36, 0.2);
}
