/* ===== TorahMoment audio row UI (shared) ===== */

.tm-speed{
  border: 1px solid var(--line);
  background: #f9fafb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.tm-badge{
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #374151;
  white-space: nowrap;
}

.tm-len.tm-short{
  background:#ecfeff;
  border-color:#a5f3fc;
  color:#155e75;
}
.tm-len.tm-long{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}

/* Row wrapper */
.item{
  padding: 0;
  border: 0;
  background: transparent;
  margin: 10px 0;
}

.tm-row{
  display:flex;
  align-items:center;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
}

.tm-row:hover{
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.tm-main{
  flex: 1 1 auto;
  min-width: 0;
}

/* Title + date */
.tm-title-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.tm-title{
  font-weight: 650;
  font-size: 14px;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-note{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Player bar */
.tm-player{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  background:#f9fafb;
  border-radius: 14px;
  padding: 10px 12px;
}

.tm-play{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: var(--accent2);
  flex: 0 0 auto;
}

.tm-seek{
  flex:1;
  height: 4px;
}

.tm-right{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
}

.tm-dur{
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Progress line */
.tm-progress{
  height: 3px;
  background: #eef2f7;
  border-radius: 999px;
  margin-top: 8px;
  overflow:hidden;
}
.tm-progress > div{
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
}

/* Mobile title expand (optional) */
.tm-title{ cursor: pointer; }
.tm-title.expanded{
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
@media (min-width: 768px){
  .tm-title{ cursor: default; }
}
