/* Social media downloader — MP4/MP3 tabbed results table */
.smd-download-wrap {
  margin-top: 4px;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.smd-download-wrap .smd-download-ui {
  border: none;
  margin-top: 0;
  border-radius: 0;
}
.smd-download-ui {
  margin-top: 4px;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.smd-format-tabs {
  display: flex;
  gap: 0;
  background: #ecfdf5;
  border-bottom: 1px solid #a7f3d0;
}
.smd-format-tabs.single .smd-tab {
  cursor: default;
}
.smd-format-tabs .smd-tab {
  flex: 1;
  text-align: center;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  background: #d1fae5;
  color: #065f46;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.smd-format-tabs .smd-tab.active {
  background: #059669;
  color: #fff;
}
.smd-format-tabs .smd-tab:not(.active):hover {
  background: #bbf7d0;
}
.smd-tab-panel {
  display: none;
  padding: 0;
}
.smd-tab-panel.active {
  display: block;
}
.smd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.smd-table thead th {
  background: #047857;
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
}
.smd-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
  color: #374151;
}
.smd-table tbody tr:last-child td {
  border-bottom: none;
}
.smd-table tbody tr:hover td {
  background: #f9fafb;
}
.smd-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: #fff;
  background: #059669;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.smd-btn:hover {
  background: #047857;
}
.smd-btn:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}
.smd-btn-render {
  background: #0d9488;
}
.smd-btn-render:hover {
  background: #0f766e;
}
.smd-empty {
  padding: 14px;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  text-align: center;
}
.smd-bulk-block {
  margin-top: 12px;
}
.smd-bulk-block .smd-download-ui {
  margin-top: 8px;
}
.smd-action-cell {
  vertical-align: top;
}
.smd-action-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.smd-open-newtab {
  padding: 0;
  border: none;
  background: none;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}
.smd-open-newtab:hover {
  color: #065f46;
}
.smd-open-newtab:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}
.smd-fallback-hint {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #4b5563;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}
