.subtitle-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background .2s;
}

.subtitle-item:hover { background: #f0f8ff; }

.subtitle-item.active {
  background: #e0f0ff;
  border-left: 3px solid var(--color-primary);
  animation: pulse 1.2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0%   { background: #e0f0ff; }
  100% { background: #cce8ff; }
}

.subtitle-time {
  width: 145px;
  flex-shrink: 0;
  font-size: 11px;
  color: #666;
  font-family: monospace;
  text-align: right;
  line-height: 2;
}

/* Clickable time spans */
.time-field {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: border-color .15s;
}
.time-field:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Inline time edit input */
.time-edit-input {
  width: 120px;
  font-family: monospace;
  font-size: 11px;
  padding: 1px 4px;
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  outline: none;
  color: #333;
}

.subtitle-text { flex: 1; }

.subtitle-text textarea {
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  font-size: 14px;
  line-height: 1.6;
  font-family: inherit;
  color: #333;
  outline: none;
}

/* Split button → opens timeline modal */
.split-btn {
  align-self: flex-start;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #bbb;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.split-btn:hover {
  color: var(--color-primary);
  background: #f0f6ff;
}

/* Delete row button */
.del-btn {
  align-self: flex-start;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.del-btn:hover {
  color: #e53e3e;
  background: #fff0f0;
}
