/* =========================================
   BLACKSHARK — CSS TRANSCRIPTOR
   ========================================= */

.tr {
  padding: 80px 0 120px;
}
.tr-inner {
  max-width: 820px;
}

/* Encabezado ------------------------------ */
.tr-head {
  margin-bottom: 48px;
}
.tr-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 20px;
}
.tr-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
}
.tr-underline {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--green);
  margin-bottom: 28px;
}
.tr-sub {
  font-size: 18px;
  color: var(--gray-700);
  margin: 0;
  max-width: 520px;
}

/* Zona de carga --------------------------- */
.tr-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed var(--gray-500);
  border-radius: var(--radius);
  background: var(--gray-100);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.tr-drop:hover,
.tr-drop.is-over {
  border-color: var(--black);
  background: var(--white);
}
.tr-drop:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.tr-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.tr-drop-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.tr-drop.is-over .tr-drop-icon { color: var(--green); }
.tr-drop strong {
  font-size: 17px;
  font-weight: 700;
}
.tr-drop-hint {
  font-size: 13px;
  color: var(--gray-700);
}

/* Resultados ------------------------------ */
.tr-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.tr-item {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--white);
}
.tr-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tr-item-name {
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.tr-item-status {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tr-item.is-done .tr-item-status { color: var(--black); }
.tr-item.is-done .tr-item-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.tr-item.is-error .tr-item-status { color: #c0392b; }
.tr-item audio {
  width: 100%;
  height: 36px;
  margin-top: 14px;
}
.tr-item-text {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.tr-item-text:empty { display: none; }
.tr-item.is-error .tr-item-text {
  color: #c0392b;
  font-size: 14px;
}
.tr-item-actions {
  margin-top: 16px;
}
.tr-item-actions .btn {
  padding: 10px 20px;
  font-size: 13px;
}

.tr-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: tr-spin .8s linear infinite;
}
@keyframes tr-spin { to { transform: rotate(360deg); } }

/* Ayuda ----------------------------------- */
.tr-help {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}
.tr-help-block h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}
.tr-help-block p {
  font-size: 14px;
  color: var(--gray-700);
  margin: 0;
}
.tr-help-block em {
  font-style: normal;
  font-weight: 600;
  color: var(--black);
}

@media (max-width: 720px) {
  .tr { padding: 48px 0 80px; }
  .tr-drop { padding: 40px 16px; }
  .tr-item { padding: 16px; }
  .tr-help { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
}
